该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Simple AMP

描述

A ridiculously simple yet powerful plugin that automatically generates AMP pages based on current template.

Features

  • It is extremely simple, no configuration needed.
  • Works for all pages which uses WordPress template.

Advanced Usage & Filters

  • If you need conditional check, use Simple_AMP_Helper::is_amp_endpoint()
  • Default endpoint is amp but you can change it via simple_amp_query_var filter
  • You can modify HTML output by using simple_amp_html_output filter
  • You can modify AMP output by using simple_amp_output filter
  • You can use custom template file by using simple_amp_template filter
  • Use simple_amp_debug filter for validation issues and fixes

PHP requirement: This plugin only works with PHP 5.6 and above

Credits

Contributing

Pull requests are welcome on Github

安装

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from admin’s Plugins page.

常见问题

Why AMP pages looks ugly?

You should consider adding some inline css.

Why it requires PHP 5.5?

Because, Simple AMP uses amp-library

评价

此插件暂无评价。

贡献者及开发者

「Simple AMP」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Simple AMP」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Simple AMP」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.1.1

  • PHP 5.5 support added

0.1.0

  • Initial version