AMP for WP – Accelerated Mobile Pages - Version 1.0.39

Version Description

(3rd April 2020) = * Improvement: Code improvements in related post #4300 * Fixed: Images are streching in the gallary #4334

Download this release

Release Info

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

Code changes from version 1.0.38 to 1.0.39

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.4
7
- Stable tag: 1.0.38
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,10 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
194
 
195
  == Changelog ==
196
 
 
 
 
 
197
  = 1.0.38 (1st April 2020) =
198
  * Improvement: Added Title for facebook comments section #3716
199
  * Improvement: Added iZooto support for AMP #4312
@@ -215,15 +219,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
215
  * Fixed: Hide AMP Bulk Tools option isn't working with WPML #4249
216
  * Fixed: Transparent header background color not working #4315
217
 
218
- = 1.0.36 (26th March 2020) =
219
- * Improvement: Added filter to modify role based access #4303
220
- * Improvement: Added "srcset" on featured images #4257
221
- * Improvement: Added option to resize the author images in author bio #4297
222
- * Fixed: AMP child theme not working after update #4310
223
- * Fixed: amp-fx-collection script was not loading #4275
224
- * Fixed: Minify HTML & Query Monitor not working on some pages in AMP #4301
225
- * Fixed: Related posts doesn't show more than 3-4 #4300
226
- * Fixed: Incorrect alignment of Edit in twenty twenty WP theme #4246
227
- * Fixed: Social Icons are out of alignment in Design 2 #4305
228
-
229
  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.4
7
+ Stable tag: 1.0.39
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
194
 
195
  == Changelog ==
196
 
197
+ = 1.0.39 (3rd April 2020) =
198
+ * Improvement: Code improvements in related post #4300
199
+ * Fixed: Images are streching in the gallary #4334
200
+
201
  = 1.0.38 (1st April 2020) =
202
  * Improvement: Added Title for facebook comments section #3716
203
  * Improvement: Added iZooto support for AMP #4312
219
  * Fixed: Hide AMP Bulk Tools option isn't working with WPML #4249
220
  * Fixed: Transparent header background color not working #4315
221
 
 
 
 
 
 
 
 
 
 
 
 
222
  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.38
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.38');
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.39
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.39');
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,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 1.0.38 (1st April 2020) =
4
  * Improvement: Added Title for facebook comments section #3716
5
  * Improvement: Added iZooto support for AMP #4312
1
  == Changelog ==
2
 
3
+ = 1.0.39 (3rd April 2020) =
4
+ * Improvement: Code improvements in related post #4300
5
+ * Fixed: Images are streching in the gallary #4334
6
+
7
  = 1.0.38 (1st April 2020) =
8
  * Improvement: Added Title for facebook comments section #3716
9
  * Improvement: Added iZooto support for AMP #4312
components/related-posts/related-posts.php CHANGED
@@ -67,9 +67,9 @@ function ampforwp_related_post_loop_query(){
67
  'no_found_rows' => true,
68
  'meta_query' => array(
69
  array(
70
- 'value' => 'hide-amp',
71
- 'compare' => '!='
72
- )
73
  )
74
  );
75
  if($redux_builder_amp['ampforwp-single-select-type-of-related']==2 && 'post' == $post->post_type ){
67
  'no_found_rows' => true,
68
  'meta_query' => array(
69
  array(
70
+ 'key' => 'ampforwp-amp-on-off',
71
+ 'value' => 'default',
72
+ )
73
  )
74
  );
75
  if($redux_builder_amp['ampforwp-single-select-type-of-related']==2 && 'post' == $post->post_type ){
includes/features/functions.php CHANGED
@@ -1164,7 +1164,7 @@ if( ! function_exists( 'ampforwp_additional_style_carousel_caption' ) ){
1164
  box-sizing: border-box;
1165
  }
1166
  .collapsible-captions .amp-carousel-container {position: relative; width: 100%;}
1167
- .collapsible-captions amp-img img {object-fit: fill; }
1168
  .collapsible-captions figure { margin: 0; padding: 0; }
1169
  .collapsible-captions figcaption { position: absolute; bottom: 0;width: 100%;
1170
  max-height: var(--caption-height);margin-bottom:0;
1164
  box-sizing: border-box;
1165
  }
1166
  .collapsible-captions .amp-carousel-container {position: relative; width: 100%;}
1167
+ .collapsible-captions amp-img img {object-fit: contain; }
1168
  .collapsible-captions figure { margin: 0; padding: 0; }
1169
  .collapsible-captions figcaption { position: absolute; bottom: 0;width: 100%;
1170
  max-height: var(--caption-height);margin-bottom:0;
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.4
7
- Stable tag: 1.0.38
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,10 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
194
  = 1.0.38 (1st April 2020) =
195
  * Improvement: Added Title for facebook comments section #3716
196
  * Improvement: Added iZooto support for AMP #4312
@@ -212,15 +216,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
212
  * Fixed: Hide AMP Bulk Tools option isn't working with WPML #4249
213
  * Fixed: Transparent header background color not working #4315
214
 
215
- = 1.0.36 (26th March 2020) =
216
- * Improvement: Added filter to modify role based access #4303
217
- * Improvement: Added "srcset" on featured images #4257
218
- * Improvement: Added option to resize the author images in author bio #4297
219
- * Fixed: AMP child theme not working after update #4310
220
- * Fixed: amp-fx-collection script was not loading #4275
221
- * Fixed: Minify HTML & Query Monitor not working on some pages in AMP #4301
222
- * Fixed: Related posts doesn't show more than 3-4 #4300
223
- * Fixed: Incorrect alignment of Edit in twenty twenty WP theme #4246
224
- * Fixed: Social Icons are out of alignment in Design 2 #4305
225
-
226
  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.4
7
+ Stable tag: 1.0.39
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
191
 
192
  == Changelog ==
193
 
194
+ = 1.0.39 (3rd April 2020) =
195
+ * Improvement: Code improvements in related post #4300
196
+ * Fixed: Images are streching in the gallary #4334
197
+
198
  = 1.0.38 (1st April 2020) =
199
  * Improvement: Added Title for facebook comments section #3716
200
  * Improvement: Added iZooto support for AMP #4312
216
  * Fixed: Hide AMP Bulk Tools option isn't working with WPML #4249
217
  * Fixed: Transparent header background color not working #4315
218
 
 
 
 
 
 
 
 
 
 
 
 
219
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/elements/related-posts.php CHANGED
@@ -29,9 +29,9 @@ if( $current_post_type = get_post_type( $post )) {
29
  'no_found_rows' => true,
30
  'meta_query' => array(
31
  array(
32
- 'value' => 'hide-amp',
33
- 'compare' => '!='
34
- )
35
  )
36
  );
37
  }
@@ -53,8 +53,8 @@ if($redux_builder_amp['ampforwp-single-select-type-of-related']==2) {
53
  'no_found_rows' => true,
54
  'meta_query' => array(
55
  array(
56
- 'value' => 'hide-amp',
57
- 'compare' => '!='
58
  )
59
  )
60
  );
@@ -78,8 +78,8 @@ if($redux_builder_amp['ampforwp-single-select-type-of-related']==1) {
78
  'no_found_rows' => true,
79
  'meta_query' => array(
80
  array(
81
- 'value' => 'hide-amp',
82
- 'compare' => '!='
83
  )
84
  )
85
  );
29
  'no_found_rows' => true,
30
  'meta_query' => array(
31
  array(
32
+ 'key' => 'ampforwp-amp-on-off',
33
+ 'value' => 'default',
34
+ )
35
  )
36
  );
37
  }
53
  'no_found_rows' => true,
54
  'meta_query' => array(
55
  array(
56
+ 'key' => 'ampforwp-amp-on-off',
57
+ 'value' => 'default',
58
  )
59
  )
60
  );
78
  'no_found_rows' => true,
79
  'meta_query' => array(
80
  array(
81
+ 'key' => 'ampforwp-amp-on-off',
82
+ 'value' => 'default',
83
  )
84
  )
85
  );
templates/design-manager/design-2/elements/related-posts.php CHANGED
@@ -29,9 +29,9 @@ if( $current_post_type = get_post_type( $post )) {
29
  'no_found_rows' => true,
30
  'meta_query' => array(
31
  array(
32
- 'value' => 'hide-amp',
33
- 'compare' => '!='
34
- )
35
  )
36
  );
37
  }
@@ -53,8 +53,8 @@ if($redux_builder_amp['ampforwp-single-select-type-of-related']==2){
53
  'no_found_rows' => true,
54
  'meta_query' => array(
55
  array(
56
- 'value' => 'hide-amp',
57
- 'compare' => '!='
58
  )
59
  )
60
  );
@@ -77,8 +77,8 @@ if($redux_builder_amp['ampforwp-single-select-type-of-related']==1) {
77
  'no_found_rows' => true,
78
  'meta_query' => array(
79
  array(
80
- 'value' => 'hide-amp',
81
- 'compare' => '!='
82
  )
83
  )
84
  );
29
  'no_found_rows' => true,
30
  'meta_query' => array(
31
  array(
32
+ 'key' => 'ampforwp-amp-on-off',
33
+ 'value' => 'default',
34
+ )
35
  )
36
  );
37
  }
53
  'no_found_rows' => true,
54
  'meta_query' => array(
55
  array(
56
+ 'key' => 'ampforwp-amp-on-off',
57
+ 'value' => 'default',
58
  )
59
  )
60
  );
77
  'no_found_rows' => true,
78
  'meta_query' => array(
79
  array(
80
+ 'key' => 'ampforwp-amp-on-off',
81
+ 'value' => 'default',
82
  )
83
  )
84
  );
templates/design-manager/design-3/elements/related-posts.php CHANGED
@@ -29,8 +29,8 @@ if( $current_post_type = get_post_type( $post )) {
29
  'no_found_rows' => true,
30
  'meta_query' => array(
31
  array(
32
- 'value' => 'hide-amp',
33
- 'compare' => '!='
34
  )
35
  )
36
 
@@ -54,9 +54,9 @@ if($redux_builder_amp['ampforwp-single-select-type-of-related']==2){
54
  'orderby' => $orderby,
55
  'meta_query' => array(
56
  array(
57
- 'value' => 'hide-amp',
58
- 'compare' => '!='
59
- )
60
  )
61
  );
62
  }
@@ -79,8 +79,8 @@ if($redux_builder_amp['ampforwp-single-select-type-of-related']==1) {
79
  'orderby' => $orderby,
80
  'meta_query' => array(
81
  array(
82
- 'value' => 'hide-amp',
83
- 'compare' => '!='
84
  )
85
  )
86
  );
29
  'no_found_rows' => true,
30
  'meta_query' => array(
31
  array(
32
+ 'key' => 'ampforwp-amp-on-off',
33
+ 'value' => 'default',
34
  )
35
  )
36
 
54
  'orderby' => $orderby,
55
  'meta_query' => array(
56
  array(
57
+ 'key' => 'ampforwp-amp-on-off',
58
+ 'value' => 'default',
59
+ )
60
  )
61
  );
62
  }
79
  'orderby' => $orderby,
80
  'meta_query' => array(
81
  array(
82
+ 'key' => 'ampforwp-amp-on-off',
83
+ 'value' => 'default',
84
  )
85
  )
86
  );