AMP for WP – Accelerated Mobile Pages - Version 0.9.98.2

Version Description

(25nd July 2019) = * Fixed: Menu design issue in Design 3 #3489 * Fixed: Fatal error when latest version of Smush pro plugin activated #3487 * Fixed: After Version 0.9.98 update, Background Type gradient options are not showing in Row module of AMP pagebuilder #3490 * Fixed: Undefined index ampforwp-amp-on-off #3474 * Fixed: Search bar is not showing in design three after enabling the search option in header option panel #3484 * Fixed: Content blank if Color Attribute is in Span tag #3497 * Fixed: Sticky Header has no background color when scrolling. #3498

Download this release

Release Info

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

Code changes from version 0.9.98.1 to 0.9.98.2

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.2.2
7
- Stable tag: 0.9.98.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -189,6 +189,15 @@ You can contact us from [here](https://ampforwp.com/contact/)
189
 
190
  == Changelog ==
191
 
 
 
 
 
 
 
 
 
 
192
  = 0.9.98.1 (22nd July 2019) =
193
  * Fixed: Logo and headline comes togeather after .98 update #3472
194
  * Fixed: Default loading message as '1' in search bar after latest update (.98) #3476
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.2.2
7
+ Stable tag: 0.9.98.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
189
 
190
  == Changelog ==
191
 
192
+ = 0.9.98.2 (25nd July 2019) =
193
+ * Fixed: Menu design issue in Design 3 #3489
194
+ * Fixed: Fatal error when latest version of Smush pro plugin activated #3487
195
+ * Fixed: After Version 0.9.98 update, Background Type gradient options are not showing in Row module of AMP pagebuilder #3490
196
+ * Fixed: Undefined index ampforwp-amp-on-off #3474
197
+ * Fixed: Search bar is not showing in design three after enabling the search option in header option panel #3484
198
+ * Fixed: Content blank if Color Attribute is in Span tag #3497
199
+ * Fixed: Sticky Header has no background color when scrolling. #3498
200
+
201
  = 0.9.98.1 (22nd July 2019) =
202
  * Fixed: Logo and headline comes togeather after .98 update #3472
203
  * Fixed: Default loading message as '1' in search bar after latest update (.98) #3476
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: 0.9.98.1
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','0.9.98');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  // any changes to AMP_QUERY_VAR should be refelected here
26
  function ampforwp_generate_endpoint(){
@@ -567,7 +567,7 @@ if( ! function_exists('ampforwp_require_file') ){
567
 
568
  // AMP endpoint Verifier
569
  function ampforwp_is_amp_endpoint() {
570
- if ( ampforwp_is_non_amp() && ! is_admin()) {
571
  return apply_filters('ampforwp_is_amp_endpoint_takeover', ampforwp_is_non_amp() );
572
  }
573
  else {
@@ -1107,7 +1107,7 @@ function ampforwp_sanitizers_loader(){
1107
  }
1108
  }
1109
  // is_amp_endpoint Fallback #2287 #3055
1110
- add_action('parse_query','ampforwp_vendor_is_amp_endpoint');
1111
  function ampforwp_vendor_is_amp_endpoint(){
1112
  global $pagenow;
1113
  if ( ! function_exists('amp_activate') && ! function_exists('is_amp_endpoint' ) && 'plugins.php' !== $pagenow ) {
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: 0.9.98.2
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','0.9.98.2');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  // any changes to AMP_QUERY_VAR should be refelected here
26
  function ampforwp_generate_endpoint(){
567
 
568
  // AMP endpoint Verifier
569
  function ampforwp_is_amp_endpoint() {
570
+ if ( (function_exists('ampforwp_is_non_amp') && ampforwp_is_non_amp()) && ! is_admin()) {
571
  return apply_filters('ampforwp_is_amp_endpoint_takeover', ampforwp_is_non_amp() );
572
  }
573
  else {
1107
  }
1108
  }
1109
  // is_amp_endpoint Fallback #2287 #3055
1110
+ add_action('widgets_init','ampforwp_vendor_is_amp_endpoint');
1111
  function ampforwp_vendor_is_amp_endpoint(){
1112
  global $pagenow;
1113
  if ( ! function_exists('amp_activate') && ! function_exists('is_amp_endpoint' ) && 'plugins.php' !== $pagenow ) {
changelog.txt CHANGED
@@ -1,5 +1,14 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
3
  = 0.9.98.1 (22nd July 2019) =
4
  * Fixed: Logo and headline comes togeather after .98 update #3472
5
  * Fixed: Default loading message as '1' in search bar after latest update (.98) #3476
1
  == Changelog ==
2
 
3
+ = 0.9.98.2 (25nd July 2019) =
4
+ * Fixed: Menu design issue in Design 3 #3489
5
+ * Fixed: Fatal error when latest version of Smush pro plugin activated #3487
6
+ * Fixed: After Version 0.9.98 update, Background Type gradient options are not showing in Row module of AMP pagebuilder #3490
7
+ * Fixed: Undefined index ampforwp-amp-on-off #3474
8
+ * Fixed: Search bar is not showing in design three after enabling the search option in header option panel #3484
9
+ * Fixed: Content blank if Color Attribute is in Span tag #3497
10
+ * Fixed: Sticky Header has no background color when scrolling. #3498
11
+
12
  = 0.9.98.1 (22nd July 2019) =
13
  * Fixed: Logo and headline comes togeather after .98 update #3472
14
  * Fixed: Default loading message as '1' in search bar after latest update (.98) #3476
install/index.php CHANGED
@@ -438,7 +438,7 @@ if(isset($redux_builder_amp['opt-media']['url']) && $redux_builder_amp['opt-medi
438
  if($postKey=='opt-media' && $postValue!=""){
439
 
440
  $postValue = json_decode(stripcslashes($postValue),true);
441
- $redux_builder_amp[$postKey] = $postValue;
442
  }elseif(isset($redux_builder_amp[$postKey]) && $postValue!=""){
443
  $redux_builder_amp[$postKey] = sanitize_text_field($postValue);
444
  }
438
  if($postKey=='opt-media' && $postValue!=""){
439
 
440
  $postValue = json_decode(stripcslashes($postValue),true);
441
+ $redux_builder_amp[$postKey] = sanitize_text_field($postValue);
442
  }elseif(isset($redux_builder_amp[$postKey]) && $postValue!=""){
443
  $redux_builder_amp[$postKey] = sanitize_text_field($postValue);
444
  }
pagebuilder/config/moduleTemplate.php CHANGED
@@ -141,6 +141,7 @@ $front_css = '
141
  {{ifend_condition_check_for_brdr_1}}
142
  color: {{font_color_picker}};
143
  background-color: {{color_picker}};
 
144
  margin: {{margin_css}};
145
  padding:{{padding_css}};
146
 
@@ -719,6 +720,16 @@ $containerCommonSettings = array(
719
  'required_type' => 'or',
720
  'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
721
  ),
 
 
 
 
 
 
 
 
 
 
722
  array(
723
  'type' =>'text',
724
  'name' =>"cnt_size",
@@ -886,17 +897,6 @@ $containerCommonSettings = array(
886
  'output_format'=>"background: %default%",
887
  'required' => array('background_type'=>'color')
888
  ),
889
- array(
890
- 'type' =>'color-picker',
891
- 'name' =>"color_picker",
892
- 'label' => esc_html__('Background Color','accelerated-mobile-pages'),
893
- 'tab' =>'customizer',
894
- 'default' =>'',
895
- 'content_type'=>'css',
896
- 'output_format'=>"background: %default%",
897
- 'required' => array('background_type'=>'color')
898
- ),
899
-
900
  /*array(
901
  'type' =>'checkbox',
902
  'name' =>"want_border",
141
  {{ifend_condition_check_for_brdr_1}}
142
  color: {{font_color_picker}};
143
  background-color: {{color_picker}};
144
+ {{if_selected_gradient}}{{selected_gradient}};{{ifend_selected_gradient}}
145
  margin: {{margin_css}};
146
  padding:{{padding_css}};
147
 
720
  'required_type' => 'or',
721
  'required' => array('background_type'=> array('video','mp4video','youtubevideo'))
722
  ),
723
+ array(
724
+ 'type' =>'gradient-selector',
725
+ 'name' =>"selected_gradient",
726
+ 'label' => esc_html__('Background Gradient', 'accelerated-mobile-pages'),
727
+ 'tab' =>'customizer',
728
+ 'default' =>'',
729
+ 'content_type'=>'css',
730
+ 'output_format'=>"%default%",
731
+ 'required' => array('background_type'=>'gradient')
732
+ ),
733
  array(
734
  'type' =>'text',
735
  'name' =>"cnt_size",
897
  'output_format'=>"background: %default%",
898
  'required' => array('background_type'=>'color')
899
  ),
 
 
 
 
 
 
 
 
 
 
 
900
  /*array(
901
  'type' =>'checkbox',
902
  'name' =>"want_border",
pagebuilder/inc/amppb_save_data.php CHANGED
@@ -29,14 +29,14 @@ function amppb_save_post( $post_id, $post ){
29
 
30
  /* == Save, Delete, or Update Page Builder Data == */
31
 
32
- $ampforwp_pagebuilder_enable = isset( $request['ampforwp_page_builder_enable'] ) ? $request['ampforwp_page_builder_enable'] : null;
33
  update_post_meta( $post_id, 'ampforwp_page_builder_enable', $ampforwp_pagebuilder_enable );
34
 
35
  /* Get (old) saved page builder data */
36
  $saved_data = get_post_meta( $post_id, 'amp-page-builder', true );
37
 
38
  /* Get new submitted data and sanitize it. */
39
- $submitted_data = isset( $request['amp-page-builder'] ) ? $request['amp-page-builder'] : null;
40
  $submitted_data = (str_replace(array("'","<script>","</script>"), array("&apos;","",""), $submitted_data));
41
  $submitted_data = wp_slash($submitted_data);
42
 
29
 
30
  /* == Save, Delete, or Update Page Builder Data == */
31
 
32
+ $ampforwp_pagebuilder_enable = isset( $request['ampforwp_page_builder_enable'] ) ? sanitize_text_field($request['ampforwp_page_builder_enable']) : null;
33
  update_post_meta( $post_id, 'ampforwp_page_builder_enable', $ampforwp_pagebuilder_enable );
34
 
35
  /* Get (old) saved page builder data */
36
  $saved_data = get_post_meta( $post_id, 'amp-page-builder', true );
37
 
38
  /* Get new submitted data and sanitize it. */
39
+ $submitted_data = isset( $request['amp-page-builder'] ) ? wp_kses_post($request['amp-page-builder']) : null;
40
  $submitted_data = (str_replace(array("'","<script>","</script>"), array("&apos;","",""), $submitted_data));
41
  $submitted_data = wp_slash($submitted_data);
42
 
pagebuilder/inc/viewShowFrontData.php CHANGED
@@ -537,7 +537,7 @@ function ampforwp_pb_autoCompileLess($css)
537
  if ( $m[2] == $m[4] ) {
538
  return $m[1].":".$m[2].";";
539
  }
540
- if(trim($parts[0])==trim($m[1])){
541
  return $m[1].":".$m[2].";";
542
  }else{
543
  return $m[1].":".$m[2]." ".$m[4].";";
537
  if ( $m[2] == $m[4] ) {
538
  return $m[1].":".$m[2].";";
539
  }
540
+ if(trim($m[0])==trim($m[1])){
541
  return $m[1].":".$m[2].";";
542
  }else{
543
  return $m[1].":".$m[2]." ".$m[4].";";
pagebuilder/modules/code-module.php CHANGED
@@ -21,11 +21,6 @@ function ampforwp_code_module_replacement($moduleFrontHtml,$moduleTemplate, $con
21
  }
22
  return $moduleFrontHtml;
23
  }
24
- function ampforwp_runCompleteCode($moduleFrontHtml){
25
- if(!empty($moduleFrontHtml)){
26
- return eval( "?>". $moduleFrontHtml . "<?php " );
27
- }
28
- }
29
 
30
  $output = '{{code_content}}';
31
  $css = '
21
  }
22
  return $moduleFrontHtml;
23
  }
 
 
 
 
 
24
 
25
  $output = '{{code_content}}';
26
  $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.2.2
7
- Stable tag: 0.9.98.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -189,46 +189,17 @@ You can contact us from [here](https://ampforwp.com/contact/)
189
 
190
  == Changelog ==
191
 
 
 
 
 
 
 
 
 
 
192
  = 0.9.98.1 (22nd July 2019) =
193
  * Fixed: Logo and headline comes togeather after .98 update #3472
194
  * Fixed: Default loading message as '1' in search bar after latest update (.98) #3476
195
 
196
- = 0.9.98 (19th July 2019) =
197
- * Improvements: Option to remove date from Homepage and also in Recent posts #3363
198
- * Improvements: Option for amp-youtube Embed video attributes in row module of AMP Pagebuilder #3373
199
- * Improvements: Menu sidebar background and elements color changing option for Design 1, 2 #3402
200
- * Improvements: MGID Ad support in AMP FOR WP #3431
201
- * Improvements: Sizes of featured image option for single 1 #3433
202
- * Improvements: Addthis floating share button feature in amp #3424
203
- * Improvements: Wistia Plugin Compatibility integrated #3386
204
- * Improvements: Squirrly SEO Compatibility integrated #3421
205
- * Improvements: image-slider compatibility added in AMP sanitizer #3422
206
- * Improvements: Compatability issue with ShortPixel Image Optimizer #3439
207
- * Improvements: Improve the Search form (Sidebar) design #3425
208
- * Improvements: AMP footer widget in design three #3411
209
- * Improvements: Extension list added for AMP Email Extension #3144
210
- * Improvements: Extension list added for Pinterest for AMP Extension #3195
211
- * Improvements: Extension list added for Liveblog For AMP Extension #3194
212
- * Fixed: Close menu button is not showing when a user comes from Google search #3401
213
- * Fixed: When High-resolution Images option is enabled images link should be generated from higher-order to lower-order in schema markup #3442
214
- * Fixed: Sticky Social Icons setting should be moved to Social Tab and some changes #3426
215
- * Fixed: Fall back the header type code in the backend if a user has not selected any header type #3419
216
- * Fixed: Revolution Slider not working perfectly when a user is inserting video #3311
217
- * Fixed: Call to action option should be automatically enabled if the user selected header type-2 #3420
218
- * Fixed: Double quotes on the author area #3441
219
- * Fixed: Twitter URL is displaying instead of an icon when Zox news theme is active #3409
220
- * Fixed: Extension code array issue #3438
221
- * Fixed: Validation error due to amp-facebook-like #3427
222
- * Fixed: Fatal error cannot redeclare is_amp_endpoint() (previously declared) #3415
223
- * Fixed: Sticky Social Icons and cookies banner style issue #3452
224
- * Fixed: Validation error the extension 'amp-next-page' was found on this page, but is unused please remove this extension #3463
225
- * Fixed: gallery/slider module is not working when Convert AMP to WP theme (Beta) option is enabled #2771
226
-
227
- = 0.9.97.65 (16th July 2019) =
228
- * Fixed: PHP Warning at the top of the site: array_merge(): Expected parameter 1 to be an array #3434
229
- * Fixed: Disqus comment is not working after version 0.9.97.63 #3446
230
- * Fixed: Uncaught Error: Call to undefined method WPSEO_Options::get() for Yoast Premium #3447
231
- * Fixed: Message: when Leverage Browser Caching is not supported #3449
232
- * Fixed: Added the missing parameter $depth in filter 'nav_menu_item_id' #3454
233
-
234
  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.2.2
7
+ Stable tag: 0.9.98.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
189
 
190
  == Changelog ==
191
 
192
+ = 0.9.98.2 (25nd July 2019) =
193
+ * Fixed: Menu design issue in Design 3 #3489
194
+ * Fixed: Fatal error when latest version of Smush pro plugin activated #3487
195
+ * Fixed: After Version 0.9.98 update, Background Type gradient options are not showing in Row module of AMP pagebuilder #3490
196
+ * Fixed: Undefined index ampforwp-amp-on-off #3474
197
+ * Fixed: Search bar is not showing in design three after enabling the search option in header option panel #3484
198
+ * Fixed: Content blank if Color Attribute is in Span tag #3497
199
+ * Fixed: Sticky Header has no background color when scrolling. #3498
200
+
201
  = 0.9.98.1 (22nd July 2019) =
202
  * Fixed: Logo and headline comes togeather after .98 update #3472
203
  * Fixed: Default loading message as '1' in search bar after latest update (.98) #3476
204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-2/style.php CHANGED
@@ -137,7 +137,7 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
137
  [class*=icono-]:after, [class*=icono-]:before { content: ''; pointer-events: none; }
138
  .icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
139
  [class*=icono-] { display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
140
- <?php if( true == ampforwp_get_setting('amp-design-1-search-feature') ) { ?>
141
  .icono-search { -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
142
  .icono-search { border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
143
  .searchform label{ color: #f7f7f7; display: block; font-size: 10px; letter-spacing: 0.3px; line-height: 0; opacity:0.6 }
137
  [class*=icono-]:after, [class*=icono-]:before { content: ''; pointer-events: none; }
138
  .icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
139
  [class*=icono-] { display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
140
+ <?php if( true == ampforwp_get_setting('amp-design-2-search-feature') ) { ?>
141
  .icono-search { -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%) }
142
  .icono-search { border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
143
  .searchform label{ color: #f7f7f7; display: block; font-size: 10px; letter-spacing: 0.3px; line-height: 0; opacity:0.6 }
templates/design-manager/design-3/style.php CHANGED
@@ -426,7 +426,7 @@ pre{ white-space: pre-wrap; }
426
  transform-origin: right center;*/
427
  }
428
  /* Sidebar */
429
- #sidebar[aria-hidden="false"]+#designthree { max-height: 100vh; overflow: hidden; animation: opening .3s normal forwards ease-in-out; -webkit-transform: translate3d(60%, 0, 0) scale(0.8); transform: translate3d(60%, 0, 0) scale(0.8); }
430
  @keyframes opening{ 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(60%, 0, 0) scale(0.8); } }
431
  @keyframes closing{ 0% { transform: translate3d(60%, 0, 0) scale(0.8); } 100% { transform: translate3d(0, 0, 0) scale(1); } }
432
  @keyframes closingFix{ 0% { max-height: 100vh; overflow: hidden; } 100% { max-height: none; overflow: visible; } }
@@ -457,9 +457,9 @@ pre{ white-space: pre-wrap; }
457
  .toast span{ opacity: 1; top: 24px; -webkit-transition: all ease-in-out .4s; transition: all ease-in-out .4s; }
458
  .toast:before{ top: 17px; }
459
  .toast:after{ top: 31px; }
460
- #sidebar[aria-hidden="false"]+#designthree .toast span{ opacity: 0; -webkit-transform: translate3d(200%, 0, 0); transform: translate3d(200%, 0, 0); }
461
- #sidebar[aria-hidden="false"]+#designthree .toast:before{ -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate(43deg); transform: rotate(43deg); }
462
- #sidebar[aria-hidden="false"]+#designthree .toast:after{ -webkit-transform-origin: left top; transform-origin: left top; -webkit-transform: rotate(-43deg); transform: rotate(-43deg); }
463
 
464
  /* CSS3 icon */
465
  [class*=icono-]{ display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
@@ -469,7 +469,7 @@ pre{ white-space: pre-wrap; }
469
  .icono-share:after, .icono-share:before{ position: absolute; width: 24px; height: 1px; box-shadow: inset 0 0 0 32px; left: 0; }
470
  .icono-share:before{ top: 0px; -webkit-transform: rotate(-25deg); -ms-transform: rotate(-25deg); transform: rotate(-25deg); }
471
  .icono-share:after{ top: 8px; -webkit-transform: rotate(25deg); -ms-transform: rotate(25deg); transform: rotate(25deg); }
472
- <?php if( true == ampforwp_get_setting('amp-design-1-search-feature') ) { ?>
473
  .icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
474
  .icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
475
  .closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
@@ -561,7 +561,7 @@ amp-sidebar { direction: rtl; }
561
  amp-carousel{direction: ltr;}
562
 
563
  /** Sidebar RTL CSS ***/
564
- #sidebar[aria-hidden="false"]+#designthree {
565
  max-height: 100vh;
566
  overflow: hidden;
567
  animation: opening .3s normal forwards ease-in-out;
426
  transform-origin: right center;*/
427
  }
428
  /* Sidebar */
429
+ #sidebar[open]+#designthree { max-height: 100vh; overflow: hidden; animation: opening .3s normal forwards ease-in-out; -webkit-transform: translate3d(60%, 0, 0) scale(0.8); transform: translate3d(60%, 0, 0) scale(0.8); }
430
  @keyframes opening{ 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(60%, 0, 0) scale(0.8); } }
431
  @keyframes closing{ 0% { transform: translate3d(60%, 0, 0) scale(0.8); } 100% { transform: translate3d(0, 0, 0) scale(1); } }
432
  @keyframes closingFix{ 0% { max-height: 100vh; overflow: hidden; } 100% { max-height: none; overflow: visible; } }
457
  .toast span{ opacity: 1; top: 24px; -webkit-transition: all ease-in-out .4s; transition: all ease-in-out .4s; }
458
  .toast:before{ top: 17px; }
459
  .toast:after{ top: 31px; }
460
+ #sidebar[open]+#designthree .toast span{ opacity: 0; -webkit-transform: translate3d(200%, 0, 0); transform: translate3d(200%, 0, 0); }
461
+ #sidebar[open]+#designthree .toast:before{ -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate(43deg); transform: rotate(43deg); }
462
+ #sidebar[open]+#designthree .toast:after{ -webkit-transform-origin: left top; transform-origin: left top; -webkit-transform: rotate(-43deg); transform: rotate(-43deg); }
463
 
464
  /* CSS3 icon */
465
  [class*=icono-]{ display: inline-block; vertical-align: middle; position: relative; font-style: normal; color: #f42; text-align: left; text-indent: -9999px; direction: ltr }
469
  .icono-share:after, .icono-share:before{ position: absolute; width: 24px; height: 1px; box-shadow: inset 0 0 0 32px; left: 0; }
470
  .icono-share:before{ top: 0px; -webkit-transform: rotate(-25deg); -ms-transform: rotate(-25deg); transform: rotate(-25deg); }
471
  .icono-share:after{ top: 8px; -webkit-transform: rotate(25deg); -ms-transform: rotate(25deg); transform: rotate(25deg); }
472
+ <?php if( true == ampforwp_get_setting('amp-design-3-search-feature') ) { ?>
473
  .icono-search{ border: 1px solid; width: 10px; height: 10px; border-radius: 50%; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); margin: 4px 4px 8px 8px; }
474
  .icono-search:before{ position: absolute; left: 50%; -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); width: 2px; height: 9px; box-shadow: inset 0 0 0 32px; top: 0px; border-radius: 0 0 1px 1px; left: 14px; }
475
  .closebutton{ background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 30px; width: 32px; height: 32px; font-size: 12px; text-align: center; position: absolute; top: 12px; right: 20px; outline:none }
561
  amp-carousel{direction: ltr;}
562
 
563
  /** Sidebar RTL CSS ***/
564
+ #sidebar[open]+#designthree {
565
  max-height: 100vh;
566
  overflow: hidden;
567
  animation: opening .3s normal forwards ease-in-out;
templates/design-manager/swift/style.php CHANGED
@@ -9,6 +9,9 @@ if(!defined('AMPFORWP_LAYOUTS_FILE')){
9
  $header_bg_color = 'rgba(255,255,255,1)';
10
  }
11
  }
 
 
 
12
  $ampforwp_font_icon = ampforwp_get_setting('ampforwp_font_icon');
13
  if ( empty($ampforwp_font_icon) ) {
14
  $ampforwp_font_icon = 'swift-icons';
@@ -54,6 +57,7 @@ pre{ white-space: pre-wrap;}
54
  .left{float:left}
55
  .right{float:right}
56
  .hidden, .hide, .logo .hide{ display:none }
 
57
  .clearfix{ clear:both }
58
  blockquote{ background: #f1f1f1; margin: 10px 0 20px 0; padding: 15px;}
59
  blockquote p:last-child {margin-bottom: 0;}
9
  $header_bg_color = 'rgba(255,255,255,1)';
10
  }
11
  }
12
+ if ( empty($header_bg_color)) {
13
+ $header_bg_color = 'rgba(255,255,255,1)';
14
+ }
15
  $ampforwp_font_icon = ampforwp_get_setting('ampforwp_font_icon');
16
  if ( empty($ampforwp_font_icon) ) {
17
  $ampforwp_font_icon = 'swift-icons';
57
  .left{float:left}
58
  .right{float:right}
59
  .hidden, .hide, .logo .hide{ display:none }
60
+ .screen-reader-text {border: 0;clip: rect(1px, 1px, 1px, 1px);clip-path: inset(50%);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;word-wrap: normal;}
61
  .clearfix{ clear:both }
62
  blockquote{ background: #f1f1f1; margin: 10px 0 20px 0; padding: 15px;}
63
  blockquote p:last-child {margin-bottom: 0;}
templates/features.php CHANGED
@@ -706,8 +706,6 @@ function ampforwp_new_dir( $dir ) {
706
  $content = preg_replace('/<iframe .*(https?).*(\/\/api\.soundcloud\.com\/tracks\/)([0-9]+)(.*)<\/iframe>/', "$1:$2$3", $content);
707
  // for readability attibute in div tag
708
  $content = preg_replace('/readability=[^>]*/', '', $content);
709
- // removing color from span tag
710
- $content = preg_replace('/<span(.*?)(color=".*?")(.*?)>/', '<span$1$3>', $content);
711
  // removing sl-processed attribute
712
  $content = preg_replace('/(<[^>]+) sl-processed=".*?"/', '$1', $content);
713
  // ga-on
@@ -794,6 +792,9 @@ function ampforwp_title_callback( $post ) {
794
  global $redux_builder_amp;
795
  wp_nonce_field( basename( __FILE__ ), 'ampforwp_title_nonce' );
796
  $ampforwp_stored_meta = get_post_meta( $post->ID );
 
 
 
797
  $preview_query_args = array();
798
  $preview_link = $list_of_posts = $skip_this_post = '';
799
  $preview_query_args = array(AMPFORWP_AMP_QUERY_VAR => 1);
706
  $content = preg_replace('/<iframe .*(https?).*(\/\/api\.soundcloud\.com\/tracks\/)([0-9]+)(.*)<\/iframe>/', "$1:$2$3", $content);
707
  // for readability attibute in div tag
708
  $content = preg_replace('/readability=[^>]*/', '', $content);
 
 
709
  // removing sl-processed attribute
710
  $content = preg_replace('/(<[^>]+) sl-processed=".*?"/', '$1', $content);
711
  // ga-on
792
  global $redux_builder_amp;
793
  wp_nonce_field( basename( __FILE__ ), 'ampforwp_title_nonce' );
794
  $ampforwp_stored_meta = get_post_meta( $post->ID );
795
+ if(!isset($ampforwp_stored_meta['ampforwp-amp-on-off'])){
796
+ $ampforwp_stored_meta['ampforwp-amp-on-off'][0] = 'default';
797
+ }
798
  $preview_query_args = array();
799
  $preview_link = $list_of_posts = $skip_this_post = '';
800
  $preview_query_args = array(AMPFORWP_AMP_QUERY_VAR => 1);