Mô tả
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 viasimple_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
- AMP plugin for inspiration
- amp-library for converting HTML to AMP
Contributing
Pull requests are welcome on Github
Cài đặt
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.
Hỏi đáp
- Why AMP pages looks ugly?
-
You should consider adding some inline css.
- Why it requires PHP 5.5?
-
Because, Simple AMP uses amp-library
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Simple AMP” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng góp“Simple AMP” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.
Dịch “Simple AMP” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
0.1.1
- PHP 5.5 support added
0.1.0
- Initial version