AMP for WP – Accelerated Mobile Pages - Version 1.0.76.8

Version Description

(22nd March 2021) = * Fixed: Srcset attribute not appearing on images with AMP page builder #4954 * Fixed: Option added to disable structured data in AMP #4953 * Fixed: Debug Warning with PHP 8.02 and WordPress 5.6.2 #4946 * Fixed: Background Video loop not working with AMP page builder #4948 * Fixed: Mobile redirection not working for the front page when pages are disabled #4942 * Fixed: Captions are not working on Slideshow Module by Jetpack Plugin #4950

Download this release

Release Info

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

Code changes from version 1.0.76.7 to 1.0.76.8

Files changed (57) hide show
  1. README.md +9 -13
  2. accelerated-moblie-pages.php +2 -2
  3. changelog.txt +8 -0
  4. components/components-core.php +9 -0
  5. includes/features/structure-data/structured-data-functions.php +3 -0
  6. includes/features/structure-data/structured-data-options.php +23 -3
  7. includes/options/extensions/amp_slider/amp_slider/field_amp_slider.php +1 -1
  8. includes/options/extensions/demolink_image_select/demolink_image_select/field_demolink_image_select.php +1 -1
  9. includes/options/redux-core/framework.php +1 -1
  10. includes/options/redux-core/inc/class.redux_cdn.php +10 -8
  11. includes/options/redux-core/inc/class.redux_functions.php +2 -2
  12. includes/options/redux-core/inc/extensions/customizer/extension_customizer.php +9 -5
  13. includes/options/redux-core/inc/extensions/import_export/import_export/field_import_export.php +1 -1
  14. includes/options/redux-core/inc/extensions/options_object/options_object/field_options_object.php +1 -1
  15. includes/options/redux-core/inc/fields/ace_editor/field_ace_editor.php +1 -1
  16. includes/options/redux-core/inc/fields/background/field_background.php +1 -1
  17. includes/options/redux-core/inc/fields/border/field_border.php +1 -1
  18. includes/options/redux-core/inc/fields/button_set/field_button_set.php +1 -1
  19. includes/options/redux-core/inc/fields/color/field_color.php +1 -1
  20. includes/options/redux-core/inc/fields/color_gradient/field_color_gradient.php +1 -1
  21. includes/options/redux-core/inc/fields/color_rgba/field_color_rgba.php +1 -1
  22. includes/options/redux-core/inc/fields/date/field_date.php +1 -1
  23. includes/options/redux-core/inc/fields/dimensions/field_dimensions.php +1 -1
  24. includes/options/redux-core/inc/fields/editor/field_editor.php +1 -1
  25. includes/options/redux-core/inc/fields/gallery/field_gallery.php +1 -1
  26. includes/options/redux-core/inc/fields/image_select/field_image_select.php +1 -1
  27. includes/options/redux-core/inc/fields/info/field_info.php +1 -1
  28. includes/options/redux-core/inc/fields/link_color/field_link_color.php +1 -1
  29. includes/options/redux-core/inc/fields/media/field_media.php +1 -1
  30. includes/options/redux-core/inc/fields/multi_text/field_multi_text.php +1 -1
  31. includes/options/redux-core/inc/fields/multitext_repeater/field_multitext_repeater.php +1 -1
  32. includes/options/redux-core/inc/fields/palette/field_palette.php +1 -1
  33. includes/options/redux-core/inc/fields/password/field_password.php +1 -1
  34. includes/options/redux-core/inc/fields/radio/field_radio.php +1 -1
  35. includes/options/redux-core/inc/fields/raw/field_raw.php +1 -1
  36. includes/options/redux-core/inc/fields/repeater/field_repeater.php +1 -1
  37. includes/options/redux-core/inc/fields/section/field_section.php +1 -1
  38. includes/options/redux-core/inc/fields/select/field_select.php +1 -1
  39. includes/options/redux-core/inc/fields/select_image/field_select_image.php +1 -1
  40. includes/options/redux-core/inc/fields/slider/field_slider.php +1 -1
  41. includes/options/redux-core/inc/fields/sortable/field_sortable.php +1 -1
  42. includes/options/redux-core/inc/fields/sorter/field_sorter.php +1 -1
  43. includes/options/redux-core/inc/fields/spacing/field_spacing.php +1 -1
  44. includes/options/redux-core/inc/fields/spinner/field_spinner.php +1 -1
  45. includes/options/redux-core/inc/fields/switch/field_switch.php +1 -1
  46. includes/options/redux-core/inc/fields/text/field_text.php +1 -1
  47. includes/options/redux-core/inc/fields/textarea/field_textarea.php +1 -1
  48. includes/options/redux-core/inc/fields/typography/field_typography.json +1 -1
  49. includes/options/redux-core/inc/fields/typography/field_typography.php +1 -1
  50. includes/redirect.php +2 -2
  51. includes/updater/update.php +1 -1
  52. includes/vendor/amp/includes/amp-post-template-actions.php +1 -1
  53. includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php +2 -0
  54. pagebuilder/config/moduleTemplate.php +3 -2
  55. pagebuilder/inc/viewShowFrontData.php +12 -1
  56. pagebuilder/modules/image-mod-module.php +1 -1
  57. readme.txt +9 -13
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.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,14 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
196
  = 1.0.76.7 (15th March 2021) =
197
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
198
 
@@ -211,16 +219,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
211
  * Fixed: Jetpack hosted videos not working on AMP #4931
212
  * Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
213
 
214
- = 1.0.76.4 (19th February 2021) =
215
- * Fixed: AMP front page not working after update #4892
216
-
217
- = 1.0.76.3 (19th February 2021) =
218
- * Improvement: Added the Smart Mag Theme review schema #4898
219
- * Improvement: Added disable right click for copy protection #4877
220
- * Improvement: Added an option to hide the title on pages #4929
221
- * Fixed: AMP Browser caching policy #4876
222
- * Fixed: p tags getting stripped with Change Pagination Links to /amp option #4892
223
- * Fixed: Missing URL for attribute error for SVG images #4911
224
- * Fixed: Debug warnings #4924
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.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
 
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
199
+ * Fixed: Debug Warning with PHP 8.02 and WordPress 5.6.2 #4946
200
+ * Fixed: Background Video loop not working with AMP page builder #4948
201
+ * Fixed: Mobile redirection not working for the front page when pages are disabled #4942
202
+ * Fixed: Captions are not working on Slideshow Module by Jetpack Plugin #4950
203
+
204
  = 1.0.76.7 (15th March 2021) =
205
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
206
 
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)
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.7
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.7');
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.8
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.8');
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,13 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
3
  = 1.0.76.7 (15th March 2021) =
4
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
5
 
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
6
+ * Fixed: Debug Warning with PHP 8.02 and WordPress 5.6.2 #4946
7
+ * Fixed: Background Video loop not working with AMP page builder #4948
8
+ * Fixed: Mobile redirection not working for the front page when pages are disabled #4942
9
+ * Fixed: Captions are not working on Slideshow Module by Jetpack Plugin #4950
10
+
11
  = 1.0.76.7 (15th March 2021) =
12
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
13
 
components/components-core.php CHANGED
@@ -751,6 +751,15 @@ function ampforwp_backtotop_global_css(){?>
751
  <?php if (class_exists('UAGB_Admin')) {?>
752
  .wp-block-uagb-faq svg {display: none;}
753
  <?php } ?>
 
 
 
 
 
 
 
 
 
754
  <?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
755
  .btt{
756
  position: fixed;
751
  <?php if (class_exists('UAGB_Admin')) {?>
752
  .wp-block-uagb-faq svg {display: none;}
753
  <?php } ?>
754
+ <?php if (class_exists('Jetpack_Gallery_Settings')) {?>
755
+ .wp-block-jetpack-slideshow_container.swiper-container amp-selector {
756
+ display: none;
757
+ }
758
+ .wp-block-jetpack-slideshow_slide.amp-carousel-slide {
759
+ height: auto;
760
+ margin-bottom: 20px;
761
+ }
762
+ <?php } ?>
763
  <?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
764
  .btt{
765
  position: fixed;
includes/features/structure-data/structured-data-functions.php CHANGED
@@ -412,6 +412,9 @@ if ( ! function_exists('ampforwp_sd_multiple_images') ) {
412
  // schema.org/SiteNavigationElement missing from menus #1229 & #2952
413
  add_action('amp_post_template_footer','ampforwp_sd_sitenavigation');
414
  function ampforwp_sd_sitenavigation(){
 
 
 
415
  if (class_exists('Bunyad_Theme_SmartMag')) {
416
  if (!is_single() || !Bunyad::posts()->meta('reviews')) {
417
  return;
412
  // schema.org/SiteNavigationElement missing from menus #1229 & #2952
413
  add_action('amp_post_template_footer','ampforwp_sd_sitenavigation');
414
  function ampforwp_sd_sitenavigation(){
415
+ if (!ampforwp_get_setting('ampforwp-sd-switch')) {
416
+ return;
417
+ }
418
  if (class_exists('Bunyad_Theme_SmartMag')) {
419
  if (!is_single() || !Bunyad::posts()->meta('reviews')) {
420
  return;
includes/features/structure-data/structured-data-options.php CHANGED
@@ -90,21 +90,31 @@ function ampforwp_add_sd_fields($fields){
90
  'layout_type' => 'accordion',
91
  'accordion-open'=> 1,
92
  );
 
 
 
 
 
 
93
  $fields[] = array(
94
  'id' => 'ampforwp-sd-type-posts',
95
  'type' => 'select',
 
96
  'title' => esc_html__('Posts', 'accelerated-mobile-pages'),
97
  'tooltip-subtitle' => esc_html__('Select the Structured Data Type for Posts', 'accelerated-mobile-pages'),
98
  'options' => ampforwp_get_sd_types(),
99
  'default' => 'BlogPosting',
 
100
  );
101
  $fields[] = array(
102
  'id' => 'ampforwp-sd-type-pages',
103
  'type' => 'select',
 
104
  'title' => esc_html__('Pages', 'accelerated-mobile-pages'),
105
  'tooltip-subtitle' => esc_html__('Select the Structured Data Type for Pages', 'accelerated-mobile-pages'),
106
  'options' => ampforwp_get_sd_types(),
107
  'default' => 'BlogPosting',
 
108
  );
109
  $fields[] = array(
110
  'id' => 'ampforwp-sd_2',
@@ -113,6 +123,7 @@ function ampforwp_add_sd_fields($fields){
113
  'indent' => true,
114
  'layout_type' => 'accordion',
115
  'accordion-open'=> 1,
 
116
  );
117
 
118
  $fields[] = array(
@@ -122,12 +133,14 @@ function ampforwp_add_sd_fields($fields){
122
  'title' => esc_html__('Default Structured Data Logo', 'accelerated-mobile-pages'),
123
  'tooltip-subtitle' => esc_html__('Upload the logo you want to show in Google Structured Data. ', 'accelerated-mobile-pages'),
124
  'default' => array('url' => ampforwp_default_logo_settings() ),
 
125
  );
126
  $fields[] = array(
127
  'id' => 'ampforwp-sd-logo-dimensions',
128
  'title' => esc_html__('Custom Logo Size', 'accelerated-mobile-pages'),
129
  'type' => 'switch',
130
  'default' => 0,
 
131
  );
132
  $fields[] = array(
133
  'class'=>'child_opt child_opt_arrow',
@@ -155,6 +168,7 @@ function ampforwp_add_sd_fields($fields){
155
  'tooltip-subtitle' => esc_html__('Upload the Image you want to show as Placeholder Image.', 'accelerated-mobile-pages'),
156
  'placeholder' => esc_html__('when there is no featured image set in the post','accelerated-mobile-pages'),
157
  'default' => array('url' => AMPFORWP_IMAGE_DIR . '/SD-default-image.png' ),
 
158
  );
159
  $fields[] = array(
160
  'id' => 'amp-structured-data-placeholder-image-width',
@@ -162,7 +176,8 @@ function ampforwp_add_sd_fields($fields){
162
  'type' => 'text',
163
  'placeholder' => '550',
164
  'tooltip-subtitle' => esc_html__('Please don\'t add "PX" in the image size.','accelerated-mobile-pages'),
165
- 'default' => '1280'
 
166
  );
167
  $fields[] = array(
168
  'id' => 'amp-structured-data-placeholder-image-height',
@@ -170,7 +185,8 @@ function ampforwp_add_sd_fields($fields){
170
  'type' => 'text',
171
  'placeholder' => '350',
172
  'tooltip-subtitle' => esc_html__('Please don\'t add "PX" in the image size.','accelerated-mobile-pages'),
173
- 'default' => '720'
 
174
  );
175
  $fields[] = array(
176
  'id' => 'amporwp-structured-data-video-thumb-url',
@@ -180,12 +196,14 @@ function ampforwp_add_sd_fields($fields){
180
  'tooltip-subtitle' => esc_html__('Upload the Thumbnail you want to show as Video Thumbnail.', 'accelerated-mobile-pages'),
181
  'placeholder' => esc_html__('When there is no thumbnail set for the video','accelerated-mobile-pages'),
182
  'default' => array('url' => AMPFORWP_IMAGE_DIR . '/SD-default-image.png' ),
 
183
  );
184
  $fields[] = array(
185
  'id' => 'ampforwp-sd-multiple-images',
186
  'title' => esc_html__('High-resolution Images', 'accelerated-mobile-pages'),
187
  'type' => 'switch',
188
  'default' => 0,
 
189
  'tooltip-subtitle' => esc_html__('For best results, provide multiple high-resolution images (minimum of 800,000 pixels when multiplying width and height) with the following aspect ratios: 16x9, 4x3, and 1x1 ', 'accelerated-mobile-pages'). '<a href="https://developers.google.com/search/docs/data-types/article#article_types" target="_blank">'.esc_html__('Read more','accelerated-mobile-pages').'</a>'
190
  );
191
  }// is_plugin_active('schema-and-structured-data-for-wp/structured-data-for-wp.php') Closed
@@ -210,10 +228,12 @@ if( ! function_exists('saswp_non_amp') ) {
210
  $custom_fields[] = array(
211
  'id' => 'ampforwp-sd-type-'.esc_attr($p_type),
212
  'type' => 'select',
213
- 'title' => __($post_type, 'accelerated-mobile-pages'),
 
214
  'tooltip-subtitle' => 'Select the Structured Data Type for '.esc_attr($p_type),
215
  'options' => ampforwp_get_sd_types(),
216
  'default' => 'BlogPosting',
 
217
  );
218
  $extra_fields = array_merge($extra_fields, $custom_fields);
219
  }
90
  'layout_type' => 'accordion',
91
  'accordion-open'=> 1,
92
  );
93
+ $fields[] = array(
94
+ 'id' => 'ampforwp-sd-switch',
95
+ 'type' => 'switch',
96
+ 'title' => esc_html__('Schema & Structured Data', 'accelerated-mobile-pages'),
97
+ 'default' => 1,
98
+ );
99
  $fields[] = array(
100
  'id' => 'ampforwp-sd-type-posts',
101
  'type' => 'select',
102
+ 'class' => 'child_opt child_opt_arrow',
103
  'title' => esc_html__('Posts', 'accelerated-mobile-pages'),
104
  'tooltip-subtitle' => esc_html__('Select the Structured Data Type for Posts', 'accelerated-mobile-pages'),
105
  'options' => ampforwp_get_sd_types(),
106
  'default' => 'BlogPosting',
107
+ 'required'=>array('ampforwp-sd-switch','=','1'),
108
  );
109
  $fields[] = array(
110
  'id' => 'ampforwp-sd-type-pages',
111
  'type' => 'select',
112
+ 'class' => 'child_opt child_opt_arrow',
113
  'title' => esc_html__('Pages', 'accelerated-mobile-pages'),
114
  'tooltip-subtitle' => esc_html__('Select the Structured Data Type for Pages', 'accelerated-mobile-pages'),
115
  'options' => ampforwp_get_sd_types(),
116
  'default' => 'BlogPosting',
117
+ 'required'=>array('ampforwp-sd-switch','=','1'),
118
  );
119
  $fields[] = array(
120
  'id' => 'ampforwp-sd_2',
123
  'indent' => true,
124
  'layout_type' => 'accordion',
125
  'accordion-open'=> 1,
126
+ 'required'=>array('ampforwp-sd-switch','=','1'),
127
  );
128
 
129
  $fields[] = array(
133
  'title' => esc_html__('Default Structured Data Logo', 'accelerated-mobile-pages'),
134
  'tooltip-subtitle' => esc_html__('Upload the logo you want to show in Google Structured Data. ', 'accelerated-mobile-pages'),
135
  'default' => array('url' => ampforwp_default_logo_settings() ),
136
+ 'required'=>array('ampforwp-sd-switch','=','1'),
137
  );
138
  $fields[] = array(
139
  'id' => 'ampforwp-sd-logo-dimensions',
140
  'title' => esc_html__('Custom Logo Size', 'accelerated-mobile-pages'),
141
  'type' => 'switch',
142
  'default' => 0,
143
+ 'required'=>array('ampforwp-sd-switch','=','1'),
144
  );
145
  $fields[] = array(
146
  'class'=>'child_opt child_opt_arrow',
168
  'tooltip-subtitle' => esc_html__('Upload the Image you want to show as Placeholder Image.', 'accelerated-mobile-pages'),
169
  'placeholder' => esc_html__('when there is no featured image set in the post','accelerated-mobile-pages'),
170
  'default' => array('url' => AMPFORWP_IMAGE_DIR . '/SD-default-image.png' ),
171
+ 'required'=>array('ampforwp-sd-switch','=','1'),
172
  );
173
  $fields[] = array(
174
  'id' => 'amp-structured-data-placeholder-image-width',
176
  'type' => 'text',
177
  'placeholder' => '550',
178
  'tooltip-subtitle' => esc_html__('Please don\'t add "PX" in the image size.','accelerated-mobile-pages'),
179
+ 'default' => '1280',
180
+ 'required'=>array('ampforwp-sd-switch','=','1'),
181
  );
182
  $fields[] = array(
183
  'id' => 'amp-structured-data-placeholder-image-height',
185
  'type' => 'text',
186
  'placeholder' => '350',
187
  'tooltip-subtitle' => esc_html__('Please don\'t add "PX" in the image size.','accelerated-mobile-pages'),
188
+ 'default' => '720',
189
+ 'required'=>array('ampforwp-sd-switch','=','1'),
190
  );
191
  $fields[] = array(
192
  'id' => 'amporwp-structured-data-video-thumb-url',
196
  'tooltip-subtitle' => esc_html__('Upload the Thumbnail you want to show as Video Thumbnail.', 'accelerated-mobile-pages'),
197
  'placeholder' => esc_html__('When there is no thumbnail set for the video','accelerated-mobile-pages'),
198
  'default' => array('url' => AMPFORWP_IMAGE_DIR . '/SD-default-image.png' ),
199
+ 'required'=>array('ampforwp-sd-switch','=','1'),
200
  );
201
  $fields[] = array(
202
  'id' => 'ampforwp-sd-multiple-images',
203
  'title' => esc_html__('High-resolution Images', 'accelerated-mobile-pages'),
204
  'type' => 'switch',
205
  'default' => 0,
206
+ 'required'=>array('ampforwp-sd-switch','=','1'),
207
  'tooltip-subtitle' => esc_html__('For best results, provide multiple high-resolution images (minimum of 800,000 pixels when multiplying width and height) with the following aspect ratios: 16x9, 4x3, and 1x1 ', 'accelerated-mobile-pages'). '<a href="https://developers.google.com/search/docs/data-types/article#article_types" target="_blank">'.esc_html__('Read more','accelerated-mobile-pages').'</a>'
208
  );
209
  }// is_plugin_active('schema-and-structured-data-for-wp/structured-data-for-wp.php') Closed
228
  $custom_fields[] = array(
229
  'id' => 'ampforwp-sd-type-'.esc_attr($p_type),
230
  'type' => 'select',
231
+ 'class' => 'child_opt child_opt_arrow',
232
+ 'title' => esc_html__($post_type, 'accelerated-mobile-pages'),
233
  'tooltip-subtitle' => 'Select the Structured Data Type for '.esc_attr($p_type),
234
  'options' => ampforwp_get_sd_types(),
235
  'default' => 'BlogPosting',
236
+ 'required'=>array('ampforwp-sd-switch','=','1'),
237
  );
238
  $extra_fields = array_merge($extra_fields, $custom_fields);
239
  }
includes/options/extensions/amp_slider/amp_slider/field_amp_slider.php CHANGED
@@ -39,7 +39,7 @@ if ( ! class_exists( 'ReduxCore\\ReduxFramework\\ReduxFramework_amp_slider' ) )
39
 
40
 
41
 
42
- function __construct( $field = array(), $value = '', $parent ) {
43
 
44
  //parent::__construct( $parent->sections, $parent->args );
45
  $this->parent = $parent;
39
 
40
 
41
 
42
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
43
 
44
  //parent::__construct( $parent->sections, $parent->args );
45
  $this->parent = $parent;
includes/options/extensions/demolink_image_select/demolink_image_select/field_demolink_image_select.php CHANGED
@@ -23,7 +23,7 @@ if ( ! class_exists( 'ReduxCore\\ReduxFramework\\ReduxFramework_demolink_image_s
23
  *
24
  * @since ReduxFramework 1.0.0
25
  */
26
- function __construct( $field = array(), $value = '', $parent ) {
27
  $this->parent = $parent;
28
  $this->field = $field;
29
  $this->value = $value;
23
  *
24
  * @since ReduxFramework 1.0.0
25
  */
26
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
27
  $this->parent = $parent;
28
  $this->field = $field;
29
  $this->value = $value;
includes/options/redux-core/framework.php CHANGED
@@ -2250,7 +2250,7 @@
2250
  150,
2251
  150
2252
  ) );
2253
- $this->options[ $field['id'] ]['thumbnail'] = $data[0];
2254
  $doUpdate = true;
2255
  }
2256
  }
2250
  150,
2251
  150
2252
  ) );
2253
+ $this->options[ $field['id'] ]['thumbnail'] = isset($data[0]) ? $data[0] : '' ;
2254
  $doUpdate = true;
2255
  }
2256
  }
includes/options/redux-core/inc/class.redux_cdn.php CHANGED
@@ -18,7 +18,7 @@
18
  static public $_parent;
19
  static private $_set;
20
 
21
- private static function is_enqueued( $handle, $list = 'enqueued', $is_script ) {
22
  if ( $is_script ) {
23
  wp_script_is( $handle, $list );
24
  } else {
@@ -42,13 +42,14 @@
42
  }
43
  }
44
 
45
- private static function _cdn( $register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true ) {
46
  $tran_key = '_style_cdn_is_up';
47
  if ( $is_script ) {
48
  $tran_key = '_script_cdn_is_up';
49
  }
50
-
51
- $cdn_is_up = get_transient( $handle . $tran_key );
 
52
  if ( $cdn_is_up ) {
53
  if ( $register ) {
54
  self::_register( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script );
@@ -97,10 +98,11 @@
97
  }
98
  }
99
 
100
- private static function _vendor_plugin( $register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true ) {
101
  if ( class_exists( 'ReduxCore\\ReduxFramework\\Redux_VendorURL' ) ) {
102
- $src = Redux_VendorURL::get_url( $handle );
103
-
 
104
  if ( $register ) {
105
  self::_register( $handle, $src, $deps, $ver, $footer_or_media, $is_script );
106
  } else {
@@ -152,4 +154,4 @@
152
  }
153
  }
154
  }
155
- }
18
  static public $_parent;
19
  static private $_set;
20
 
21
+ private static function is_enqueued( $handle, $list = 'enqueued', $is_script = true ) {
22
  if ( $is_script ) {
23
  wp_script_is( $handle, $list );
24
  } else {
42
  }
43
  }
44
 
45
+ private static function _cdn( $register = true, $handle = '', $src_cdn = '', $deps = '', $ver = '', $footer_or_media = '', $is_script = true ) {
46
  $tran_key = '_style_cdn_is_up';
47
  if ( $is_script ) {
48
  $tran_key = '_script_cdn_is_up';
49
  }
50
+ if (!empty($handle)) {
51
+ $cdn_is_up = get_transient( $handle . $tran_key );
52
+ }
53
  if ( $cdn_is_up ) {
54
  if ( $register ) {
55
  self::_register( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script );
98
  }
99
  }
100
 
101
+ private static function _vendor_plugin( $register = true, $handle = '', $src_cdn = '', $deps = '', $ver = '', $footer_or_media = '', $is_script = true ) {
102
  if ( class_exists( 'ReduxCore\\ReduxFramework\\Redux_VendorURL' ) ) {
103
+ if (!empty($handle)) {
104
+ $src = Redux_VendorURL::get_url( $handle );
105
+ }
106
  if ( $register ) {
107
  self::_register( $handle, $src, $deps, $ver, $footer_or_media, $is_script );
108
  } else {
154
  }
155
  }
156
  }
157
+ }
includes/options/redux-core/inc/class.redux_functions.php CHANGED
@@ -51,8 +51,8 @@
51
  * @param boolean $secure HTTPS only.
52
  * @param boolean $httponly Only set cookie on HTTP calls.
53
  */
54
- public static function setCookie( $name, $value, $expire = 0, $path, $domain = null, $secure = false, $httponly = false ) {
55
- if ( ! defined( 'WP_TESTS_DOMAIN' ) ) {
56
  setcookie( $name, $value, $expire, $path, $domain, $secure, $httponly );
57
  }
58
  }
51
  * @param boolean $secure HTTPS only.
52
  * @param boolean $httponly Only set cookie on HTTP calls.
53
  */
54
+ public static function setCookie( $name, $value, $expire = 0, $path = '', $domain = null, $secure = false, $httponly = false ) {
55
+ if ( ! defined( 'WP_TESTS_DOMAIN' ) && !empty($path)) {
56
  setcookie( $name, $value, $expire, $path, $domain, $secure, $httponly );
57
  }
58
  }
includes/options/redux-core/inc/extensions/customizer/extension_customizer.php CHANGED
@@ -582,14 +582,16 @@ namespace ReduxCore\ReduxFramework;
582
 
583
  }
584
 
585
- public function add_section( $id, $args = array(), $wp_customize ) {
586
 
587
  if ( is_a( $id, 'WP_Customize_Section' ) ) {
588
  $section = $id;
589
  } else {
590
 
591
  $section_class = apply_filters( 'redux/customizer/section/class_name', "Redux_Customizer_Section" );
592
- $section = new $section_class( $wp_customize, $id, $args );
 
 
593
  }
594
 
595
  $wp_customize->add_section( $section, $args );
@@ -605,12 +607,14 @@ namespace ReduxCore\ReduxFramework;
605
  * @param WP_Customize_Panel|string $id Customize Panel object, or Panel ID.
606
  * @param array $args Optional. Panel arguments. Default empty array.
607
  */
608
- public function add_panel( $id, $args = array(), $wp_customize ) {
609
  if ( is_a( $id, 'WP_Customize_Panel' ) ) {
610
  $panel = $id;
611
  } else {
612
  $panel_class = apply_filters( 'redux/customizer/panel/class_name', "Redux_Customizer_Panel" );
613
- $panel = new $panel_class( $wp_customize, $id, $args );
 
 
614
  }
615
 
616
  $wp_customize->add_panel( $panel, $args );
@@ -817,4 +821,4 @@ namespace ReduxCore\ReduxFramework;
817
  function redux_customizer_custom_validation( $field ) {
818
  return $field;
819
  }
820
- } // if
582
 
583
  }
584
 
585
+ public function add_section( $id, $args = array(), $wp_customize = '' ) {
586
 
587
  if ( is_a( $id, 'WP_Customize_Section' ) ) {
588
  $section = $id;
589
  } else {
590
 
591
  $section_class = apply_filters( 'redux/customizer/section/class_name', "Redux_Customizer_Section" );
592
+ if (!empty($wp_customize)) {
593
+ $section = new $section_class( $wp_customize, $id, $args );
594
+ }
595
  }
596
 
597
  $wp_customize->add_section( $section, $args );
607
  * @param WP_Customize_Panel|string $id Customize Panel object, or Panel ID.
608
  * @param array $args Optional. Panel arguments. Default empty array.
609
  */
610
+ public function add_panel( $id, $args = array(), $wp_customize = '' ) {
611
  if ( is_a( $id, 'WP_Customize_Panel' ) ) {
612
  $panel = $id;
613
  } else {
614
  $panel_class = apply_filters( 'redux/customizer/panel/class_name', "Redux_Customizer_Panel" );
615
+ if (!empty($wp_customize)) {
616
+ $panel = new $panel_class( $wp_customize, $id, $args );
617
+ }
618
  }
619
 
620
  $wp_customize->add_panel( $panel, $args );
821
  function redux_customizer_custom_validation( $field ) {
822
  return $field;
823
  }
824
+ } // if
includes/options/redux-core/inc/extensions/import_export/import_export/field_import_export.php CHANGED
@@ -40,7 +40,7 @@ namespace ReduxCore\ReduxFramework;
40
  * @access public
41
  * @return void
42
  */
43
- function __construct( $field = array(), $value = '', $parent ) {
44
 
45
  $this->parent = $parent;
46
  $this->field = $field;
40
  * @access public
41
  * @return void
42
  */
43
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
44
 
45
  $this->parent = $parent;
46
  $this->field = $field;
includes/options/redux-core/inc/extensions/options_object/options_object/field_options_object.php CHANGED
@@ -40,7 +40,7 @@ namespace ReduxCore\ReduxFramework;
40
  * @access public
41
  * @return void
42
  */
43
- function __construct( $field = array(), $value = '', $parent ) {
44
 
45
  $this->parent = $parent;
46
  $this->field = $field;
40
  * @access public
41
  * @return void
42
  */
43
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
44
 
45
  $this->parent = $parent;
46
  $this->field = $field;
includes/options/redux-core/inc/fields/ace_editor/field_ace_editor.php CHANGED
@@ -33,7 +33,7 @@ namespace ReduxCore\ReduxFramework;
33
  * @since ReduxFramework 1.0.0
34
  */
35
  private $time = '';
36
- function __construct( $field = array(), $value = '', $parent ) {
37
  $this->parent = $parent;
38
  $this->field = $field;
39
  $this->value = $value;
33
  * @since ReduxFramework 1.0.0
34
  */
35
  private $time = '';
36
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
37
  $this->parent = $parent;
38
  $this->field = $field;
39
  $this->value = $value;
includes/options/redux-core/inc/fields/background/field_background.php CHANGED
@@ -40,7 +40,7 @@ namespace ReduxCore\ReduxFramework;
40
  * @access public
41
  * @return void
42
  */
43
- function __construct( $field = array(), $value = '', $parent ) {
44
 
45
  $this->parent = $parent;
46
  $this->field = $field;
40
  * @access public
41
  * @return void
42
  */
43
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
44
 
45
  $this->parent = $parent;
46
  $this->field = $field;
includes/options/redux-core/inc/fields/border/field_border.php CHANGED
@@ -33,7 +33,7 @@ if ( ! class_exists( 'ReduxCore\\ReduxFramework\\ReduxFramework_border' ) ) {
33
  *
34
  * @since ReduxFramework 1.0.0
35
  */
36
- function __construct( $field = array(), $value = '', $parent ) {
37
 
38
  $this->parent = $parent;
39
  $this->field = $field;
33
  *
34
  * @since ReduxFramework 1.0.0
35
  */
36
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
37
 
38
  $this->parent = $parent;
39
  $this->field = $field;
includes/options/redux-core/inc/fields/button_set/field_button_set.php CHANGED
@@ -68,7 +68,7 @@ namespace ReduxCore\ReduxFramework;
68
  * @access public
69
  * @return void
70
  */
71
- function __construct( $field = array(), $value = '', $parent ) {
72
 
73
  $this->parent = $parent;
74
  $this->field = $field;
68
  * @access public
69
  * @return void
70
  */
71
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
72
 
73
  $this->parent = $parent;
74
  $this->field = $field;
includes/options/redux-core/inc/fields/color/field_color.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'ReduxCore\\ReduxFramework\\ReduxFramework_color' ) ) {
43
  * @return void
44
  */
45
  private $time = '';
46
- function __construct( $field = array(), $value = '', $parent ) {
47
 
48
  $this->parent = $parent;
49
  $this->field = $field;
43
  * @return void
44
  */
45
  private $time = '';
46
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
47
 
48
  $this->parent = $parent;
49
  $this->field = $field;
includes/options/redux-core/inc/fields/color_gradient/field_color_gradient.php CHANGED
@@ -41,7 +41,7 @@ if ( ! class_exists( 'ReduxCore\\ReduxFramework\\ReduxFramework_color_gradient'
41
  * @access public
42
  * @return void
43
  */
44
- function __construct( $field = array(), $value = '', $parent ) {
45
  $this->parent = $parent;
46
  $this->field = $field;
47
  $this->value = $value;
41
  * @access public
42
  * @return void
43
  */
44
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
45
  $this->parent = $parent;
46
  $this->field = $field;
47
  $this->value = $value;
includes/options/redux-core/inc/fields/color_rgba/field_color_rgba.php CHANGED
@@ -45,7 +45,7 @@ if( !class_exists( 'ReduxCore\\ReduxFramework\\ReduxFramework_color_rgba' ) ) {
45
  * @param array $parent Parent object.
46
  * @return void
47
  */
48
- public function __construct( $field = array(), $value ='', $parent ) {
49
 
50
  // Set required variables
51
  $this->parent = $parent;
45
  * @param array $parent Parent object.
46
  * @return void
47
  */
48
+ public function __construct( $field = array(), $value ='', $parent = ' ') {
49
 
50
  // Set required variables
51
  $this->parent = $parent;
includes/options/redux-core/inc/fields/date/field_date.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'ReduxFramework_date' ) ) {
43
  * @access public
44
  * @return void
45
  */
46
- function __construct( $field = array(), $value = '', $parent ) {
47
  $this->parent = $parent;
48
  $this->field = $field;
49
  $this->value = $value;
43
  * @access public
44
  * @return void
45
  */
46
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
47
  $this->parent = $parent;
48
  $this->field = $field;
49
  $this->value = $value;
includes/options/redux-core/inc/fields/dimensions/field_dimensions.php CHANGED
@@ -13,7 +13,7 @@ namespace ReduxCore\ReduxFramework;
13
  *
14
  * @since ReduxFramework 1.0.0
15
  */
16
- function __construct( $field = array(), $value = '', $parent ) {
17
  $this->parent = $parent;
18
  $this->field = $field;
19
  $this->value = $value;
13
  *
14
  * @since ReduxFramework 1.0.0
15
  */
16
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
17
  $this->parent = $parent;
18
  $this->field = $field;
19
  $this->value = $value;
includes/options/redux-core/inc/fields/editor/field_editor.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'ReduxFramework_editor' ) ) {
43
  * @access public
44
  * @return void
45
  */
46
- function __construct( $field = array(), $value = '', $parent ) {
47
  $this->parent = $parent;
48
  $this->field = $field;
49
  $this->value = $value;
43
  * @access public
44
  * @return void
45
  */
46
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
47
  $this->parent = $parent;
48
  $this->field = $field;
49
  $this->value = $value;
includes/options/redux-core/inc/fields/gallery/field_gallery.php CHANGED
@@ -41,7 +41,7 @@ if ( ! class_exists( 'ReduxFramework_gallery' ) ) {
41
  * @access public
42
  * @return void
43
  */
44
- function __construct( $field = array(), $value = '', $parent ) {
45
  $this->parent = $parent;
46
  $this->field = $field;
47
  $this->value = $value;
41
  * @access public
42
  * @return void
43
  */
44
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
45
  $this->parent = $parent;
46
  $this->field = $field;
47
  $this->value = $value;
includes/options/redux-core/inc/fields/image_select/field_image_select.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'ReduxFramework_image_select' ) ) {
43
  * @return void
44
  */
45
  private $time = '';
46
- function __construct( $field = array(), $value = '', $parent ) {
47
  $this->parent = $parent;
48
  $this->field = $field;
49
  $this->value = $value;
43
  * @return void
44
  */
45
  private $time = '';
46
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
47
  $this->parent = $parent;
48
  $this->field = $field;
49
  $this->value = $value;
includes/options/redux-core/inc/fields/info/field_info.php CHANGED
@@ -42,7 +42,7 @@ namespace ReduxCore\ReduxFramework;
42
  * @access public
43
  * @return void
44
  */
45
- function __construct( $field = array(), $value = '', $parent ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
42
  * @access public
43
  * @return void
44
  */
45
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
includes/options/redux-core/inc/fields/link_color/field_link_color.php CHANGED
@@ -44,7 +44,7 @@ if ( ! class_exists( 'ReduxFramework_link_color' ) ) {
44
  * @access public
45
  * @return void
46
  */
47
- function __construct( $field = array(), $value = '', $parent ) {
48
  $this->parent = $parent;
49
  $this->field = $field;
50
  $this->value = $value;
44
  * @access public
45
  * @return void
46
  */
47
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
48
  $this->parent = $parent;
49
  $this->field = $field;
50
  $this->value = $value;
includes/options/redux-core/inc/fields/media/field_media.php CHANGED
@@ -45,7 +45,7 @@ if ( ! class_exists( 'ReduxFramework_media' ) ) {
45
  */
46
  private $timestamp = '';
47
 
48
- function __construct( $field = array(), $value = '', $parent ) {
49
  $this->parent = $parent;
50
  $this->field = $field;
51
  $this->value = $value;
45
  */
46
  private $timestamp = '';
47
 
48
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
49
  $this->parent = $parent;
50
  $this->field = $field;
51
  $this->value = $value;
includes/options/redux-core/inc/fields/multi_text/field_multi_text.php CHANGED
@@ -42,7 +42,7 @@ if ( ! class_exists( 'ReduxFramework_multi_text' ) ) {
42
  * @access public
43
  * @return void
44
  */
45
- function __construct( $field = array(), $value = '', $parent ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
42
  * @access public
43
  * @return void
44
  */
45
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
includes/options/redux-core/inc/fields/multitext_repeater/field_multitext_repeater.php CHANGED
@@ -42,7 +42,7 @@ if ( ! class_exists( 'ReduxFramework_multitext_repeater' ) ) {
42
  * @access public
43
  * @return void
44
  */
45
- function __construct( $field = array(), $value = '', $parent ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
42
  * @access public
43
  * @return void
44
  */
45
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
includes/options/redux-core/inc/fields/palette/field_palette.php CHANGED
@@ -34,7 +34,7 @@ if ( ! class_exists( 'ReduxFramework_palette' ) ) {
34
  * @access public
35
  * @return void
36
  */
37
- function __construct( $field = array(), $value = '', $parent ) {
38
  $this->parent = $parent;
39
  $this->field = $field;
40
  $this->value = $value;
34
  * @access public
35
  * @return void
36
  */
37
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
38
  $this->parent = $parent;
39
  $this->field = $field;
40
  $this->value = $value;
includes/options/redux-core/inc/fields/password/field_password.php CHANGED
@@ -18,7 +18,7 @@ namespace ReduxCore\ReduxFramework;
18
  *
19
  * @since ReduxFramework 1.0.1
20
  */
21
- function __construct( $field = array(), $value = '', $parent ) {
22
  $this->parent = $parent;
23
  $this->field = $field;
24
  $this->value = $value;
18
  *
19
  * @since ReduxFramework 1.0.1
20
  */
21
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
22
  $this->parent = $parent;
23
  $this->field = $field;
24
  $this->value = $value;
includes/options/redux-core/inc/fields/radio/field_radio.php CHANGED
@@ -14,7 +14,7 @@ namespace ReduxCore\ReduxFramework;
14
  *
15
  * @since ReduxFramework 1.0.0
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since ReduxFramework 1.0.0
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/raw/field_raw.php CHANGED
@@ -14,7 +14,7 @@ namespace ReduxCore\ReduxFramework;
14
  *
15
  * @since ReduxFramework 3.0.4
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since ReduxFramework 3.0.4
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/repeater/field_repeater.php CHANGED
@@ -42,7 +42,7 @@ if ( ! class_exists( 'ReduxFramework_repeater' ) ) {
42
  * @access public
43
  * @return void
44
  */
45
- function __construct( $field = array(), $value = '', $parent ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
42
  * @access public
43
  * @return void
44
  */
45
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
46
  $this->parent = $parent;
47
  $this->field = $field;
48
  $this->value = $value;
includes/options/redux-core/inc/fields/section/field_section.php CHANGED
@@ -41,7 +41,7 @@ namespace ReduxCore\ReduxFramework;
41
  * @access public
42
  * @return void
43
  */
44
- public function __construct( $field = array(), $value = '', $parent ) {
45
  $this->parent = $parent;
46
  $this->field = $field;
47
  $this->value = $value;
41
  * @access public
42
  * @return void
43
  */
44
+ public function __construct( $field = array(), $value = '', $parent = ' ' ) {
45
  $this->parent = $parent;
46
  $this->field = $field;
47
  $this->value = $value;
includes/options/redux-core/inc/fields/select/field_select.php CHANGED
@@ -15,7 +15,7 @@ if ( ! class_exists( 'ReduxFramework_select' ) ) {
15
  * @since ReduxFramework 1.0.0
16
  */
17
  private $time = '';
18
- public function __construct( $field = array(), $value = '', $parent ) {
19
  $this->parent = $parent;
20
  $this->field = $field;
21
  $this->value = $value;
15
  * @since ReduxFramework 1.0.0
16
  */
17
  private $time = '';
18
+ public function __construct( $field = array(), $value = '', $parent = ' ' ) {
19
  $this->parent = $parent;
20
  $this->field = $field;
21
  $this->value = $value;
includes/options/redux-core/inc/fields/select_image/field_select_image.php CHANGED
@@ -23,7 +23,7 @@ if ( ! class_exists( 'ReduxFramework_select_image' ) ) {
23
  *
24
  * @since ReduxFramework 1.0.0
25
  */
26
- function __construct( $field = array(), $value = '', $parent ) {
27
  $this->parent = $parent;
28
  $this->field = $field;
29
  $this->value = $value;
23
  *
24
  * @since ReduxFramework 1.0.0
25
  */
26
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
27
  $this->parent = $parent;
28
  $this->field = $field;
29
  $this->value = $value;
includes/options/redux-core/inc/fields/slider/field_slider.php CHANGED
@@ -37,7 +37,7 @@ if ( ! class_exists( 'ReduxFramework_slider' ) ) {
37
  private $display_text = 2;
38
  private $display_select = 3;
39
 
40
- function __construct( $field = array(), $value = '', $parent ) {
41
 
42
  //parent::__construct( $parent->sections, $parent->args );
43
  $this->parent = $parent;
37
  private $display_text = 2;
38
  private $display_select = 3;
39
 
40
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
41
 
42
  //parent::__construct( $parent->sections, $parent->args );
43
  $this->parent = $parent;
includes/options/redux-core/inc/fields/sortable/field_sortable.php CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( 'ReduxFramework_sortable' ) ) {
14
  *
15
  * @since Redux_Options 2.0.1
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since Redux_Options 2.0.1
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/sorter/field_sorter.php CHANGED
@@ -14,7 +14,7 @@ namespace ReduxCore\ReduxFramework;
14
  *
15
  * @since Redux_Options 1.0.0
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since Redux_Options 1.0.0
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/spacing/field_spacing.php CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( 'ReduxFramework_spacing' ) ) {
14
  *
15
  * @since ReduxFramework 1.0.0
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since ReduxFramework 1.0.0
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/spinner/field_spinner.php CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( 'ReduxFramework_spinner' ) ) {
14
  *
15
  * @since ReduxFramework 3.0.0
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since ReduxFramework 3.0.0
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/switch/field_switch.php CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( 'ReduxFramework_switch' ) ) {
14
  *
15
  * @since ReduxFramework 0.0.4
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since ReduxFramework 0.0.4
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/text/field_text.php CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( 'ReduxFramework_text' ) ) {
14
  *
15
  * @since ReduxFramework 1.0.0
16
  */
17
- function __construct( $field = array(), $value = '', $parent ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
14
  *
15
  * @since ReduxFramework 1.0.0
16
  */
17
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
18
  $this->parent = $parent;
19
  $this->field = $field;
20
  $this->value = $value;
includes/options/redux-core/inc/fields/textarea/field_textarea.php CHANGED
@@ -39,7 +39,7 @@ namespace ReduxCore\ReduxFramework;
39
  * @since ReduxFramework 1.0.0
40
  * @type string $field [test] Description. Default <value>. Accepts <value>, <value>.
41
  */
42
- function __construct( $field = array(), $value = '', $parent ) {
43
  $this->parent = $parent;
44
  $this->field = $field;
45
  $this->value = $value;
39
  * @since ReduxFramework 1.0.0
40
  * @type string $field [test] Description. Default <value>. Accepts <value>, <value>.
41
  */
42
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
43
  $this->parent = $parent;
44
  $this->field = $field;
45
  $this->value = $value;
includes/options/redux-core/inc/fields/typography/field_typography.json CHANGED
@@ -47,7 +47,7 @@
47
  *
48
  * @since ReduxFramework 1.0.0
49
  */
50
- function __construct( $field = array(), $value = '', $parent ) {
51
  $this->parent = $parent;
52
  $this->field = $field;
53
  $this->value = $value;
47
  *
48
  * @since ReduxFramework 1.0.0
49
  */
50
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
51
  $this->parent = $parent;
52
  $this->field = $field;
53
  $this->value = $value;
includes/options/redux-core/inc/fields/typography/field_typography.php CHANGED
@@ -47,7 +47,7 @@ if ( ! class_exists( 'ReduxFramework_typography' ) ) {
47
  *
48
  * @since ReduxFramework 1.0.0
49
  */
50
- function __construct( $field = array(), $value = '', $parent ) {
51
  $this->parent = $parent;
52
  $this->field = $field;
53
  $this->value = $value;
47
  *
48
  * @since ReduxFramework 1.0.0
49
  */
50
+ function __construct( $field = array(), $value = '', $parent = ' ' ) {
51
  $this->parent = $parent;
52
  $this->field = $field;
53
  $this->value = $value;
includes/redirect.php CHANGED
@@ -268,7 +268,7 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
268
  if ( 'disable' == ampforwp_meta_redirection_status() ) {
269
  return;
270
  }
271
- if ( false == $supported_amp_post_types ) {
272
  return;
273
  }
274
  if ( is_archive() && 0 == $redux_builder_amp['ampforwp-archive-support'] ) {
@@ -298,7 +298,7 @@ if(is_search() && 0 == ampforwp_get_setting('amp-redirection-search')){
298
  return;
299
  }
300
 
301
- if ( is_page() && 0 == $redux_builder_amp['amp-on-off-for-all-pages'] ) {
302
  return;
303
  }
304
 
268
  if ( 'disable' == ampforwp_meta_redirection_status() ) {
269
  return;
270
  }
271
+ if ( false == $supported_amp_post_types && !ampforwp_is_front_page() ) {
272
  return;
273
  }
274
  if ( is_archive() && 0 == $redux_builder_amp['ampforwp-archive-support'] ) {
298
  return;
299
  }
300
 
301
+ if ( is_page() && 0 == ampforwp_get_setting('amp-on-off-for-all-pages') && !ampforwp_is_front_page() ) {
302
  return;
303
  }
304
 
includes/updater/update.php CHANGED
@@ -257,7 +257,7 @@ function ampforwp_admin_notices() {
257
  }
258
  }
259
 
260
- function ampforwp_set_plugin_limit( $force=false, $license_data='', $data) {
261
 
262
  global $wp_version;
263
 
257
  }
258
  }
259
 
260
+ function ampforwp_set_plugin_limit( $force=false, $license_data='', $data = '') {
261
 
262
  global $wp_version;
263
 
includes/vendor/amp/includes/amp-post-template-actions.php CHANGED
@@ -99,7 +99,7 @@ function amp_post_template_add_boilerplate_css( $amp_template ) {
99
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
100
  <?php
101
  }
102
- if(!function_exists('ampforwp_with_scheme_app_output') && !function_exists('saswp_schema_markup_output') && ( ampforwp_get_setting('ampforwp-seo-selection') != "rank_math" || ! ampforwp_get_setting('ampforwp-seo-rank_math-schema')) && ! class_exists('SQ_Classes_ObjController') ):
103
  add_action( 'amp_post_template_footer', 'AMPforWP\\AMPVendor\\amp_post_template_add_schemaorg_metadata' );
104
  function amp_post_template_add_schemaorg_metadata( $amp_template ) {
105
  $metadata = $amp_template->get( 'metadata' );
99
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
100
  <?php
101
  }
102
+ if(ampforwp_get_setting('ampforwp-sd-switch') && !function_exists('ampforwp_with_scheme_app_output') && !function_exists('saswp_schema_markup_output') && ( ampforwp_get_setting('ampforwp-seo-selection') != "rank_math" || ! ampforwp_get_setting('ampforwp-seo-rank_math-schema')) && ! class_exists('SQ_Classes_ObjController') ):
103
  add_action( 'amp_post_template_footer', 'AMPforWP\\AMPVendor\\amp_post_template_add_schemaorg_metadata' );
104
  function amp_post_template_add_schemaorg_metadata( $amp_template ) {
105
  $metadata = $amp_template->get( 'metadata' );
includes/vendor/amp/includes/sanitizers/class-amp-allowed-tags-generated.php CHANGED
@@ -2653,6 +2653,7 @@ class AMP_Allowed_Tags_Generated {
2653
  'placeholder' => array(),
2654
  'poster' => array(),
2655
  'dock' => array(),
 
2656
  'preload' => array(
2657
  'value_regex' => '(none|metadata|auto|)',
2658
  ),
@@ -2895,6 +2896,7 @@ class AMP_Allowed_Tags_Generated {
2895
  '[data-videoid]' => array(),
2896
  '[dock]' => array(),
2897
  'autoplay' => array(),
 
2898
  'credentials' => array(
2899
  'value_regex_casei' => '(include|omit)',
2900
  ),
2653
  'placeholder' => array(),
2654
  'poster' => array(),
2655
  'dock' => array(),
2656
+ 'loop' => array(),
2657
  'preload' => array(
2658
  'value_regex' => '(none|metadata|auto|)',
2659
  ),
2896
  '[data-videoid]' => array(),
2897
  '[dock]' => array(),
2898
  'autoplay' => array(),
2899
+ 'loop' => array(),
2900
  'credentials' => array(
2901
  'value_regex_casei' => '(include|omit)',
2902
  ),
pagebuilder/config/moduleTemplate.php CHANGED
@@ -88,6 +88,7 @@ $output = '<section {{if_row_id}}id={{row_id}}{{ifend_row_id}} class="ap_m {{row
88
  {{if_condition_enable_mp4video_autoplay==1}}autoplay{{ifend_condition_enable_mp4video_autoplay_1}}
89
  src="{{row_background_mp4video}}"
90
  layout="responsive"
 
91
  {{if_condition_enable_mp4video_controls==1}}controls{{ifend_condition_enable_mp4video_controls_1}}>
92
  </amp-video>
93
  {{if_condition_check_for_overlay==1}}
@@ -108,7 +109,7 @@ $output = '<section {{if_row_id}}id={{row_id}}{{ifend_row_id}} class="ap_m {{row
108
  {{if_condition_enable_modestbranding==1}}data-param-modestbranding="1"{{ifend_condition_enable_modestbranding_1}}
109
  {{if_condition_enable_youtube_rel==1}}data-param-rel="1"{{ifend_condition_enable_youtube_rel_1}}
110
  {{if_condition_enable_youtube_rel==0}}data-param-rel="0"{{ifend_condition_enable_youtube_rel_0}}
111
- {{if_condition_enable_youtube_loop==1}}data-param-playlist="{{row_background_youtubevideo}}"{{ifend_condition_enable_youtube_loop_1}}
112
  data-videoid="{{row_background_youtubevideo}}"
113
  {{if_condition_enable_youtube_autoplay==1}}autoplay{{ifend_condition_enable_youtube_autoplay_1}}>
114
  </amp-youtube>
@@ -615,7 +616,7 @@ $containerCommonSettings = array(
615
  )
616
  ),
617
  'content_type'=>'html',
618
- 'required' => array('background_type'=> 'youtubevideo')
619
  ),
620
  array(
621
  'type' =>'checkbox_bool',
88
  {{if_condition_enable_mp4video_autoplay==1}}autoplay{{ifend_condition_enable_mp4video_autoplay_1}}
89
  src="{{row_background_mp4video}}"
90
  layout="responsive"
91
+ {{if_condition_enable_youtube_loop==1}}loop{{ifend_condition_enable_youtube_loop_1}}
92
  {{if_condition_enable_mp4video_controls==1}}controls{{ifend_condition_enable_mp4video_controls_1}}>
93
  </amp-video>
94
  {{if_condition_check_for_overlay==1}}
109
  {{if_condition_enable_modestbranding==1}}data-param-modestbranding="1"{{ifend_condition_enable_modestbranding_1}}
110
  {{if_condition_enable_youtube_rel==1}}data-param-rel="1"{{ifend_condition_enable_youtube_rel_1}}
111
  {{if_condition_enable_youtube_rel==0}}data-param-rel="0"{{ifend_condition_enable_youtube_rel_0}}
112
+ {{if_condition_enable_youtube_loop==1}}loop{{ifend_condition_enable_youtube_loop_1}}
113
  data-videoid="{{row_background_youtubevideo}}"
114
  {{if_condition_enable_youtube_autoplay==1}}autoplay{{ifend_condition_enable_youtube_autoplay_1}}>
115
  </amp-youtube>
616
  )
617
  ),
618
  'content_type'=>'html',
619
+ 'required' => array('background_type'=> array('mp4video','youtubevideo'))
620
  ),
621
  array(
622
  'type' =>'checkbox_bool',
pagebuilder/inc/viewShowFrontData.php CHANGED
@@ -951,7 +951,7 @@ function ampforwp_rowData($container,$col,$moduleTemplate){
951
  if(!is_array($replace)){
952
 
953
  if($field['type']=="upload"){
954
- $image_alt = $imageUrl = $imageWidth = $imageHeight = $image_caption = '';
955
  if(isset($contentArray[$field['name']."_image_data"])){
956
  $replace= $contentArray[$field['name']."_image_data"];
957
  $imageUrl = $replace[0];
@@ -959,6 +959,7 @@ function ampforwp_rowData($container,$col,$moduleTemplate){
959
  $imageHeight = $replace[2];
960
  $image_alt = (isset($replace['alt'])? $replace['alt']: "");
961
  $image_caption = (isset($replace['caption'])? $replace['caption']: "");
 
962
  }elseif( $replace != "" ){
963
  $imageDetails = ampforwp_get_attachment_id( $replace);
964
  if(is_array($imageDetails)){
@@ -1009,6 +1010,16 @@ function ampforwp_rowData($container,$col,$moduleTemplate){
1009
  ),
1010
  $moduleFrontHtml
1011
  );
 
 
 
 
 
 
 
 
 
 
1012
  $moduleFrontHtml = ampforwp_replaceIfContentConditional('image_alt', $image_alt, $moduleFrontHtml);
1013
  $moduleFrontHtml = str_replace(
1014
  array('{{image_caption}}',
951
  if(!is_array($replace)){
952
 
953
  if($field['type']=="upload"){
954
+ $image_alt = $imageUrl = $imageWidth = $imageHeight = $image_caption = $image_srcset = '';
955
  if(isset($contentArray[$field['name']."_image_data"])){
956
  $replace= $contentArray[$field['name']."_image_data"];
957
  $imageUrl = $replace[0];
959
  $imageHeight = $replace[2];
960
  $image_alt = (isset($replace['alt'])? $replace['alt']: "");
961
  $image_caption = (isset($replace['caption'])? $replace['caption']: "");
962
+ $image_srcset = $replace[0];
963
  }elseif( $replace != "" ){
964
  $imageDetails = ampforwp_get_attachment_id( $replace);
965
  if(is_array($imageDetails)){
1010
  ),
1011
  $moduleFrontHtml
1012
  );
1013
+ $moduleFrontHtml = str_replace(
1014
+ array('{{image_srcset}}',
1015
+ '{{image_srcset_'.$field['name'].'}}'
1016
+ ),
1017
+ array($image_srcset,
1018
+ $image_srcset
1019
+ ),
1020
+ $moduleFrontHtml
1021
+ );
1022
+ $moduleFrontHtml = ampforwp_replaceIfContentConditional('image_srcset', $image_srcset, $moduleFrontHtml);
1023
  $moduleFrontHtml = ampforwp_replaceIfContentConditional('image_alt', $image_alt, $moduleFrontHtml);
1024
  $moduleFrontHtml = str_replace(
1025
  array('{{image_caption}}',
pagebuilder/modules/image-mod-module.php CHANGED
@@ -3,7 +3,7 @@
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
  $output = '
5
  {{if_condition_img_hyperlink==1}}<a href="{{hyperlink_link_img}}" {{if_condition_img_link_open==new_page}}target="_blank"{{ifend_condition_img_link_open_new_page}}>{{ifend_condition_img_hyperlink_1}}
6
- {{if_img_upload}}<figure><amp-img src="{{img_upload}}" {{if_id}}id="{{id}}"{{ifend_id}} width="{{image_width}}" height="{{image_height}}" {{if_image_layout}}layout="{{image_layout}}"{{ifend_image_layout}} alt="{{image_alt}}" class="{{user_class}}"></amp-img>{{if_condition_image_caption==1}}<figcaption><center>{{image_caption}}</center></figcaption>{{ifend_condition_image_caption_1}}</figure>{{ifend_img_upload}}
7
  {{if_condition_img_hyperlink==1}}</a>{{ifend_condition_img_hyperlink_1}}';
8
 
9
  $css = '
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
  $output = '
5
  {{if_condition_img_hyperlink==1}}<a href="{{hyperlink_link_img}}" {{if_condition_img_link_open==new_page}}target="_blank"{{ifend_condition_img_link_open_new_page}}>{{ifend_condition_img_hyperlink_1}}
6
+ {{if_img_upload}}<figure><amp-img src="{{img_upload}}" {{if_id}}id="{{id}}"{{ifend_id}} width="{{image_width}}" height="{{image_height}}" srcset="{{image_srcset}}" {{if_image_layout}}layout="{{image_layout}}"{{ifend_image_layout}} alt="{{image_alt}}" class="{{user_class}}"></amp-img>{{if_condition_image_caption==1}}<figcaption><center>{{image_caption}}</center></figcaption>{{ifend_condition_image_caption_1}}</figure>{{ifend_img_upload}}
7
  {{if_condition_img_hyperlink==1}}</a>{{ifend_condition_img_hyperlink_1}}';
8
 
9
  $css = '
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.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,14 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
 
 
 
 
 
193
  = 1.0.76.7 (15th March 2021) =
194
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
195
 
@@ -208,16 +216,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
208
  * Fixed: Jetpack hosted videos not working on AMP #4931
209
  * Fixed: AMP Pagebuilder module getting narrowed with All in One SEO plugin #4930
210
 
211
- = 1.0.76.4 (19th February 2021) =
212
- * Fixed: AMP front page not working after update #4892
213
-
214
- = 1.0.76.3 (19th February 2021) =
215
- * Improvement: Added the Smart Mag Theme review schema #4898
216
- * Improvement: Added disable right click for copy protection #4877
217
- * Improvement: Added an option to hide the title on pages #4929
218
- * Fixed: AMP Browser caching policy #4876
219
- * Fixed: p tags getting stripped with Change Pagination Links to /amp option #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)
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
 
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
196
+ * Fixed: Debug Warning with PHP 8.02 and WordPress 5.6.2 #4946
197
+ * Fixed: Background Video loop not working with AMP page builder #4948
198
+ * Fixed: Mobile redirection not working for the front page when pages are disabled #4942
199
+ * Fixed: Captions are not working on Slideshow Module by Jetpack Plugin #4950
200
+
201
  = 1.0.76.7 (15th March 2021) =
202
  * Fixed: WP_Scripts Debug Warnings when WordPress updated to v5.7 #4958
203
 
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)