這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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

評價

There are no reviews for this plugin.

貢獻者及開發者

“Simple AMP” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Simple AMP 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.1.1

  • PHP 5.5 support added

0.1.0

  • Initial version