AMP for WP – Accelerated Mobile Pages - Version 1.0.76.6

Version Description

(12th March 2021) = * Improvements: Added an option to show the author details after the title on mobile #4858 * Fixed: Images not appearing with WP stateless Google cloud storage plugin #4575 * Fixed: Category module doesnot have "/" at the end of the URL #4932 * Fixed: Proper commenting added for hooks #3368 * Fixed: Sticky social share bar icon colliding with polylang plugin #4935 * Fixed: AMP Page Builder is breaking with contact form module #4937 * Fixed: Truepush notification not working in AMP #4936

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 1.0.76.6
Comparing to
See all releases

Code changes from version 1.0.76.5 to 1.0.76.6

README.md CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
- Stable tag: 1.0.76.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,15 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
 
196
  = 1.0.76.5 (20th February 2021) =
197
  * Improvements: Added UX Builder compatibility #4933
198
  * Fixed: Second paginated post not working #4892
@@ -211,13 +220,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
211
  * Fixed: Missing URL for attribute error for SVG images #4911
212
  * Fixed: Debug warnings #4924
213
 
214
- = 1.0.76.2 (17th February 2021) =
215
- * Fixed: Removed The SEO Checklist Banner #4912
216
-
217
- = 1.0.76.1 (16th February 2021) =
218
- * Fixed: Fatal conflict with Yoast Premium #4926
219
- * Fixed: Wrong Yoast breadcrumb links for the posts having multiple categories #4923
220
- * Fixed: Fatal error on bbpress profile page #4922
221
- * Fixed: Comments not showing on AMP front page #4921
222
-
223
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 1.0.76.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
193
 
194
  == Changelog ==
195
 
196
+ = 1.0.76.6 (12th March 2021) =
197
+ * Improvements: Added an option to show the author details after the title on mobile #4858
198
+ * Fixed: Images not appearing with WP stateless Google cloud storage plugin #4575
199
+ * Fixed: Category module doesnot have "/" at the end of the URL #4932
200
+ * Fixed: Proper commenting added for hooks #3368
201
+ * Fixed: Sticky social share bar icon colliding with polylang plugin #4935
202
+ * Fixed: AMP Page Builder is breaking with contact form module #4937
203
+ * Fixed: Truepush notification not working in AMP #4936
204
+
205
  = 1.0.76.5 (20th February 2021) =
206
  * Improvements: Added UX Builder compatibility #4933
207
  * Fixed: Second paginated post not working #4892
220
  * Fixed: Missing URL for attribute error for SVG images #4911
221
  * Fixed: Debug warnings #4924
222
 
 
 
 
 
 
 
 
 
 
223
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
accelerated-moblie-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
- Version: 1.0.76.5
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
- define('AMPFORWP_VERSION','1.0.76.5');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
+ Version: 1.0.76.6
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
+ define('AMPFORWP_VERSION','1.0.76.6');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
changelog.txt CHANGED
@@ -1,5 +1,14 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
3
  = 1.0.76.5 (20th February 2021) =
4
  * Improvements: Added UX Builder compatibility #4933
5
  * Fixed: Second paginated post not working #4892
1
  == Changelog ==
2
 
3
+ = 1.0.76.6 (12th March 2021) =
4
+ * Improvements: Added an option to show the author details after the title on mobile #4858
5
+ * Fixed: Images not appearing with WP stateless Google cloud storage plugin #4575
6
+ * Fixed: Category module doesnot have "/" at the end of the URL #4932
7
+ * Fixed: Proper commenting added for hooks #3368
8
+ * Fixed: Sticky social share bar icon colliding with polylang plugin #4935
9
+ * Fixed: AMP Page Builder is breaking with contact form module #4937
10
+ * Fixed: Truepush notification not working in AMP #4936
11
+
12
  = 1.0.76.5 (20th February 2021) =
13
  * Improvements: Added UX Builder compatibility #4933
14
  * Fixed: Second paginated post not working #4892
includes/options/admin-config.php CHANGED
@@ -5789,6 +5789,17 @@ $single_page_options = array(
5789
  array('amp-design-selector' , '=' , '4'),
5790
  )
5791
  ),
 
 
 
 
 
 
 
 
 
 
 
5792
  array(
5793
  'id' => 'swift-date',
5794
  'type' => 'switch',
5789
  array('amp-design-selector' , '=' , '4'),
5790
  )
5791
  ),
5792
+ array(
5793
+ 'id' => 'amp-author-name-display',
5794
+ 'type' => 'switch',
5795
+ 'class' => 'child_opt child_opt_arrow',
5796
+ 'title' => esc_html__( 'Below Title on Mobile', 'accelerated-mobile-pages' ),
5797
+ 'default' => 0,
5798
+ 'tooltip-subtitle' => esc_html__('Enable this option to show author name below the title in mobile view','accelerated-mobile-pages'),
5799
+ 'required' => array(
5800
+ array('amp-author-name' , '=' , '1'),
5801
+ )
5802
+ ),
5803
  array(
5804
  'id' => 'swift-date',
5805
  'type' => 'switch',
includes/truepush-integration/amp-web-push-helper-frame.html CHANGED
@@ -2,7 +2,7 @@
2
  <html>
3
  <head>
4
  <meta charset="utf-8">
5
- <script src="https://sdki.truepush.com/sdk/v2.0.2/amp-helper-frame.js"></script>
6
  </head>
7
  <body>
8
  </body>
2
  <html>
3
  <head>
4
  <meta charset="utf-8">
5
+ <script src="https://sdki.truepush.com/sdk/v2.0.3/amp-helper-frame.js"></script>
6
  </head>
7
  <body>
8
  </body>
includes/truepush-integration/amp-web-push-permission-dialog.html CHANGED
@@ -253,7 +253,7 @@
253
  </div>
254
 
255
 
256
- <script src="https://sdki.truepush.com/sdk/v2.0.2/amp-permission-dialog.js"></script>
257
 
258
  </body>
259
 
253
  </div>
254
 
255
 
256
+ <script src="https://sdki.truepush.com/sdk/v2.0.3/amp-permission-dialog.js"></script>
257
 
258
  </body>
259
 
includes/vendor/aq_resizer.php CHANGED
@@ -289,7 +289,7 @@ if(!function_exists('ampforwp_aq_resize')) {
289
  // Disable ampforwp_aq_resize and return images without compressing.
290
  // Useful for some who wants to disable when using CDN images
291
  $disable_aq_resize = false;
292
- if (function_exists('imagify_set_activation')) {
293
  $disable_aq_resize = true;
294
  }
295
  $disable_aq_resize = apply_filters('ampforwp_disable_aq_resize', $disable_aq_resize, $url);
289
  // Disable ampforwp_aq_resize and return images without compressing.
290
  // Useful for some who wants to disable when using CDN images
291
  $disable_aq_resize = false;
292
+ if (function_exists('imagify_set_activation') || function_exists('ud_check_stateless_media')) {
293
  $disable_aq_resize = true;
294
  }
295
  $disable_aq_resize = apply_filters('ampforwp_disable_aq_resize', $disable_aq_resize, $url);
pagebuilder/modules/contact-form-shortcode-module.php CHANGED
@@ -32,6 +32,7 @@ if(is_plugin_active('amp-cf7/amp-cf7.php')){
32
  $cf7formArray = array();
33
  if(count($form_titles)>0){
34
  foreach ($form_titles as $key => $formName) {
 
35
  $cf7formArray[$form_id[$key]] = $formName;
36
  }
37
  }
32
  $cf7formArray = array();
33
  if(count($form_titles)>0){
34
  foreach ($form_titles as $key => $formName) {
35
+ $formName = esc_html($formName);
36
  $cf7formArray[$form_id[$key]] = $formName;
37
  }
38
  }
pagebuilder/modules/contents-module.php CHANGED
@@ -398,6 +398,7 @@ if ( is_admin() ) {
398
  $ampforwp_post_url = add_query_arg( 'amp', '', $ampforwp_post_url);
399
  }else{
400
  $ampforwp_post_url = user_trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR;
 
401
  }
402
  $image = $height = $width = $image_alt = $image_srcset = "";
403
  if ( has_post_thumbnail() ) {
398
  $ampforwp_post_url = add_query_arg( 'amp', '', $ampforwp_post_url);
399
  }else{
400
  $ampforwp_post_url = user_trailingslashit($ampforwp_post_url) . AMPFORWP_AMP_QUERY_VAR;
401
+ $ampforwp_post_url = user_trailingslashit($ampforwp_post_url);
402
  }
403
  $image = $height = $width = $image_alt = $image_srcset = "";
404
  if ( has_post_thumbnail() ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
- Stable tag: 1.0.76.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,15 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
 
 
 
 
 
 
193
  = 1.0.76.5 (20th February 2021) =
194
  * Improvements: Added UX Builder compatibility #4933
195
  * Fixed: Second paginated post not working #4892
@@ -208,13 +217,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
208
  * Fixed: Missing URL for attribute error for SVG images #4911
209
  * Fixed: Debug warnings #4924
210
 
211
- = 1.0.76.2 (17th February 2021) =
212
- * Fixed: Removed The SEO Checklist Banner #4912
213
-
214
- = 1.0.76.1 (16th February 2021) =
215
- * Fixed: Fatal conflict with Yoast Premium #4926
216
- * Fixed: Wrong Yoast breadcrumb links for the posts having multiple categories #4923
217
- * Fixed: Fatal error on bbpress profile page #4922
218
- * Fixed: Comments not showing on AMP front page #4921
219
-
220
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 1.0.76.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
190
 
191
  == Changelog ==
192
 
193
+ = 1.0.76.6 (12th March 2021) =
194
+ * Improvements: Added an option to show the author details after the title on mobile #4858
195
+ * Fixed: Images not appearing with WP stateless Google cloud storage plugin #4575
196
+ * Fixed: Category module doesnot have "/" at the end of the URL #4932
197
+ * Fixed: Proper commenting added for hooks #3368
198
+ * Fixed: Sticky social share bar icon colliding with polylang plugin #4935
199
+ * Fixed: AMP Page Builder is breaking with contact form module #4937
200
+ * Fixed: Truepush notification not working in AMP #4936
201
+
202
  = 1.0.76.5 (20th February 2021) =
203
  * Improvements: Added UX Builder compatibility #4933
204
  * Fixed: Second paginated post not working #4892
217
  * Fixed: Missing URL for attribute error for SVG images #4911
218
  * Fixed: Debug warnings #4924
219
 
 
 
 
 
 
 
 
 
 
220
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/swift/single.php CHANGED
@@ -20,6 +20,15 @@ $page = get_query_var( 'page' ); ?>
20
  <?php amp_excerpt(); ?>
21
  </div>
22
  <?php } ?>
 
 
 
 
 
 
 
 
 
23
  </div>
24
  <?php
25
  if($paged==0 && $page==0){
@@ -53,7 +62,10 @@ $page = get_query_var( 'page' ); ?>
53
  <?php } // Swift Featured Image Type 2
54
  } // Swift Featured Image
55
  }?>
56
- <?php amp_content(); ?>
 
 
 
57
  </div>
58
  <?php do_action( 'ampforwp_after_the_post_content_wrp' ); ?>
59
  <?php if (isset($redux_builder_amp['swift-social-position']) && 'below-content' == $redux_builder_amp['swift-social-position']){
@@ -94,7 +106,7 @@ $page = get_query_var( 'page' ); ?>
94
  echo ampforwp_addThis_support();
95
  } ?>
96
  <?php if( true == ampforwp_get_setting('amp-author-name') ) { ?>
97
- <div class="sp-athr">
98
  <span class="athr-tx"><?php echo ampforwp_translation($redux_builder_amp['amp-translator-published-by'], 'Published by' ); ?></span>
99
  <?php amp_author_box(
100
  array('author_pub_name'=>true,'author_info'=>true)
20
  <?php amp_excerpt(); ?>
21
  </div>
22
  <?php } ?>
23
+ <?php
24
+ if( true == ampforwp_get_setting('amp-author-name') && true == ampforwp_get_setting('amp-author-name-display') ) {?>
25
+ <div class="sp-athr mob-athr">
26
+ <span class="athr-tx"><?php echo ampforwp_translation(ampforwp_get_setting('amp-translator-published-by'), 'Published by' ); ?></span>
27
+ <?php amp_author_box(
28
+ array('author_pub_name'=>true,'author_info'=>true)
29
+ ); ?>
30
+ </div>
31
+ <?php } ?>
32
  </div>
33
  <?php
34
  if($paged==0 && $page==0){
62
  <?php } // Swift Featured Image Type 2
63
  } // Swift Featured Image
64
  }?>
65
+ <?php
66
+ // if you want to add anything before or after the content then you can use 'ampforwp_before_post_content' or 'ampforwp_after_post_content' hooks and here is the list of all our hooks - https://ampforwp.com/tutorials/article/hooks-in-ampforwp/
67
+ amp_content();
68
+ ?>
69
  </div>
70
  <?php do_action( 'ampforwp_after_the_post_content_wrp' ); ?>
71
  <?php if (isset($redux_builder_amp['swift-social-position']) && 'below-content' == $redux_builder_amp['swift-social-position']){
106
  echo ampforwp_addThis_support();
107
  } ?>
108
  <?php if( true == ampforwp_get_setting('amp-author-name') ) { ?>
109
+ <div class="sp-athr desk-athr">
110
  <span class="athr-tx"><?php echo ampforwp_translation($redux_builder_amp['amp-translator-published-by'], 'Published by' ); ?></span>
111
  <?php amp_author_box(
112
  array('author_pub_name'=>true,'author_info'=>true)
templates/design-manager/swift/style.php CHANGED
@@ -715,6 +715,14 @@ if ( ampforwp_get_setting('swift-featued-image-type') == 2) { ?>
715
  .ss-ic li:before{border-radius: 2px;text-align:center;padding: 4px 6px;}
716
  .sgl table {width: 100%;margin-bottom:25px;}
717
  .sgl th , .sgl td {padding: 0.5em 1em;border: 1px solid #ddd;}
 
 
 
 
 
 
 
 
718
  <?php // Social Sharing Conditional CSS
719
  if($redux_builder_amp['swift-social-position'] == 'above-content'){?>
720
  .shr-txt{display:none;}
715
  .ss-ic li:before{border-radius: 2px;text-align:center;padding: 4px 6px;}
716
  .sgl table {width: 100%;margin-bottom:25px;}
717
  .sgl th , .sgl td {padding: 0.5em 1em;border: 1px solid #ddd;}
718
+ <?php if( true == ampforwp_get_setting('amp-author-name') && true == ampforwp_get_setting('amp-author-name-display') ) {?>
719
+ @media(min-width:768px){
720
+ .sp-athr.mob-athr {display: none;}
721
+ }
722
+ @media(max-width:768px){
723
+ .sp-athr.desk-athr {display: none;}
724
+ }
725
+ <?php } ?>
726
  <?php // Social Sharing Conditional CSS
727
  if($redux_builder_amp['swift-social-position'] == 'above-content'){?>
728
  .shr-txt{display:none;}
templates/features.php CHANGED
@@ -3894,7 +3894,7 @@ function ampforwp_view_nonamp(){
3894
  $non_amp_url = '';
3895
  }
3896
 
3897
- if ( $non_amp_url ) { ?><a class="view-non-amp" href="<?php echo esc_url(apply_filters('ampforwp_view_nonamp_url', $non_amp_url) ) ?>" <?php echo esc_attr($nofollow); ?> title="<?php echo ampforwp_get_setting('amp-translator-non-amp-page-text') ?>"><?php if(function_exists('pll__')){echo pll__(esc_html__( ampforwp_get_setting('amp-translator-non-amp-page-text'), 'accelerated-mobile-pages'));}else{echo esc_html__( ampforwp_get_setting('amp-translator-non-amp-page-text'), 'accelerated-mobile-pages');?></a> <?php }}
3898
  }
3899
 
3900
  //68. Facebook Instant Articles
3894
  $non_amp_url = '';
3895
  }
3896
 
3897
+ if ( $non_amp_url ) { ?><a class="view-non-amp" href="<?php echo esc_url(apply_filters('ampforwp_view_nonamp_url', $non_amp_url) ) ?>" <?php echo esc_attr($nofollow); ?> title="<?php echo ampforwp_get_setting('amp-translator-non-amp-page-text') ?>"><?php if(function_exists('pll__')){echo pll__(esc_html__( ampforwp_get_setting('amp-translator-non-amp-page-text'), 'accelerated-mobile-pages'));}else{echo esc_html__( ampforwp_get_setting('amp-translator-non-amp-page-text'), 'accelerated-mobile-pages');}?></a> <?php }
3898
  }
3899
 
3900
  //68. Facebook Instant Articles