AMP for WP – Accelerated Mobile Pages - Version 0.9.98.18

Version Description

(21th November 2019) = * Improvement: Show the number of shares with Sassy Social Share #3588 * Fixed: Need to improvment in table code #3664 * Fixed: Change internal links to AMP is not working when custom permalink having the extenison.html #3811 * Fixed: Width of the recent posts and related posts thumbnail image should be same #3639 * Fixed: Page should be full width if the page builder is used #3756 * Fixed: Remove broken link on source code like "." #3697 * Fixed: leave a comment added when making pages with pagebuilder #3755 * Fixed: Need to adding gaping for col 2 in AMP Pagebuilder #3796 * Fixed: CSS issue. #3785 * Fixed: Facebook comment is not changing language when we select another language #3710 * Fixed: Verify button of Google Font API key is not working after update #3858 * Fixed: Cache is not clearing after clicking clear cache button #3863

Download this release

Release Info

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

Code changes from version 0.9.98.17 to 0.9.98.18

Files changed (41) hide show
  1. README.md +16 -1
  2. accelerated-moblie-pages.php +2 -2
  3. changelog.txt +14 -0
  4. classes/class-ampforwp-fields.php +3 -4
  5. components/comments/comments.php +2 -3
  6. components/components-core.php +4 -1
  7. includes/admin-script.js +6 -2
  8. includes/features/functions.php +38 -1
  9. includes/options/redux-core/assets/js/redux.js +7 -1
  10. includes/options/redux-core/assets/js/redux.min.js +1 -2
  11. includes/sassy-style.css +1 -0
  12. includes/thirdparty-compatibility.php +0 -8
  13. pagebuilder/inc/viewShowFrontData.php +8 -0
  14. pagebuilder/modules/contents-module.php +49 -23
  15. pagebuilder/modules/feature-mod-module.php +14 -15
  16. readme.txt +15 -5
  17. templates/design-manager/design-1/404.php +1 -1
  18. templates/design-manager/design-1/archive.php +1 -1
  19. templates/design-manager/design-1/elements/content.php +1 -1
  20. templates/design-manager/design-1/index.php +1 -1
  21. templates/design-manager/design-1/search.php +1 -1
  22. templates/design-manager/design-1/single.php +1 -1
  23. templates/design-manager/design-1/style.php +4 -2
  24. templates/design-manager/design-2/404.php +1 -1
  25. templates/design-manager/design-2/archive.php +1 -1
  26. templates/design-manager/design-2/elements/content.php +1 -1
  27. templates/design-manager/design-2/index.php +1 -1
  28. templates/design-manager/design-2/search.php +1 -1
  29. templates/design-manager/design-2/single.php +1 -1
  30. templates/design-manager/design-2/style.php +9 -1
  31. templates/design-manager/design-3/404.php +1 -1
  32. templates/design-manager/design-3/archive.php +1 -1
  33. templates/design-manager/design-3/elements/content.php +1 -1
  34. templates/design-manager/design-3/index.php +1 -1
  35. templates/design-manager/design-3/search.php +1 -1
  36. templates/design-manager/design-3/single.php +1 -1
  37. templates/design-manager/design-3/style.php +4 -1
  38. templates/design-manager/swift/page.php +1 -1
  39. templates/design-manager/swift/single.php +1 -1
  40. templates/design-manager/swift/style.php +18 -12
  41. templates/features.php +22 -11
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.3
7
- Stable tag: 0.9.98.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,21 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  = 0.9.98.17 (19th November 2019) =
195
  * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
196
  * Fixed: Logo is not resizing when using fixed width #3696
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.3
7
+ Stable tag: 0.9.98.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
191
 
192
  == Changelog ==
193
 
194
+
195
+ = 0.9.98.18 (21th November 2019) =
196
+ * Improvement: Show the number of shares with Sassy Social Share #3588
197
+ * Fixed: Need to improvment in table code #3664
198
+ * Fixed: Change internal links to AMP is not working when custom permalink having the extenison.html #3811
199
+ * Fixed: Width of the recent posts and related posts thumbnail image should be same #3639
200
+ * Fixed: Page should be full width if the page builder is used #3756
201
+ * Fixed: Remove broken link on source code like - link rel="dns-prefetch" #3697
202
+ * Fixed: leave a comment added when making pages with pagebuilder #3755
203
+ * Fixed: Need to adding gaping for col 2 in AMP Pagebuilder #3796
204
+ * Fixed: CSS issue. #3785
205
+ * Fixed: Facebook comment is not changing language when we select another language #3710
206
+ * Fixed: Verify button of Google Font API key is not working after update #3858
207
+ * Fixed: Cache is not clearing after clicking clear cache button #3863
208
+
209
  = 0.9.98.17 (19th November 2019) =
210
  * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
211
  * Fixed: Logo is not resizing when using fixed width #3696
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.17
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.17');
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: 0.9.98.18
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.18');
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,19 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 0.9.98.17 (19th November 2019) =
4
  * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
5
  * Fixed: Logo is not resizing when using fixed width #3696
1
  == Changelog ==
2
 
3
+ = 0.9.98.18 (21th November 2019) =
4
+ * Improvement: Show the number of shares with Sassy Social Share #3588
5
+ * Fixed: Need to improvment in table code #3664
6
+ * Fixed: Change internal links to AMP is not working when custom permalink having the extenison.html #3811
7
+ * Fixed: Width of the recent posts and related posts thumbnail image should be same #3639
8
+ * Fixed: Page should be full width if the page builder is used #3756
9
+ * Fixed: Remove broken link on source code like "<link rel="dns-prefetch" href="https://cdn.ampproject.org">." #3697
10
+ * Fixed: leave a comment added when making pages with pagebuilder #3755
11
+ * Fixed: Need to adding gaping for col 2 in AMP Pagebuilder #3796
12
+ * Fixed: CSS issue. #3785
13
+ * Fixed: Facebook comment is not changing language when we select another language #3710
14
+ * Fixed: Verify button of Google Font API key is not working after update #3858
15
+ * Fixed: Cache is not clearing after clicking clear cache button #3863
16
+
17
  = 0.9.98.17 (19th November 2019) =
18
  * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
19
  * Fixed: Logo is not resizing when using fixed width #3696
classes/class-ampforwp-fields.php CHANGED
@@ -250,11 +250,11 @@ class AMPforWP_Fields
250
  $required = 'required='.esc_attr($this->required[0]);
251
  $hide = ' hide';
252
  }
253
- $output = '<div class="ux-field-container amp-ux-select-container '.esc_attr($hide).'">';
254
  if ( !empty($this->title) ) {
255
  $output .= '<h2 class="'.esc_attr($this->element_class).'">'.esc_html__($this->title).'</h2>';
256
  }
257
- $output .= '<select id="'.esc_attr($this->id).'" class="'.esc_attr($this->class).'" '.esc_attr($required).' '.esc_attr($this->data_href).'>';
258
  if ( !empty($this->options) ) {
259
  foreach ( $this->options as $option_key => $option_value ) {
260
  if( $option_key == $this->default ) {
@@ -303,8 +303,7 @@ class AMPforWP_Fields
303
  $lbl_cls = 'class="'.esc_attr($fields['label-class']).'"';
304
  }
305
 
306
- $output = '<div class="ux-field-container amp-ux-checkbox-container '.esc_attr($hide).' '.esc_attr($this->parent_class).'">
307
- <label '.$lbl_cls.'><input type="checkbox" class="'.esc_attr($this->class).'" id="'.esc_attr($this->id).'" '.esc_attr($required).' ' . esc_attr($checked).'>'.esc_html__($this->title, 'accelerated-mobile-pages').'</label></div>';
308
  echo $output;
309
  }
310
  public function ampforwp_field_switch($fields){
250
  $required = 'required='.esc_attr($this->required[0]);
251
  $hide = ' hide';
252
  }
253
+ $output = '<div class="ux-field-container amp-ux-select-container '.$hide.'" '.esc_attr($required).'>';
254
  if ( !empty($this->title) ) {
255
  $output .= '<h2 class="'.esc_attr($this->element_class).'">'.esc_html__($this->title).'</h2>';
256
  }
257
+ $output .= '<select id="'.$this->id.'" class="'.$this->class.'" '.$this->data_href.'>';
258
  if ( !empty($this->options) ) {
259
  foreach ( $this->options as $option_key => $option_value ) {
260
  if( $option_key == $this->default ) {
303
  $lbl_cls = 'class="'.esc_attr($fields['label-class']).'"';
304
  }
305
 
306
+ $output = '<div class="ux-field-container amp-ux-checkbox-container '.esc_attr($hide).' '.esc_attr($required).'"><label><input type="checkbox" class="'.esc_attr($this->class).'" id="'.esc_attr($this->id).'" ' . esc_attr($checked).'>'.esc_html__($this->title).'</label></div>';
 
307
  echo $output;
308
  }
309
  public function ampforwp_field_switch($fields){
components/comments/comments.php CHANGED
@@ -129,8 +129,7 @@ function ampforwp_framework_get_comments(){
129
  function ampforwp_framework_get_facebook_comments(){
130
  global $redux_builder_amp;
131
  $facebook_comments_markup = $lang = $locale = '';
132
- $lang = $redux_builder_amp['ampforwp-fb-comments-lang'];
133
- $locale = 'data-locale = "'.$lang.'"';
134
  if ( $redux_builder_amp['ampforwp-facebook-comments-support'] ) {
135
  if( ampforwp_is_non_amp() && isset($redux_builder_amp['ampforwp-amp-convert-to-wp']) && $redux_builder_amp['ampforwp-amp-convert-to-wp']) {
136
  $facebook_comments_markup = '<div class="fb-comments" data-href="' . get_permalink() . '" data-width="800px" data-numposts="'.$redux_builder_amp['ampforwp-number-of-fb-no-of-comments'].'"></div>';
@@ -138,7 +137,7 @@ global $redux_builder_amp;
138
  else {
139
  $facebook_comments_markup = '<section class="amp-facebook-comments">';
140
  $facebook_comments_markup .= '<amp-facebook-comments width=486 height=357
141
- layout="responsive" '. esc_attr($locale) .' data-numposts=';
142
  $facebook_comments_markup .= '"'. esc_attr($redux_builder_amp['ampforwp-number-of-fb-no-of-comments']). '"';
143
  if(ampforwp_get_data_consent()){
144
  $facebook_comments_markup .= ' data-block-on-consent ';
129
  function ampforwp_framework_get_facebook_comments(){
130
  global $redux_builder_amp;
131
  $facebook_comments_markup = $lang = $locale = '';
132
+ $lang = ampforwp_get_setting('ampforwp-fb-comments-lang');
 
133
  if ( $redux_builder_amp['ampforwp-facebook-comments-support'] ) {
134
  if( ampforwp_is_non_amp() && isset($redux_builder_amp['ampforwp-amp-convert-to-wp']) && $redux_builder_amp['ampforwp-amp-convert-to-wp']) {
135
  $facebook_comments_markup = '<div class="fb-comments" data-href="' . get_permalink() . '" data-width="800px" data-numposts="'.$redux_builder_amp['ampforwp-number-of-fb-no-of-comments'].'"></div>';
137
  else {
138
  $facebook_comments_markup = '<section class="amp-facebook-comments">';
139
  $facebook_comments_markup .= '<amp-facebook-comments width=486 height=357
140
+ layout="responsive" '.'data-locale = "'.esc_attr($lang).'"'.' data-numposts=';
141
  $facebook_comments_markup .= '"'. esc_attr($redux_builder_amp['ampforwp-number-of-fb-no-of-comments']). '"';
142
  if(ampforwp_get_data_consent()){
143
  $facebook_comments_markup .= ' data-block-on-consent ';
components/components-core.php CHANGED
@@ -373,7 +373,7 @@ function amp_header_core(){
373
  <head>
374
  <meta charset="utf-8">
375
  <?php do_action('amp_experiment_meta', $thisTemplate); ?>
376
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
377
  <?php do_action( 'amp_meta', $thisTemplate ); ?>
378
  <?php
379
  if(ampforwp_amp_nonamp_convert("", "check")){
@@ -569,6 +569,9 @@ function amp_content($post_id= ''){
569
  $ampforwp_the_content = $sanitizer_obj->get_amp_content();
570
  }
571
  }
 
 
 
572
  $ampforwp_the_content = apply_filters('ampforwp_modify_the_content',$ampforwp_the_content);
573
  echo $ampforwp_the_content; // amphtml content, no kses
574
  do_action('ampforwp_after_post_content',$thisTemplate);
373
  <head>
374
  <meta charset="utf-8">
375
  <?php do_action('amp_experiment_meta', $thisTemplate); ?>
376
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
377
  <?php do_action( 'amp_meta', $thisTemplate ); ?>
378
  <?php
379
  if(ampforwp_amp_nonamp_convert("", "check")){
569
  $ampforwp_the_content = $sanitizer_obj->get_amp_content();
570
  }
571
  }
572
+ if(function_exists('ampforwp_sassy_share_icons')){
573
+ $ampforwp_the_content = ampforwp_sassy_share_icons($ampforwp_the_content);
574
+ }
575
  $ampforwp_the_content = apply_filters('ampforwp_modify_the_content',$ampforwp_the_content);
576
  echo $ampforwp_the_content; // amphtml content, no kses
577
  do_action('ampforwp_after_post_content',$thisTemplate);
includes/admin-script.js CHANGED
@@ -690,9 +690,13 @@ jQuery(document).ready(function($){
690
  jQuery.post(ajaxurl, notice, function(response) {
691
  });
692
  });
 
 
 
 
 
693
  $('#ampforwp-clear-clearcss-data').click(function(e){
694
- if(redux_data.ampforwp_css_tree_shaking == '0')
695
- return true;
696
  $('#ampforwp-clear-clcss-msg').text(' Please wait').css({'line-height':'25px'});
697
  var datastr = {
698
  'action': 'ampforwp_clear_css_tree_shaking',
690
  jQuery.post(ajaxurl, notice, function(response) {
691
  });
692
  });
693
+
694
+ if(redux_data.ampforwp_css_tree_shaking == '0'){
695
+ jQuery('#ampforwp-clear-clearcss-data').addClass('hide');
696
+ jQuery('#ampforwp-clear-clcss-msg').html('Please Save Before clearing Cache');
697
+ }
698
  $('#ampforwp-clear-clearcss-data').click(function(e){
699
+ $('#ampforwp-clear-clcss-msg').removeClass('hide');
 
700
  $('#ampforwp-clear-clcss-msg').text(' Please wait').css({'line-height':'25px'});
701
  var datastr = {
702
  'action': 'ampforwp_clear_css_tree_shaking',
includes/features/functions.php CHANGED
@@ -488,7 +488,7 @@ if(!function_exists('ampforwp_findInternalUrl')){
488
  $skip_media_extensions = array('jpg','jpeg','gif','png');
489
 
490
  if ( isset( $get_skip_media_path['extension'] ) ){
491
- if (! in_array( $get_skip_media_path['extension'], $skip_media_extensions ) ){
492
  $skip_media_extensions[] = $get_skip_media_path['extension'];
493
  }
494
  }
@@ -1188,4 +1188,41 @@ if( ! function_exists( 'ampforwp_additional_style_carousel_caption' ) ){
1188
  return false;
1189
  }
1190
  return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191
  }
488
  $skip_media_extensions = array('jpg','jpeg','gif','png');
489
 
490
  if ( isset( $get_skip_media_path['extension'] ) ){
491
+ if (! in_array( $get_skip_media_path['extension'], $skip_media_extensions ) && !strpos(get_option( 'permalink_structure' ), $get_skip_media_path['extension'])){
492
  $skip_media_extensions[] = $get_skip_media_path['extension'];
493
  }
494
  }
1188
  return false;
1189
  }
1190
  return true;
1191
+ }
1192
+ if(!function_exists('ampforwp_sassy_share_icons')){
1193
+ function ampforwp_sassy_share_icons($ampforwp_the_content) {
1194
+ if(function_exists('heateor_sss_run')){
1195
+ global $heateor_sss;global $post;
1196
+ $share_counts = false;
1197
+ $sassy_options = $heateor_sss->options;
1198
+ $post_url = get_the_permalink($post);
1199
+ if(isset($sassy_options['horizontal_counts'])){
1200
+ $post_id = ampforwp_get_the_ID();
1201
+ if ( $post_id == 'custom' ) {
1202
+ $share_counts = get_option( 'heateor_sss_custom_url_shares' ) ;
1203
+ } elseif ( $post_url == home_url() ) {
1204
+ $share_counts = get_option( 'heateor_sss_homepage_shares' );
1205
+ } elseif ( $post_id > 0 ) {
1206
+ $share_counts = get_post_meta( $post_id, '_heateor_sss_shares_meta', true );
1207
+ }
1208
+ $total_share = 0;
1209
+ if(isset($sassy_options['horizontal_re_providers'])){
1210
+ $share_icons = $sassy_options['horizontal_re_providers'];
1211
+ foreach($share_icons as $i){
1212
+ if(isset($share_counts[$i])){
1213
+ $total_share += round($share_counts[$i]);
1214
+ }
1215
+ }
1216
+ }
1217
+ $_append = '<a class="heateor_sss_amp heateor-total-share-count">
1218
+ <span class="sss_share_count">'.intval($total_share).'</span> <span class="sss_share_lbl">Shares</span></a>';
1219
+ preg_match_all('/<div class="heateorSssClear"><\/div><div class="heateor_sss_sharing_container (.*)">(.*)<div class="heateorSssClear"><\/div><\/div><div class="heateorSssClear"><\/div>/', $ampforwp_the_content, $matches);
1220
+
1221
+ $_actual = $matches[0];
1222
+ $_replace = '<div class="heateorSssClear"></div><div class="heateor_sss_sharing_container '.$matches[1][0].'"></amp-img></a>'.$_append.'</div><div class="heateorSssClear"></div><div class="heateorSssClear"></div>';
1223
+ $ampforwp_the_content = str_replace($_actual, $_replace, $ampforwp_the_content);
1224
+ }
1225
+ }
1226
+ return $ampforwp_the_content;
1227
+ }
1228
  }
includes/options/redux-core/assets/js/redux.js CHANGED
@@ -125,7 +125,13 @@
125
  //redux.defaults = response.defaults;
126
  redux.errors = response.errors;
127
  redux.warnings = response.warnings;
128
-
 
 
 
 
 
 
129
  $notification_bar.html( response.notification_bar ).slideDown( 'fast' );
130
  if ( response.errors !== null || response.warnings !== null ) {
131
  $.redux.notices();
125
  //redux.defaults = response.defaults;
126
  redux.errors = response.errors;
127
  redux.warnings = response.warnings;
128
+ if(redux.options.ampforwp_css_tree_shaking == '1') {
129
+ jQuery('#ampforwp-clear-clearcss-data').removeClass('hide');
130
+ jQuery('#ampforwp-clear-clcss-msg').addClass('hide');
131
+ } else{
132
+ jQuery('#ampforwp-clear-clearcss-data').addClass('hide');
133
+ jQuery('#ampforwp-clear-clcss-msg').removeClass('hide');
134
+ }
135
  $notification_bar.html( response.notification_bar ).slideDown( 'fast' );
136
  if ( response.errors !== null || response.warnings !== null ) {
137
  $.redux.notices();
includes/options/redux-core/assets/js/redux.min.js CHANGED
@@ -1,2 +1 @@
1
- function redux_change(a){jQuery("body").trigger("check_dependencies",a),a.hasClass("compiler")&&jQuery("#redux-compiler-hook").val(1);var b=jQuery(a).parents(".redux-container:first"),c=jQuery(a).closest(".redux-group-tab").attr("id"),d=c.split("_");d=d[0];var e=b.find('.redux-group-tab-link-a[data-key="'+d+'"]').parents(".redux-group-tab-link-li:first"),f=jQuery("#"+c+"_li").parents(".hasSubSections:first");if(jQuery(a).parents("fieldset.redux-field:first").hasClass("redux-field-error")){jQuery(a).parents("fieldset.redux-field:first").removeClass("redux-field-error"),jQuery(a).parent().find(".redux-th-error").slideUp();var g=parseInt(b.find(".redux-field-errors span").text())-1;if(0>=g)jQuery("#"+c+"_li .redux-menu-error").fadeOut("fast").remove(),jQuery("#"+c+"_li .redux-group-tab-link-a").removeClass("hasError"),jQuery("#"+c+"_li").parents(".inside:first").find(".redux-field-errors").slideUp(),jQuery(a).parents(".redux-container:first").find(".redux-field-errors").slideUp(),jQuery("#redux_metaboxes_errors").slideUp();else{var h=parseInt(e.find(".redux-menu-error:first").text())-1;0>=h?e.find(".redux-menu-error:first").fadeOut().remove():e.find(".redux-menu-error:first").text(h),b.find(".redux-field-errors span").text(g)}0!==f.length&&0===f.find(".redux-menu-error").length&&f.find(".hasError").removeClass("hasError")}if(jQuery(a).parents("fieldset.redux-field:first").hasClass("redux-field-warning")){jQuery(a).parents("fieldset.redux-field:first").removeClass("redux-field-warning"),jQuery(a).parent().find(".redux-th-warning").slideUp();var i=parseInt(b.find(".redux-field-warnings span").text())-1;if(0>=i)jQuery("#"+c+"_li .redux-menu-warning").fadeOut("fast").remove(),jQuery("#"+c+"_li .redux-group-tab-link-a").removeClass("hasWarning"),jQuery("#"+c+"_li").parents(".inside:first").find(".redux-field-warnings").slideUp(),jQuery(a).parents(".redux-container:first").find(".redux-field-warnings").slideUp(),jQuery("#redux_metaboxes_warnings").slideUp();else{var j=parseInt(e.find(".redux-menu-warning:first").text())-1;0>=j?e.find(".redux-menu-warning:first").fadeOut().remove():e.find(".redux-menu-warning:first").text(j),b.find(".redux-field-warning span").text(i)}0!==f.length&&0===f.find(".redux-menu-warning").length&&f.find(".hasWarning").removeClass("hasWarning")}return b.find(".saved_notice:visible").length>0?void 0:redux.customizer?void redux.customizer.save(a,b,c):void(redux.args.disable_save_warn||(b.find(".redux-save-warn").slideDown(),window.onbeforeunload=confirmOnPageExit))}function colorValidate(a){var b=jQuery(a).val(),c=colorNameToHex(b);return c!==b.replace("#","")?c:b}function colorNameToHex(a){var b=a.replace(/^\s\s*/,"").replace(/\s\s*$/,"").replace("#",""),c={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",redux:"#01a3e3",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==c[b.toLowerCase()]?c[b.toLowerCase()]:a}function redux_hook(a,b,c,d){!function(e){a[b]=function(){d===!0&&c.apply(this,[a,e,arguments]);var a=e.apply(this,arguments);return d!==!0&&c.apply(this,[a,e,arguments]),a}}(a[b])}!function(a){"function"==typeof define&&define.amd?jQueryCookie.define(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}}),function(a){a.fn.typeWatch=function(b){function c(b,c){var d=a(b.el).val();(d.length>=f.captureLength&&d.toUpperCase()!=b.text||c&&d.length>=f.captureLength)&&(b.text=d.toUpperCase(),b.cb.call(b.el,d))}function d(b){var d=b.type.toUpperCase();if(a.inArray(d,f.inputTypes)>=0){var e={timer:null,text:a(b).val().toUpperCase(),cb:f.callback,el:b,wait:f.wait};f.highlight&&a(b).focus(function(){this.select()});var g=function(b){var d=e.wait,g=!1,h=this.type.toUpperCase();"undefined"!=typeof b.keyCode&&13==b.keyCode&&"TEXTAREA"!=h&&a.inArray(h,f.inputTypes)>=0&&(d=1,g=!0);var i=function(){c(e,g)};clearTimeout(e.timer),e.timer=setTimeout(i,d)};a(b).on("keydown paste cut input",g)}}var e=["TEXT","TEXTAREA","PASSWORD","TEL","SEARCH","URL","EMAIL","DATETIME","DATE","MONTH","WEEK","TIME","DATETIME-LOCAL","NUMBER","RANGE"],f=a.extend({wait:750,callback:function(){},highlight:!0,captureLength:2,inputTypes:e},b);return this.each(function(){d(this)})}}(jQuery),function(a){a.fn.serializeForm=function(){if(this.length<1)return!1;var b={},c=b,d=':input[type!="checkbox"][type!="radio"], input:checked',e=function(){if(!this.disabled){var d=this.name.replace(/\[([^\]]+)?\]/g,",$1").split(","),e=d.length-1,f=a(this);if(d[0]){for(var g=0;e>g;g++)c=c[d[g]]=c[d[g]]||(""===d[g+1]||"0"===d[g+1]?[]:{});void 0!==c.length?c.push(f.val()):c[d[e]]=f.val(),c=b}}};return this.filter(d).each(e),this.find(d).each(e),b}}(jQuery),function(a){function b(){var a="!@#$%^&*()+=[]\\';,/{}|\":<>?~`.-_";return a+=" "}function c(){var a="¬€£¦";return a}function d(b,c,d){b.each(function(){var b=a(this);b.bind("keyup change paste",function(a){var e="";a.originalEvent&&a.originalEvent.clipboardData&&a.originalEvent.clipboardData.getData&&(e=a.originalEvent.clipboardData.getData("text/plain")),setTimeout(function(){h(b,c,d,e)},0)}),b.bind("keypress",function(a){var e=a.charCode?a.charCode:a.which;if(!(g(e)||a.ctrlKey||a.metaKey)){var f=String.fromCharCode(e),h=b.selection(),i=h.start,j=h.end,k=b.val(),l=k.substring(0,i)+f+k.substring(j),m=c(l,d);m!=l&&a.preventDefault()}})})}function e(b,c){var d=parseFloat(a(b).val()),e=a(b);return isNaN(d)?void e.val(""):(f(c.min)&&d<c.min&&e.val(""),void(f(c.max)&&d>c.max&&e.val("")))}function f(a){return!isNaN(a)}function g(a){return a>=32?!1:10==a?!1:13==a?!1:!0}function h(a,b,c,d){var e=a.val();""==e&&d.length>0&&(e=d);var f=b(e,c);if(e!=f){var g=a.alphanum_caret();a.val(f),e.length==f.length+1?a.alphanum_caret(g-1):a.alphanum_caret(g)}}function i(b,c){"undefined"==typeof c&&(c=D);var d,e={};return d="string"==typeof b?F[b]:"undefined"==typeof b?{}:b,a.extend(e,c,d),"undefined"==typeof e.blacklist&&(e.blacklistSet=x(e.allow,e.disallow)),e}function j(b){var c,d={};return c="string"==typeof b?G[b]:"undefined"==typeof b?{}:b,a.extend(d,E,c),d}function k(a,b,c){return c.maxLength&&a.length>=c.maxLength?!1:c.allow.indexOf(b)>=0?!0:c.allowSpace&&" "==b?!0:c.blacklistSet.contains(b)?!1:!c.allowNumeric&&K[b]?!1:!c.allowUpper&&u(b)?!1:!c.allowLower&&v(b)?!1:!c.allowCaseless&&w(b)?!1:!c.allowLatin&&L.contains(b)?!1:c.allowOtherCharSets?!0:K[b]||L.contains(b)?!0:!1}function l(a,b,c){if(K[b])return n(a,c)?!1:p(a,c)?!1:o(a,c)?!1:q(a+b,c)?!1:r(a+b,c)?!1:!0;if(c.allowPlus&&"+"==b&&""==a)return!0;if(c.allowMinus&&"-"==b&&""==a)return!0;if(b==I&&c.allowThouSep&&A(a,b))return!0;if(b==J){if(a.indexOf(J)>=0)return!1;if(c.allowDecSep)return!0}return!1}function m(a){return a+="",a.replace(/[^0-9]/g,"").length}function n(a,b){var c=b.maxDigits;if(""==c||isNaN(c))return!1;var d=m(a);return d>=c?!0:!1}function o(a,b){var c=b.maxDecimalPlaces;if(""==c||isNaN(c))return!1;var d=a.indexOf(J);if(-1==d)return!1;var e=a.substring(d),f=m(e);return f>=c?!0:!1}function p(a,b){var c=b.maxPreDecimalPlaces;if(""==c||isNaN(c))return!1;var d=a.indexOf(J);if(d>=0)return!1;var e=m(a);return e>=c?!0:!1}function q(a,b){if(!b.max||b.max<0)return!1;var c=parseFloat(a);return c>b.max?!0:!1}function r(a,b){if(!b.min||b.min>0)return!1;var c=parseFloat(a);return c<b.min?!0:!1}function s(a,b){if("string"!=typeof a)return a;var c,d=a.split(""),e=[],f=0;for(f=0;f<d.length;f++){c=d[f];var g=e.join("");k(g,c,b)&&e.push(c)}return e.join("")}function t(a,b){if("string"!=typeof a)return a;var c,d=a.split(""),e=[],f=0;for(f=0;f<d.length;f++){c=d[f];var g=e.join("");l(g,c,b)&&e.push(c)}return e.join("")}function u(a){var b=a.toUpperCase(),c=a.toLowerCase();return a==b&&b!=c?!0:!1}function v(a){var b=a.toUpperCase(),c=a.toLowerCase();return a==c&&b!=c?!0:!1}function w(a){return a.toUpperCase()==a.toLowerCase()?!0:!1}function x(a,b){var c=new B(H+b),d=new B(a),e=c.subtract(d);return e}function y(){var a,b="0123456789".split(""),c={},d=0;for(d=0;d<b.length;d++)a=b[d],c[a]=!0;return c}function z(){var a="abcdefghijklmnopqrstuvwxyz",b=a.toUpperCase(),c=new B(a+b);return c}function A(a,b){if(0==a.length)return!1;var c=a.indexOf(J);if(c>=0)return!1;var d=a.indexOf(I);if(0>d)return!0;var e=a.lastIndexOf(I),f=a.length-e-1;if(3>f)return!1;var g=m(a.substring(d));return g%3>0?!1:!0}function B(a){"string"==typeof a?this.map=C(a):this.map={}}function C(a){var b,c={},d=a.split(""),e=0;for(e=0;e<d.length;e++)b=d[e],c[b]=!0;return c}a.fn.alphanum=function(a){var b=i(a),c=this;return d(c,s,b),this},a.fn.alpha=function(a){var b=i("alpha"),c=i(a,b),e=this;return d(e,s,c),this},a.fn.numeric=function(a){var b=j(a),c=this;return d(c,t,b),c.blur(function(){e(this,a)}),this};var D={allow:"",disallow:"",allowSpace:!0,allowNumeric:!0,allowUpper:!0,allowLower:!0,allowCaseless:!0,allowLatin:!0,allowOtherCharSets:!0,maxLength:NaN},E={allowPlus:!1,allowMinus:!0,allowThouSep:!0,allowDecSep:!0,allowLeadingSpaces:!1,maxDigits:NaN,maxDecimalPlaces:NaN,maxPreDecimalPlaces:NaN,max:NaN,min:NaN},F={alpha:{allowNumeric:!1},upper:{allowNumeric:!1,allowUpper:!0,allowLower:!1,allowCaseless:!0},lower:{allowNumeric:!1,allowUpper:!1,allowLower:!0,allowCaseless:!0}},G={integer:{allowPlus:!1,allowMinus:!0,allowThouSep:!1,allowDecSep:!1},positiveInteger:{allowPlus:!1,allowMinus:!1,allowThouSep:!1,allowDecSep:!1}},H=b()+c(),I=",",J=".",K=y(),L=z();B.prototype.add=function(a){var b=this.clone();for(var c in a.map)b.map[c]=!0;return b},B.prototype.subtract=function(a){var b=this.clone();for(var c in a.map)delete b.map[c];return b},B.prototype.contains=function(a){return this.map[a]?!0:!1},B.prototype.clone=function(){var a=new B;for(var b in this.map)a.map[b]=!0;return a},a.fn.alphanum.backdoorAlphaNum=function(a,b){var c=i(b);return s(a,c)},a.fn.alphanum.backdoorNumeric=function(a,b){var c=j(b);return t(a,c)},a.fn.alphanum.setNumericSeparators=function(a){1==a.thousandsSeparator.length&&1==a.decimalSeparator.length&&(I=a.thousandsSeparator,J=a.decimalSeparator)}}(jQuery),function(a){function b(a,b){if(a.createTextRange){var c=a.createTextRange();c.move("character",b),c.select()}else null!=a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function c(a){if("selection"in document){var b=a.createTextRange();try{b.setEndPoint("EndToStart",document.selection.createRange())}catch(c){return 0}return b.text.length}return null!=a.selectionStart?a.selectionStart:void 0}a.fn.alphanum_caret=function(d,e){return"undefined"==typeof d?c(this.get(0)):this.queue(function(c){if(isNaN(d)){var f=a(this).val().indexOf(d);e===!0?f+=d.length:"undefined"!=typeof e&&(f+=e),b(this,f)}else b(this,d);c()})}}(jQuery),function(a){var b=function(a){return a?a.ownerDocument.defaultView||a.ownerDocument.parentWindow:window},c=function(b,c){var d=a.Range.current(b).clone(),e=a.Range(b).select(b);return d.overlaps(e)?(d.compare("START_TO_START",e)<1?(startPos=0,d.move("START_TO_START",e)):(fromElementToCurrent=e.clone(),fromElementToCurrent.move("END_TO_START",d),startPos=fromElementToCurrent.toString().length),d.compare("END_TO_END",e)>=0?endPos=e.toString().length:endPos=startPos+d.toString().length,{start:startPos,end:endPos}):null},d=function(d){var e=b(d);if(void 0!==d.selectionStart)return document.activeElement&&document.activeElement!=d&&d.selectionStart==d.selectionEnd&&0==d.selectionStart?{start:d.value.length,end:d.value.length}:{start:d.selectionStart,end:d.selectionEnd};if(e.getSelection)return c(d,e);try{if("input"==d.nodeName.toLowerCase()){var f=b(d).document.selection.createRange(),g=d.createTextRange();g.setEndPoint("EndToStart",f);var h=g.text.length;return{start:h,end:h+f.text.length}}var i=c(d,e);if(!i)return i;var j=a.Range.current().clone(),k=j.clone().collapse().range,l=j.clone().collapse(!1).range;return k.moveStart("character",-1),l.moveStart("character",-1),0!=i.startPos&&""==k.text&&(i.startPos+=2),0!=i.endPos&&""==l.text&&(i.endPos+=2),i}catch(m){return{start:d.value.length,end:d.value.length}}},e=function(a,c,d){var e=b(a);if(a.setSelectionRange)void 0===d?(a.focus(),a.setSelectionRange(c,c)):(a.select(),a.selectionStart=c,a.selectionEnd=d);else if(a.createTextRange){var f=a.createTextRange();f.moveStart("character",c),d=d||c,f.moveEnd("character",d-a.value.length),f.select()}else if(e.getSelection){var h=e.document,i=e.getSelection(),j=h.createRange(),k=[c,void 0!==d?d:c];g([a],k),j.setStart(k[0].el,k[0].count),j.setEnd(k[1].el,k[1].count),i.removeAllRanges(),i.addRange(j)}else if(e.document.body.createTextRange){var j=document.body.createTextRange();j.moveToElementText(a),j.collapse(),j.moveStart("character",c),j.moveEnd("character",void 0!==d?d:c),j.select()}},f=function(a,b,c,d){"number"==typeof c[0]&&c[0]<b&&(c[0]={el:d,count:c[0]-a}),"number"==typeof c[1]&&c[1]<=b&&(c[1]={el:d,count:c[1]-a})},g=function(a,b,c){var d,e;c=c||0;for(var h=0;a[h];h++)d=a[h],3===d.nodeType||4===d.nodeType?(e=c,c+=d.nodeValue.length,f(e,c,b,d)):8!==d.nodeType&&(c=g(d.childNodes,b,c));return c};jQuery.fn.selection=function(a,b){return void 0!==a?this.each(function(){e(this,a,b)}):d(this[0])},a.fn.selection.getCharElement=g}(jQuery),function(a){"use strict";a.redux=a.redux||{},a(document).ready(function(){a.fn.isOnScreen=function(){if(window){var b=a(window),c={top:b.scrollTop()};c.right=c.left+b.width(),c.bottom=c.top+b.height();var d=this.offset();return d.right=d.left+this.outerWidth(),d.bottom=d.top+this.outerHeight(),!(c.right<d.left||c.left>d.right||c.bottom<d.top||c.top>d.bottom)}},a.redux.hideFields(),a.redux.checkRequired(),a.redux.initEvents(),a.redux.initQtip(),a.redux.tabCheck(),a.redux.notices(),a.redux.tabControl()}),a.redux.ajax_save=function(b){var c=a(document.getElementById("redux_ajax_overlay"));c.fadeIn(),jQuery(".redux-action_bar .spinner").addClass("is-active"),jQuery(".redux-action_bar input").attr("disabled","disabled");var d=jQuery(document.getElementById("redux_notification_bar"));d.slideUp(),jQuery(".redux-save-warn").slideUp(),jQuery(".redux_ajax_save_error").slideUp("medium",function(){jQuery(this).remove()});var e=jQuery(document.getElementById("redux-form-wrapper"));redux.fields.hasOwnProperty("editor")&&a.each(redux.fields.editor,function(a,b){if("undefined"!=typeof tinyMCE){var c=tinyMCE.get(a);c&&c.save()}});var f=e.serialize();e.find("input[type=checkbox]").each(function(){if("undefined"!=typeof a(this).attr("name")){var b=a(this).is(":checked")?a(this).val():"0";f+="&"+a(this).attr("name")+"="+b}}),"redux_save"!=b.attr("name")&&(f+="&"+b.attr("name")+"="+b.val());var g=e.attr("data-nonce");return jQuery.ajax({type:"post",dataType:"json",url:ajaxurl,data:{action:redux.args.opt_name+"_ajax_save",nonce:g,opt_name:redux.args.opt_name,data:f},error:function(a){window.console||(console={}),console.log=console.log||function(a,b){},console.log(redux.ajax.console),console.log(a.responseText),jQuery(".redux-action_bar input").removeAttr("disabled"),c.fadeOut("fast"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),alert(redux.ajax.alert)},success:function(b){if(b.action&&"reload"==b.action)location.reload(!0);else if("success"==b.status){jQuery(".redux-action_bar input").removeAttr("disabled"),c.fadeOut("fast"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),redux.options=b.options,redux.errors=b.errors,redux.warnings=b.warnings,d.html(b.notification_bar).slideDown("fast"),(null!==b.errors||null!==b.warnings)&&a.redux.notices();var e=a(document.getElementById("redux_notification_bar")).find(".saved_notice");e.slideDown(),e.delay(4e3).slideUp()}else jQuery(".redux-action_bar input").removeAttr("disabled"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),c.fadeOut("fast"),jQuery(".wrap h2:first").parent().append('<div class="error redux_ajax_save_error" style="display:none;"><p>'+b.status+"</p></div>"),jQuery(".redux_ajax_save_error").slideDown(),jQuery("html, body").animate({scrollTop:0},"slow")}}),!1},a.redux.initEvents=function(){a(".redux-presets-bar").on("click",function(){window.onbeforeunload=null}),a("#toplevel_page_"+redux.args.slug+" .wp-submenu a, #wp-admin-bar-"+redux.args.slug+" a.ab-item, .extension-menu-call a").click(function(b){if((a("#toplevel_page_"+redux.args.slug).hasClass("wp-menu-open")||a(this).hasClass("ab-item"))&&!a(this).parents("ul.ab-submenu:first").hasClass("ab-sub-secondary")&&a(this).attr("href").toLowerCase().indexOf(redux.args.slug+"&tab=")>=0){b.preventDefault();var c=a(this).attr("href").split("&tab=");return a("#"+c[1]+"_section_group_li_a").click(),a(this).parents("ul:first").find(".current").removeClass("current"),a(this).addClass("current"),a(this).parent().addClass("current"),!1}}),a(".redux-action_bar input").on("click",function(b){if(a(this).attr("name")==redux.args.opt_name+"[defaults]"){if(!confirm(redux.args.reset_confirm))return!1}else if(a(this).attr("name")==redux.args.opt_name+"[defaults-section]"&&!confirm(redux.args.reset_section_confirm))return!1;window.onbeforeunload=null,redux.args.ajax_save===!0&&(a.redux.ajax_save(a(this)),b.preventDefault())}),a(".expand_options").click(function(b){b.preventDefault();var c=a(".redux-container");if(a(c).hasClass("fully-expanded")){a(c).removeClass("fully-expanded");var d=a.cookie("redux_current_tab");a(".redux-container:first").find("#"+d+"_section_group").fadeIn(200,function(){0!==a(".redux-container:first").find("#redux-footer").length&&a.redux.stickyInfo(),a.redux.initFields()})}return a.redux.expandOptions(a(this).parents(".redux-container:first")),!1}),a(".saved_notice").is(":visible")&&a(".saved_notice").slideDown(),a(document.body).on("change",".redux-field input, .redux-field textarea, .redux-field select",function(){a(this).hasClass("noUpdate")||redux_change(a(this))});var b=a("#redux-footer").height();a("#redux-sticky-padder").css({height:b}),a("#redux-footer-sticky").removeClass("hide"),0!==a("#redux-footer").length&&(a(window).scroll(function(){a.redux.stickyInfo()}),a(window).resize(function(){a.redux.stickyInfo()})),a(".saved_notice").delay(4e3).slideUp()},a.redux.hideFields=function(){a("label[for='redux_hide_field']").each(function(b,c){var d=a(this).parent().parent();a(d).addClass("hidden")})},a.redux.checkRequired=function(){a.redux.required(),a("body").on("change",".redux-main select, .redux-main radio, .redux-main input[type=checkbox], .redux-main input[type=hidden]",function(b){a.redux.check_dependencies(this)}),a("body").on("check_dependencies",function(b,c){a.redux.check_dependencies(c)}),a("td > fieldset:empty,td > div:empty").parent().parent().hide()},a.redux.initQtip=function(){if(a().qtip){var b="",c=redux.args.hints.tip_style.shadow;c===!0&&(b="qtip-shadow");var d="",e=redux.args.hints.tip_style.color;""!==e&&(d="qtip-"+e);var f="",g=redux.args.hints.tip_style.rounded;g===!0&&(f="qtip-rounded");var h="",i=redux.args.hints.tip_style.style;""!==i&&(h="qtip-"+i);var j=b+","+d+","+f+","+h+",redux-qtip";j=j.replace(/,/g," ");var k=redux.args.hints.tip_position.my,l=redux.args.hints.tip_position.at;k=a.redux.verifyPos(k.toLowerCase(),!0),l=a.redux.verifyPos(l.toLowerCase(),!1);var m=redux.args.hints.tip_effect.show.event,n=redux.args.hints.tip_effect.hide.event,o=redux.args.hints.tip_effect.show.effect,p=redux.args.hints.tip_effect.show.duration,q=redux.args.hints.tip_effect.hide.effect,r=redux.args.hints.tip_effect.hide.duration;a("div.redux-dev-qtip").each(function(){a(this).qtip({content:{text:a(this).attr("qtip-content"),title:a(this).attr("qtip-title")},show:{effect:function(){a(this).slideDown(500)},event:"mouseover"},hide:{effect:function(){a(this).slideUp(500)},event:"mouseleave"},style:{classes:"qtip-shadow qtip-light"},position:{my:"top center",at:"bottom center"}})}),a("div.redux-hint-qtip").each(function(){a(this).qtip({content:{text:a(this).attr("qtip-content"),title:a(this).attr("qtip-title")},show:{effect:function(){switch(o){case"slide":a(this).slideDown(p);break;case"fade":a(this).fadeIn(p);break;default:a(this).show()}},event:m},hide:{effect:function(){switch(q){case"slide":a(this).slideUp(r);break;case"fade":a(this).fadeOut(r);break;default:a(this).hide(r)}},event:n},style:{classes:j},position:{my:k,at:l}})}),a("input[qtip-content]").each(function(){a(this).qtip({content:{text:a(this).attr("qtip-content"),title:a(this).attr("qtip-title")},show:"focus",hide:"blur",style:j,position:{my:k,at:l}})})}},a.redux.tabCheck=function(){if(a(".redux-group-tab-link-a").click(function(){var b=a(this);if(b.parent().hasClass("empty_section")&&b.parent().hasClass("hasSubSections")){var c=a(this).closest("ul").find(".redux-group-tab-link-a"),d=c.index(this);b=c.slice(d+1,d+2)}var e=b.parents(".redux-container:first"),f=b.data("rel"),g=e.find(".redux-group-tab-link-li.active:first .redux-group-tab-link-a").data("rel");if(g!==f){if(a("#currentSection").val(f),b.parents(".postbox-container:first").length||a.cookie("redux_current_tab",f,{expires:7,path:"/"}),e.find("#"+f+"_section_group_li").parents(".redux-group-tab-link-li").length){var h=e.find("#"+f+"_section_group_li").parents(".redux-group-tab-link-li").attr("id").split("_");h=h[0]}if(e.find("#toplevel_page_"+redux.args.slug+" .wp-submenu a.current").removeClass("current"),e.find("#toplevel_page_"+redux.args.slug+" .wp-submenu li.current").removeClass("current"),e.find("#toplevel_page_"+redux.args.slug+" .wp-submenu a").each(function(){var b=a(this).attr("href").split("&tab=");(b[1]==f||b[1]==h)&&(a(this).addClass("current"),a(this).parent().addClass("current"))}),e.find("#"+g+"_section_group_li").find("#"+g+"_section_group_li").length)e.find("#"+g+"_section_group_li").addClass("activeChild"),e.find("#"+f+"_section_group_li").addClass("active").removeClass("activeChild");else if(e.find("#"+f+"_section_group_li").parents("#"+g+"_section_group_li").length||e.find("#"+g+"_section_group_li").parents("ul.subsection").find("#"+f+"_section_group_li").length)e.find("#"+f+"_section_group_li").parents("#"+g+"_section_group_li").length?e.find("#"+g+"_section_group_li").addClass("activeChild").removeClass("active"):(e.find("#"+f+"_section_group_li").addClass("active"),e.find("#"+g+"_section_group_li").removeClass("active")),e.find("#"+f+"_section_group_li").removeClass("activeChild").addClass("active");else if(e.find("#"+f+"_section_group_li").addClass("active").removeClass("activeChild").find("ul.subsection").slideDown(),e.find("#"+g+"_section_group_li").find("ul.subsection").length){e.find("#"+g+"_section_group_li").find("ul.subsection").slideUp("fast",function(){e.find("#"+g+"_section_group_li").removeClass("active").removeClass("activeChild")});var i=e.find("#"+f+"_section_group_li").parents(".hasSubSections:first");i.length>0&&(e.find("#"+f+"_section_group_li").removeClass("active"),f=i.find(".redux-group-tab-link-a:first").data("rel"),i.hasClass("empty_section")?(i.find(".subsection li:first").addClass("active"),e.find("#"+f+"_section_group_li").removeClass("active").addClass("activeChild").find("ul.subsection").slideDown(),i=i.find(".subsection li:first"),f=i.find(".redux-group-tab-link-a:first").data("rel")):e.find("#"+f+"_section_group_li").addClass("active").removeClass("activeChild").find("ul.subsection").slideDown())}else e.find("#"+g+"_section_group_li").parents("ul.subsection").length?e.find("#"+g+"_section_group_li").parents("#"+f+"_section_group_li").length?e.find("#"+g+"_section_group_li").removeClass("active"):e.find("#"+g+"_section_group_li").parents("ul.subsection").slideUp("fast",function(){e.find("#"+g+"_section_group_li").removeClass("active"),e.find("#"+g+"_section_group_li").parents(".redux-group-tab-link-li").removeClass("active").removeClass("activeChild"),e.find("#"+f+"_section_group_li").parents(".redux-group-tab-link-li").addClass("activeChild").find("ul.subsection").slideDown(),e.find("#"+f+"_section_group_li").addClass("active")}):(e.find("#"+g+"_section_group_li").removeClass("active"),e.find("#"+f+"_section_group_li").parents(".redux-group-tab-link-li").length&&(e.find("#"+f+"_section_group_li").parents(".redux-group-tab-link-li").addClass("activeChild").find("ul.subsection").slideDown(),e.find("#"+f+"_section_group_li").addClass("active")));e.find("#"+g+"_section_group").hide(),e.find("#"+f+"_section_group").fadeIn(0,function(){0!==e.find("#redux-footer").length&&a.redux.stickyInfo(),a.redux.initFields()}),a("#toplevel_page_"+redux.args.slug).find(".current").removeClass("current")}}),void 0!==redux.last_tab)return void a("#"+redux.last_tab+"_section_group_li_a").click();var b=decodeURI((new RegExp("tab=(.+?)(&|$)").exec(location.search)||[,""])[1]);""!==b?a.cookie("redux_current_tab_get")!==b&&(a.cookie("redux_current_tab",b,{expires:7,path:"/"}),a.cookie("redux_current_tab_get",b,{expires:7,path:"/"}),a("#"+b+"_section_group_li").click()):""!==a.cookie("redux_current_tab_get")&&a.removeCookie("redux_current_tab_get");var c=a("#"+a.cookie("redux_current_tab")+"_section_group_li_a");null===a.cookie("redux_current_tab")||"undefined"==typeof a.cookie("redux_current_tab")||0===c.length?a(".redux-container").find(".redux-group-tab-link-a:first").click():c.click()},a.redux.initFields=function(){a(".redux-group-tab:visible").find(".redux-field-init:visible").each(function(){var b=a(this).attr("data-type");if("undefined"!=typeof redux.field_objects&&redux.field_objects[b]&&redux.field_objects[b]&&redux.field_objects[b].init(),!redux.customizer&&a(this).hasClass("redux_remove_th")){var c=a(this).parents("tr:first"),d=c.find("th:first");d.html()&&d.html().length>0&&(a(this).prepend(d.html()),a(this).find(".redux_field_th").css("padding","0 0 10px 0")),a(this).parent().attr("colspan","2"),d.remove()}})},a.redux.notices=function(){redux.errors&&redux.errors.errors&&(a.each(redux.errors.errors,function(b,c){a.each(c.errors,function(b,c){a("#"+redux.args.opt_name+"-"+c.id).addClass("redux-field-error"),0===a("#"+redux.args.opt_name+"-"+c.id).parent().find(".redux-th-error").length?a("#"+redux.args.opt_name+"-"+c.id).append('<div class="redux-th-error">'+c.msg+"</div>"):a("#"+redux.args.opt_name+"-"+c.id).parent().find(".redux-th-error").html(c.msg).css("display","block")})}),a(".redux-container").each(function(){var b=a(this);b.find(".redux-menu-error").remove();var c=b.find(".redux-field-error").length;c>0&&(b.find(".redux-field-errors span").text(c),b.find(".redux-field-errors").slideDown(),b.find(".redux-group-tab").each(function(){var c=a(this).find(".redux-field-error").length;if(c>0){var d=a(this).attr("id").split("_");d=d[0],b.find('.redux-group-tab-link-a[data-key="'+d+'"]').prepend('<span class="redux-menu-error">'+c+"</span>"),b.find('.redux-group-tab-link-a[data-key="'+d+'"]').addClass("hasError");var e=b.find('.redux-group-tab-link-a[data-key="'+d+'"]').parents(".hasSubSections:first");e&&e.find(".redux-group-tab-link-a:first").addClass("hasError")}}))})),redux.warnings&&redux.warnings.warnings&&(a.each(redux.warnings.warnings,function(b,c){a.each(c.warnings,function(b,c){a("#"+redux.args.opt_name+"-"+c.id).addClass("redux-field-warning"),0===a("#"+redux.args.opt_name+"-"+c.id).parent().find(".redux-th-warning").length?a("#"+redux.args.opt_name+"-"+c.id).append('<div class="redux-th-warning">'+c.msg+"</div>"):a("#"+redux.args.opt_name+"-"+c.id).parent().find(".redux-th-warning").html(c.msg).css("display","block")})}),a(".redux-container").each(function(){var b=a(this);b.find(".redux-menu-warning").remove();var c=b.find(".redux-field-warning").length;c>0&&(b.find(".redux-field-warnings span").text(c),b.find(".redux-field-warnings").slideDown(),b.find(".redux-group-tab").each(function(){var c=a(this).find(".redux-field-warning").length;if(c>0){var d=a(this).attr("id").split("_");d=d[0],b.find('.redux-group-tab-link-a[data-key="'+d+'"]').prepend('<span class="redux-menu-warning">'+c+"</span>"),b.find('.redux-group-tab-link-a[data-key="'+d+'"]').addClass("hasWarning");var e=b.find('.redux-group-tab-link-a[data-key="'+d+'"]').parents(".hasSubSections:first");e&&e.find(".redux-group-tab-link-a:first").addClass("hasWarning")}}))}))},a.redux.tabControl=function(){a(".redux-section-tabs div").hide(),a(".redux-section-tabs div:first").show(),a(".redux-section-tabs ul li:first").addClass("active"),a(".redux-section-tabs ul li a").click(function(){a(".redux-section-tabs ul li").removeClass("active"),a(this).parent().addClass("active");var b=a(this).attr("href");return a(".redux-section-tabs div").hide(),a(b).fadeIn("medium",function(){a.redux.initFields()}),!1})},a.redux.required=function(){a.each(redux.folds,function(b,c){var d=a("#"+redux.args.opt_name+"-"+b);if(d.parents("tr:first").addClass("fold"),
2
- "hide"==c){if(d.parents("tr:first").addClass("hide"),d.hasClass("redux-container-section")){var e=a("#section-"+b);e.hasClass("redux-section-indent-start")&&(a("#section-table-"+b).hide().addClass("hide"),e.hide().addClass("hide"))}if(d.hasClass("redux-container-info")&&a("#info-"+b).hide().addClass("hide"),d.hasClass("redux-container-divide")&&a("#divide-"+b).hide().addClass("hide"),d.hasClass("redux-container-raw")){var f=d.parents().find("table#"+redux.args.opt_name+"-"+b);f.hide().addClass("hide")}}})},a.redux.get_container_value=function(b){var c=a("#"+redux.args.opt_name+"-"+b).serializeForm();return null!==c&&"object"==typeof c&&c.hasOwnProperty(redux.args.opt_name)&&(c=c[redux.args.opt_name][b]),a("#"+redux.args.opt_name+"-"+b).hasClass("redux-container-media")&&(c=c.url),c},a.redux.check_dependencies=function(b){if(null!==redux.required){var c=a(b),d=c.parents(".redux-field:first").data("id");if(redux.required.hasOwnProperty(d)){var e=c.parents(".redux-field-container:first"),f=e.parents("tr:first").hasClass(".hide");e.parents("tr:first").length||(f=e.parents(".customize-control:first").hasClass(".hide")),a.each(redux.required[d],function(b,c){var d=a(this),e=!1,g=a("#"+redux.args.opt_name+"-"+b),h=g.parents("tr:first");if(f||(e=a.redux.check_parents_dependencies(b)),e===!0){if(g.hasClass("redux-container-section")){var i=a("#section-"+b);i.hasClass("redux-section-indent-start")&&i.hasClass("hide")&&(a("#section-table-"+b).fadeIn(300).removeClass("hide"),i.fadeIn(300).removeClass("hide"))}if(g.hasClass("redux-container-info")&&a("#info-"+b).fadeIn(300).removeClass("hide"),g.hasClass("redux-container-divide")&&a("#divide-"+b).fadeIn(300).removeClass("hide"),g.hasClass("redux-container-raw")){var j=g.parents().find("table#"+redux.args.opt_name+"-"+b);j.fadeIn(300).removeClass("hide")}h.fadeIn(300,function(){a(this).removeClass("hide"),redux.required.hasOwnProperty(b)&&a.redux.check_dependencies(a("#"+redux.args.opt_name+"-"+b).children().first()),a.redux.initFields()}),(g.hasClass("redux-container-section")||g.hasClass("redux-container-info"))&&h.css({display:"none"})}else e===!1&&h.fadeOut(100,function(){a(this).addClass("hide"),redux.required.hasOwnProperty(b)&&a.redux.required_recursive_hide(b)});d.find("select, radio, input[type=checkbox]").trigger("change")})}}},a.redux.required_recursive_hide=function(b){var c=a("#"+redux.args.opt_name+"-"+b).parents("tr:first");c.fadeOut(50,function(){if(a(this).addClass("hide"),a("#"+redux.args.opt_name+"-"+b).hasClass("redux-container-section")){var c=a("#section-"+b);c.hasClass("redux-section-indent-start")&&(a("#section-table-"+b).fadeOut(50).addClass("hide"),c.fadeOut(50).addClass("hide"))}if(a("#"+redux.args.opt_name+"-"+b).hasClass("redux-container-info")&&a("#info-"+b).fadeOut(50).addClass("hide"),a("#"+redux.args.opt_name+"-"+b).hasClass("redux-container-divide")&&a("#divide-"+b).fadeOut(50).addClass("hide"),a("#"+redux.args.opt_name+"-"+b).hasClass("redux-container-raw")){var d=a("#"+redux.args.opt_name+"-"+b).parents().find("table#"+redux.args.opt_name+"-"+b);d.fadeOut(50).addClass("hide")}redux.required.hasOwnProperty(b)&&a.each(redux.required[b],function(b){a.redux.required_recursive_hide(b)})})},a.redux.check_parents_dependencies=function(b){var c="";return redux.required_child.hasOwnProperty(b)?a.each(redux.required_child[b],function(b,d){if(a("#"+redux.args.opt_name+"-"+d.parent).parents("tr:first").hasClass(".hide"))c=!1;else if(c!==!1){var e=a.redux.get_container_value(d.parent);c=a.redux.check_dependencies_visibility(e,d)}}):c=!0,c},a.redux.check_dependencies_visibility=function(b,c){var d,e=!1,f=c.checkValue,g=c.operation;switch(g){case"=":case"equals":a.isArray(b)?a(b[0]).each(function(b,c){if(a.isArray(f))a(f).each(function(a,b){return c==b?(e=!0,!0):void 0});else if(c==f)return e=!0,!0}):a.isArray(f)?a(f).each(function(a,c){b==c&&(e=!0)}):b==f&&(e=!0);break;case"!=":case"not":a.isArray(b)?a(b).each(function(b,c){if(a.isArray(f))a(f).each(function(a,b){return c!=b?(e=!0,!0):void 0});else if(c!=f)return e=!0,!0}):a.isArray(f)?a(f).each(function(a,c){b!=c&&(e=!0)}):b!=f&&(e=!0);break;case">":case"greater":case"is_larger":parseFloat(b)>parseFloat(f)&&(e=!0);break;case">=":case"greater_equal":case"is_larger_equal":parseFloat(b)>=parseFloat(f)&&(e=!0);break;case"<":case"less":case"is_smaller":parseFloat(b)<parseFloat(f)&&(e=!0);break;case"<=":case"less_equal":case"is_smaller_equal":parseFloat(b)<=parseFloat(f)&&(e=!0);break;case"contains":a.isPlainObject(b)&&(b=Object.keys(b).map(function(a){return[a,b[a]]})),a.isPlainObject(f)&&(f=Object.keys(f).map(function(a){return[a,f[a]]})),a.isArray(f)?a(f).each(function(c,d){var f=!1,g=d[0],h=d[1];return a(b).each(function(a,b){var c=b[0],d=b[1];return g===c&&h==d?(e=!0,f=!0,!1):void 0}),f===!0?!1:void 0}):-1!==b.toString().indexOf(f)&&(e=!0);break;case"doesnt_contain":case"not_contain":a.isPlainObject(b)&&(d=Object.keys(b).map(function(a){return b[a]}),b=d),a.isPlainObject(f)&&(d=Object.keys(f).map(function(a){return f[a]}),f=d),a.isArray(f)?a(f).each(function(a,c){-1===b.toString().indexOf(c)&&(e=!0)}):-1===b.toString().indexOf(f)&&(e=!0);break;case"is_empty_or":(""===b||b==f)&&(e=!0);break;case"not_empty_and":""!==b&&b!=f&&(e=!0);break;case"is_empty":case"empty":case"!isset":b&&""!==b&&null!==b||(e=!0);break;case"not_empty":case"!empty":case"isset":b&&""!==b&&null!==b&&(e=!0)}return e},a.redux.verifyPos=function(a,b){if(a=a.replace(/^\s+|\s+$/gm,""),""===a||-1==a.search(" "))return b===!0?"top left":"bottom right";var c=a.split(" "),d=b?"top":"bottom";("top"==c[0]||"center"==c[0]||"bottom"==c[0])&&(d=c[0]);var e=b?"left":"right";return("left"==c[1]||"center"==c[1]||"right"==c[1])&&(e=c[1]),d+" "+e},a.redux.stickyInfo=function(){var b=a(".redux-main").innerWidth()-20;a("#redux-footer-sticky").isOnScreen()||a("#redux-footer-sticky").isOnScreen()?(a("#redux-footer").css({background:"#eee",position:"inherit",bottom:"inherit",width:"inherit"}),a("#redux-sticky-padder").hide(),a("#redux-footer").removeClass("sticky-footer-fixed")):(a("#redux-footer").css({position:"fixed",bottom:"0",width:b,left:379}),a("#redux-footer").addClass("sticky-footer-fixed"),a(".redux-save-warn").css("left",a("#redux-sticky").offset().left),a("#redux-sticky-padder").show()),a("#info_bar").isOnScreen()?a("#redux-sticky").removeClass("sticky-save-warn"):a("#redux-sticky").addClass("sticky-save-warn")},a.redux.expandOptions=function(b){var c=b.find(".expand_options"),d=b.find(".redux-sidebar").width()-1,e=a(".redux-group-menu .active a").data("rel")+"_section_group";return c.hasClass("expanded")?(c.removeClass("expanded"),b.find(".redux-main").removeClass("expand"),b.find(".redux-sidebar").stop().animate({"margin-left":"0px"},500),b.find(".redux-main").stop().animate({"margin-left":d},500,function(){b.find(".redux-main").attr("style","")}),b.find(".redux-group-tab").each(function(){a(this).attr("id")!==e&&a(this).fadeOut("fast")})):(c.addClass("expanded"),b.find(".redux-main").addClass("expand"),b.find(".redux-sidebar").stop().animate({"margin-left":-d-113},500),b.find(".redux-main").stop().animate({"margin-left":"-1px"},500),b.find(".redux-group-tab").fadeIn("medium",function(){a.redux.initFields()})),!1},a.redux.scaleToRatio=function(b,c,d){var e=0,f=b.attr("data-width");f||(f=b.width(),b.attr("data-width",f));var g=b.attr("data-height"),h=b.height();(!g||h>g)&&(g=h,b.attr("data-height",g),b.css("width","auto"),b.attr("data-width",b.width()),f=b.width()),f>d?(e=d/f,b.css("width",d),b.css("height",g*e),g*=e,f*=e):b.css("width","auto"),g>c?(e=c/g,b.css("height",c),b.css("width",f*e),f*=e,g*=e):b.css("height","auto");var i=(a(document.getElementById("redux-header")).height()-b.height())/2;i>0?b.css("margin-top",i):b.css("margin-top",0),a("#redux-header .redux_field_search")&&a("#redux-header .redux_field_search").css("right",a(b).width()+20)},a.redux.resizeAds=function(){var b,c=a("#redux-header");c.length?b=c.width()-c.find(".display_header").width()-30:(c=a("#customize-info"),b=c.width());var d=c.height(),e=c.find(".rAds");a(e).find("video").each(function(){a.redux.scaleToRatio(a(this),d,b)}),a(e).find("img").each(function(){a.redux.scaleToRatio(a(this),d,b)}),a(e).find("div").each(function(){a.redux.scaleToRatio(a(this),d,b)}),"-99999px"==e.css("left")&&e.css("display","none").css("left","auto"),e.fadeIn("slow")},a(document).ready(function(){redux.rAds&&setTimeout(function(){var b;a("#redux-header").length>0?(a("#redux-header").append('<div class="rAds"></div>'),b=a("#redux-header")):(a("#customize-theme-controls ul").first().prepend('<li id="redux_rAds" class="accordion-section rAdsContainer" style="position: relative;"><div class="rAds"></div></li>'),b=a("#redux_rAds")),b.css("position","relative"),b.find(".rAds").attr("style","position:absolute; top: 6px; right: 6px; display:block !important;overflow:hidden;").css("left","-99999px"),b.find(".rAds").html(redux.rAds.replace(/<br\s?\/?>/,""));var c=b.find(".rAds");b.height(),b.width()-b.find(".display_header").width()-30;c.find("a").css("float","right").css("line-height",b.height()+"px").css("margin-left","5px"),a(document).ajaxComplete(function(){c.find("a").hide(),setTimeout(function(){a.redux.resizeAds(),c.find("a").fadeIn()},1400),setTimeout(function(){a.redux.resizeAds()},1500),a(document).unbind("ajaxComplete")}),a(window).resize(function(){a.redux.resizeAds()})},400)})}(jQuery),jQuery.noConflict();var confirmOnPageExit=function(a){a=a||window.event;var b=redux.args.save_pending;return a&&(a.returnValue=b),window.onbeforeunload=null,b};
1
+ function redux_change(e){jQuery("body").trigger("check_dependencies",e),e.hasClass("compiler")&&jQuery("#redux-compiler-hook").val(1);var r=jQuery(e).parents(".redux-container:first"),t=jQuery(e).closest(".redux-group-tab").attr("id"),i=t.split("_");i=i[0];var a=r.find('.redux-group-tab-link-a[data-key="'+i+'"]').parents(".redux-group-tab-link-li:first"),n=jQuery("#"+t+"_li").parents(".hasSubSections:first");if(jQuery(e).parents("fieldset.redux-field:first").hasClass("redux-field-error")){jQuery(e).parents("fieldset.redux-field:first").removeClass("redux-field-error"),jQuery(e).parent().find(".redux-th-error").slideUp();var s=parseInt(r.find(".redux-field-errors span").text())-1;if(0>=s)jQuery("#"+t+"_li .redux-menu-error").fadeOut("fast").remove(),jQuery("#"+t+"_li .redux-group-tab-link-a").removeClass("hasError"),jQuery("#"+t+"_li").parents(".inside:first").find(".redux-field-errors").slideUp(),jQuery(e).parents(".redux-container:first").find(".redux-field-errors").slideUp(),jQuery("#redux_metaboxes_errors").slideUp();else{var d=parseInt(a.find(".redux-menu-error:first").text())-1;0>=d?a.find(".redux-menu-error:first").fadeOut().remove():a.find(".redux-menu-error:first").text(d),r.find(".redux-field-errors span").text(s)}0!==n.length&&0===n.find(".redux-menu-error").length&&n.find(".hasError").removeClass("hasError")}if(jQuery(e).parents("fieldset.redux-field:first").hasClass("redux-field-warning")){jQuery(e).parents("fieldset.redux-field:first").removeClass("redux-field-warning"),jQuery(e).parent().find(".redux-th-warning").slideUp();var o=parseInt(r.find(".redux-field-warnings span").text())-1;if(0>=o)jQuery("#"+t+"_li .redux-menu-warning").fadeOut("fast").remove(),jQuery("#"+t+"_li .redux-group-tab-link-a").removeClass("hasWarning"),jQuery("#"+t+"_li").parents(".inside:first").find(".redux-field-warnings").slideUp(),jQuery(e).parents(".redux-container:first").find(".redux-field-warnings").slideUp(),jQuery("#redux_metaboxes_warnings").slideUp();else{var u=parseInt(a.find(".redux-menu-warning:first").text())-1;0>=u?a.find(".redux-menu-warning:first").fadeOut().remove():a.find(".redux-menu-warning:first").text(u),r.find(".redux-field-warning span").text(o)}0!==n.length&&0===n.find(".redux-menu-warning").length&&n.find(".hasWarning").removeClass("hasWarning")}return r.find(".saved_notice:visible").length>0?void 0:redux.customizer?void redux.customizer.save(e,r,t):void(redux.args.disable_save_warn||(r.find(".redux-save-warn").slideDown(),window.onbeforeunload=confirmOnPageExit))}function colorValidate(e){var r=jQuery(e).val(),t=colorNameToHex(r);return t!==r.replace("#","")?t:r}function colorNameToHex(e){var r=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"").replace("#",""),t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",redux:"#01a3e3",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==t[r.toLowerCase()]?t[r.toLowerCase()]:e}function redux_hook(e,r,t,i){var a;a=e[r],e[r]=function(){!0===i&&t.apply(this,[e,a,arguments]);var e=a.apply(this,arguments);return!0!==i&&t.apply(this,[e,a,arguments]),e}}!function(e){"function"==typeof define&&define.amd?jQueryCookie.define(["jquery"],e):e(jQuery)}(function(e){function r(e){return e}function t(e){return decodeURIComponent(e.replace(a," "))}function i(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n.json?JSON.parse(e):e}catch(e){}}var a=/\+/g,n=e.cookie=function(a,s,d){if(void 0!==s){if("number"==typeof(d=e.extend({},n.defaults,d)).expires){var o=d.expires,u=d.expires=new Date;u.setDate(u.getDate()+o)}return s=n.json?JSON.stringify(s):String(s),document.cookie=[n.raw?a:encodeURIComponent(a),"=",n.raw?s:encodeURIComponent(s),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}for(var l=n.raw?r:t,c=document.cookie.split("; "),f=a?void 0:{},p=0,h=c.length;h>p;p++){var x=c[p].split("="),g=l(x.shift()),v=l(x.join("="));if(a&&a===g){f=i(v);break}a||(f[g]=i(v))}return f};n.defaults={},e.removeCookie=function(r,t){return void 0!==e.cookie(r)&&(e.cookie(r,"",e.extend({},t,{expires:-1})),!0)}}),function(e){e.fn.typeWatch=function(r){function t(r){var t=r.type.toUpperCase();if(e.inArray(t,i.inputTypes)>=0){var a={timer:null,text:e(r).val().toUpperCase(),cb:i.callback,el:r,wait:i.wait};i.highlight&&e(r).focus(function(){this.select()});e(r).on("keydown paste cut input",function(r){var t=a.wait,n=!1,s=this.type.toUpperCase();void 0!==r.keyCode&&13==r.keyCode&&"TEXTAREA"!=s&&e.inArray(s,i.inputTypes)>=0&&(t=1,n=!0);clearTimeout(a.timer),a.timer=setTimeout(function(){!function(r,t){var a=e(r.el).val();(a.length>=i.captureLength&&a.toUpperCase()!=r.text||t&&a.length>=i.captureLength)&&(r.text=a.toUpperCase(),r.cb.call(r.el,a))}(a,n)},t)})}}var i=e.extend({wait:750,callback:function(){},highlight:!0,captureLength:2,inputTypes:["TEXT","TEXTAREA","PASSWORD","TEL","SEARCH","URL","EMAIL","DATETIME","DATE","MONTH","WEEK","TIME","DATETIME-LOCAL","NUMBER","RANGE"]},r);return this.each(function(){t(this)})}}(jQuery),function(e){e.fn.serializeForm=function(){if(this.length<1)return!1;var r={},t=r,i=':input[type!="checkbox"][type!="radio"], input:checked',a=function(){if(!this.disabled){var i=this.name.replace(/\[([^\]]+)?\]/g,",$1").split(","),a=i.length-1,n=e(this);if(i[0]){for(var s=0;a>s;s++)t=t[i[s]]=t[i[s]]||(""===i[s+1]||"0"===i[s+1]?[]:{});void 0!==t.length?t.push(n.val()):t[i[a]]=n.val(),t=r}}};return this.filter(i).each(a),this.find(i).each(a),r}}(jQuery),function(e){function r(r,t,i){r.each(function(){var r=e(this);r.bind("keyup change paste",function(e){var a="";e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.getData&&(a=e.originalEvent.clipboardData.getData("text/plain")),setTimeout(function(){!function(e,r,t,i){var a=e.val();""==a&&i.length>0&&(a=i);var n=r(a,t);if(a!=n){var s=e.alphanum_caret();e.val(n),a.length==n.length+1?e.alphanum_caret(s-1):e.alphanum_caret(s)}}(r,t,i,a)},0)}),r.bind("keypress",function(e){var a=e.charCode?e.charCode:e.which;if(!(function(e){return!(e>=32)&&(10!=e&&13!=e)}(a)||e.ctrlKey||e.metaKey)){var n=String.fromCharCode(a),s=r.selection(),d=s.start,o=s.end,u=r.val(),l=u.substring(0,d)+n+u.substring(o);t(l,i)!=l&&e.preventDefault()}})})}function t(r,t){var a=parseFloat(e(r).val()),n=e(r);return isNaN(a)?void n.val(""):(i(t.min)&&a<t.min&&n.val(""),void(i(t.max)&&a>t.max&&n.val("")))}function i(e){return!isNaN(e)}function a(r,t){void 0===t&&(t=f);var i,a={};return i="string"==typeof r?h[r]:void 0===r?{}:r,e.extend(a,t,i),void 0===a.blacklist&&(a.blacklistSet=function(e,r){var t=new c(g+r),i=new c(e);return t.subtract(i)}(a.allow,a.disallow)),a}function n(r){var t,i={};return t="string"==typeof r?x[r]:void 0===r?{}:r,e.extend(i,p,t),i}function s(e,r,t){return!(t.maxLength&&e.length>=t.maxLength)&&(t.allow.indexOf(r)>=0||(!(!t.allowSpace||" "!=r)||!t.blacklistSet.contains(r)&&(!(!t.allowNumeric&&_[r])&&(!(!t.allowUpper&&function(e){var r=e.toUpperCase(),t=e.toLowerCase();return e==r&&r!=t}(r))&&(!(!t.allowLower&&function(e){var r=e.toUpperCase(),t=e.toLowerCase();return e==t&&r!=t}(r))&&(!(!t.allowCaseless&&function(e){return e.toUpperCase()==e.toLowerCase()}(r))&&(!(!t.allowLatin&&b.contains(r))&&(!!t.allowOtherCharSets||!(!_[r]&&!b.contains(r))))))))))}function d(e,r,t){if(_[r])return!function(e,r){var t=r.maxDigits;return""!=t&&!isNaN(t)&&o(e)>=t}(e,t)&&(!function(e,r){var t=r.maxPreDecimalPlaces;return""!=t&&!isNaN(t)&&!(e.indexOf(m)>=0)&&o(e)>=t}(e,t)&&(!function(e,r){var t=r.maxDecimalPlaces;if(""==t||isNaN(t))return!1;var i=e.indexOf(m);return-1!=i&&o(e.substring(i))>=t}(e,t)&&(!function(e,r){return!(!r.max||r.max<0)&&parseFloat(e)>r.max}(e+r,t)&&!function(e,r){return!(!r.min||r.min>0)&&parseFloat(e)<r.min}(e+r,t))));if(t.allowPlus&&"+"==r&&""==e)return!0;if(t.allowMinus&&"-"==r&&""==e)return!0;if(r==v&&t.allowThouSep&&function(e,r){if(0==e.length)return!1;if(e.indexOf(m)>=0)return!1;var t=e.indexOf(v);if(0>t)return!0;var i=e.lastIndexOf(v);return!(3>e.length-i-1||o(e.substring(t))%3>0)}(e))return!0;if(r==m){if(e.indexOf(m)>=0)return!1;if(t.allowDecSep)return!0}return!1}function o(e){return(e+="").replace(/[^0-9]/g,"").length}function u(e,r){if("string"!=typeof e)return e;var t,i=e.split(""),a=[],n=0;for(n=0;n<i.length;n++){t=i[n],s(a.join(""),t,r)&&a.push(t)}return a.join("")}function l(e,r){if("string"!=typeof e)return e;var t,i=e.split(""),a=[],n=0;for(n=0;n<i.length;n++){t=i[n],d(a.join(""),t,r)&&a.push(t)}return a.join("")}function c(e){this.map="string"==typeof e?function(e){var r,t={},i=e.split(""),a=0;for(a=0;a<i.length;a++)r=i[a],t[r]=!0;return t}(e):{}}e.fn.alphanum=function(e){return r(this,u,a(e)),this},e.fn.alpha=function(e){var t=a("alpha");return r(this,u,a(e,t)),this},e.fn.numeric=function(e){return r(this,l,n(e)),this.blur(function(){t(this,e)}),this};var f={allow:"",disallow:"",allowSpace:!0,allowNumeric:!0,allowUpper:!0,allowLower:!0,allowCaseless:!0,allowLatin:!0,allowOtherCharSets:!0,maxLength:NaN},p={allowPlus:!1,allowMinus:!0,allowThouSep:!0,allowDecSep:!0,allowLeadingSpaces:!1,maxDigits:NaN,maxDecimalPlaces:NaN,maxPreDecimalPlaces:NaN,max:NaN,min:NaN},h={alpha:{allowNumeric:!1},upper:{allowNumeric:!1,allowUpper:!0,allowLower:!1,allowCaseless:!0},lower:{allowNumeric:!1,allowUpper:!1,allowLower:!0,allowCaseless:!0}},x={integer:{allowPlus:!1,allowMinus:!0,allowThouSep:!1,allowDecSep:!1},positiveInteger:{allowPlus:!1,allowMinus:!1,allowThouSep:!1,allowDecSep:!1}},g="!@#$%^&*()+=[]\\';,/{}|\":<>?~`.-_ ¬€£¦",v=",",m=".",_=function(){var e="0123456789".split(""),r={},t=0;for(t=0;t<e.length;t++)r[e[t]]=!0;return r}(),b=function(){var e="abcdefghijklmnopqrstuvwxyz",r=e.toUpperCase();return new c(e+r)}();c.prototype.add=function(e){var r=this.clone();for(var t in e.map)r.map[t]=!0;return r},c.prototype.subtract=function(e){var r=this.clone();for(var t in e.map)delete r.map[t];return r},c.prototype.contains=function(e){return!!this.map[e]},c.prototype.clone=function(){var e=new c;for(var r in this.map)e.map[r]=!0;return e},e.fn.alphanum.backdoorAlphaNum=function(e,r){return u(e,a(r))},e.fn.alphanum.backdoorNumeric=function(e,r){return l(e,n(r))},e.fn.alphanum.setNumericSeparators=function(e){1==e.thousandsSeparator.length&&1==e.decimalSeparator.length&&(v=e.thousandsSeparator,m=e.decimalSeparator)}}(jQuery),function(e){function r(e,r){if(e.createTextRange){var t=e.createTextRange();t.move("character",r),t.select()}else null!=e.selectionStart&&(e.focus(),e.setSelectionRange(r,r))}e.fn.alphanum_caret=function(t,i){return void 0===t?function(e){if("selection"in document){var r=e.createTextRange();try{r.setEndPoint("EndToStart",document.selection.createRange())}catch(e){return 0}return r.text.length}return null!=e.selectionStart?e.selectionStart:void 0}(this.get(0)):this.queue(function(a){if(isNaN(t)){var n=e(this).val().indexOf(t);!0===i?n+=t.length:void 0!==i&&(n+=i),r(this,n)}else r(this,t);a()})}}(jQuery),function(e){var r=function(e){return e?e.ownerDocument.defaultView||e.ownerDocument.parentWindow:window},t=function(r,t){var i=e.Range.current(r).clone(),a=e.Range(r).select(r);return i.overlaps(a)?(i.compare("START_TO_START",a)<1?(startPos=0,i.move("START_TO_START",a)):(fromElementToCurrent=a.clone(),fromElementToCurrent.move("END_TO_START",i),startPos=fromElementToCurrent.toString().length),i.compare("END_TO_END",a)>=0?endPos=a.toString().length:endPos=startPos+i.toString().length,{start:startPos,end:endPos}):null},i=function(i){var a=r(i);if(void 0!==i.selectionStart)return document.activeElement&&document.activeElement!=i&&i.selectionStart==i.selectionEnd&&0==i.selectionStart?{start:i.value.length,end:i.value.length}:{start:i.selectionStart,end:i.selectionEnd};if(a.getSelection)return t(i);try{if("input"==i.nodeName.toLowerCase()){var n=r(i).document.selection.createRange(),s=i.createTextRange();s.setEndPoint("EndToStart",n);var d=s.text.length;return{start:d,end:d+n.text.length}}var o=t(i);if(!o)return o;var u=e.Range.current().clone(),l=u.clone().collapse().range,c=u.clone().collapse(!1).range;return l.moveStart("character",-1),c.moveStart("character",-1),0!=o.startPos&&""==l.text&&(o.startPos+=2),0!=o.endPos&&""==c.text&&(o.endPos+=2),o}catch(e){return{start:i.value.length,end:i.value.length}}},a=function(e,t,i){var a=r(e);if(e.setSelectionRange)void 0===i?(e.focus(),e.setSelectionRange(t,t)):(e.select(),e.selectionStart=t,e.selectionEnd=i);else if(e.createTextRange){var n=e.createTextRange();n.moveStart("character",t),i=i||t,n.moveEnd("character",i-e.value.length),n.select()}else if(a.getSelection){var d=a.document,o=a.getSelection(),u=d.createRange(),l=[t,void 0!==i?i:t];s([e],l),u.setStart(l[0].el,l[0].count),u.setEnd(l[1].el,l[1].count),o.removeAllRanges(),o.addRange(u)}else if(a.document.body.createTextRange){(u=document.body.createTextRange()).moveToElementText(e),u.collapse(),u.moveStart("character",t),u.moveEnd("character",void 0!==i?i:t),u.select()}},n=function(e,r,t,i){"number"==typeof t[0]&&t[0]<r&&(t[0]={el:i,count:t[0]-e}),"number"==typeof t[1]&&t[1]<=r&&(t[1]={el:i,count:t[1]-e})},s=function(e,r,t){var i,a;t=t||0;for(var d=0;e[d];d++)3===(i=e[d]).nodeType||4===i.nodeType?(a=t,t+=i.nodeValue.length,n(a,t,r,i)):8!==i.nodeType&&(t=s(i.childNodes,r,t));return t};jQuery.fn.selection=function(e,r){return void 0!==e?this.each(function(){a(this,e,r)}):i(this[0])},e.fn.selection.getCharElement=s}(jQuery),function(e){"use strict";e.redux=e.redux||{},e(document).ready(function(){e.fn.isOnScreen=function(){if(window){var r=e(window),t={top:r.scrollTop()};t.right=t.left+r.width(),t.bottom=t.top+r.height();var i=this.offset();return i.right=i.left+this.outerWidth(),i.bottom=i.top+this.outerHeight(),!(t.right<i.left||t.left>i.right||t.bottom<i.top||t.top>i.bottom)}},e.redux.hideFields(),e.redux.checkRequired(),e.redux.initEvents(),e.redux.initQtip(),e.redux.tabCheck(),e.redux.notices(),e.redux.tabControl()}),e.redux.ajax_save=function(r){var t=e(document.getElementById("redux_ajax_overlay"));t.fadeIn(),jQuery(".redux-action_bar .spinner").addClass("is-active"),jQuery(".redux-action_bar input").attr("disabled","disabled");var i=jQuery(document.getElementById("redux_notification_bar"));i.slideUp(),jQuery(".redux-save-warn").slideUp(),jQuery(".redux_ajax_save_error").slideUp("medium",function(){jQuery(this).remove()});var a=jQuery(document.getElementById("redux-form-wrapper"));redux.fields.hasOwnProperty("editor")&&e.each(redux.fields.editor,function(e,r){if("undefined"!=typeof tinyMCE){var t=tinyMCE.get(e);t&&t.save()}});var n=a.serialize();a.find("input[type=checkbox]").each(function(){if(void 0!==e(this).attr("name")){var r=e(this).is(":checked")?e(this).val():"0";n+="&"+e(this).attr("name")+"="+r}}),"redux_save"!=r.attr("name")&&(n+="&"+r.attr("name")+"="+r.val());var s=a.attr("data-nonce");return jQuery.ajax({type:"post",dataType:"json",url:ajaxurl,data:{action:redux.args.opt_name+"_ajax_save",nonce:s,opt_name:redux.args.opt_name,data:n},error:function(e){window.console||(console={}),console.log=console.log||function(e,r){},console.log(redux.ajax.console),console.log(e.responseText),jQuery(".redux-action_bar input").removeAttr("disabled"),t.fadeOut("fast"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),alert(redux.ajax.alert)},success:function(r){if(r.action&&"reload"==r.action)location.reload(!0);else if("success"==r.status){jQuery(".redux-action_bar input").removeAttr("disabled"),t.fadeOut("fast"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),redux.options=r.options,redux.errors=r.errors,redux.warnings=r.warnings,i.html(r.notification_bar).slideDown("fast"),(null!==r.errors||null!==r.warnings)&&e.redux.notices();var a=e(document.getElementById("redux_notification_bar")).find(".saved_notice");a.slideDown(),a.delay(4e3).slideUp(),"1"==redux.options.ampforwp_css_tree_shaking?(jQuery("#ampforwp-clear-clearcss-data").removeClass("hide"),jQuery("#ampforwp-clear-clcss-msg").addClass("hide")):(jQuery("#ampforwp-clear-clearcss-data").addClass("hide"),jQuery("#ampforwp-clear-clcss-msg").removeClass("hide"))}else jQuery(".redux-action_bar input").removeAttr("disabled"),jQuery(".redux-action_bar .spinner").removeClass("is-active"),t.fadeOut("fast"),jQuery(".wrap h2:first").parent().append('<div class="error redux_ajax_save_error" style="display:none;"><p>'+r.status+"</p></div>"),jQuery(".redux_ajax_save_error").slideDown(),jQuery("html, body").animate({scrollTop:0},"slow")}}),!1},e.redux.initEvents=function(){e(".redux-presets-bar").on("click",function(){window.onbeforeunload=null}),e("#toplevel_page_"+redux.args.slug+" .wp-submenu a, #wp-admin-bar-"+redux.args.slug+" a.ab-item, .extension-menu-call a").click(function(r){if((e("#toplevel_page_"+redux.args.slug).hasClass("wp-menu-open")||e(this).hasClass("ab-item"))&&!e(this).parents("ul.ab-submenu:first").hasClass("ab-sub-secondary")&&e(this).attr("href").toLowerCase().indexOf(redux.args.slug+"&tab=")>=0){r.preventDefault();var t=e(this).attr("href").split("&tab=");return e("#"+t[1]+"_section_group_li_a").click(),e(this).parents("ul:first").find(".current").removeClass("current"),e(this).addClass("current"),e(this).parent().addClass("current"),!1}}),e(".redux-action_bar input").on("click",function(r){if(e(this).attr("name")==redux.args.opt_name+"[defaults]"){if(!confirm(redux.args.reset_confirm))return!1}else if(e(this).attr("name")==redux.args.opt_name+"[defaults-section]"&&!confirm(redux.args.reset_section_confirm))return!1;window.onbeforeunload=null,!0===redux.args.ajax_save&&(e.redux.ajax_save(e(this)),r.preventDefault())}),e(".expand_options").click(function(r){r.preventDefault();var t=e(".redux-container");if(e(t).hasClass("fully-expanded")){e(t).removeClass("fully-expanded");var i=e.cookie("redux_current_tab");e(".redux-container:first").find("#"+i+"_section_group").fadeIn(200,function(){0!==e(".redux-container:first").find("#redux-footer").length&&e.redux.stickyInfo(),e.redux.initFields()})}return e.redux.expandOptions(e(this).parents(".redux-container:first")),!1}),e(".saved_notice").is(":visible")&&e(".saved_notice").slideDown(),e(document.body).on("change",".redux-field input, .redux-field textarea, .redux-field select",function(){e(this).hasClass("noUpdate")||redux_change(e(this))});var r=e("#redux-footer").height();e("#redux-sticky-padder").css({height:r}),e("#redux-footer-sticky").removeClass("hide"),0!==e("#redux-footer").length&&(e(window).scroll(function(){e.redux.stickyInfo()}),e(window).resize(function(){e.redux.stickyInfo()})),e(".saved_notice").delay(4e3).slideUp()},e.redux.hideFields=function(){e("label[for='redux_hide_field']").each(function(r,t){var i=e(this).parent().parent();e(i).addClass("hidden")})},e.redux.checkRequired=function(){e.redux.required(),e("body").on("change",".redux-main select, .redux-main radio, .redux-main input[type=checkbox], .redux-main input[type=hidden]",function(r){e.redux.check_dependencies(this)}),e("body").on("check_dependencies",function(r,t){e.redux.check_dependencies(t)}),e("td > fieldset:empty,td > div:empty").parent().parent().hide()},e.redux.initQtip=function(){if(e().qtip){var r="";!0===redux.args.hints.tip_style.shadow&&(r="qtip-shadow");var t="",i=redux.args.hints.tip_style.color;""!==i&&(t="qtip-"+i);var a="";!0===redux.args.hints.tip_style.rounded&&(a="qtip-rounded");var n="",s=redux.args.hints.tip_style.style;""!==s&&(n="qtip-"+s);var d=r+","+t+","+a+","+n+",redux-qtip";d=d.replace(/,/g," ");var o=redux.args.hints.tip_position.my,u=redux.args.hints.tip_position.at;o=e.redux.verifyPos(o.toLowerCase(),!0),u=e.redux.verifyPos(u.toLowerCase(),!1);var l=redux.args.hints.tip_effect.show.event,c=redux.args.hints.tip_effect.hide.event,f=redux.args.hints.tip_effect.show.effect,p=redux.args.hints.tip_effect.show.duration,h=redux.args.hints.tip_effect.hide.effect,x=redux.args.hints.tip_effect.hide.duration;e("div.redux-dev-qtip").each(function(){e(this).qtip({content:{text:e(this).attr("qtip-content"),title:e(this).attr("qtip-title")},show:{effect:function(){e(this).slideDown(500)},event:"mouseover"},hide:{effect:function(){e(this).slideUp(500)},event:"mouseleave"},style:{classes:"qtip-shadow qtip-light"},position:{my:"top center",at:"bottom center"}})}),e("div.redux-hint-qtip").each(function(){e(this).qtip({content:{text:e(this).attr("qtip-content"),title:e(this).attr("qtip-title")},show:{effect:function(){switch(f){case"slide":e(this).slideDown(p);break;case"fade":e(this).fadeIn(p);break;default:e(this).show()}},event:l},hide:{effect:function(){switch(h){case"slide":e(this).slideUp(x);break;case"fade":e(this).fadeOut(x);break;default:e(this).hide(x)}},event:c},style:{classes:d},position:{my:o,at:u}})}),e("input[qtip-content]").each(function(){e(this).qtip({content:{text:e(this).attr("qtip-content"),title:e(this).attr("qtip-title")},show:"focus",hide:"blur",style:d,position:{my:o,at:u}})})}},e.redux.tabCheck=function(){if(e(".redux-group-tab-link-a").click(function(){var r=e(this);if(r.parent().hasClass("empty_section")&&r.parent().hasClass("hasSubSections")){var t=e(this).closest("ul").find(".redux-group-tab-link-a"),i=t.index(this);r=t.slice(i+1,i+2)}var a=r.parents(".redux-container:first"),n=r.data("rel"),s=a.find(".redux-group-tab-link-li.active:first .redux-group-tab-link-a").data("rel");if(s!==n){if(e("#currentSection").val(n),r.parents(".postbox-container:first").length||e.cookie("redux_current_tab",n,{expires:7,path:"/"}),a.find("#"+n+"_section_group_li").parents(".redux-group-tab-link-li").length){var d=a.find("#"+n+"_section_group_li").parents(".redux-group-tab-link-li").attr("id").split("_");d=d[0]}if(a.find("#toplevel_page_"+redux.args.slug+" .wp-submenu a.current").removeClass("current"),a.find("#toplevel_page_"+redux.args.slug+" .wp-submenu li.current").removeClass("current"),a.find("#toplevel_page_"+redux.args.slug+" .wp-submenu a").each(function(){var r=e(this).attr("href").split("&tab=");(r[1]==n||r[1]==d)&&(e(this).addClass("current"),e(this).parent().addClass("current"))}),a.find("#"+s+"_section_group_li").find("#"+s+"_section_group_li").length)a.find("#"+s+"_section_group_li").addClass("activeChild"),a.find("#"+n+"_section_group_li").addClass("active").removeClass("activeChild");else if(a.find("#"+n+"_section_group_li").parents("#"+s+"_section_group_li").length||a.find("#"+s+"_section_group_li").parents("ul.subsection").find("#"+n+"_section_group_li").length)a.find("#"+n+"_section_group_li").parents("#"+s+"_section_group_li").length?a.find("#"+s+"_section_group_li").addClass("activeChild").removeClass("active"):(a.find("#"+n+"_section_group_li").addClass("active"),a.find("#"+s+"_section_group_li").removeClass("active")),a.find("#"+n+"_section_group_li").removeClass("activeChild").addClass("active");else if(a.find("#"+n+"_section_group_li").addClass("active").removeClass("activeChild").find("ul.subsection").slideDown(),a.find("#"+s+"_section_group_li").find("ul.subsection").length){a.find("#"+s+"_section_group_li").find("ul.subsection").slideUp("fast",function(){a.find("#"+s+"_section_group_li").removeClass("active").removeClass("activeChild")});var o=a.find("#"+n+"_section_group_li").parents(".hasSubSections:first");o.length>0&&(a.find("#"+n+"_section_group_li").removeClass("active"),n=o.find(".redux-group-tab-link-a:first").data("rel"),o.hasClass("empty_section")?(o.find(".subsection li:first").addClass("active"),a.find("#"+n+"_section_group_li").removeClass("active").addClass("activeChild").find("ul.subsection").slideDown(),o=o.find(".subsection li:first"),n=o.find(".redux-group-tab-link-a:first").data("rel")):a.find("#"+n+"_section_group_li").addClass("active").removeClass("activeChild").find("ul.subsection").slideDown())}else a.find("#"+s+"_section_group_li").parents("ul.subsection").length?a.find("#"+s+"_section_group_li").parents("#"+n+"_section_group_li").length?a.find("#"+s+"_section_group_li").removeClass("active"):a.find("#"+s+"_section_group_li").parents("ul.subsection").slideUp("fast",function(){a.find("#"+s+"_section_group_li").removeClass("active"),a.find("#"+s+"_section_group_li").parents(".redux-group-tab-link-li").removeClass("active").removeClass("activeChild"),a.find("#"+n+"_section_group_li").parents(".redux-group-tab-link-li").addClass("activeChild").find("ul.subsection").slideDown(),a.find("#"+n+"_section_group_li").addClass("active")}):(a.find("#"+s+"_section_group_li").removeClass("active"),a.find("#"+n+"_section_group_li").parents(".redux-group-tab-link-li").length&&(a.find("#"+n+"_section_group_li").parents(".redux-group-tab-link-li").addClass("activeChild").find("ul.subsection").slideDown(),a.find("#"+n+"_section_group_li").addClass("active")));a.find("#"+s+"_section_group").hide(),a.find("#"+n+"_section_group").fadeIn(0,function(){0!==a.find("#redux-footer").length&&e.redux.stickyInfo(),e.redux.initFields()}),e("#toplevel_page_"+redux.args.slug).find(".current").removeClass("current")}}),void 0===redux.last_tab){var r=decodeURI((new RegExp("tab=(.+?)(&|$)").exec(location.search)||[,""])[1]);""!==r?e.cookie("redux_current_tab_get")!==r&&(e.cookie("redux_current_tab",r,{expires:7,path:"/"}),e.cookie("redux_current_tab_get",r,{expires:7,path:"/"}),e("#"+r+"_section_group_li").click()):""!==e.cookie("redux_current_tab_get")&&e.removeCookie("redux_current_tab_get");var t=e("#"+e.cookie("redux_current_tab")+"_section_group_li_a");null===e.cookie("redux_current_tab")||void 0===e.cookie("redux_current_tab")||0===t.length?e(".redux-container").find(".redux-group-tab-link-a:first").click():t.click()}else e("#"+redux.last_tab+"_section_group_li_a").click()},e.redux.initFields=function(){e(".redux-group-tab:visible").find(".redux-field-init:visible").each(function(){var r=e(this).attr("data-type");if(void 0!==redux.field_objects&&redux.field_objects[r]&&redux.field_objects[r]&&redux.field_objects[r].init(),!redux.customizer&&e(this).hasClass("redux_remove_th")){var t=e(this).parents("tr:first").find("th:first");t.html()&&t.html().length>0&&(e(this).prepend(t.html()),e(this).find(".redux_field_th").css("padding","0 0 10px 0")),e(this).parent().attr("colspan","2"),t.remove()}})},e.redux.notices=function(){redux.errors&&redux.errors.errors&&(e.each(redux.errors.errors,function(r,t){e.each(t.errors,function(r,t){e("#"+redux.args.opt_name+"-"+t.id).addClass("redux-field-error"),0===e("#"+redux.args.opt_name+"-"+t.id).parent().find(".redux-th-error").length?e("#"+redux.args.opt_name+"-"+t.id).append('<div class="redux-th-error">'+t.msg+"</div>"):e("#"+redux.args.opt_name+"-"+t.id).parent().find(".redux-th-error").html(t.msg).css("display","block")})}),e(".redux-container").each(function(){var r=e(this);r.find(".redux-menu-error").remove();var t=r.find(".redux-field-error").length;t>0&&(r.find(".redux-field-errors span").text(t),r.find(".redux-field-errors").slideDown(),r.find(".redux-group-tab").each(function(){var t=e(this).find(".redux-field-error").length;if(t>0){var i=e(this).attr("id").split("_");i=i[0],r.find('.redux-group-tab-link-a[data-key="'+i+'"]').prepend('<span class="redux-menu-error">'+t+"</span>"),r.find('.redux-group-tab-link-a[data-key="'+i+'"]').addClass("hasError");var a=r.find('.redux-group-tab-link-a[data-key="'+i+'"]').parents(".hasSubSections:first");a&&a.find(".redux-group-tab-link-a:first").addClass("hasError")}}))})),redux.warnings&&redux.warnings.warnings&&(e.each(redux.warnings.warnings,function(r,t){e.each(t.warnings,function(r,t){e("#"+redux.args.opt_name+"-"+t.id).addClass("redux-field-warning"),0===e("#"+redux.args.opt_name+"-"+t.id).parent().find(".redux-th-warning").length?e("#"+redux.args.opt_name+"-"+t.id).append('<div class="redux-th-warning">'+t.msg+"</div>"):e("#"+redux.args.opt_name+"-"+t.id).parent().find(".redux-th-warning").html(t.msg).css("display","block")})}),e(".redux-container").each(function(){var r=e(this);r.find(".redux-menu-warning").remove();var t=r.find(".redux-field-warning").length;t>0&&(r.find(".redux-field-warnings span").text(t),r.find(".redux-field-warnings").slideDown(),r.find(".redux-group-tab").each(function(){var t=e(this).find(".redux-field-warning").length;if(t>0){var i=e(this).attr("id").split("_");i=i[0],r.find('.redux-group-tab-link-a[data-key="'+i+'"]').prepend('<span class="redux-menu-warning">'+t+"</span>"),r.find('.redux-group-tab-link-a[data-key="'+i+'"]').addClass("hasWarning");var a=r.find('.redux-group-tab-link-a[data-key="'+i+'"]').parents(".hasSubSections:first");a&&a.find(".redux-group-tab-link-a:first").addClass("hasWarning")}}))}))},e.redux.tabControl=function(){e(".redux-section-tabs div").hide(),e(".redux-section-tabs div:first").show(),e(".redux-section-tabs ul li:first").addClass("active"),e(".redux-section-tabs ul li a").click(function(){e(".redux-section-tabs ul li").removeClass("active"),e(this).parent().addClass("active");var r=e(this).attr("href");return e(".redux-section-tabs div").hide(),e(r).fadeIn("medium",function(){e.redux.initFields()}),!1})},e.redux.required=function(){e.each(redux.folds,function(r,t){var i=e("#"+redux.args.opt_name+"-"+r);if(i.parents("tr:first").addClass("fold"),"hide"==t){if(i.parents("tr:first").addClass("hide"),i.hasClass("redux-container-section")){var a=e("#section-"+r);a.hasClass("redux-section-indent-start")&&(e("#section-table-"+r).hide().addClass("hide"),a.hide().addClass("hide"))}if(i.hasClass("redux-container-info")&&e("#info-"+r).hide().addClass("hide"),i.hasClass("redux-container-divide")&&e("#divide-"+r).hide().addClass("hide"),i.hasClass("redux-container-raw"))i.parents().find("table#"+redux.args.opt_name+"-"+r).hide().addClass("hide")}})},e.redux.get_container_value=function(r){var t=e("#"+redux.args.opt_name+"-"+r).serializeForm();return null!==t&&"object"==typeof t&&t.hasOwnProperty(redux.args.opt_name)&&(t=t[redux.args.opt_name][r]),e("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-media")&&(t=t.url),t},e.redux.check_dependencies=function(r){if(null!==redux.required){var t=e(r),i=t.parents(".redux-field:first").data("id");if(redux.required.hasOwnProperty(i)){var a=t.parents(".redux-field-container:first"),n=a.parents("tr:first").hasClass(".hide");a.parents("tr:first").length||(n=a.parents(".customize-control:first").hasClass(".hide")),e.each(redux.required[i],function(r,t){var i=e(this),a=!1,s=e("#"+redux.args.opt_name+"-"+r),d=s.parents("tr:first");if(n||(a=e.redux.check_parents_dependencies(r)),!0===a){if(s.hasClass("redux-container-section")){var o=e("#section-"+r);o.hasClass("redux-section-indent-start")&&o.hasClass("hide")&&(e("#section-table-"+r).fadeIn(300).removeClass("hide"),o.fadeIn(300).removeClass("hide"))}if(s.hasClass("redux-container-info")&&e("#info-"+r).fadeIn(300).removeClass("hide"),s.hasClass("redux-container-divide")&&e("#divide-"+r).fadeIn(300).removeClass("hide"),s.hasClass("redux-container-raw"))s.parents().find("table#"+redux.args.opt_name+"-"+r).fadeIn(300).removeClass("hide");d.fadeIn(300,function(){e(this).removeClass("hide"),redux.required.hasOwnProperty(r)&&e.redux.check_dependencies(e("#"+redux.args.opt_name+"-"+r).children().first()),e.redux.initFields()}),(s.hasClass("redux-container-section")||s.hasClass("redux-container-info"))&&d.css({display:"none"})}else!1===a&&d.fadeOut(100,function(){e(this).addClass("hide"),redux.required.hasOwnProperty(r)&&e.redux.required_recursive_hide(r)});i.find("select, radio, input[type=checkbox]").trigger("change")})}}},e.redux.required_recursive_hide=function(r){e("#"+redux.args.opt_name+"-"+r).parents("tr:first").fadeOut(50,function(){if(e(this).addClass("hide"),e("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-section")){var t=e("#section-"+r);t.hasClass("redux-section-indent-start")&&(e("#section-table-"+r).fadeOut(50).addClass("hide"),t.fadeOut(50).addClass("hide"))}(e("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-info")&&e("#info-"+r).fadeOut(50).addClass("hide"),e("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-divide")&&e("#divide-"+r).fadeOut(50).addClass("hide"),e("#"+redux.args.opt_name+"-"+r).hasClass("redux-container-raw"))&&e("#"+redux.args.opt_name+"-"+r).parents().find("table#"+redux.args.opt_name+"-"+r).fadeOut(50).addClass("hide");redux.required.hasOwnProperty(r)&&e.each(redux.required[r],function(r){e.redux.required_recursive_hide(r)})})},e.redux.check_parents_dependencies=function(r){var t="";return redux.required_child.hasOwnProperty(r)?e.each(redux.required_child[r],function(r,i){if(e("#"+redux.args.opt_name+"-"+i.parent).parents("tr:first").hasClass(".hide"))t=!1;else if(!1!==t){var a=e.redux.get_container_value(i.parent);t=e.redux.check_dependencies_visibility(a,i)}}):t=!0,t},e.redux.check_dependencies_visibility=function(r,t){var i,a=!1,n=t.checkValue;switch(t.operation){case"=":case"equals":e.isArray(r)?e(r[0]).each(function(r,t){if(e.isArray(n))e(n).each(function(e,r){return t==r?(a=!0,!0):void 0});else if(t==n)return a=!0,!0}):e.isArray(n)?e(n).each(function(e,t){r==t&&(a=!0)}):r==n&&(a=!0);break;case"!=":case"not":e.isArray(r)?e(r).each(function(r,t){if(e.isArray(n))e(n).each(function(e,r){return t!=r?(a=!0,!0):void 0});else if(t!=n)return a=!0,!0}):e.isArray(n)?e(n).each(function(e,t){r!=t&&(a=!0)}):r!=n&&(a=!0);break;case">":case"greater":case"is_larger":parseFloat(r)>parseFloat(n)&&(a=!0);break;case">=":case"greater_equal":case"is_larger_equal":parseFloat(r)>=parseFloat(n)&&(a=!0);break;case"<":case"less":case"is_smaller":parseFloat(r)<parseFloat(n)&&(a=!0);break;case"<=":case"less_equal":case"is_smaller_equal":parseFloat(r)<=parseFloat(n)&&(a=!0);break;case"contains":e.isPlainObject(r)&&(r=Object.keys(r).map(function(e){return[e,r[e]]})),e.isPlainObject(n)&&(n=Object.keys(n).map(function(e){return[e,n[e]]})),e.isArray(n)?e(n).each(function(t,i){var n=!1,s=i[0],d=i[1];return e(r).each(function(e,r){var t=r[0],i=r[1];return s===t&&d==i?(a=!0,n=!0,!1):void 0}),!0!==n&&void 0}):-1!==r.toString().indexOf(n)&&(a=!0);break;case"doesnt_contain":case"not_contain":e.isPlainObject(r)&&(i=Object.keys(r).map(function(e){return r[e]}),r=i),e.isPlainObject(n)&&(i=Object.keys(n).map(function(e){return n[e]}),n=i),e.isArray(n)?e(n).each(function(e,t){-1===r.toString().indexOf(t)&&(a=!0)}):-1===r.toString().indexOf(n)&&(a=!0);break;case"is_empty_or":(""===r||r==n)&&(a=!0);break;case"not_empty_and":""!==r&&r!=n&&(a=!0);break;case"is_empty":case"empty":case"!isset":r&&""!==r&&null!==r||(a=!0);break;case"not_empty":case"!empty":case"isset":r&&""!==r&&null!==r&&(a=!0)}return a},e.redux.verifyPos=function(e,r){if(""===(e=e.replace(/^\s+|\s+$/gm,""))||-1==e.search(" "))return!0===r?"top left":"bottom right";var t=e.split(" "),i=r?"top":"bottom";("top"==t[0]||"center"==t[0]||"bottom"==t[0])&&(i=t[0]);var a=r?"left":"right";return("left"==t[1]||"center"==t[1]||"right"==t[1])&&(a=t[1]),i+" "+a},e.redux.stickyInfo=function(){var r=e(".redux-main").innerWidth()-20;e("#redux-footer-sticky").isOnScreen()||e("#redux-footer-sticky").isOnScreen()?(e("#redux-footer").css({background:"#eee",position:"inherit",bottom:"inherit",width:"inherit"}),e("#redux-sticky-padder").hide(),e("#redux-footer").removeClass("sticky-footer-fixed")):(e("#redux-footer").css({position:"fixed",bottom:"0",width:r,left:379}),e("#redux-footer").addClass("sticky-footer-fixed"),e(".redux-save-warn").css("left",e("#redux-sticky").offset().left),e("#redux-sticky-padder").show()),e("#info_bar").isOnScreen()?e("#redux-sticky").removeClass("sticky-save-warn"):e("#redux-sticky").addClass("sticky-save-warn")},e.redux.expandOptions=function(r){var t=r.find(".expand_options"),i=r.find(".redux-sidebar").width()-1,a=e(".redux-group-menu .active a").data("rel")+"_section_group";return t.hasClass("expanded")?(t.removeClass("expanded"),r.find(".redux-main").removeClass("expand"),r.find(".redux-sidebar").stop().animate({"margin-left":"0px"},500),r.find(".redux-main").stop().animate({"margin-left":i},500,function(){r.find(".redux-main").attr("style","")}),r.find(".redux-group-tab").each(function(){e(this).attr("id")!==a&&e(this).fadeOut("fast")})):(t.addClass("expanded"),r.find(".redux-main").addClass("expand"),r.find(".redux-sidebar").stop().animate({"margin-left":-i-113},500),r.find(".redux-main").stop().animate({"margin-left":"-1px"},500),r.find(".redux-group-tab").fadeIn("medium",function(){e.redux.initFields()})),!1},e.redux.scaleToRatio=function(r,t,i){var a=0,n=r.attr("data-width");n||(n=r.width(),r.attr("data-width",n));var s=r.attr("data-height"),d=r.height();(!s||d>s)&&(s=d,r.attr("data-height",s),r.css("width","auto"),r.attr("data-width",r.width()),n=r.width()),n>i?(a=i/n,r.css("width",i),r.css("height",s*a),s*=a,n*=a):r.css("width","auto"),s>t?(a=t/s,r.css("height",t),r.css("width",n*a),n*=a,s*=a):r.css("height","auto");var o=(e(document.getElementById("redux-header")).height()-r.height())/2;o>0?r.css("margin-top",o):r.css("margin-top",0),e("#redux-header .redux_field_search")&&e("#redux-header .redux_field_search").css("right",e(r).width()+20)},e.redux.resizeAds=function(){var r,t=e("#redux-header");t.length?r=t.width()-t.find(".display_header").width()-30:(t=e("#customize-info"),r=t.width());var i=t.height(),a=t.find(".rAds");e(a).find("video").each(function(){e.redux.scaleToRatio(e(this),i,r)}),e(a).find("img").each(function(){e.redux.scaleToRatio(e(this),i,r)}),e(a).find("div").each(function(){e.redux.scaleToRatio(e(this),i,r)}),"-99999px"==a.css("left")&&a.css("display","none").css("left","auto"),a.fadeIn("slow")},e(document).ready(function(){redux.rAds&&setTimeout(function(){var r;e("#redux-header").length>0?(e("#redux-header").append('<div class="rAds"></div>'),r=e("#redux-header")):(e("#customize-theme-controls ul").first().prepend('<li id="redux_rAds" class="accordion-section rAdsContainer" style="position: relative;"><div class="rAds"></div></li>'),r=e("#redux_rAds")),r.css("position","relative"),r.find(".rAds").attr("style","position:absolute; top: 6px; right: 6px; display:block !important;overflow:hidden;").css("left","-99999px"),r.find(".rAds").html(redux.rAds.replace(/<br\s?\/?>/,""));var t=r.find(".rAds");r.height(),r.width(),r.find(".display_header").width(),t.find("a").css("float","right").css("line-height",r.height()+"px").css("margin-left","5px"),e(document).ajaxComplete(function(){t.find("a").hide(),setTimeout(function(){e.redux.resizeAds(),t.find("a").fadeIn()},1400),setTimeout(function(){e.redux.resizeAds()},1500),e(document).unbind("ajaxComplete")}),e(window).resize(function(){e.redux.resizeAds()})},400)})}(jQuery),jQuery.noConflict();var confirmOnPageExit=function(e){e=e||window.event;var r=redux.args.save_pending;return e&&(e.returnValue=r),window.onbeforeunload=null,r};
 
includes/sassy-style.css ADDED
@@ -0,0 +1 @@
 
1
+ a.heateor_sss_amp{padding:0 4px;}div.heateor_sss_horizontal_sharing a amp-img{display:inline-block;}.heateor_sss_amp_instagram img{background-color:#624E47}.heateor_sss_amp_yummly img{background-color:#E16120}.heateor_sss_amp_youtube img{background-color:#ff0000}.heateor_sss_amp_buffer img{background-color:#000}.heateor_sss_amp_delicious img{background-color:#53BEEE}.heateor_sss_amp_facebook img{background-color:#3C589A}.heateor_sss_amp_digg img{background-color:#006094}.heateor_sss_amp_email img{background-color:#649A3F}.heateor_sss_amp_float_it img{background-color:#53BEEE}.heateor_sss_amp_linkedin img{background-color:#0077B5}.heateor_sss_amp_pinterest img{background-color:#CC2329}.heateor_sss_amp_print img{background-color:#FD6500}.heateor_sss_amp_reddit img{background-color:#FF5700}.heateor_sss_amp_stocktwits img{background-color: #40576F}.heateor_sss_amp_mewe img{background-color:#007da1}.heateor_sss_amp_mix img{background-color:#ff8226}.heateor_sss_amp_tumblr img{background-color:#29435D}.heateor_sss_amp_twitter img{background-color:#55acee}.heateor_sss_amp_vkontakte img{background-color:#5E84AC}.heateor_sss_amp_yahoo img{background-color:#8F03CC}.heateor_sss_amp_xing img{background-color:#00797D}.heateor_sss_amp_instagram img{background-color:#527FA4}.heateor_sss_amp_whatsapp img{background-color:#55EB4C}.heateor_sss_amp_aim img{background-color: #10ff00}.heateor_sss_amp_amazon_wish_list img{background-color: #ffe000}.heateor_sss_amp_aol_mail img{background-color: #2A2A2A}.heateor_sss_amp_app_net img{background-color: #5D5D5D}.heateor_sss_amp_baidu img{background-color: #2319DC}.heateor_sss_amp_balatarin img{background-color: #fff}.heateor_sss_amp_bibsonomy img{background-color: #000}.heateor_sss_amp_bitty_browser img{background-color: #EFEFEF}.heateor_sss_amp_blinklist img{background-color: #3D3C3B}.heateor_sss_amp_blogger_post img{background-color: #FDA352}.heateor_sss_amp_blogmarks img{background-color: #535353}.heateor_sss_amp_bookmarks_fr img{background-color: #E8EAD4}.heateor_sss_amp_box_net img{background-color: #1A74B0}.heateor_sss_amp_buddymarks img{background-color: #ffd400}.heateor_sss_amp_care2_news img{background-color: #6EB43F}.heateor_sss_amp_citeulike img{background-color: #2781CD}.heateor_sss_amp_comment img{background-color: #444}.heateor_sss_amp_diary_ru img{background-color: #E8D8C6}.heateor_sss_amp_diaspora img{background-color: #2E3436}.heateor_sss_amp_dihitt img{background-color: #FF6300}.heateor_sss_amp_diigo img{background-color: #4A8BCA}.heateor_sss_amp_douban img{background-color: #497700}.heateor_sss_amp_draugiem img{background-color: #ffad66}.heateor_sss_amp_dzone img{background-color: #fff088}.heateor_sss_amp_evernote img{background-color: #8BE056}.heateor_sss_amp_facebook_messenger img{background-color: #0084FF}.heateor_sss_amp_fark img{background-color: #555}.heateor_sss_amp_fintel img{background-color: #087515}.heateor_sss_amp_flipboard img{background-color: #CC0000}.heateor_sss_amp_folkd img{background-color: #0F70B2}.heateor_sss_amp_google_classroom img{background-color: #FFC112}.heateor_sss_amp_google_bookmarks img{background-color: #CB0909}.heateor_sss_amp_google_gmail img{background-color: #E5E5E5}.heateor_sss_amp_hacker_news img{background-color: #F60}.heateor_sss_amp_hatena img{background-color: #00A6DB}.heateor_sss_amp_instapaper img{background-color: #EDEDED}.heateor_sss_amp_jamespot img{background-color: #FF9E2C}.heateor_sss_amp_kakao img{background-color: #FCB700}.heateor_sss_amp_kik img{background-color: #2A2A2A}.heateor_sss_amp_kindle_it img{background-color: #2A2A2A}.heateor_sss_amp_known img{background-color: #fff101}.heateor_sss_amp_line img{background-color: #00C300}.heateor_sss_amp_livejournal img{background-color: #EDEDED}.heateor_sss_amp_mail_ru img{background-color: #356FAC}.heateor_sss_amp_mendeley img{background-color: #A70805}.heateor_sss_amp_meneame img{background-color: #FF7D12}.heateor_sss_amp_mixi img{background-color: #EDEDED}.heateor_sss_amp_myspace img{background-color: #2A2A2A}.heateor_sss_amp_netlog img{background-color: #2A2A2A}.heateor_sss_amp_netvouz img{background-color: #c0ff00}.heateor_sss_amp_newsvine img{background-color: #055D00}.heateor_sss_amp_nujij img{background-color: #D40000}.heateor_sss_amp_odnoklassniki img{background-color: #F2720C}.heateor_sss_amp_oknotizie img{background-color: #fdff88}.heateor_sss_amp_outlook_com img{background-color: #0072C6}.heateor_sss_amp_papaly img{background-color: #3AC0F6}.heateor_sss_amp_pinboard img{background-color: #1341DE}.heateor_sss_amp_plurk img{background-color: #CF682F}.heateor_sss_amp_pocket img{background-color: #f0f0f0}.heateor_sss_amp_polyvore img{background-color: #2A2A2A}.heateor_sss_amp_printfriendly img{background-color: #61D1D5}.heateor_sss_amp_protopage_bookmarks img{background-color: #413FFF}.heateor_sss_amp_pusha img{background-color: #0072B8}.heateor_sss_amp_qzone img{background-color: #2B82D9}.heateor_sss_amp_refind img{background-color: #1492ef}.heateor_sss_amp_rediff_mypage img{background-color: #D20000}.heateor_sss_amp_renren img{background-color: #005EAC}.heateor_sss_amp_segnalo img{background-color: #fdff88}.heateor_sss_amp_sina_weibo img{background-color: #ff0}.heateor_sss_amp_sitejot img{background-color: #ffc800}.heateor_sss_amp_skype img{background-color: #00AFF0}.heateor_sss_amp_sms img{background-color: #6ebe45}.heateor_sss_amp_slashdot img{background-color: #004242}.heateor_sss_amp_stumpedia img{background-color: #EDEDED}.heateor_sss_amp_svejo img{background-color: #fa7aa3}.heateor_sss_amp_symbaloo_feeds img{background-color: #6DA8F7}.heateor_sss_amp_telegram img{background-color: #3DA5f1}.heateor_sss_amp_trello img{background-color: #1189CE}.heateor_sss_amp_tuenti img{background-color: #0075C9}.heateor_sss_amp_twiddla img{background-color: #EDEDED}.heateor_sss_amp_typepad_post img{background-color: #2A2A2A}.heateor_sss_amp_viadeo img{background-color: #2A2A2A}.heateor_sss_amp_viber img{background-color: #8B628F}.heateor_sss_amp_wanelo img{background-color: #fff}.heateor_sss_amp_webnews img{background-color: #CC2512}.heateor_sss_amp_wordpress img{background-color: #464646}.heateor_sss_amp_wykop img{background-color: #367DA9}.heateor_sss_amp_yahoo_mail img{background-color: #400090}.heateor_sss_amp_yahoo_messenger img{background-color: #400090}.heateor_sss_amp_yoolink img{background-color: #A2C538}.heateor_sss_amp_youmob img{background-color: #3B599D}.heateor_sss_amp_gentlereader img{background-color: #46aecf}.heateor_sss_amp_threema img{background-color: #2A2A2A}.heateor_sss_vertical_sharing{position: fixed;left:11px;z-index: 99999;}.heateor-total-share-count .sss_share_count{color:#666;font-size:23px;}.heateor-total-share-count .sss_share_lbl{color:#666;}.amp-wp-enforced-sizes img[alt="Pinterest"]{background: #cc2329;}.amp-wp-enforced-sizes img[alt="Viber"]{background: #8b628f;}.amp-wp-enforced-sizes img[alt="Print"]{background: #fd6500;}.amp-wp-enforced-sizes img[alt="Threema"]{background: #2a2a2a;}.amp-wp-article-content .heateor_sss_vertical_sharing {left:5px;}.amp-wp-article-content amp-img[alt="Pinterest"] {left:4px;}.amp-wp-enforced-sizes img[alt="MySpace"] {background:#2a2a2a;}
includes/thirdparty-compatibility.php CHANGED
@@ -14,14 +14,6 @@ function ampforwp_filter_remove_function_responsifywp(){
14
  }
15
  }
16
 
17
- // Strange spaces when using Sassy Social Share #1185
18
- add_filter('heateor_sss_disable_sharing','ampforwp_removing_sassy_social_share');
19
- function ampforwp_removing_sassy_social_share(){
20
- if(function_exists('ampforwp_is_amp_endpoint') && ampforwp_is_amp_endpoint()){
21
- return 1;
22
- }
23
- }
24
-
25
  add_action('pre_amp_render_post','ampforwp_thirdparty_compatibility');
26
  function ampforwp_thirdparty_compatibility(){
27
  // Remove Schema theme Lazy Load #1170
14
  }
15
  }
16
 
 
 
 
 
 
 
 
 
17
  add_action('pre_amp_render_post','ampforwp_thirdparty_compatibility');
18
  function ampforwp_thirdparty_compatibility(){
19
  // Remove Schema theme Lazy Load #1170
pagebuilder/inc/viewShowFrontData.php CHANGED
@@ -149,6 +149,12 @@ function amp_pagebuilder_content_styles(){
149
  $completeCssOfPB .= '.amp_pb{display: inline-block;width: 100%;}
150
  .row{display: inline-flex;width: 100%;}
151
  .col-2{width:50%;float:left;}
 
 
 
 
 
 
152
  .cb{clear:both;}
153
  .amp_blurb{text-align:center}
154
  .amp_blurb amp-img{margin: 0 auto;}
@@ -161,6 +167,8 @@ function amp_pagebuilder_content_styles(){
161
  }
162
  @media(max-width:425px){
163
  .col-2{width:100%;float:none;margin-bottom:10%;}
 
 
164
  }
165
  ';
166
 
149
  $completeCssOfPB .= '.amp_pb{display: inline-block;width: 100%;}
150
  .row{display: inline-flex;width: 100%;}
151
  .col-2{width:50%;float:left;}
152
+ .col-2-wrap .col-2:nth-child(1){
153
+ padding-right:5px;
154
+ }
155
+ .col-2-wrap .col-2:nth-child(2){
156
+ padding-left:5px;
157
+ }
158
  .cb{clear:both;}
159
  .amp_blurb{text-align:center}
160
  .amp_blurb amp-img{margin: 0 auto;}
167
  }
168
  @media(max-width:425px){
169
  .col-2{width:100%;float:none;margin-bottom:10%;}
170
+ .col-2-wrap .col-2:nth-child(1){padding-right:0px;}
171
+ .col-2-wrap .col-2:nth-child(2){padding-left:0px;}
172
  }
173
  ';
174
 
pagebuilder/modules/contents-module.php CHANGED
@@ -32,32 +32,38 @@ function ampforwp_content_module_pagination($args, $fieldValues){
32
  $frontCss = '
33
  {{if_condition_content_layout_type==1}}
34
  .wrap{width:100%;display:inline-block;margin-top:10px;}
35
- .cm ul{display: flex;flex-wrap: wrap;margin: -15px;padding:0;list-style-type:none;}
36
- .cm ul li {margin: 15px 15px 25px 15px;flex-basis: calc(33.33% - 30px);}
37
- .cm .cml{line-height:0;}
38
- .cm {margin:{{margin_css}};padding:{{padding_css}};}
39
- .cm h4{border-bottom: 2px solid #eee;padding-bottom: 8px;margin-bottom: 5px;font-size:18px;color: #191919;font-weight: 600;}
40
- .cm .cmr{display:flex;flex-direction: column;margin-top: 6px;}
41
- .cm .cmr a{font-size: 16px;line-height: 1.3;font-weight: 500;color: #000;margin: 0px 0px 5px 0px;}
42
- .cm .cmr p{color: {{text_color_picker}};font-size: 13px;line-height: 20px;letter-spacing: 0.10px;margin-bottom:0;}
43
- .cm .cml{width:100%;}
44
- .cm .cmr p a{
45
- font-size:13px;
46
- color:#005be2;
47
  }
48
- .cmp a {
 
 
 
 
 
 
49
  color: black;
50
  float: left;
51
  padding: 8px 16px;
52
  text-decoration: none;
53
  transition: background-color .3s;
54
  }
55
- .cmp a.active {
56
  background-color: dodgerblue;
57
  color: white;
58
  }
59
- .cmp a:hover:not(.active) {background-color: #ddd;}
60
- .cmp{
61
  width: 100%;
62
  margin: 30px 0px 0px 0px;
63
  display: flex;
@@ -66,20 +72,40 @@ function ampforwp_content_module_pagination($args, $fieldValues){
66
  justify-content: center;
67
  }
68
  @media(max-width:768px){
69
- .cm ul li {flex-basis: calc(100% - 30px);margin: 10px 15px;}
70
- .cml amp-img{width:100%;}
71
- .cm .cml{width: 40%;float: left;margin-right: 20px;}
72
- .cm .cmr{width: 54%;float: left;margin-top: 0;}
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
  @media(max-width:767px){
75
- .cmp a{
 
76
  padding:5px 12px;
77
  font-size:16px;
78
  }
79
  }
80
  @media (max-width: 480px){
81
- .cm .cml{width: 100%;float: none;margin-right: 0px;}
82
- .cm .cmr{width: 100%;float: none;margin-top:6px;}
 
 
 
 
 
 
 
 
83
  }
84
  {{ifend_condition_content_layout_type_1}}
85
  ';
32
  $frontCss = '
33
  {{if_condition_content_layout_type==1}}
34
  .wrap{width:100%;display:inline-block;margin-top:10px;}
35
+
36
+ {{module-class}} .cm ul{
37
+ display:grid;
38
+ width:100%;
39
+ grid-template-columns:1fr 1fr 1fr;
40
+ grid-gap:0px 30px;
41
+ }
42
+ {{module-class}} .cm ul li {
43
+ list-style-type: none;
44
+ }
45
+ {{module-class}} .cm .cml{
46
+ line-height:0;
47
  }
48
+ {{module-class}} .cm {margin:{{margin_css}};padding:{{padding_css}};}
49
+ {{module-class}} .cm h4{border-bottom: 2px solid #eee;padding-bottom: 8px;margin-bottom: 5px;font-size:18px;color: #191919;font-weight: 600;}
50
+ {{module-class}} .cm .cmr{display:flex;flex-direction: column;margin-top: 6px;}
51
+ {{module-class}} .cm .cmr a{font-size: 16px;line-height: 1.3;font-weight: 500;color: #000;margin: 0px 0px 5px 0px;}
52
+ {{module-class}} .cm .cmr p{color: {{text_color_picker}};font-size: 13px;line-height: 20px;letter-spacing: 0.10px;margin-bottom:0;}
53
+ {{module-class}} .cm .cml{width:100%;}
54
+ {{module-class}} .cmp a {
55
  color: black;
56
  float: left;
57
  padding: 8px 16px;
58
  text-decoration: none;
59
  transition: background-color .3s;
60
  }
61
+ {{module-class}} .cmp a.active {
62
  background-color: dodgerblue;
63
  color: white;
64
  }
65
+ {{module-class}} .cmp a:hover:not(.active) {background-color: #ddd;}
66
+ {{module-class}} .cmp{
67
  width: 100%;
68
  margin: 30px 0px 0px 0px;
69
  display: flex;
72
  justify-content: center;
73
  }
74
  @media(max-width:768px){
75
+ {{module-class}} .cm ul{
76
+ grid-template-columns:1fr;
77
+ grid-gap:20px;
78
+ }
79
+ {{module-class}} .cm ul li{
80
+ display:flex;
81
+ }
82
+ {{module-class}} .cml amp-img{width:100%;}
83
+ {{module-class}} .cm .cml{
84
+ margin-right: 20px;
85
+ }
86
+ {{module-class}} .cm .cmr{
87
+ flex: 1 0 55%;
88
+ margin-top: 0;
89
+ }
90
  }
91
  @media(max-width:767px){
92
+
93
+ {{module-class}} .cmp a{
94
  padding:5px 12px;
95
  font-size:16px;
96
  }
97
  }
98
  @media (max-width: 480px){
99
+ {{module-class}} .cm ul li{
100
+ display:inline-block;
101
+ }
102
+ {{module-class}} .cm .cml{
103
+ margin:0px 0px 20px;
104
+ }
105
+ {{module-class}} .cm .cmr{
106
+ flex: 1 0 100%;
107
+ }
108
+
109
  }
110
  {{ifend_condition_content_layout_type_1}}
111
  ';
pagebuilder/modules/feature-mod-module.php CHANGED
@@ -4,24 +4,23 @@ if ( ! defined( 'ABSPATH' ) ) exit;
4
  $output = '
5
  <div {{if_id}}id="{{id}}"{{ifend_id}} class="ln-fx {{user_class}}">{{repeater}}</div>';
6
  $css = '
7
- .feature-mod{margin:{{margin_css}};padding:{{padding_css}};}
8
  {{if_condition_feature_layout_type==1}}
9
  {{module-class}} .ln-fx{width:100%;display:flex; flex-wrap:wrap;}
10
- .feat-blk{ margin: 0 3% 3% 0; background: {{background_color_picker}}; width: 47%; text-align: {{align_type}};padding: 40px; position: relative;color: #26292c;}
11
- .feat-blk p{color: #333;font-size: 18px;padding-top:15px;}
12
- .feat-blk h1{font-size:28px;}
13
- .feat-blk h2{font-size:25px;}
14
- .feat-blk h3{font-size:22px;}
15
- .feat-blk h4{font-size:19px;}
16
- .feat-blk h5{font-size:17px;}
17
- .feat-blk h6{font-size:15px;}
18
- .feat-blk h1, .feat-blk h2, .feat-blk h3, .feat-blk h4, .feat-blk h5, .feat-blk h6{
19
  color:{{font_color_picker}};font-weight:400;padding-bottom:15px;
20
  }
21
- .feat-blk amp-img{margin:0 auto;width:100%}
22
- .feat-blk amp-img{width:{{img_width}};}
23
  {{if_condition_check_for_btn==1}}
24
- .feat-blk .fe_btn{
25
  font-size:{{btn_size}};
26
  font-weight:{{btn_weight}};
27
  color:{{btn_color}};
@@ -33,10 +32,10 @@ $css = '
33
  }
34
  {{ifend_condition_check_for_btn_1}}
35
  @media(max-width:768px){
36
- .feat-blk{width: 100%;margin-right: 0;}
37
  }
38
  @media(max-width:425px){
39
- .feat-blk amp-img{width:100%;}
40
  }
41
  {{ifend_condition_feature_layout_type_1}}
42
  ';
4
  $output = '
5
  <div {{if_id}}id="{{id}}"{{ifend_id}} class="ln-fx {{user_class}}">{{repeater}}</div>';
6
  $css = '
7
+ {{module-class}}.feature-mod{margin:{{margin_css}};padding:{{padding_css}};}
8
  {{if_condition_feature_layout_type==1}}
9
  {{module-class}} .ln-fx{width:100%;display:flex; flex-wrap:wrap;}
10
+ {{module-class}} .feat-blk{ margin: 0 3% 3% 0; background: {{background_color_picker}}; width: 47%; text-align: {{align_type}};padding: 40px; position: relative;color: #26292c;}
11
+ {{module-class}} .feat-blk p{color: #333;font-size: 18px;padding-top:15px;}
12
+ {{module-class}} .feat-blk h1{font-size:28px;}
13
+ {{module-class}} .feat-blk h2{font-size:25px;}
14
+ {{module-class}} .feat-blk h3{font-size:22px;}
15
+ {{module-class}} .feat-blk h4{font-size:19px;}
16
+ {{module-class}} .feat-blk h5{font-size:17px;}
17
+ {{module-class}} .feat-blk h6{font-size:15px;}
18
+ {{module-class}} .feat-blk h1, {{module-class}} .feat-blk h2, {{module-class}} .feat-blk h3, {{module-class}} .feat-blk h4, {{module-class}} .feat-blk h5, {{module-class}} .feat-blk h6{
19
  color:{{font_color_picker}};font-weight:400;padding-bottom:15px;
20
  }
21
+ {{module-class}} .feat-blk amp-img{margin:0 auto;width:{{img_width}};max-width:100%;}
 
22
  {{if_condition_check_for_btn==1}}
23
+ {{module-class}} .feat-blk .fe_btn{
24
  font-size:{{btn_size}};
25
  font-weight:{{btn_weight}};
26
  color:{{btn_color}};
32
  }
33
  {{ifend_condition_check_for_btn_1}}
34
  @media(max-width:768px){
35
+ {{module-class}} .feat-blk{width: 100%;margin-right: 0;}
36
  }
37
  @media(max-width:425px){
38
+ {{module-class}} .feat-blk amp-img{width:100%;}
39
  }
40
  {{ifend_condition_feature_layout_type_1}}
41
  ';
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.3
7
- Stable tag: 0.9.98.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,20 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  = 0.9.98.17 (19th November 2019) =
195
  * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
196
  * Fixed: Logo is not resizing when using fixed width #3696
@@ -222,8 +236,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
222
  * Fixed: AMP Dev mode when disabled throwing a fatal error in mobile mode for blog. #3824
223
  * Fixed: Warning when trying to save the option #3800
224
 
225
- = 0.9.98.15 (15th November 2019) =
226
- * Improvement: New UX for AMP Options Panel #3520
227
- * Improvement: Improvement done in "Want to clear the Cache?" option in Performance section #3828
228
-
229
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.3
7
+ Stable tag: 0.9.98.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
191
 
192
  == Changelog ==
193
 
194
+ = 0.9.98.18 (21th November 2019) =
195
+ * Improvement: Show the number of shares with Sassy Social Share #3588
196
+ * Fixed: Need to improvment in table code #3664
197
+ * Fixed: Change internal links to AMP is not working when custom permalink having the extenison.html #3811
198
+ * Fixed: Width of the recent posts and related posts thumbnail image should be same #3639
199
+ * Fixed: Page should be full width if the page builder is used #3756
200
+ * Fixed: Remove broken link on source code like "<link rel="dns-prefetch" href="https://cdn.ampproject.org">." #3697
201
+ * Fixed: leave a comment added when making pages with pagebuilder #3755
202
+ * Fixed: Need to adding gaping for col 2 in AMP Pagebuilder #3796
203
+ * Fixed: CSS issue. #3785
204
+ * Fixed: Facebook comment is not changing language when we select another language #3710
205
+ * Fixed: Verify button of Google Font API key is not working after update #3858
206
+ * Fixed: Cache is not clearing after clicking clear cache button #3863
207
+
208
  = 0.9.98.17 (19th November 2019) =
209
  * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
210
  * Fixed: Logo is not resizing when using fixed width #3696
236
  * Fixed: AMP Dev mode when disabled throwing a fatal error in mobile mode for blog. #3824
237
  * Fixed: Warning when trying to save the option #3800
238
 
 
 
 
 
239
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/404.php CHANGED
@@ -3,7 +3,7 @@
3
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
4
  <head>
5
  <meta charset="utf-8">
6
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
7
  <?php do_action( 'amp_post_template_head', $this ); ?>
8
  <style amp-custom>
9
  <?php $this->load_parts( array( 'style' ) ); ?>
3
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
4
  <head>
5
  <meta charset="utf-8">
6
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
7
  <?php do_action( 'amp_post_template_head', $this ); ?>
8
  <style amp-custom>
9
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-1/archive.php CHANGED
@@ -5,7 +5,7 @@ global $redux_builder_amp, $wp; ?>
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php
10
  if ( is_archive() ) {
11
  $description = get_the_archive_description();
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php
10
  if ( is_archive() ) {
11
  $description = get_the_archive_description();
templates/design-manager/design-1/elements/content.php CHANGED
@@ -15,7 +15,7 @@
15
  } ?>
16
  <!--Post Next-Previous Links-->
17
  <?php
18
- if($redux_builder_amp['enable-single-next-prev'] && !is_page() ) { ?>
19
  <!--IF Starts here-->
20
  <div class="amp-wp-content post-pagination-meta">
21
  <div id="pagination">
15
  } ?>
16
  <!--Post Next-Previous Links-->
17
  <?php
18
+ if(true == ampforwp_get_setting('enable-single-next-prev') && !is_page() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())) { ?>
19
  <!--IF Starts here-->
20
  <div class="amp-wp-content post-pagination-meta">
21
  <div id="pagination">
templates/design-manager/design-1/index.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-1/search.php CHANGED
@@ -6,7 +6,7 @@
6
  <meta charset="utf-8">
7
  <?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
8
  <meta name="robots" content="noindex,nofollow"/><?php } ?>
9
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
10
  <?php $paged = get_query_var( 'paged' );
11
  $current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
12
  $amp_url = untrailingslashit($current_search_url);
6
  <meta charset="utf-8">
7
  <?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
8
  <meta name="robots" content="noindex,nofollow"/><?php } ?>
9
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
10
  <?php $paged = get_query_var( 'paged' );
11
  $current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
12
  $amp_url = untrailingslashit($current_search_url);
templates/design-manager/design-1/single.php CHANGED
@@ -4,7 +4,7 @@
4
  <head>
5
  <meta charset="utf-8">
6
  <?php do_action('amp_experiment_meta', $this); ?>
7
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
10
  <?php $this->load_parts( array( 'style' ) ); ?>
4
  <head>
5
  <meta charset="utf-8">
6
  <?php do_action('amp_experiment_meta', $this); ?>
7
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
10
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-1/style.php CHANGED
@@ -104,7 +104,9 @@ amp-iframe{ max-width: 100%; margin-bottom : 20px; }
104
  amp-wistia-player {margin:5px 0px;}
105
  .hide{display:none}
106
  .amp-wp-article amp-addthis{bottom: -38px;}
107
- .amp-wp-content,.amp-wp-title-bar div {<?php if ( $content_max_width > 0 ) : ?> margin: 0 auto;max-width: <?php echo esc_attr(sprintf( '%dpx', $content_max_width )); ?>; <?php endif; ?> }
 
 
108
  html{background: <?php echo sanitize_hex_color( $header_background_color ); ?>;} body{background: <?php echo sanitize_hex_color( $theme_color ); ?>;color: <?php echo sanitize_hex_color( $text_color ); ?>;font-family: 'Merriweather', 'Times New Roman', Times, Serif;font-weight: 300;line-height: 1.75em;}
109
  ol, ul {list-style-position: inside;}
110
  p,ol,ul,figure {margin: 0 0 1em;padding: 0;} a,a:visited {color:<?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-link-design1']['color']); ?>;}a:hover,a:active,a:focus {color: <?php echo sanitize_hex_color( $text_color ); ?>;} .wp-caption amp-img{max-width: 100%}
@@ -113,7 +115,7 @@ blockquote {color: <?php echo sanitize_hex_color( $text_color ); ?>;background:
113
  .amp-wp-header {background-color: <?php echo ampforwp_sanitize_color( $header_bg_clr ); ?>;}
114
  .amp-wp-header .ampforwp-logo-area {color: <?php echo sanitize_hex_color( $header_color ); ?>;font-size: 1em;font-weight: 400;margin: 0 auto;max-width: calc(840px - 32px);padding: .875em 16px;position: relative;} .amp-wp-header .amp-wp-site-icon {background-color: <?php echo sanitize_hex_color( $header_color ); ?>;border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;border-radius: 50%;position: absolute;right: 18px;top: 10px;}
115
 
116
- <?php if( !ampforwp_woocommerce_conditional_check() ) { ?>
117
  .amp-wp-article {color: <?php echo sanitize_hex_color( $text_color ); ?>;font-weight: 400;margin: 1.5em auto;max-width: 840px;overflow-wrap: break-word;word-wrap: break-word;} .amp-wp-article-header {align-items: center;align-content: stretch;display: flex;flex-wrap: wrap;justify-content: space-between;margin: 1.5em 16px 1.5em;}
118
  .amp-wp-title {color: <?php echo sanitize_hex_color( $text_color ); ?>;display: block;flex: 1 0 100%;font-weight: 900;font-size:1.5em;margin: 0;width: 100%;}.amp-wp-meta {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;display: inline-block;flex: 2 1 50%;font-size: .875em;line-height: 1.7em;margin: 0;padding: 0;}.ampforwp-meta-info{margin-top: 0px;}.amp-wp-article-header .amp-wp-meta:last-of-type {text-align: right;float:right;display:initial}.amp-wp-article-header .amp-wp-meta:first-of-type {text-align: left;}.amp-wp-byline amp-img,.amp-wp-byline .amp-wp-author {display: inline-block;vertical-align: middle;}.amp-wp-byline amp-img {border: 1px solid <?php echo sanitize_hex_color( $link_color ); ?>;border-radius: 50%;position: relative;margin-right: 6px;}.amp-wp-posted-on {text-align: right;}.hide-meta-info{ display: none; }
119
  .amp-wp-article-featured-image {margin: 1.5em 16px 1.5em;}.amp-wp-article-featured-image amp-img {margin: 0 auto;}.amp-wp-article-featured-image.wp-caption .wp-caption-text, .ampforwp-gallery-item .wp-caption-text {margin: 0 18px;}.amp-wp-frontpage .the_content {padding: 10px;}
104
  amp-wistia-player {margin:5px 0px;}
105
  .hide{display:none}
106
  .amp-wp-article amp-addthis{bottom: -38px;}
107
+ .amp-wp-content,.amp-wp-title-bar div {<?php if ( $content_max_width > 0 ) : ?> margin: 0 auto;max-width: <?php echo esc_attr(sprintf( '%dpx', $content_max_width )); ?>; <?php endif; if((is_singular() || ampforwp_is_front_page()) && checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){?>
108
+ max-width:100%;
109
+ <?php } ?> }
110
  html{background: <?php echo sanitize_hex_color( $header_background_color ); ?>;} body{background: <?php echo sanitize_hex_color( $theme_color ); ?>;color: <?php echo sanitize_hex_color( $text_color ); ?>;font-family: 'Merriweather', 'Times New Roman', Times, Serif;font-weight: 300;line-height: 1.75em;}
111
  ol, ul {list-style-position: inside;}
112
  p,ol,ul,figure {margin: 0 0 1em;padding: 0;} a,a:visited {color:<?php echo ampforwp_sanitize_color($redux_builder_amp['amp-opt-color-rgba-link-design1']['color']); ?>;}a:hover,a:active,a:focus {color: <?php echo sanitize_hex_color( $text_color ); ?>;} .wp-caption amp-img{max-width: 100%}
115
  .amp-wp-header {background-color: <?php echo ampforwp_sanitize_color( $header_bg_clr ); ?>;}
116
  .amp-wp-header .ampforwp-logo-area {color: <?php echo sanitize_hex_color( $header_color ); ?>;font-size: 1em;font-weight: 400;margin: 0 auto;max-width: calc(840px - 32px);padding: .875em 16px;position: relative;} .amp-wp-header .amp-wp-site-icon {background-color: <?php echo sanitize_hex_color( $header_color ); ?>;border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;border-radius: 50%;position: absolute;right: 18px;top: 10px;}
117
 
118
+ <?php if( !ampforwp_woocommerce_conditional_check() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) { ?>
119
  .amp-wp-article {color: <?php echo sanitize_hex_color( $text_color ); ?>;font-weight: 400;margin: 1.5em auto;max-width: 840px;overflow-wrap: break-word;word-wrap: break-word;} .amp-wp-article-header {align-items: center;align-content: stretch;display: flex;flex-wrap: wrap;justify-content: space-between;margin: 1.5em 16px 1.5em;}
120
  .amp-wp-title {color: <?php echo sanitize_hex_color( $text_color ); ?>;display: block;flex: 1 0 100%;font-weight: 900;font-size:1.5em;margin: 0;width: 100%;}.amp-wp-meta {color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;display: inline-block;flex: 2 1 50%;font-size: .875em;line-height: 1.7em;margin: 0;padding: 0;}.ampforwp-meta-info{margin-top: 0px;}.amp-wp-article-header .amp-wp-meta:last-of-type {text-align: right;float:right;display:initial}.amp-wp-article-header .amp-wp-meta:first-of-type {text-align: left;}.amp-wp-byline amp-img,.amp-wp-byline .amp-wp-author {display: inline-block;vertical-align: middle;}.amp-wp-byline amp-img {border: 1px solid <?php echo sanitize_hex_color( $link_color ); ?>;border-radius: 50%;position: relative;margin-right: 6px;}.amp-wp-posted-on {text-align: right;}.hide-meta-info{ display: none; }
121
  .amp-wp-article-featured-image {margin: 1.5em 16px 1.5em;}.amp-wp-article-featured-image amp-img {margin: 0 auto;}.amp-wp-article-featured-image.wp-caption .wp-caption-text, .ampforwp-gallery-item .wp-caption-text {margin: 0 18px;}.amp-wp-frontpage .the_content {padding: 10px;}
templates/design-manager/design-2/404.php CHANGED
@@ -4,7 +4,7 @@
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
5
  <head>
6
  <meta charset="utf-8">
7
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
10
  <?php $this->load_parts( array( 'style' ) ); ?>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
5
  <head>
6
  <meta charset="utf-8">
7
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
10
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-2/archive.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php
10
  if ( is_archive() ) {
11
  $description = get_the_archive_description();
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php
10
  if ( is_archive() ) {
11
  $description = get_the_archive_description();
templates/design-manager/design-2/elements/content.php CHANGED
@@ -16,7 +16,7 @@
16
 
17
  <!--Post Next-Previous Links-->
18
  <?php global $redux_builder_amp;
19
- if($redux_builder_amp['enable-single-next-prev'] && !is_page() ) { ?>
20
  <!--IF Starts here-->
21
  <div class="amp-wp-content post-pagination-meta">
22
  <div id="pagination">
16
 
17
  <!--Post Next-Previous Links-->
18
  <?php global $redux_builder_amp;
19
+ if(true == ampforwp_get_setting('enable-single-next-prev') && !is_page() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) { ?>
20
  <!--IF Starts here-->
21
  <div class="amp-wp-content post-pagination-meta">
22
  <div id="pagination">
templates/design-manager/design-2/index.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-2/search.php CHANGED
@@ -6,7 +6,7 @@
6
  <meta charset="utf-8">
7
  <?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
8
  <meta name="robots" content="noindex,nofollow"/><?php } ?>
9
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
10
  <?php $paged = get_query_var( 'paged' );
11
  $current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
12
  $amp_url = untrailingslashit($current_search_url);
6
  <meta charset="utf-8">
7
  <?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
8
  <meta name="robots" content="noindex,nofollow"/><?php } ?>
9
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
10
  <?php $paged = get_query_var( 'paged' );
11
  $current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
12
  $amp_url = untrailingslashit($current_search_url);
templates/design-manager/design-2/single.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-2/style.php CHANGED
@@ -91,7 +91,10 @@ ol, ul {list-style-position: inside;}
91
  <?php if ( $content_max_width > 0 ) : ?>
92
  max-width: <?php echo sprintf( '%dpx', $content_max_width ); ?>;
93
  margin: 0 auto;
94
- <?php endif; ?>
 
 
 
95
  }
96
  figure.aligncenter amp-img {
97
  margin: 0 auto;
@@ -231,6 +234,9 @@ header.container{line-height: 0;}
231
  .amp-logo amp-img{ margin: 15px 0px 10px 0px; }
232
  .amp-logo amp-img{margin: 0 auto;}
233
  main { padding: 30px 15% 10px 15%; }
 
 
 
234
  .amp-wp-content.widget-wrapper{padding:12px 10px 10px 10px;}
235
  main .amp-wp-content{ margin-bottom: 12px; padding: 15px; }
236
  .amp-loop-list, .featured-image-content, .the_content, .taxonomy-description{background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; -moz-box-shadow: 0 2px 3px rgba(0,0,0,.05); -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05); box-shadow: 0 2px 3px rgba(0,0,0,.05);}
@@ -318,7 +324,9 @@ figcaption{ font-size: 11px; margin-bottom: 11px; background: #eee; padding: 6px
318
  .amp-wp-meta{ font-size: 12px; color: #555; }
319
  .amp-wp-author-name:before{content:'By';}
320
  .amp-ad-wrapper{ text-align: center }
 
321
  .single-post main{ padding:12px 15% 10px 15% }
 
322
  .the_content p{ margin-top: 5px; color: #333; font-size: 15px; line-height: 26px; margin-bottom: 15px;word-break: break-word; }
323
  .amp-wp-tax-tag{ font-size: 13px; border: 0; display: inline-block; margin: 0.5em 0px 0.7em 0px; width: 100%; }
324
  main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
91
  <?php if ( $content_max_width > 0 ) : ?>
92
  max-width: <?php echo sprintf( '%dpx', $content_max_width ); ?>;
93
  margin: 0 auto;
94
+ <?php endif;
95
+ if((is_singular() || ampforwp_is_front_page() ) && checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){?>
96
+ max-width:100%;
97
+ <?php } ?>
98
  }
99
  figure.aligncenter amp-img {
100
  margin: 0 auto;
234
  .amp-logo amp-img{ margin: 15px 0px 10px 0px; }
235
  .amp-logo amp-img{margin: 0 auto;}
236
  main { padding: 30px 15% 10px 15%; }
237
+ <?php if (checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && (is_singular() || ampforwp_is_front_page() )){ ?>
238
+ main { padding: 0px; }
239
+ <?php } ?>
240
  .amp-wp-content.widget-wrapper{padding:12px 10px 10px 10px;}
241
  main .amp-wp-content{ margin-bottom: 12px; padding: 15px; }
242
  .amp-loop-list, .featured-image-content, .the_content, .taxonomy-description{background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; -moz-box-shadow: 0 2px 3px rgba(0,0,0,.05); -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.05); box-shadow: 0 2px 3px rgba(0,0,0,.05);}
324
  .amp-wp-meta{ font-size: 12px; color: #555; }
325
  .amp-wp-author-name:before{content:'By';}
326
  .amp-ad-wrapper{ text-align: center }
327
+ <?php if ( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>
328
  .single-post main{ padding:12px 15% 10px 15% }
329
+ <?php } ?>
330
  .the_content p{ margin-top: 5px; color: #333; font-size: 15px; line-height: 26px; margin-bottom: 15px;word-break: break-word; }
331
  .amp-wp-tax-tag{ font-size: 13px; border: 0; display: inline-block; margin: 0.5em 0px 0.7em 0px; width: 100%; }
332
  main .amp-wp-content.featured-image-content{ padding: 0px; border: 0; margin-bottom: 0; box-shadow: none }
templates/design-manager/design-3/404.php CHANGED
@@ -4,7 +4,7 @@
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
5
  <head>
6
  <meta charset="utf-8">
7
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
10
  <?php $this->load_parts( array( 'style' ) ); ?>
4
  <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
5
  <head>
6
  <meta charset="utf-8">
7
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
8
  <?php do_action( 'amp_post_template_head', $this ); ?>
9
  <style amp-custom>
10
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-3/archive.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php
10
  if ( is_archive() ) {
11
  $description = get_the_archive_description();
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php
10
  if ( is_archive() ) {
11
  $description = get_the_archive_description();
templates/design-manager/design-3/elements/content.php CHANGED
@@ -14,7 +14,7 @@
14
  } ?>
15
  <!--Post Next-Previous Links-->
16
  <?php global $redux_builder_amp;
17
- if($redux_builder_amp['enable-single-next-prev'] && !is_page() ) { ?>
18
  <div class="amp-wp-content post-pagination-meta">
19
  <div id="pagination">
20
  <?php $next_post = get_next_post();
14
  } ?>
15
  <!--Post Next-Previous Links-->
16
  <?php global $redux_builder_amp;
17
+ if(true == ampforwp_get_setting('enable-single-next-prev') && !is_page() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())) { ?>
18
  <div class="amp-wp-content post-pagination-meta">
19
  <div id="pagination">
20
  <?php $next_post = get_next_post();
templates/design-manager/design-3/index.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
 
11
  <style amp-custom>
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
 
11
  <style amp-custom>
templates/design-manager/design-3/search.php CHANGED
@@ -6,7 +6,7 @@
6
  <meta charset="utf-8">
7
  <?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
8
  <meta name="robots" content="noindex,nofollow"/><?php } ?>
9
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
10
  <?php $paged = get_query_var( 'paged' );
11
  $current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
12
  $amp_url = untrailingslashit($current_search_url);
6
  <meta charset="utf-8">
7
  <?php if(is_search() && false == ampforwp_get_setting('amp-inspection-tool') && false == ampforwp_get_setting('ampforwp-robots-search-pages')){?>
8
  <meta name="robots" content="noindex,nofollow"/><?php } ?>
9
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
10
  <?php $paged = get_query_var( 'paged' );
11
  $current_search_url =trailingslashit(get_home_url())."?s=".get_search_query();
12
  $amp_url = untrailingslashit($current_search_url);
templates/design-manager/design-3/single.php CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
- <link rel="dns-prefetch" href="https://cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
5
  <head>
6
  <meta charset="utf-8">
7
  <?php do_action('amp_experiment_meta', $this); ?>
8
+ <link rel="dns-prefetch" href="//cdn.ampproject.org">
9
  <?php do_action( 'amp_post_template_head', $this ); ?>
10
  <style amp-custom>
11
  <?php $this->load_parts( array( 'style' ) ); ?>
templates/design-manager/design-3/style.php CHANGED
@@ -71,7 +71,10 @@ ol, ul {list-style-position: inside;}
71
  <?php if ( $content_max_width > 0 ) : ?>
72
  max-width: <?php echo esc_attr( sprintf( '%dpx', $content_max_width ) ); ?>;
73
  margin: 0 auto;
74
- <?php endif; ?>
 
 
 
75
  }
76
  figure.aligncenter amp-img {
77
  margin: 0 auto;
71
  <?php if ( $content_max_width > 0 ) : ?>
72
  max-width: <?php echo esc_attr( sprintf( '%dpx', $content_max_width ) ); ?>;
73
  margin: 0 auto;
74
+ <?php endif;
75
+ if((is_singular() || ampforwp_is_front_page() ) && checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){?>
76
+ max-width:100%;
77
+ <?php } ?>
78
  }
79
  figure.aligncenter amp-img {
80
  margin: 0 auto;
templates/design-manager/swift/page.php CHANGED
@@ -34,7 +34,7 @@ amp_header(); ?>
34
  if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' != ampforwp_get_setting('swift-social-position') ) {
35
  echo ampforwp_swift_social_icons();
36
  } ?>
37
- <?php if( !ampforwp_levelup_compatibility('levelup_elementor') && !ampforwp_is_front_page()){ // Level up Condition starts ?>
38
  <div class="cmts">
39
  <?php amp_comments();?>
40
  </div>
34
  if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' != ampforwp_get_setting('swift-social-position') ) {
35
  echo ampforwp_swift_social_icons();
36
  } ?>
37
+ <?php if( !ampforwp_levelup_compatibility('levelup_elementor') && !ampforwp_is_front_page() && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ // Level up Condition starts ?>
38
  <div class="cmts">
39
  <?php amp_comments();?>
40
  </div>
templates/design-manager/swift/single.php CHANGED
@@ -346,7 +346,7 @@ do_action("ampforwp_single_design_type_handle_d1");
346
  <li class="<?php if ( has_post_thumbnail() ) { echo'has_thumbnail'; } else { echo 'no_thumbnail'; } ?>">
347
  <?php if ( true == $redux_builder_amp['ampforwp-single-related-posts-image'] ) { ?>
348
  <div class="rlp-image">
349
- <?php ampforwp_get_relatedpost_image('full',array('image_crop'=>'true','image_crop_width'=>220,'image_crop_height'=>134) );?>
350
  </div>
351
  <?php } ?>
352
  <div class="rlp-cnt">
346
  <li class="<?php if ( has_post_thumbnail() ) { echo'has_thumbnail'; } else { echo 'no_thumbnail'; } ?>">
347
  <?php if ( true == $redux_builder_amp['ampforwp-single-related-posts-image'] ) { ?>
348
  <div class="rlp-image">
349
+ <?php ampforwp_get_relatedpost_image('full',array('image_crop'=>'true','image_crop_width'=>346,'image_crop_height'=>188) );?>
350
  </div>
351
  <?php } ?>
352
  <div class="rlp-cnt">
templates/design-manager/swift/style.php CHANGED
@@ -525,7 +525,7 @@ if( is_page() || ampforwp_is_front_page() || ampforwp_polylang_front_page() ){?>
525
  }
526
  <?php } ?>
527
  <?php } // Level Condition Ends
528
- if(is_page()){ ?>
529
  .pg table {width: 100%;margin-bottom:25px;overflow-x: auto;word-break: normal;}
530
  .pg td {padding: 0.5em 1em;border: 1px solid #ddd;}
531
  .pg tr:nth-child(odd) td {background: #f7f7f7;}
@@ -916,8 +916,7 @@ if ( true == ampforwp_get_setting('ampforwp-disqus-comments-support') ) {?>
916
  <?php } ?>
917
  }
918
  @media(max-width:480px){
919
- .loop-wrapper{margin:0;}
920
- .r-pf .cntr{padding:0}
921
  .cntn-wrp p{line-height:1.65;}
922
  .related_posts .has_related_thumbnail {width: 100%;}
923
  .rlp-image {width: 100%;float: none;margin-right: 0px;}
@@ -955,7 +954,6 @@ if ( true == ampforwp_get_setting('ampforwp-disqus-comments-support') ) {?>
955
  .sp-rt .amp-author {margin-bottom: 10px;}
956
  #pagination {margin: 20px 0px 10px 0px;}
957
  .fsp h2, .fsp h3 {font-size: 24px;font-weight:600;}
958
- .r-pf h3{padding: 15px 0px 0px 15px;}
959
  }
960
  @media(max-width:320px){
961
  .cntn-wrp p {font-size: 16px;}
@@ -1185,19 +1183,28 @@ if(is_single() ) { ?>
1185
  .sp-artl .srp ul{
1186
  display: flex;
1187
  flex-wrap: wrap;
1188
- margin: -15px;
1189
  }
1190
  .sp-artl .srp .has_thumbnail{
1191
- margin: 15px;
1192
  flex-basis: calc(33.33% - 30px);
1193
  }
1194
  .sf-img .wp-caption-text{
1195
  width:100%;
1196
  }
 
 
 
 
 
1197
  @media(max-width:768px){
1198
  .sp-artl .srp .has_thumbnail{
1199
  flex-basis: calc(100% - 30px);
1200
  }
 
 
 
 
 
 
1201
  }
1202
 
1203
  <?php } //is_single condition is added
@@ -1213,11 +1220,10 @@ if ( true == ampforwp_get_setting('gnrl-sidebar') && true == ampforwp_get_setti
1213
  padding-right: 20px;
1214
  }
1215
  .sp-artl .srp .has_thumbnail{
1216
- margin: 15px;
1217
  flex-basis: calc(49.33% - 30px);
1218
  }
1219
  .sp-artl .fsp{
1220
- flex-basis: calc(49.33% - 30px);
1221
  }
1222
  @media(max-width:768px){
1223
  .sp-artl {
@@ -1228,7 +1234,7 @@ if ( true == ampforwp_get_setting('gnrl-sidebar') && true == ampforwp_get_setti
1228
  padding:0;
1229
  }
1230
  .sp-artl .srp .has_thumbnail, .sp-artl .fsp {
1231
- flex-basis: calc(100% - 30px);
1232
  }
1233
 
1234
  }
@@ -2190,11 +2196,11 @@ if(is_singular() || ampforwp_is_front_page()){?>
2190
  }
2191
  <?php
2192
  if(is_singular() && true == ampforwp_get_setting('amp-sticky-header')){?>
2193
- .cntn-wrp *[id]:before {
2194
  display: block;
2195
  content: " ";
2196
- margin-top: -75px;
2197
- height: 75px;
2198
  visibility: hidden;}
2199
  <?php }
2200
  if(class_exists('MCI_Footnotes')){ ?>
525
  }
526
  <?php } ?>
527
  <?php } // Level Condition Ends
528
+ if(is_page() || ampforwp_is_front_page()){ ?>
529
  .pg table {width: 100%;margin-bottom:25px;overflow-x: auto;word-break: normal;}
530
  .pg td {padding: 0.5em 1em;border: 1px solid #ddd;}
531
  .pg tr:nth-child(odd) td {background: #f7f7f7;}
916
  <?php } ?>
917
  }
918
  @media(max-width:480px){
919
+ .loop-wrapper{margin-top: 15px;}
 
920
  .cntn-wrp p{line-height:1.65;}
921
  .related_posts .has_related_thumbnail {width: 100%;}
922
  .rlp-image {width: 100%;float: none;margin-right: 0px;}
954
  .sp-rt .amp-author {margin-bottom: 10px;}
955
  #pagination {margin: 20px 0px 10px 0px;}
956
  .fsp h2, .fsp h3 {font-size: 24px;font-weight:600;}
 
957
  }
958
  @media(max-width:320px){
959
  .cntn-wrp p {font-size: 16px;}
1183
  .sp-artl .srp ul{
1184
  display: flex;
1185
  flex-wrap: wrap;
 
1186
  }
1187
  .sp-artl .srp .has_thumbnail{
 
1188
  flex-basis: calc(33.33% - 30px);
1189
  }
1190
  .sf-img .wp-caption-text{
1191
  width:100%;
1192
  }
1193
+ @media(min-width:768px){
1194
+ li.has_thumbnail:nth-child(even) {
1195
+ margin-left: 30px;
1196
+ }
1197
+ }
1198
  @media(max-width:768px){
1199
  .sp-artl .srp .has_thumbnail{
1200
  flex-basis: calc(100% - 30px);
1201
  }
1202
+ .r-pf h3 {
1203
+ padding: 15px 0px 0px;
1204
+ }
1205
+ .r-pf .loop-wrapper {
1206
+ margin-left: -13px;
1207
+ }
1208
  }
1209
 
1210
  <?php } //is_single condition is added
1220
  padding-right: 20px;
1221
  }
1222
  .sp-artl .srp .has_thumbnail{
 
1223
  flex-basis: calc(49.33% - 30px);
1224
  }
1225
  .sp-artl .fsp{
1226
+ flex-basis: calc(47.33% - 30px);
1227
  }
1228
  @media(max-width:768px){
1229
  .sp-artl {
1234
  padding:0;
1235
  }
1236
  .sp-artl .srp .has_thumbnail, .sp-artl .fsp {
1237
+ flex-basis: calc(100% - 15px);
1238
  }
1239
 
1240
  }
2196
  }
2197
  <?php
2198
  if(is_singular() && true == ampforwp_get_setting('amp-sticky-header')){?>
2199
+ .cntn-wrp a[id]:before, .cntn-wrp div[id]:before{
2200
  display: block;
2201
  content: " ";
2202
+ margin-top: -107px;
2203
+ height: 107px;
2204
  visibility: hidden;}
2205
  <?php }
2206
  if(class_exists('MCI_Footnotes')){ ?>
templates/features.php CHANGED
@@ -540,6 +540,9 @@ function ampforwp_new_dir( $dir ) {
540
  if ( is_page() && ( true == ampforwp_get_setting('ampforwp-page-sticky-social') || ( $social_check_page && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) ) ) {
541
  $fb_like = true;
542
  }
 
 
 
543
  }
544
  if ( true == $fb_like ) {
545
  if(empty($data['amp_component_scripts']['amp-facebook-like'])){
@@ -1001,11 +1004,6 @@ function ampforwp_remove_schema_data() {
1001
  if ( function_exists('ampforwp_remove_filters_for_class')) {
1002
  //Remove Disallowed 'like' tag from facebook Like button by Ultimate Facebook
1003
  ampforwp_remove_filters_for_class( 'the_content', 'Wdfb_UniversalWorker', 'inject_facebook_button', 10 );
1004
- //Compatibility with Sassy Social Share Plugin
1005
- ampforwp_remove_filters_for_class( 'the_content', 'Sassy_Social_Share_Public', 'render_sharing', 10 );
1006
- ampforwp_remove_filters_for_class( 'amp_post_template_head', 'Sassy_Social_Share_Public', 'frontend_scripts', 10 );
1007
- ampforwp_remove_filters_for_class( 'amp_post_template_css', 'Sassy_Social_Share_Public', 'frontend_inline_style', 10 );
1008
- ampforwp_remove_filters_for_class( 'amp_post_template_css', 'Sassy_Social_Share_Public', 'frontend_amp_css', 10 );
1009
  //Removing the Monarch social share icons from AMP
1010
  ampforwp_remove_filters_for_class( 'the_content', 'ET_Monarch', 'display_inline', 10 );
1011
  ampforwp_remove_filters_for_class( 'the_content', 'ET_Monarch', 'display_media', 9999 );
@@ -2147,15 +2145,14 @@ function ampforwp_facebook_comments_markup() {
2147
 
2148
  global $redux_builder_amp;
2149
  $facebook_comments_markup = $lang = $locale = '';
2150
- $lang = $redux_builder_amp['ampforwp-fb-comments-lang'];
2151
- $locale = 'data-locale = "'.$lang.'"';
2152
  $display_comments_on = "";
2153
  $display_comments_on = ampforwp_get_comments_status();
2154
  if ( $redux_builder_amp['ampforwp-facebook-comments-support'] && $display_comments_on ) {
2155
 
2156
  $facebook_comments_markup = '<section class="amp-wp-content post-comments amp-wp-article-content amp-facebook-comments" id="comments">';
2157
  $facebook_comments_markup .= '<amp-facebook-comments width=486 height=357
2158
- layout="responsive" '.esc_attr($locale).' data-numposts=';
2159
  $facebook_comments_markup .= '"'. esc_attr($redux_builder_amp['ampforwp-number-of-fb-no-of-comments']). '"';
2160
  if(ampforwp_get_data_consent()){
2161
  $facebook_comments_markup .= ' data-block-on-consent ';
@@ -7129,11 +7126,11 @@ function ampforwp_head_css(){
7129
  $incurl = trailingslashit($incurl) .'fonts/dashicons.ttf?50db0456fde2a241f005968eede3f987';
7130
  $css.='@font-face{font-family:dashicons;src:url('.esc_url( $incurl ).') format("truetype");
7131
  font-weight:400;font-style:normal}.amp-wp-header,.design2-header,.design3-header,.header{margin-top:32px}#headerwrap{top:32px}#wp-admin-bar-my-account .avatar{float:right;margin-top:3px}#wp-admin-bar-wpseo-notifications .yoast-issue-counter{float:right}@media(max-width:782px){.amp-wp-header,.design2-header,.design3-header,.header{margin-top:46px}#headerwrap{top:46px}}';
7132
- echo css_sanitizer($css);
7133
  }
7134
  }
7135
  }
7136
- function css_sanitizer($css){
7137
  $css = preg_replace( '/\s*!important/', '', $css, -1, $important_count );
7138
  $css = preg_replace( '/overflow(-[xy])?\s*:\s*(auto|scroll)\s*;?\s*/', '', $css, -1, $overlow_count );
7139
  $css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css);
@@ -7258,4 +7255,18 @@ if(!function_exists('ampforwp_remove_admin_help')){
7258
  $screen->remove_help_tabs();
7259
  }
7260
  }
7261
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
540
  if ( is_page() && ( true == ampforwp_get_setting('ampforwp-page-sticky-social') || ( $social_check_page && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) ) ) ) {
541
  $fb_like = true;
542
  }
543
+ if ( true == ampforwp_get_setting('enable-single-social-icons') && checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_singular()) {
544
+ $fb_like = true;
545
+ }
546
  }
547
  if ( true == $fb_like ) {
548
  if(empty($data['amp_component_scripts']['amp-facebook-like'])){
1004
  if ( function_exists('ampforwp_remove_filters_for_class')) {
1005
  //Remove Disallowed 'like' tag from facebook Like button by Ultimate Facebook
1006
  ampforwp_remove_filters_for_class( 'the_content', 'Wdfb_UniversalWorker', 'inject_facebook_button', 10 );
 
 
 
 
 
1007
  //Removing the Monarch social share icons from AMP
1008
  ampforwp_remove_filters_for_class( 'the_content', 'ET_Monarch', 'display_inline', 10 );
1009
  ampforwp_remove_filters_for_class( 'the_content', 'ET_Monarch', 'display_media', 9999 );
2145
 
2146
  global $redux_builder_amp;
2147
  $facebook_comments_markup = $lang = $locale = '';
2148
+ $lang = ampforwp_get_setting('ampforwp-fb-comments-lang');
 
2149
  $display_comments_on = "";
2150
  $display_comments_on = ampforwp_get_comments_status();
2151
  if ( $redux_builder_amp['ampforwp-facebook-comments-support'] && $display_comments_on ) {
2152
 
2153
  $facebook_comments_markup = '<section class="amp-wp-content post-comments amp-wp-article-content amp-facebook-comments" id="comments">';
2154
  $facebook_comments_markup .= '<amp-facebook-comments width=486 height=357
2155
+ layout="responsive" '.'data-locale = "'.esc_attr($lang).'"'.' data-numposts=';
2156
  $facebook_comments_markup .= '"'. esc_attr($redux_builder_amp['ampforwp-number-of-fb-no-of-comments']). '"';
2157
  if(ampforwp_get_data_consent()){
2158
  $facebook_comments_markup .= ' data-block-on-consent ';
7126
  $incurl = trailingslashit($incurl) .'fonts/dashicons.ttf?50db0456fde2a241f005968eede3f987';
7127
  $css.='@font-face{font-family:dashicons;src:url('.esc_url( $incurl ).') format("truetype");
7128
  font-weight:400;font-style:normal}.amp-wp-header,.design2-header,.design3-header,.header{margin-top:32px}#headerwrap{top:32px}#wp-admin-bar-my-account .avatar{float:right;margin-top:3px}#wp-admin-bar-wpseo-notifications .yoast-issue-counter{float:right}@media(max-width:782px){.amp-wp-header,.design2-header,.design3-header,.header{margin-top:46px}#headerwrap{top:46px}}';
7129
+ echo ampforwp_css_sanitizer($css);
7130
  }
7131
  }
7132
  }
7133
+ function ampforwp_css_sanitizer($css){
7134
  $css = preg_replace( '/\s*!important/', '', $css, -1, $important_count );
7135
  $css = preg_replace( '/overflow(-[xy])?\s*:\s*(auto|scroll)\s*;?\s*/', '', $css, -1, $overlow_count );
7136
  $css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css);
7255
  $screen->remove_help_tabs();
7256
  }
7257
  }
7258
+ }
7259
+
7260
+ if(!function_exists('ampforwp_sassy_icon_style')){
7261
+ function ampforwp_sassy_icon_style(){
7262
+ $css = get_transient('ampforwp_sassy_css');
7263
+ if($css == false){
7264
+ $css = ampforwp_get_remote_content(AMPFORWP_PLUGIN_DIR_URI."/includes/sassy-style.css");
7265
+ set_transient('ampforwp_sassy_css', $css);
7266
+ }
7267
+ echo ampforwp_css_sanitizer($css);
7268
+ }
7269
+ }
7270
+ if(function_exists('heateor_sss_run')){
7271
+ add_action('amp_post_template_css', 'ampforwp_sassy_icon_style');
7272
+ }