AMP for WP – Accelerated Mobile Pages - Version 1.0.69.1

Version Description

(25th November 2020) = * Fixed: amp-story-player was found on this page, but is unused. #4839

Download this release

Release Info

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

Code changes from version 1.0.69 to 1.0.69.1

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.69
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,9 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 1.0.69 (25th November 2020) =
197
  * Fixed: Wrong tooltip link in the infinite scroll #4823
198
  * Fixed: Images are not showing in the AMP due to SG Optimizer lazy load #4815
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.69.1
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.69.1 (25th November 2020) =
197
+ * Fixed: amp-story-player was found on this page, but is unused. #4839
198
+
199
  = 1.0.69 (25th November 2020) =
200
  * Fixed: Wrong tooltip link in the infinite scroll #4823
201
  * Fixed: Images are not showing in the AMP due to SG Optimizer lazy load #4815
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.69
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.69');
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.69.1
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.69.1');
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,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 1.0.69 (25th November 2020) =
4
  * Fixed: Wrong tooltip link in the infinite scroll #4823
5
  * Fixed: Images are not showing in the AMP due to SG Optimizer lazy load #4815
1
  == Changelog ==
2
 
3
+ = 1.0.69.1 (25th November 2020) =
4
+ * Fixed: amp-story-player was found on this page, but is unused. #4839
5
+
6
  = 1.0.69 (25th November 2020) =
7
  * Fixed: Wrong tooltip link in the infinite scroll #4823
8
  * Fixed: Images are not showing in the AMP due to SG Optimizer lazy load #4815
includes/admin-style.css CHANGED
@@ -2099,10 +2099,10 @@ fieldset#redux_builder_amp-ampforwp-onesignal-positioning {
2099
  cursor: pointer;
2100
  }
2101
  .wrapper-discount {
2102
- position: sticky;
2103
- bottom: 1rem;
2104
  border: 0;
2105
- left: 83%;
2106
  background: linear-gradient(to right,#eb3349,#f14f35);
2107
  padding: 15px;
2108
  border-radius: 5px;
@@ -2115,17 +2115,17 @@ fieldset#redux_builder_amp-ampforwp-onesignal-positioning {
2115
  .admin_discount_btn{
2116
  font-weight: normal;
2117
  font-size: 15px;
2118
- color: #fff;
2119
  text-decoration: none;
2120
  }
2121
- .admin_discount_btn:hover{
2122
- color: #ddd;
2123
  }
2124
  .offer-img{
2125
  position: absolute;
2126
- top: -67px;
2127
  left: -5px;
2128
- width: 50%;
2129
  }
2130
  .offer-img-24 {
2131
  position: absolute;
2099
  cursor: pointer;
2100
  }
2101
  .wrapper-discount {
2102
+ position: fixed;
2103
+ bottom: 10px;
2104
  border: 0;
2105
+ right: 20px;
2106
  background: linear-gradient(to right,#eb3349,#f14f35);
2107
  padding: 15px;
2108
  border-radius: 5px;
2115
  .admin_discount_btn{
2116
  font-weight: normal;
2117
  font-size: 15px;
2118
+ color: #efeeee;
2119
  text-decoration: none;
2120
  }
2121
+ .admin_discount_btn:hover, .admin_discount_btn:active{
2122
+ color: #fff;
2123
  }
2124
  .offer-img{
2125
  position: absolute;
2126
+ top: -62px;
2127
  left: -5px;
2128
+ width: 45%;
2129
  }
2130
  .offer-img-24 {
2131
  position: absolute;
includes/options/admin-config.php CHANGED
@@ -1399,12 +1399,14 @@ if(get_theme_support('amp-template-mode')){
1399
  }
1400
  $proDetailsProvide = '<a class="technical_support_btn_txt" href="https://ampforwp.com/support/" target="_blank">'.esc_html__('Technical Support','accelerated-mobile-pages').'</a> <a class="premium_features_btn dof" href="'.$upg_to_pro_url.'" id="ampforwp-prem-upg-to" '.$upg_to_pro_target.'>
1401
  <img class="black-friday-img" src="'.AMPFORWP_IMAGE_DIR . '/blackfriday.png" />
1402
- <span>50% OFF on Upgrades & Renewals</span>
1403
  </a> ';
1404
  if($ampforwp_nameOfUser!=""){
1405
  $proDetailsProvide = "<span class='extension-menu-call'><span class='activated-plugins'>Hello, ".esc_html($ampforwp_nameOfUser)."</span> <a class='' href='".esc_url($amppro_settings_url)."'><i class='dashicons-before dashicons-admin-generic'></i></a></span>";
1406
  }elseif($ampforwp_is_productActivated){
1407
- $proDetailsProvide = "<span class='extension-menu-call'>One more Step <a class='premium_features_btn' href='".esc_url($amppro_enter_keyurl)."'>Enter license here</a></span>";
 
 
1408
  }
1409
  if(function_exists('amp_activate') ){
1410
  $proDetailsProvide = "<a class='premium_features_btn_txt' href=\"#\"> AMP by Automattic compatibility has been activated</a>";
1399
  }
1400
  $proDetailsProvide = '<a class="technical_support_btn_txt" href="https://ampforwp.com/support/" target="_blank">'.esc_html__('Technical Support','accelerated-mobile-pages').'</a> <a class="premium_features_btn dof" href="'.$upg_to_pro_url.'" id="ampforwp-prem-upg-to" '.$upg_to_pro_target.'>
1401
  <img class="black-friday-img" src="'.AMPFORWP_IMAGE_DIR . '/blackfriday.png" />
1402
+ <span>50% OFF on Everything</span>
1403
  </a> ';
1404
  if($ampforwp_nameOfUser!=""){
1405
  $proDetailsProvide = "<span class='extension-menu-call'><span class='activated-plugins'>Hello, ".esc_html($ampforwp_nameOfUser)."</span> <a class='' href='".esc_url($amppro_settings_url)."'><i class='dashicons-before dashicons-admin-generic'></i></a></span>";
1406
  }elseif($ampforwp_is_productActivated){
1407
+ $proDetailsProvide = "<span class='extension-menu-call'><a class='premium_features_btn' href='".esc_url($amppro_enter_keyurl)."'>Enter license here</a></span><a class='premium_features_btn dof' target='_blank' href='https://ampforwp.com/festive-season/' id='ampforwp-prem-upg-to'>
1408
+ <img class='black-friday-img' src='".AMPFORWP_IMAGE_DIR . "/blackfriday.png' />
1409
+ <span>50% OFF on Upgrades & Renewals</span></a>";
1410
  }
1411
  if(function_exists('amp_activate') ){
1412
  $proDetailsProvide = "<a class='premium_features_btn_txt' href=\"#\"> AMP by Automattic compatibility has been activated</a>";
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.69
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,9 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
193
  = 1.0.69 (25th November 2020) =
194
  * Fixed: Wrong tooltip link in the infinite scroll #4823
195
  * Fixed: Images are not showing in the AMP due to SG Optimizer lazy load #4815
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.69.1
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.69.1 (25th November 2020) =
194
+ * Fixed: amp-story-player was found on this page, but is unused. #4839
195
+
196
  = 1.0.69 (25th November 2020) =
197
  * Fixed: Wrong tooltip link in the infinite scroll #4823
198
  * Fixed: Images are not showing in the AMP due to SG Optimizer lazy load #4815
templates/features.php CHANGED
@@ -9058,10 +9058,13 @@ function ampforwp_amp_bind_script($data) {
9058
  }
9059
  return $data;
9060
  }
9061
- add_filter('ampforwp_post_template_data','ampforwp_amp_story_player_script');
9062
  function ampforwp_amp_story_player_script($data) {
9063
- if ( empty( $data['amp_component_scripts']['amp-story-player'] ) ) {
9064
- $data['amp_component_scripts']['amp-story-player'] = 'https://cdn.ampproject.org/v0/amp-story-player-latest.js';
 
 
 
9065
  }
9066
  return $data;
9067
  }
9058
  }
9059
  return $data;
9060
  }
9061
+ add_filter('ampforwp_post_template_data','ampforwp_amp_story_player_script',12);
9062
  function ampforwp_amp_story_player_script($data) {
9063
+ if ( isset($data['post'])) {
9064
+ $post_content = $data['post']->post_content;
9065
+ if ( preg_match('/<amp-story-player(.*?)<\/amp-story-player>/s', $post_content ) && empty( $data['amp_component_scripts']['amp-story-player'] ) ) {
9066
+ $data['amp_component_scripts']['amp-story-player'] = 'https://cdn.ampproject.org/v0/amp-story-player-latest.js';
9067
+ }
9068
  }
9069
  return $data;
9070
  }