-
Notifications
You must be signed in to change notification settings - Fork 19
/
readme.txt
478 lines (340 loc) · 16 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
=== Better AMP - WordPress Complete AMP ===
Contributors: betterstudio
Donate link: http://betterstudio.com/
Tags: amp,accelerated mobile pages, mobile theme, google amp
Requires at least: 3.0
Tested up to: 5.4.0
Stable tag: 5.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Complete AMP solution for WordPress. It supports everything in WP.
== Description ==
This plugin is most complete AMP ( Google Accelerated Mobile Pages) support for WordPress with supporting everything and created in speed mater and will load faster than all other AMP plugins.
[Online Demo](https://betterstudio.com/wp-plugins/better-amp/) | [Support](https://betterstudio.com/wp-plugins/better-amp/)
All pages, posts, categories, tags, author page, search... are supported in BetterAMP and there is a lot of more options that you can use them in customizer with live preview.
Also BetterAMP supports RTL languages completely.
== Installation ==
This section describes how to install the plugin and get it working.
e.g.
1. Upload the plugin files to the `/wp-content/plugins/better-amp` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Settings->Better AMP screen to configure the plugin
1. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)
== Frequently Asked Questions ==
= What is the URL for AMP pages? =
You can see AMP version of your site with adding /amp/ to your site url: domain.com/amp/
All inner pages url will be started with same /amp/ in start of url: domain.com/amp/category/fashion
Also BetterAMP supports the /amp/ in the end of url to cover "Automatic AMP" plugin urls.
== Screenshots ==
1. Homepage + Slider + Off-Canvas Navigation + Contact Info + Social Links
2. Post (Supports all post types) + Social Share + Share Count + Comments
3. Category Archive + Tag Archive + 2 type of listings
4. Search Result + Author Archive
5. Page (Contact page) + 404 page
== Changelog ==
= 1.13.0 = 29 Jul 2021
- Fixed: Wrong top gap on aparat embedded code.
- Fixed: The parent tag of tag 'style amp-custom' can only be 'head'.
- Fixed: Empty translation panel on fresh installations.
- Fixed: Don't throw exception in mb_parse_url().
- Fixed: Missing post settings on 'Quick Edit'.
= 1.12.0 = 21 Feb 2021
- Improved: RTL Style created from scratch to be perfect.
- Improved: Single posts design
- Improved: Color styles of AMP theme are now using CSS varialbes.
- Improved: Admin panel created from scrath to be 300% faster!
And redux framework removed.
- Improved: JSON-LD generator updated.
- Improved: AMP Carousel component updated to v0.2 to fix the RTL issues.
- Fixed: The attribute 'height' may not appear in tag 'table'.
- Fixed: The video iframes wraps the layout that brings mobile usability issue.
- Fixed: Wrong canonical url on start point mode when category base filled.
= 1.11.0 = 15 Dec 2020
- Added: AMP Custom Script code support added.
- Added: PHP v8 compatibility added.
- Fixed: Social List Conflict with Better Social Counter.
- Fixed: Use wp WP_Filesystem_Base API instead of file_get_contents.
= 1.10.0 = 26 Apr 2020
- Added: Support for image with data: URI
- Added: Filter for Custom Permalink Structure.
- Added: Add: Support for Gallery Block.
- Improved: Playbuzz partial support.
- Improved: Height & width attribute sanitization for amp-video, audio tags.
- Improved: Auto change invalid a tags to span tag in AMP.
- Improved: Sanitize whole site html not just body.
- Improved: Validate video tag with no height&width attribute.
- Improved: Yoast SEO v14 compatibility.
- Fixed: AMP Carousel (Slider) Issue on RTL styles fixed.
- Fixed: Fix: Wrong page url when page_on_front is on
- Fixed: Undefined index: image issue
- Fixed: unpack(): Type C: not enough input
- Fixed: DOMElement::setAttribute(): string is not in UTF-8.
- Fixed: Some socia share icons like Twitter are not showing.
= 1.9.12 = 4 May 2019
- Added: Show/Hide Tagline Feature
- Added: Support for instagram embedded code
- Added: Snip Plugin Compatibility
- Fixed: Wrong link url with special characters
- Fixed: Box ratio of Youtube and iFrame video
= 1.9.11 = 15 Apr 2019
- Added: AMP-Embed to valid tags.
- Added: Buttons style added.
- Improved: AMP URL Converter with Unit Tests
- Improved: AMP WPForo plugin compatibility
- Fixed: Undefined index in JetPack.
- Fixed: “View Desktop Version” Wrong link on WordPress Directory Installation
- Fixed: DOMElement::setAttribute(): string is not in UTF-8
- Fixed: 404 error on some pages with end-point
- Fixed: Wrong AMP pages redirect on WPML.
- Fixed: Wrong false result on is_better_amp() early calls, when WPML with ‘Different languages in directories’ setting enabled
- Fixed: Wrong wp directory installation detection
- Fixed: Do not convert link when started with wp-content
- Fixed: Some end-point AMP URL issues
- Fixed: Some start-point AMP URL issues
- Fixed: AMP URL on pagination archive pages.
- Fixed: AMP version for paginated comments.
= 1.9.10 = 5 Jan 2019
- Fixed: Always remove AMP query var when transforming URL to non-AMP.
- Fixed: Wrap text in a pre tags (BetterAMP)
= 1.9.9 = 26 Dec 2018
- Fixed: AMP Homepage redirects to non-AMP version.
= 1.9.8 = 25 Dec 2018
- Fixed: Too many redirects on search page.
- Fixed: The home page incorrect url.
- Fixed: Infinite redirects on pages
- Fixed: Infinite redirects on pages that AMP is disabled.
- Fixed: Infinite redirects on pages with custom query string.
= 1.9.7 = 15 Dec 2018
- Fixed: 404 when /%year%/%monthnum%/%day%/%postname%/
- Foxed: Notice on trying to get property of non-object
- Fixed: Paginated search result view in end-point url format.
= 1.9.6 =
- Added: Complete Gutenberg blocks style support.
- Improved: The AMP url codes rewrite from scratch to works bug free.
- Improved: Tabs style improved.
- Fixed: canonical url determination
- Fixed: Video and Audio tag transform to amp-vdieo and amp-audio.
= 1.9.5 =
- Added: Category description support in archive page (all taxonomies)
- Improved: Do not view amp when it’s not enabled.
- Improved: Added support for custom taxonomies in end-point.
- Fixed: Youtube embedded video with short link youtu.be
- Fixed: WooCommerce tag archive page header style.
= 1.9.4 =
- Fixed: AMP archive wrong redirect.
- Fixed: Wrong “View Desktop Version” button url.
- Fixed: Determinate page as a category!
- Fixed: 404 Error on the paginated post
- Improved: Redirection for single paginated post to prevent 404 error.
= 1.9.3 =
- Fixed: Footer copyright text is disable by default and needs activate by user. WP plugins violation fix.
- Fixed: Theme color print issue.
- Fixed: Single 404 error on %category%/%postname% permalink.
- Fixed: Redirection issue on customizer preview
- Fixed: Wrong AMP page determination in some CGI web servers
- Improve: Replace embedded video with proper amp tag.
= 1.9.2 =
- Fixed: 404 pages in end-point URL's.
- Improved: BetterAMP and Better Ads Manager compatibility improved.
- Improved: URLs code improved.
= 1.9.1 =
- Improved: The endpoint URL feature improved.
- Fixed: Issue on search page and some other pages in the endpoint AMP flag fixed.
- Fixed: Conflict with the Amazon Affiliate Links plugin.
= 1.9.0 =
- Added: Option to move /amp/ to start or end of URL's in AMP version.
- Added: Squirrly SEO Plugin Compatibility
- Added: 'none' choice to disabled post types & taxonomies
- Fixed: Issue on url transformer.
- Fixed: Too many redirection issue.
- Devs: "better-amp/style-files/{$file}" added for developers.
= 1.8.2 =
- Fixed: Small code issue fixed.
= 1.8.1 =
- Added: support default/plain WordPress Permalink Settings.
- Improve: The Custom Permalink Structure feature improved.
- Fixed: Mobile users force redirect issue.
= 1.8.0 =
- Added: Advanced AMP pages filter added.
Enables you to enable/disable in custom post types/ taxonomies and other pages in the most custom way.
- Added: New Relic compatibility added.
- Added: Polylang plugin compatibility added.
- Improved: Better AMP compatibility with all other plugins improved.
- Fixed: AMP pages redirects when the site url and home url is not same (wp in directory).
- Fixed: AMP for post types archive issue fixed.
- Fixed: ‘Disable amp version’ option works on home page.
= 1.7.2 =
- Improved: Auto content validator improved.
- Improved: Video will be shown on single if the post format was video!
- Improved: Codes improved.
= 1.7.1 =
- Improved: AMP Yoast SEO plugin compatibility improved.
- Fixed: AMP urls ending / fixed.
- Fixed: Add Comment button not works when auto mobile redirect is active.
- Fixed: Code warning.
= 1.7.0 =
- Fixed: RTL Ads issue. Thanks @Igor @Issa
- Fixed: issues with AMP urls by excluding language subdirectories. Thanks @david.g
- Improved: "WPO Tweaks" plugin compatibility.
- Add: Pretty Links Plugin Compatibility
= 1.6.3 =
- Fixed: Validation issue about WordPress update.
= 1.6.2 =
- Improved: AMP codes improved.
- Fixed: Infinite redirect to AMP version in subdirectory wp installations.
= 1.6.1 =
- Improved: Style improved.
= 1.6.0 =
- Added: Full WPML support added to AMP.
- Added: Auto redirect to AMP for mobile visitors added (compatible with all cache plugins).
- Added: "Google Auto Ad" compatibility added.
- Added: New fields for adding custom code in head, body start and end of page.
- Added: Favicon support added.
- Added: Option to enable/disable header sticky feature.
- Improved: Admin panel usability improved.
- Improved: Codes improved.
- Improved: Will not redirect visitor to amp for "None AMP Link" at footer! Thanks @Karl
- Fixed: Custom CSS was not after all css codes.
- Devs: @better-amp/template/body/start action added.
- Devs: Gulp.js file updated.
= 1.5.3 =
- Fixed: Third Party plugins a URL compatibility. Thanks @Karl
- Fixed: Content sanitizer improved to support special type of video tag.
= 1.5.2 =
- Improved: WooCommerce outdated functions updated.
= 1.5.1 =
- Added: Related posts added (6 algorithm to show related posts)
- Added: Comments will be shown in AMP.
- Added: Option to change share links to short/normal link.
- Added: CSS validator added for custom css and element css!
- Added: "WP Speed Grades" plugin compatibility added.
- Added: "WP-Optimize" plugin compatibility.
- Added: "Speed Booster Pack" plugin compatibility.
- Added: NextGEN Gallery Support
- Added: Comments pagination support added.
- Improved: Related posts moved after share buttons.
- Fixed: Incorrect AMP Author Avatar url (plugin conflict).
- Fixed: iFrames height not comes from iFrame tag!
- Fixed: Posts "hentry" class removed for better SEO results.
- Fixed: "Auto URL Convertor" field description fixed.
- Fixed: Exclude auto convert link only works for one pattern!
- Fixed: single featured images goes out of box in mobile.
= 1.4.0 =
- Added: AMP "Above The Fold" plugin compatibility added.
- Added: New option to exclude URL (and URL pattern) from AMP URL converter. You can use it to exclude subdirectories.
- Improved: AMP pages SEO improved.
- Improved: AMP validator improved. It's even smarter!
- Fixed: AMP ads rtl style fixed.
- Fixed: AMP minor warning fixed.
= 1.3.3 =
- Fixed: "Custom Permalinks" support added to BetterAMP.
- Fixed: "link" tags will be removed from BetterAMP pages body section.
- Fixed: Structured data validation issue with custom image logo (BetterAMP).
- Fixed: "Convert Plug" plugin validation issue fixed.
= 1.3.2 =
- Fixed: AMP post inline ads not working properly.
- Fixed: AMP PHP Warning. Thanks @isrgrajan
= 1.3.1 =
* Added: "WordPress Fastest Cache" plugin compatibility added.
* Improved: is_better_amp() works before template_redirect action.
= 1.3.0 =
* Added: Static homepage support added.
You can chose a page to be shown for AMP homepage.
* Added: Complete "Structured Data" support added.
* Added: Complete YoastSEO compatibility added. No need to "Glue for Yoast SEO & AMP".
* Added: Ad Location: AMP middle of post content ad location.
* Added: "Ultimate Tweaker" plugin compatibility added.
* Improved: [video] shortcode compatibility improved.
* Improved: Facebook and Vimeo embeds compatibility improved.
* Improved: Improvement: Android title bar color will be same as BetterAMP theme color. Thanks @Antonio
* Improved: BetterAds min supported version changed to 1.9
* Fixed: BetterAMP will keeps elements inline styles.
Creates custom class and adds style code into page style section automatically.
* Fixed: Incorrect homepage title when YoastSEO is active.
* Fixed: Style sanitizer improved to make 100% Google validated codes.
* Fixed: "WP Speed of Light" plugin compatibility.
* Fixed: PHP old versions fatal error.
* Fixed: AMP-IFRAME sanitizer improved to force protocol attribute.
* Fixed: Social share links protocol changed to HTTPS
* Fixed: Sanitizer value_url fixed to not print empty src!
* Fixed: Facebook Comments Plugin compatibility. Extra codes (js and markups) will be removed.
* Fixed: WooCommerce templates are overriding out of AMP! Thanks @ptsadmin
* Fixed: Post formats archive page shows 404 error. Thanks @kstockl
= 1.2.3 =
* Fixed: Thumbnail is not showing bug.
= 1.2.2 =
* Added: Video/Audio Featured support added to AMP.
* Added: AMP Youtube, Twitter, Facebook, Vimeo, Soundcloud, Vine and Instagram support added.
* Fixed: Thumbnail of static pages fixed to be responsive.
= 1.2.1 =
* Added: 'Better WordPress Minify' plugin Compatibility.
* Fixed: Search page style issue fixed.
= 1.2.0 =
* Added: AMP Smart style printing. 200% smaller CSS file
* Added: Option to show/hide share in pages.
* Improved: AMP content validator layer improved.
* Improved: Design.
* Fixed: Blockquote style.
* Fixed: Home slider RTL style fixed.
* Fixed: Whatsapp link not works.
* Fixed: AMP changed to amp for third-party plugins compatibility.
* Fixed: Only 1 gallery is showing.
* Fixed: RTL style fixed.
= 1.1.3 =
* Improved: WP-Rocket compatibility improved.
* Fixed: Auto validator fixed for iFrame tag attrs.
* Fixed: Share link changed to none-AMP version link.
* Fixed: Script tags making page invalid fixed.
* Fixed: Post image is not showing fixed.
= 1.1.2 =
* Improved: RTL style checked and fixed for all pages.
* Fixed: Large listing image style.
* Fixed: Subtitle wrong tag close.
* Fixed: Google Analytics not works.
* Fixed: Missing close tag for <head>
= 1.1.1 =
* Fixed: "WP Rocket" plugin lazy load compatibility.
* Fixed: "Lazy Load" plugin compatibility.
* Fixed: "Lazy Load XT" plugin compatibility.
* Fixed: Customizer page not showing correctly.
* Fixed: Scroll to end customizer page issue.
= 1.1.0 =
* 10 Ad Location added.
* Ad Location 1: After header (in all pages)
* Ad Location 2: Before post title
* Ad Location 3: After post title
* Ad Location 4: Above post content
* Ad Location 5: Post content ads (After X Paragraph)
* Ad Location 6: Below post content
* Ad Location 7: After comments in posts
* Ad Location 8: Footer (in all pages)
* Ad Location 9: After title in archive pages
* Ad Location 10: After X posts in archive pages
* Added: New level of AMP page validator added.
* This validator includes all Google AMP rules and will make your site
* content validated with 99% warranty!
* Added: WooCommerce support added (Shop, Product, Shop Categories, Shop tags and Cart page)
* Added: Attachment page support added.
* Added: Custom css field added.
* Improvement: Style file printing changed.
* Fixed: A lof of code fix and improvement.
* Fixed: undefined function fixed.
* Fixed: Url encode added to make sure shared url will work correctly in social networks in RTL languages.
* Fixed: Share link changed to pretty permalink.
* Fixed: rel=amphtml generating for non-amp pages fixed.
* Fixed: Showing BetterStudio themes mega menu disabled in AMP.
* Fixed: Social share sorter fixed in customizer.
= 1.0.4 =
* Fix: Fatal error in creating new post.
= 1.0.3 =
* Fix: The undefined index warning in admin.
= 1.0.2 =
* Fix: Search page issue
* Improvement: Style improved.
= 1.0.1 =
* Fix: Menu item is not showing.
= 1.0 =
* Public release
== Upgrade Notice ==
= 1.0 =
Nothing