AMP for WP – Accelerated Mobile Pages - Version 1.0.76.9

Version Description

(2nd April 2021) = * Fixed: Facebook videos embedding not working #4973 * Fixed: The incorrect excerpt for the custom front page if user is using the Divi #4972 * Fixed: When Yoast SEO Multilingual is activated canonical getting addition http #4970 * Fixed: Close button not visible in the menu for the Google Cached AMP Pages #4969 * Fixed: Sassy social share icons are not displaying on AMP #4945 * Fixed: The AMP For WP option panel not saving due to redux plugin #4963 * Fixed: Docking functionality is not working for the amp-video type in mobile view #4961 * Fixed: Cannot change the title for in-content related post #4959 * Fixed: Upgrade for Free' button in structured data settings is not working #4960 * Fixed: Beginner and advance mode popup not closing #4974

Download this release

Release Info

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

Code changes from version 1.0.76.8 to 1.0.76.9

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.7
7
- Stable tag: 1.0.76.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,18 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  = 1.0.76.8 (22nd March 2021) =
197
  * Fixed: Srcset attribute not appearing on images with AMP page builder #4954
198
  * Fixed: Option added to disable structured data in AMP #4953
@@ -204,19 +216,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
204
  = 1.0.76.7 (15th March 2021) =
205
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
206
 
207
- = 1.0.76.6 (12th March 2021) =
208
- * Improvements: Added an option to show the author details after the title on mobile #4858
209
- * Fixed: Images not appearing with WP stateless Google cloud storage plugin #4575
210
- * Fixed: Category module doesnot have "/" at the end of the URL #4932
211
- * Fixed: Proper commenting added for hooks #3368
212
- * Fixed: Sticky social share bar icon colliding with polylang plugin #4935
213
- * Fixed: AMP Page Builder is breaking with contact form module #4937
214
- * Fixed: Truepush notification not working in AMP #4936
215
-
216
- = 1.0.76.5 (20th February 2021) =
217
- * Improvements: Added UX Builder compatibility #4933
218
- * Fixed: Second paginated post not working #4892
219
- * Fixed: Jetpack hosted videos not working on AMP #4931
220
- * Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
221
-
222
  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.7
7
+ Stable tag: 1.0.76.9
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.9 (2nd April 2021) =
197
+ * Fixed: Facebook videos embedding not working #4973
198
+ * Fixed: The incorrect excerpt for the custom front page if user is using the Divi #4972
199
+ * Fixed: When Yoast SEO Multilingual is activated canonical getting addition http #4970
200
+ * Fixed: Close button not visible in the menu for the Google Cached AMP Pages #4969
201
+ * Fixed: Sassy social share icons are not displaying on AMP #4945
202
+ * Fixed: The AMP For WP option panel not saving due to redux plugin #4963
203
+ * Fixed: Docking functionality is not working for the amp-video type in mobile view #4961
204
+ * Fixed: Cannot change the title for in-content related post #4959
205
+ * Fixed: Upgrade for Free' button in structured data settings is not working #4960
206
+ * Fixed: Beginner and advance mode popup not closing #4974
207
+
208
  = 1.0.76.8 (22nd March 2021) =
209
  * Fixed: Srcset attribute not appearing on images with AMP page builder #4954
210
  * Fixed: Option added to disable structured data in AMP #4953
216
  = 1.0.76.7 (15th March 2021) =
217
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  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.8
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.8');
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.9
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.9');
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,17 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 1.0.76.8 (22nd March 2021) =
4
  * Fixed: Srcset attribute not appearing on images with AMP page builder #4954
5
  * Fixed: Option added to disable structured data in AMP #4953
1
  == Changelog ==
2
 
3
+ = 1.0.76.9 (2nd April 2021) =
4
+ * Fixed: Facebook videos embedding not working #4973
5
+ * Fixed: The incorrect excerpt for the custom front page if user is using the Divi #4972
6
+ * Fixed: When Yoast SEO Multilingual is activated canonical getting addition http #4970
7
+ * Fixed: Close button not visible in the menu for the Google Cached AMP Pages #4969
8
+ * Fixed: Sassy social share icons are not displaying on AMP #4945
9
+ * Fixed: The AMP For WP option panel not saving due to redux plugin #4963
10
+ * Fixed: Docking functionality is not working for the amp-video type in mobile view #4961
11
+ * Fixed: Cannot change the title for in-content related post #4959
12
+ * Fixed: Upgrade for Free' button in structured data settings is not working #4960
13
+ * Fixed: Beginner and advance mode popup not closing #4974
14
+
15
  = 1.0.76.8 (22nd March 2021) =
16
  * Fixed: Srcset attribute not appearing on images with AMP page builder #4954
17
  * Fixed: Option added to disable structured data in AMP #4953
components/components-core.php CHANGED
@@ -393,6 +393,10 @@ function amp_header_core(){
393
  <?php do_action( 'amp_post_template_css', $thisTemplate ); ?>
394
  <?php do_action( 'amp_css', $thisTemplate ); ?>
395
  <?php $custom_css = ampforwp_get_setting('css_editor');
 
 
 
 
396
  $custom_css = str_replace(array('.accordion-mod'), array('.apac'), $custom_css);
397
  $sanitized_css = ampforwp_sanitize_i_amphtml($custom_css);
398
  echo $sanitized_css; // sanitized above ?>
393
  <?php do_action( 'amp_post_template_css', $thisTemplate ); ?>
394
  <?php do_action( 'amp_css', $thisTemplate ); ?>
395
  <?php $custom_css = ampforwp_get_setting('css_editor');
396
+ if (function_exists('heateor_sss_run') && ampforwp_get_setting('ampforwp_css_tree_shaking') ) {
397
+ global $wp_filesystem;
398
+ $custom_css .= $wp_filesystem->get_contents(AMPFORWP_PLUGIN_DIR."/includes/sassy-style-optimized.css");
399
+ }
400
  $custom_css = str_replace(array('.accordion-mod'), array('.apac'), $custom_css);
401
  $sanitized_css = ampforwp_sanitize_i_amphtml($custom_css);
402
  echo $sanitized_css; // sanitized above ?>
includes/admin-script.js CHANGED
@@ -2374,7 +2374,7 @@ function Drawer(drawerElem) {
2374
  data: {
2375
  action: 'ampforwp_set_option_panel_view',
2376
  option_type: opt_type,
2377
- verify_nonce: ampforwp_nonce
2378
  },
2379
  dataType: 'json',
2380
  success: function(response){
2374
  data: {
2375
  action: 'ampforwp_set_option_panel_view',
2376
  option_type: opt_type,
2377
+ verify_nonce: ampforwp_nonce.security
2378
  },
2379
  dataType: 'json',
2380
  success: function(response){
includes/features/functions.php CHANGED
@@ -89,7 +89,10 @@ function ampforwp_add_admin_styling($hook_suffix){
89
  wp_localize_script( 'ampforwp_admin_js', 'amp_fields', array($amp_fields));
90
  $redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
91
  wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
92
- wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', array(wp_create_nonce('ampforwp-verify-request')));
 
 
 
93
  wp_enqueue_script( 'wp-color-picker' );
94
  wp_enqueue_script( 'ampforwp_admin_js' );
95
  }
89
  wp_localize_script( 'ampforwp_admin_js', 'amp_fields', array($amp_fields));
90
  $redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
91
  wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
92
+ $ampforwp_nonce = array(
93
+ 'security' => wp_create_nonce( 'ampforwp-verify-request' )
94
+ );
95
+ wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', $ampforwp_nonce );
96
  wp_enqueue_script( 'wp-color-picker' );
97
  wp_enqueue_script( 'ampforwp_admin_js' );
98
  }
includes/features/structure-data/structured-data-options.php CHANGED
@@ -44,7 +44,15 @@ function ampforwp_add_sd_fields($fields){
44
  return $fields;
45
  }
46
  else {
47
-
 
 
 
 
 
 
 
 
48
  $fields[] = array(
49
  'id' => 'ampforwp-sd_modules_section',
50
  'type' => 'section',
@@ -68,14 +76,7 @@ function ampforwp_add_sd_fields($fields){
68
  </ul> </div>' : '')
69
  .'
70
  <div class="col-1">
71
- '.(!is_plugin_active('schema-and-structured-data-for-wp/structured-data-for-wp.php')?
72
- '
73
- <div class="install-now ampforwp-activation-call-module-upgrade button " id="ampforwp-structure-data-activation-call" data-secure="'.wp_create_nonce('verify_module').'">
74
- <p>Upgrade for Free</p>
75
- </div>' :
76
- '<a href="'.admin_url('admin.php?page=structured_data_options&tab=general&reference=ampforwp').'"><div class="ampforwp-recommendation-btn updated-message"><p>Go to Structure Data settings</p></div></a>'
77
- )
78
- .'
79
  &nbsp;<a href="https://ampforwp.com/tutorials/article/what-is-the-structured-data-update-all-about/" class="amp_recommend_learnmore" target="_blank">Learn more</a>
80
  </div>
81
  </div>'
44
  return $fields;
45
  }
46
  else {
47
+ $schema_install = '';
48
+ if(function_exists('saswp_add_plugin_meta_links')){
49
+ $schema_install = '<a href="'.admin_url('admin.php?page=structured_data_options&tab=general&reference=ampforwp').'"><div class="ampforwp-recommendation-btn updated-message"><p>'.esc_html__('Go to Structure Data settings','accelerated-mobile-pages').'</p></div></a>';
50
+ }else{
51
+ $schema_install = '<div class="install-now ampforwp-activation-call-module-upgrade button " id="ampforwp-structure-data-activation-call" data-secure="'.wp_create_nonce('verify_module').'"><p>'.esc_html__('Upgrade for Free','accelerated-mobile-pages').'</p></div>';
52
+ }
53
+ if(file_exists(AMPFORWP_MAIN_PLUGIN_DIR."schema-and-structured-data-for-wp/structured-data-for-wp.php") && !function_exists('saswp_add_plugin_meta_links')){
54
+ $schema_install = '<div class="install-now button"><a style="text-decoration: none;" target="_blank" href="'.admin_url('plugins.php').'">'.esc_html__('Activate Plugin','accelerated-mobile-pages').'</a></div>';
55
+ }
56
  $fields[] = array(
57
  'id' => 'ampforwp-sd_modules_section',
58
  'type' => 'section',
76
  </ul> </div>' : '')
77
  .'
78
  <div class="col-1">
79
+ '. $schema_install /* $schema_install XSS escaped */.'
 
 
 
 
 
 
 
80
  &nbsp;<a href="https://ampforwp.com/tutorials/article/what-is-the-structured-data-update-all-about/" class="amp_recommend_learnmore" target="_blank">Learn more</a>
81
  </div>
82
  </div>'
includes/options/admin-config.php CHANGED
@@ -3329,6 +3329,14 @@ $e_commerce_support[] = array(
3329
  'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
3330
  'required' => array( 'amp-use-pot', '=' , 0 )
3331
  ),
 
 
 
 
 
 
 
 
3332
  array(
3333
  'id' => 'amp-translator-recent-text',
3334
  'type' => 'text',
3329
  'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
3330
  'required' => array( 'amp-use-pot', '=' , 0 )
3331
  ),
3332
+ array(
3333
+ 'id' => 'amp-translator-incontent-related-text',
3334
+ 'type' => 'text',
3335
+ 'title' => esc_html__('In-Content Related Post', 'accelerated-mobile-pages'),
3336
+ 'default' => esc_html__('Related Post','accelerated-mobile-pages'),
3337
+ 'placeholder'=>esc_html__('write here','accelerated-mobile-pages'),
3338
+ 'required' => array( 'amp-use-pot', '=' , 0 )
3339
+ ),
3340
  array(
3341
  'id' => 'amp-translator-recent-text',
3342
  'type' => 'text',
includes/options/extensions/loader.php CHANGED
@@ -22,7 +22,7 @@ if(!function_exists('ampforwp_register_custom_extension_loader')) :
22
  require_once( $class_file );
23
  }
24
  }
25
- if ( ! isset( $ReduxFramework->extensions[ $folder ] ) ) {
26
  $ReduxFramework->extensions[ $folder ] = new $extension_class( $ReduxFramework );
27
  }
28
  }
22
  require_once( $class_file );
23
  }
24
  }
25
+ if ( !class_exists('Redux_Framework_Plugin') && ! isset( $ReduxFramework->extensions[ $folder ] ) ) {
26
  $ReduxFramework->extensions[ $folder ] = new $extension_class( $ReduxFramework );
27
  }
28
  }
includes/sassy-style-optimized.css ADDED
@@ -0,0 +1 @@
 
1
+ a.heateor_sss_amp{padding:0 4px;}div.heateor_sss_horizontal_sharing a amp-amp-img{display:inline-block;}.heateor_sss_amp_instagram amp-img{background-color:#624E47}.heateor_sss_amp_yummly amp-img{background-color:#E16120}.heateor_sss_amp_youtube amp-img{background-color:#ff0000}.heateor_sss_amp_buffer amp-img{background-color:#000}.heateor_sss_amp_delicious amp-img{background-color:#53BEEE}.heateor_sss_amp_facebook amp-img{background-color:#3C589A}.heateor_sss_amp_digg amp-img{background-color:#006094}.heateor_sss_amp_email amp-img{background-color:#649A3F}.heateor_sss_amp_float_it amp-img{background-color:#53BEEE}.heateor_sss_amp_linkedin amp-img{background-color:#0077B5}.heateor_sss_amp_pinterest amp-img{background-color:#CC2329}.heateor_sss_amp_print amp-img{background-color:#FD6500}.heateor_sss_amp_reddit amp-img{background-color:#FF5700}.heateor_sss_amp_stocktwits amp-img{background-color: #40576F}.heateor_sss_amp_mewe amp-img{background-color:#007da1}.heateor_sss_amp_mix amp-img{background-color:#ff8226}.heateor_sss_amp_tumblr amp-img{background-color:#29435D}.heateor_sss_amp_twitter amp-img{background-color:#55acee}.heateor_sss_amp_vkontakte amp-img{background-color:#5E84AC}.heateor_sss_amp_yahoo amp-img{background-color:#8F03CC}.heateor_sss_amp_xing amp-img{background-color:#00797D}.heateor_sss_amp_instagram amp-img{background-color:#527FA4}.heateor_sss_amp_whatsapp amp-img{background-color:#55EB4C}.heateor_sss_amp_aim amp-img{background-color: #10ff00}.heateor_sss_amp_amazon_wish_list amp-img{background-color: #ffe000}.heateor_sss_amp_aol_mail amp-img{background-color: #2A2A2A}.heateor_sss_amp_app_net amp-img{background-color: #5D5D5D}.heateor_sss_amp_baidu amp-img{background-color: #2319DC}.heateor_sss_amp_balatarin amp-img{background-color: #fff}.heateor_sss_amp_bibsonomy amp-img{background-color: #000}.heateor_sss_amp_bitty_browser amp-img{background-color: #EFEFEF}.heateor_sss_amp_blinklist amp-img{background-color: #3D3C3B}.heateor_sss_amp_blogger_post amp-img{background-color: #FDA352}.heateor_sss_amp_blogmarks amp-img{background-color: #535353}.heateor_sss_amp_bookmarks_fr amp-img{background-color: #E8EAD4}.heateor_sss_amp_box_net amp-img{background-color: #1A74B0}.heateor_sss_amp_buddymarks amp-img{background-color: #ffd400}.heateor_sss_amp_care2_news amp-img{background-color: #6EB43F}.heateor_sss_amp_citeulike amp-img{background-color: #2781CD}.heateor_sss_amp_comment amp-img{background-color: #444}.heateor_sss_amp_diary_ru amp-img{background-color: #E8D8C6}.heateor_sss_amp_diaspora amp-img{background-color: #2E3436}.heateor_sss_amp_dihitt amp-img{background-color: #FF6300}.heateor_sss_amp_diigo amp-img{background-color: #4A8BCA}.heateor_sss_amp_douban amp-img{background-color: #497700}.heateor_sss_amp_draugiem amp-img{background-color: #ffad66}.heateor_sss_amp_dzone amp-img{background-color: #fff088}.heateor_sss_amp_evernote amp-img{background-color: #8BE056}.heateor_sss_amp_facebook_messenger amp-img{background-color: #0084FF}.heateor_sss_amp_fark amp-img{background-color: #555}.heateor_sss_amp_fintel amp-img{background-color: #087515}.heateor_sss_amp_flipboard amp-img{background-color: #CC0000}.heateor_sss_amp_folkd amp-img{background-color: #0F70B2}.heateor_sss_amp_google_classroom amp-img{background-color: #FFC112}.heateor_sss_amp_google_bookmarks amp-img{background-color: #CB0909}.heateor_sss_amp_google_gmail amp-img{background-color: #E5E5E5}.heateor_sss_amp_hacker_news amp-img{background-color: #F60}.heateor_sss_amp_hatena amp-img{background-color: #00A6DB}.heateor_sss_amp_instapaper amp-img{background-color: #EDEDED}.heateor_sss_amp_jamespot amp-img{background-color: #FF9E2C}.heateor_sss_amp_kakao amp-img{background-color: #FCB700}.heateor_sss_amp_kik amp-img{background-color: #2A2A2A}.heateor_sss_amp_kindle_it amp-img{background-color: #2A2A2A}.heateor_sss_amp_known amp-img{background-color: #fff101}.heateor_sss_amp_line amp-img{background-color: #00C300}.heateor_sss_amp_livejournal amp-img{background-color: #EDEDED}.heateor_sss_amp_mail_ru amp-img{background-color: #356FAC}.heateor_sss_amp_mendeley amp-img{background-color: #A70805}.heateor_sss_amp_meneame amp-img{background-color: #FF7D12}.heateor_sss_amp_mixi amp-img{background-color: #EDEDED}.heateor_sss_amp_myspace amp-img{background-color: #2A2A2A}.heateor_sss_amp_netlog amp-img{background-color: #2A2A2A}.heateor_sss_amp_netvouz amp-img{background-color: #c0ff00}.heateor_sss_amp_newsvine amp-img{background-color: #055D00}.heateor_sss_amp_nujij amp-img{background-color: #D40000}.heateor_sss_amp_odnoklassniki amp-img{background-color: #F2720C}.heateor_sss_amp_oknotizie amp-img{background-color: #fdff88}.heateor_sss_amp_outlook_com amp-img{background-color: #0072C6}.heateor_sss_amp_papaly amp-img{background-color: #3AC0F6}.heateor_sss_amp_pinboard amp-img{background-color: #1341DE}.heateor_sss_amp_plurk amp-img{background-color: #CF682F}.heateor_sss_amp_pocket amp-img{background-color: #f0f0f0}.heateor_sss_amp_polyvore amp-img{background-color: #2A2A2A}.heateor_sss_amp_printfriendly amp-img{background-color: #61D1D5}.heateor_sss_amp_protopage_bookmarks amp-img{background-color: #413FFF}.heateor_sss_amp_pusha amp-img{background-color: #0072B8}.heateor_sss_amp_qzone amp-img{background-color: #2B82D9}.heateor_sss_amp_refind amp-img{background-color: #1492ef}.heateor_sss_amp_rediff_mypage amp-img{background-color: #D20000}.heateor_sss_amp_renren amp-img{background-color: #005EAC}.heateor_sss_amp_segnalo amp-img{background-color: #fdff88}.heateor_sss_amp_sina_weibo amp-img{background-color: #ff0}.heateor_sss_amp_sitejot amp-img{background-color: #ffc800}.heateor_sss_amp_skype amp-img{background-color: #00AFF0}.heateor_sss_amp_sms amp-img{background-color: #6ebe45}.heateor_sss_amp_slashdot amp-img{background-color: #004242}.heateor_sss_amp_stumpedia amp-img{background-color: #EDEDED}.heateor_sss_amp_svejo amp-img{background-color: #fa7aa3}.heateor_sss_amp_symbaloo_feeds amp-img{background-color: #6DA8F7}.heateor_sss_amp_telegram amp-img{background-color: #3DA5f1}.heateor_sss_amp_trello amp-img{background-color: #1189CE}.heateor_sss_amp_tuenti amp-img{background-color: #0075C9}.heateor_sss_amp_twiddla amp-img{background-color: #EDEDED}.heateor_sss_amp_typepad_post amp-img{background-color: #2A2A2A}.heateor_sss_amp_viadeo amp-img{background-color: #2A2A2A}.heateor_sss_amp_viber amp-img{background-color: #8B628F}.heateor_sss_amp_wanelo amp-img{background-color: #fff}.heateor_sss_amp_webnews amp-img{background-color: #CC2512}.heateor_sss_amp_wordpress amp-img{background-color: #464646}.heateor_sss_amp_wykop amp-img{background-color: #367DA9}.heateor_sss_amp_yahoo_mail amp-img{background-color: #400090}.heateor_sss_amp_yahoo_messenger amp-img{background-color: #400090}.heateor_sss_amp_yoolink amp-img{background-color: #A2C538}.heateor_sss_amp_youmob amp-img{background-color: #3B599D}.heateor_sss_amp_gentlereader amp-img{background-color: #46aecf}.heateor_sss_amp_threema amp-img{background-color: #2A2A2A}.heateor_sss_vertical_sharing{position: fixed;left:11px;z-index: 99999;}.heateor-total-share-count .sss_share_count{color:#666;font-size:23px;}.heateor-total-share-count .sss_share_lbl{color:#666;}.amp-wp-article-content .heateor_sss_vertical_sharing {left:5px;}amp-img.amp-wp-enforced-sizes[alt="Pinterest"]{background: #cc2329;border-radius: 50%;margin: 0 5px 0 0;}amp-img.amp-wp-enforced-sizes[alt="Viber"]{background: #8b628f;}amp-img.amp-wp-enforced-sizes[alt="Print"]{background: #fd6500;}amp-img.amp-wp-enforced-sizes[alt="Threema"]{background: #2a2a2a;}amp-img.amp-wp-enforced-sizes[alt="Pinterest"]{left:4px;}amp-img.amp-wp-enforced-sizes[alt="MySpace"]{background: #2a2a2a;}
includes/vendor/amp/includes/embeds/class-amp-facebook-embed.php CHANGED
@@ -51,7 +51,9 @@ class AMP_Facebook_Embed_Handler extends AMP_Base_Embed_Handler {
51
  'height' => $this->args['height'],
52
  );
53
  $attrs = ampforwp_amp_consent_check( $attrs );
54
-
 
 
55
  return AMP_HTML_Utils::build_tag('amp-facebook-page',$attrs);
56
  }
57
  }
51
  'height' => $this->args['height'],
52
  );
53
  $attrs = ampforwp_amp_consent_check( $attrs );
54
+ if(preg_match('/facebook(.*?)posts(.*?)/', $attrs['data-href'])){
55
+ return AMP_HTML_Utils::build_tag('amp-facebook',$attrs);
56
+ }
57
  return AMP_HTML_Utils::build_tag('amp-facebook-page',$attrs);
58
  }
59
  }
includes/vendor/amp/includes/sanitizers/class-amp-video-sanitizer.php CHANGED
@@ -41,6 +41,8 @@ class AMP_Video_Sanitizer extends AMP_Base_Sanitizer {
41
  $new_attributes = $this->enforce_sizes_attribute( $new_attributes );
42
  if(ampforwp_get_setting('ampforwp-amp-video-docking')==true){
43
  $new_attributes['dock'] = '#dock-slot';
 
 
44
  }
45
  $new_node = AMP_DOM_Utils::create_node( $this->dom, 'amp-video', $new_attributes );
46
 
41
  $new_attributes = $this->enforce_sizes_attribute( $new_attributes );
42
  if(ampforwp_get_setting('ampforwp-amp-video-docking')==true){
43
  $new_attributes['dock'] = '#dock-slot';
44
+ $new_attributes['width'] = '500';
45
+ $new_attributes['layout'] = 'responsive';
46
  }
47
  $new_node = AMP_DOM_Utils::create_node( $this->dom, 'amp-video', $new_attributes );
48
 
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.7
7
- Stable tag: 1.0.76.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,18 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  = 1.0.76.8 (22nd March 2021) =
194
  * Fixed: Srcset attribute not appearing on images with AMP page builder #4954
195
  * Fixed: Option added to disable structured data in AMP #4953
@@ -201,19 +213,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
201
  = 1.0.76.7 (15th March 2021) =
202
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
203
 
204
- = 1.0.76.6 (12th March 2021) =
205
- * Improvements: Added an option to show the author details after the title on mobile #4858
206
- * Fixed: Images not appearing with WP stateless Google cloud storage plugin #4575
207
- * Fixed: Category module doesnot have "/" at the end of the URL #4932
208
- * Fixed: Proper commenting added for hooks #3368
209
- * Fixed: Sticky social share bar icon colliding with polylang plugin #4935
210
- * Fixed: AMP Page Builder is breaking with contact form module #4937
211
- * Fixed: Truepush notification not working in AMP #4936
212
-
213
- = 1.0.76.5 (20th February 2021) =
214
- * Improvements: Added UX Builder compatibility #4933
215
- * Fixed: Second paginated post not working #4892
216
- * Fixed: Jetpack hosted videos not working on AMP #4931
217
- * Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
218
-
219
  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.7
7
+ Stable tag: 1.0.76.9
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.9 (2nd April 2021) =
194
+ * Fixed: Facebook videos embedding not working #4973
195
+ * Fixed: The incorrect excerpt for the custom front page if user is using the Divi #4972
196
+ * Fixed: When Yoast SEO Multilingual is activated canonical getting addition http #4970
197
+ * Fixed: Close button not visible in the menu for the Google Cached AMP Pages #4969
198
+ * Fixed: Sassy social share icons are not displaying on AMP #4945
199
+ * Fixed: The AMP For WP option panel not saving due to redux plugin #4963
200
+ * Fixed: Docking functionality is not working for the amp-video type in mobile view #4961
201
+ * Fixed: Cannot change the title for in-content related post #4959
202
+ * Fixed: Upgrade for Free' button in structured data settings is not working #4960
203
+ * Fixed: Beginner and advance mode popup not closing #4974
204
+
205
  = 1.0.76.8 (22nd March 2021) =
206
  * Fixed: Srcset attribute not appearing on images with AMP page builder #4954
207
  * Fixed: Option added to disable structured data in AMP #4953
213
  = 1.0.76.7 (15th March 2021) =
214
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/swift/style.php CHANGED
@@ -287,6 +287,7 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
287
  <?php } ?>
288
  <?php if(isset($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']) && $redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>line-height: 0;display: block;text-indent: 1px;}
289
  .c-btn{float: right;padding: 15px 5px;}
 
290
  .m-ctr{transition: margin 0.3s ease-in-out;}
291
  .m-ctr{<?php if(ampforwp_get_setting('header-overlay-width')){?>width:<?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>;<?php } ?>height:100%;position: absolute;z-index:99;padding: 2% 0% 100vh 0%;}
292
  .m-menu{display: inline-block;width: 100%;padding: 2px 20px 10px 20px;}
287
  <?php } ?>
288
  <?php if(isset($redux_builder_amp['swift-element-overlay-color-control'] ['rgba']) && $redux_builder_amp['swift-element-overlay-color-control'] ['rgba']){?>color: <?php echo ampforwp_sanitize_color($redux_builder_amp['swift-element-overlay-color-control']['rgba'])?>;<?php } ?>line-height: 0;display: block;text-indent: 1px;}
289
  .c-btn{float: right;padding: 15px 5px;}
290
+ header[style] label.c-btn {margin-top: 30px;}
291
  .m-ctr{transition: margin 0.3s ease-in-out;}
292
  .m-ctr{<?php if(ampforwp_get_setting('header-overlay-width')){?>width:<?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>;<?php } ?>height:100%;position: absolute;z-index:99;padding: 2% 0% 100vh 0%;}
293
  .m-menu{display: inline-block;width: 100%;padding: 2px 20px 10px 20px;}
templates/features.php CHANGED
@@ -1136,6 +1136,10 @@ function ampforwp_remove_schema_data() {
1136
  if ( ampforwp_is_front_page() ) {
1137
  ampforwp_remove_filters_for_class( 'the_content', 'SiteOrigin_Panels', 'generate_post_content', 10 );
1138
  }
 
 
 
 
1139
  //SiteOrigin Page builder compatibilty
1140
  //Neglect SOPB If Custom AMP Editor is checked
1141
  if ( $amp_custom_content_enable === 'yes') {
@@ -1471,7 +1475,7 @@ function ampforwp_yoast_the_excerpt(){
1471
  }
1472
  }
1473
  function ampforwp_yoast_excerpt($desc){
1474
- if(ampforwp_is_front_page()){
1475
  $get_meta_excerpt = get_post_meta(ampforwp_get_the_ID(), '_yoast_wpseo_metadesc', true);
1476
  if(isset($get_meta_excerpt)){
1477
  $desc = $get_meta_excerpt;
@@ -5006,7 +5010,7 @@ function ampforwp_inline_related_posts(){
5006
  $inline_related_posts_img = '';
5007
  $inline_related_posts = '<div class="amp-wp-content relatedpost">
5008
  <div class="rp">
5009
- <span class="related-title">'.esc_html(ampforwp_translation( $redux_builder_amp['amp-translator-related-text'], 'Related Post' )).'</span>
5010
  <ol class="clearfix">';
5011
  while( $my_query->have_posts() ) {
5012
  $my_query->the_post();
1136
  if ( ampforwp_is_front_page() ) {
1137
  ampforwp_remove_filters_for_class( 'the_content', 'SiteOrigin_Panels', 'generate_post_content', 10 );
1138
  }
1139
+ //Addition HTTP added in canonical from Yoast SEO Multilingual #4970
1140
+ if (class_exists('WPML_WPSEO_Filters')) {
1141
+ ampforwp_remove_filters_for_class( 'wpseo_canonical', 'WPML_WPSEO_Filters', 'canonical_filter', 10 );
1142
+ }
1143
  //SiteOrigin Page builder compatibilty
1144
  //Neglect SOPB If Custom AMP Editor is checked
1145
  if ( $amp_custom_content_enable === 'yes') {
1475
  }
1476
  }
1477
  function ampforwp_yoast_excerpt($desc){
1478
+ if(ampforwp_is_front_page() && empty($desc)){
1479
  $get_meta_excerpt = get_post_meta(ampforwp_get_the_ID(), '_yoast_wpseo_metadesc', true);
1480
  if(isset($get_meta_excerpt)){
1481
  $desc = $get_meta_excerpt;
5010
  $inline_related_posts_img = '';
5011
  $inline_related_posts = '<div class="amp-wp-content relatedpost">
5012
  <div class="rp">
5013
+ <span class="related-title">'.esc_html(ampforwp_translation( ampforwp_get_setting('amp-translator-incontent-related-text'), 'Related Post' )).'</span>
5014
  <ol class="clearfix">';
5015
  while( $my_query->have_posts() ) {
5016
  $my_query->the_post();