這個外掛並未在最新的 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

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Simple AMP〉的開發相關工作。

參與者

〈Simple AMP〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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

變更記錄

0.1.1

  • PHP 5.5 support added

0.1.0

  • Initial version