AMP for WP – Accelerated Mobile Pages - Version 0.9.98.20

Version Description

(27th November 2019) = * Fixed: Menu closer icon is getting overlapped by the header part of firefox web browser #3744 * Fixed: Instagram TV videos are not rendering into AMP #3812 * Fixed: Need To move CTA button in header two in sidebar if the website layout is in mobile view #3669 * Fixed: When the image is added from ThirstyAffiliate image block from Guntenber editor facing validation error #3706 * Fixed: PHP Warning:DOMDocument::loadHTML(): Empty string supplied as input #3745 * Fixed: When Convert AMP to WP theme (Beta) option is enabled Back to Top link functionality is not working #3695 * Fixed: Post date always shows 3 hours ago #3624 * Fixed: Gutenberg Design Bugs #3645 * Fixed: Toolbar AMP link bug #3692 * Fixed: Breadcrumb icommon symbol direction should be changed when RTL is enabled in Swift. #3678 * Fixed: Extra CSS are loading in swift and AMP Layouts #3414 * Fixed: Remove Digg and Google plus option form Social Sharing #3709 * Fixed: When Yoast SEO plugin is activated the same excerpt shows #3708 * Fixed: Allow people to use captions below thumbnails in gallery #3702 * Fixed: Design improvements of D2 #3637 * Fixed: Fatal error: Uncaught Error: Cannot use object of type stdClass as array (after 98.15) #3867 * Fixed: In amp gallery need to make improvement in arrow #3860 * Fixed: Performance issues in AMP FOR WP #3732 * Fixed: Yoast Separator is converting from Hyphen to Dash #3783 * Fixed: Multiple UX related modifactions #3869 * Fixed: strpos() debug error after 19 update #3878

Download this release

Release Info

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

Code changes from version 0.9.98.19 to 0.9.98.20

Files changed (34) hide show
  1. README.md +24 -1
  2. accelerated-moblie-pages.php +13 -2
  3. changelog.txt +24 -0
  4. classes/class-ampforwp-instagram-sanitizer.php +1 -1
  5. components/components-core.php +16 -1
  6. components/menu/menu.php +22 -36
  7. components/social-icons/social-icons.php +0 -16
  8. images/dof.png +0 -0
  9. includes/admin-script.js +1 -1
  10. includes/admin-style.css +2 -1
  11. includes/ampforwp-fields-array.php +7 -3
  12. includes/features/functions.php +2 -1
  13. includes/features/performance/performance-options.php +1 -0
  14. includes/options/admin-config.php +50 -34
  15. includes/options/redux-core/assets/css/redux-admin.css +58 -3
  16. includes/options/redux-core/assets/js/redux.js +1 -0
  17. includes/options/redux-core/assets/js/redux.min.js +1 -1
  18. includes/options/redux-core/framework.php +2 -20
  19. includes/vendor/amp/includes/embeds/class-amp-gallery-embed.php +2 -1
  20. includes/vendor/amp/includes/embeds/class-amp-instagram-embed.php +1 -1
  21. includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer.php +9 -2
  22. includes/vendor/vendor-changelog.txt +2 -1
  23. readme.txt +24 -14
  24. templates/design-manager/design-1/elements/social-icons.php +0 -10
  25. templates/design-manager/design-1/style.php +0 -3
  26. templates/design-manager/design-2/elements/social-icons.php +0 -10
  27. templates/design-manager/design-2/style.php +12 -8
  28. templates/design-manager/design-3/elements/social-icons.php +0 -14
  29. templates/design-manager/design-3/style.php +0 -6
  30. templates/design-manager/swift/footer.php +0 -10
  31. templates/design-manager/swift/functions.php +0 -10
  32. templates/design-manager/swift/header.php +5 -0
  33. templates/design-manager/swift/style.php +36 -24
  34. templates/features.php +70 -46
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.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,29 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  = 0.9.98.19 (25th November 2019) =
195
  * Fixed: image transients should clear automatically #3781
196
  * Fixed: CTA button in header could be made no follow #3798
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.20
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.20 (27th November 2019) =
195
+ * Fixed: Menu closer icon is getting overlapped by the header part of firefox web browser #3744
196
+ * Fixed: Instagram TV videos are not rendering into AMP #3812
197
+ * Fixed: Need To move CTA button in header two in sidebar if the website layout is in mobile view #3669
198
+ * Fixed: When the image is added from ThirstyAffiliate image block from Guntenber editor facing validation error #3706
199
+ * Fixed: PHP Warning:DOMDocument::loadHTML(): Empty string supplied as input #3745
200
+ * Fixed: When Convert AMP to WP theme (Beta) option is enabled Back to Top link functionality is not working #3695
201
+ * Fixed: Post date always shows 3 hours ago #3624
202
+ * Fixed: Gutenberg Design Bugs #3645
203
+ * Fixed: Toolbar AMP link bug #3692
204
+ * Fixed: Breadcrumb icommon symbol direction should be changed when RTL is enabled in Swift. #3678
205
+ * Fixed: Extra CSS are loading in swift and AMP Layouts #3414
206
+ * Fixed: Remove Digg and Google plus option form Social Sharing #3709
207
+ * Fixed: When Yoast SEO plugin is activated the same excerpt shows #3708
208
+ * Fixed: Allow people to use captions below thumbnails in gallery #3702
209
+ * Fixed: Design improvements of D2 #3637
210
+ * Fixed: Fatal error: Uncaught Error: Cannot use object of type stdClass as array (after 98.15) #3867
211
+ * Fixed: In amp gallery need to make improvement in arrow #3860
212
+ * Fixed: Performance issues in AMP FOR WP #3732
213
+ * Fixed: Yoast Separator is converting from Hyphen to Dash #3783
214
+ * Fixed: Multiple UX related modifactions #3869
215
+ * Fixed: strpos() debug error after 19 update #3878
216
+
217
  = 0.9.98.19 (25th November 2019) =
218
  * Fixed: image transients should clear automatically #3781
219
  * Fixed: CTA button in header could be made no follow #3798
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.19
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.19');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
@@ -1405,4 +1405,15 @@ if(!function_exists('ampforwp_wp_plugin_action_link')){
1405
  $url = wp_nonce_url( $url, $action . '-plugin_' . $plugin );
1406
  return $url;
1407
  }
 
 
 
 
 
 
 
 
 
 
 
1408
  }
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.20
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.20');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
1405
  $url = wp_nonce_url( $url, $action . '-plugin_' . $plugin );
1406
  return $url;
1407
  }
1408
+ }
1409
+ if(!function_exists('ampforwp_get_admin_current_page')){
1410
+ function ampforwp_get_admin_current_page(){
1411
+ $current_page = '';
1412
+ if(is_admin()){
1413
+ if(isset($_GET['page'])){
1414
+ $current_page = $_GET['page'];
1415
+ }
1416
+ }
1417
+ return $current_page;
1418
+ }
1419
  }
changelog.txt CHANGED
@@ -1,5 +1,29 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 0.9.98.19 (25th November 2019) =
4
  * Fixed: image transients should clear automatically #3781
5
  * Fixed: CTA button in header could be made no follow #3798
1
  == Changelog ==
2
 
3
+
4
+ = 0.9.98.20 (27th November 2019) =
5
+ * Fixed: Menu closer icon is getting overlapped by the header part of firefox web browser #3744
6
+ * Fixed: Instagram TV videos are not rendering into AMP #3812
7
+ * Fixed: Need To move CTA button in header two in sidebar if the website layout is in mobile view #3669
8
+ * Fixed: When the image is added from ThirstyAffiliate image block from Guntenber editor facing validation error #3706
9
+ * Fixed: PHP Warning:DOMDocument::loadHTML(): Empty string supplied as input #3745
10
+ * Fixed: When Convert AMP to WP theme (Beta) option is enabled Back to Top link functionality is not working #3695
11
+ * Fixed: Post date always shows 3 hours ago #3624
12
+ * Fixed: Gutenberg Design Bugs #3645
13
+ * Fixed: Toolbar AMP link bug #3692
14
+ * Fixed: Breadcrumb icommon symbol direction should be changed when RTL is enabled in Swift. #3678
15
+ * Fixed: Extra CSS are loading in swift and AMP Layouts #3414
16
+ * Fixed: Remove Digg and Google plus option form Social Sharing #3709
17
+ * Fixed: When Yoast SEO plugin is activated the same excerpt shows #3708
18
+ * Fixed: Allow people to use captions below thumbnails in gallery #3702
19
+ * Fixed: Design improvements of D2 #3637
20
+ * Fixed: Fatal error: Uncaught Error: Cannot use object of type stdClass as array (after 98.15) #3867
21
+ * Fixed: In amp gallery need to make improvement in arrow #3860
22
+ * Fixed: Performance issues in AMP FOR WP #3732
23
+ * Fixed: Yoast Separator is converting from Hyphen to Dash #3783
24
+ * Fixed: Multiple UX related modifactions #3869
25
+ * Fixed: strpos() debug error after 19 update #3878
26
+
27
  = 0.9.98.19 (25th November 2019) =
28
  * Fixed: image transients should clear automatically #3781
29
  * Fixed: CTA button in header could be made no follow #3798
classes/class-ampforwp-instagram-sanitizer.php CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
9
  */
10
  class AMPFORWP_Instagram_Embed_Sanitizer extends AMP_Base_Sanitizer {
11
  private $instagram_medias = array();
12
- const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/p/([^/?]+)#i';
13
  private static $script_slug = 'amp-instagram';
14
  private static $script_src = 'https://cdn.ampproject.org/v0/amp-instagram-0.1.js';
15
  public function sanitize() {
9
  */
10
  class AMPFORWP_Instagram_Embed_Sanitizer extends AMP_Base_Sanitizer {
11
  private $instagram_medias = array();
12
+ const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/(p|tv)/([^/?]+)#i';
13
  private static $script_slug = 'amp-instagram';
14
  private static $script_src = 'https://cdn.ampproject.org/v0/amp-instagram-0.1.js';
15
  public function sanitize() {
components/components-core.php CHANGED
@@ -465,6 +465,7 @@ function amp_back_to_top_link(){
465
  global $redux_builder_amp;
466
  if(true == ampforwp_get_setting('ampforwp-footer-top')){?>
467
  <a id="scrollToTopButton" title="back to top" on="tap:backtotop.scrollTo(duration=500)" class="btt" ></a>
 
468
  <amp-animation id="showAnim"
469
  layout="nodisplay">
470
  <script type="application/json">
@@ -501,7 +502,19 @@ function amp_back_to_top_link(){
501
  }
502
  </script>
503
  </amp-animation>
504
- <?php }
 
 
 
 
 
 
 
 
 
 
 
 
505
  }
506
 
507
  function amp_loop_template(){
@@ -596,12 +609,14 @@ function amp_date( $args=array() ) {
596
  elseif ( false == ampforwp_get_setting('ampforwp-post-time') ){
597
  $post_date = get_the_date();
598
  }else{
 
599
  $post_date = human_time_diff(
600
  get_the_time('U', get_the_ID() ),
601
  current_time('timestamp') ) .' '. ampforwp_translation(ampforwp_get_setting('amp-translator-ago-date-text'),
602
  'ago');
603
  }
604
  $post_date = apply_filters('ampforwp_modify_post_date', $post_date);
 
605
  if(isset($args['custom_format']) && $args['custom_format']!=""){
606
  $post_date = date($args['custom_format'],get_the_time('U', get_the_ID() ));
607
  }
465
  global $redux_builder_amp;
466
  if(true == ampforwp_get_setting('ampforwp-footer-top')){?>
467
  <a id="scrollToTopButton" title="back to top" on="tap:backtotop.scrollTo(duration=500)" class="btt" ></a>
468
+ <?php if(ampforwp_get_setting('ampforwp-amp-convert-to-wp')==false){?>
469
  <amp-animation id="showAnim"
470
  layout="nodisplay">
471
  <script type="application/json">
502
  }
503
  </script>
504
  </amp-animation>
505
+ <?php }else if(ampforwp_get_setting('ampforwp-amp-convert-to-wp')==true){?>
506
+ <script>
507
+ var elem = document.getElementById('scrollToTopButton');
508
+ elem.addEventListener("click", function(){
509
+ window.scrollTo({
510
+ top: 0,
511
+ behavior: 'smooth'
512
+ });
513
+ });
514
+ </script>
515
+ <?php
516
+ }
517
+ }
518
  }
519
 
520
  function amp_loop_template(){
609
  elseif ( false == ampforwp_get_setting('ampforwp-post-time') ){
610
  $post_date = get_the_date();
611
  }else{
612
+ $epoch = get_the_time('U', get_the_ID() );
613
  $post_date = human_time_diff(
614
  get_the_time('U', get_the_ID() ),
615
  current_time('timestamp') ) .' '. ampforwp_translation(ampforwp_get_setting('amp-translator-ago-date-text'),
616
  'ago');
617
  }
618
  $post_date = apply_filters('ampforwp_modify_post_date', $post_date);
619
+
620
  if(isset($args['custom_format']) && $args['custom_format']!=""){
621
  $post_date = date($args['custom_format'],get_the_time('U', get_the_ID() ));
622
  }
components/menu/menu.php CHANGED
@@ -49,41 +49,27 @@ function amp_menu_html($echo, $menu_args, $type){
49
  }
50
 
51
  //Load styling for Menu
52
- add_action('amp_post_template_css','amp_menu_styles',11);
53
- function amp_menu_styles(){
54
- $atf = '';
55
- $design = ampforwp_get_setting('amp-design-selector');
56
- if ( $design != 1 && $design != 2 && $design != 3 ) {
57
- $atf = true;?>
58
- .amp-menu input{display:none;}
59
-
60
- <?php
61
-
62
- if ( ! defined('AMPFORWP_LAYOUTS_URL') ) { ?>
63
- /** Dropdown CSS **/
64
- amp-sidebar{padding:15px;}
65
- .amp-sidebar-close{border-radius: 100%;cursor:pointer;}
66
- .amp-search-wrapper{margin-bottom:15px;}
67
- .amp-menu li.menu-item-has-children ul{display:none;margin:0;}
68
- .amp-menu li.menu-item-has-children ul, .amp-menu li.menu-item-has-children ul ul{font-size:14px;}
69
- .amp-menu input{display:none;}
70
- .amp-menu [id^=drop]:checked + label + ul{ display: block;}
71
- .amp-menu .toggle:after{content:'\25be';position:absolute;padding: 10px 15px 10px 30px;right:0;font-size:18px;color:#ed1c24;top:0px;z-index:10000;line-height:1;cursor:pointer;}
72
- <?php
73
- } elseif( $atf && defined('AMPFORWP_LAYOUTS_URL') ){?>
74
 
75
- /** Dropdown CSS **/
76
- amp-sidebar{padding:15px;}
77
- .amp-sidebar-close{border-radius: 100%;cursor:pointer;}
78
- .amp-search-wrapper{margin-bottom:15px;}
79
- .amp-menu li.menu-item-has-children ul{display:none;margin:0;}
80
- .amp-menu li.menu-item-has-children ul, .amp-menu li.menu-item-has-children ul ul{font-size:14px;}
81
- .amp-menu input{display:none;}
82
- .amp-menu [id^=drop]:checked + label + ul{ display: block;}
83
 
84
- <?php
85
- }?>
86
- <?php /*AMP theme framework and AMP layouts and this is required*/ ?>
87
- aside{width:150px}.amp-menu{list-style-type:none;margin:0;padding:0}.amp-menu li{position:relative;display:block}.amp-menu li.menu-item-has-children ul{display:none}.amp-menu li.menu-item-has-children>ul>li{padding-left:10px}.amp-menu>li a{padding:7px;display:block;margin-bottom:1px}.amp-menu>li ul{list-style-type:none;margin:0;padding:0;position:relative}.amp-menu input{display:none;}<?php
88
- }
89
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
50
 
51
  //Load styling for Menu
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
+ add_action('amp_post_template_css','amp_menu_styles',11);
54
+ function amp_menu_styles(){
 
 
 
 
 
 
55
 
56
+ ?>
57
+ <?php if ( class_exists('AmpforwpAmpLayouts') || ( in_array(ampforwp_get_setting('amp-design-selector'), array('1', '2', '3', '4')) )) {
58
+ ?>
59
+ .amp-menu input{display:none;}.amp-menu li.menu-item-has-children ul{display:none;}.amp-menu li{position:relative;display:block;}.amp-menu > li a{display:block;}
60
+ <?php } // AMP Layouts condition ends
61
+ if(! in_array(ampforwp_get_setting('amp-design-selector'), array('1', '2', '3', '4')) ) { ?>
62
+ aside{width:150px}
63
+ .amp-menu{list-style-type:none;margin:0px;padding:0}.amp-menu li{position:relative;display:block}.amp-menu li.menu-item-has-children ul{display:none}.amp-menu li.menu-item-has-children>ul>li{padding-left:10px}.amp-menu>li a{padding:7px;display:block;margin-bottom:1px}.amp-menu>li ul{list-style-type:none;margin:0;padding:0;position:relative}
64
+ /** Dropdown CSS **/
65
+ amp-sidebar{padding:15px;}
66
+ .amp-sidebar-close{border-radius: 100%;cursor:pointer;}
67
+ .amp-search-wrapper{margin-bottom:15px;}
68
+ .amp-menu li.menu-item-has-children ul{display:none;margin:0;}
69
+ .amp-menu li.menu-item-has-children ul, .amp-menu li.menu-item-has-children ul ul{font-size:14px;}
70
+ .amp-menu input{display:none;}
71
+ .amp-menu [id^=drop]:checked + label + ul{ display: block;}
72
+ .amp-menu .toggle:after{content:'\25be';position:absolute;padding: 10px 15px 10px 30px;right:0;font-size:18px;color:#ed1c24;top:0px;z-index:10000;line-height:1;cursor:pointer;}
73
+ <?php } // designs condition ends here
74
+
75
+ } // function ends
components/social-icons/social-icons.php CHANGED
@@ -52,10 +52,6 @@ function ampforwp_framework_get_social_icons($selected_social_icons){
52
  $selected_social_icons['pinterest'] = 'https://pinterest.com/pin/create/bookmarklet/?media='.$image.'&url='.$url.'&description='.$title.'';
53
  //https://pinterest.com/pin/create/bookmarklet/?media={img}&url={url}&is_video={is_video}&description={title}
54
  }
55
- if( isset($selected_social_icons['google-plus']) && $selected_social_icons['google-plus'] == null){
56
- $selected_social_icons['google-plus'] = 'https://plus.google.com/share?url='. $url. '';
57
- //https://plus.google.com/share?url={url}
58
- }
59
  if( isset($selected_social_icons['linkedin']) && $selected_social_icons['linkedin'] == null){
60
  $selected_social_icons['linkedin'] = 'https://www.linkedin.com/shareArticle?url='. $url. '&title='. $title .'';
61
  //https://www.linkedin.com/shareArticle?url={url}&title={title}
@@ -81,10 +77,6 @@ function ampforwp_framework_get_social_icons($selected_social_icons){
81
  $selected_social_icons['telegram'] = 'https://telegram.me/share/url?url='. $url. '&text='. $title .'';
82
  //https://telegram.me/share/url?url={url}&text={title}
83
  }
84
- if ( isset($selected_social_icons['digg']) && null == $selected_social_icons['digg'] ) {
85
- $selected_social_icons['digg'] = 'http://digg.com/submit?url='. $url. '&title='. $title .'';
86
- //http://digg.com/submit?url={url}&title={title}
87
- }
88
  if ( isset($selected_social_icons['StumbleUpon']) && null == $selected_social_icons['StumbleUpon'] ) {
89
  $selected_social_icons['StumbleUpon'] = 'http://www.stumbleupon.com/submit?url='. $url. '&title='. $title .'';
90
  //http://www.stumbleupon.com/submit?url={url}&title={title}
@@ -114,10 +106,6 @@ function ampforwp_framework_get_social_icons($selected_social_icons){
114
  <a href="<?php echo esc_url($selected_social_icons['pinterest']) ?>" target ="_blank"><li class="icon-pinterest"></li></a>
115
  <?php } ?>
116
 
117
- <?php if( (in_array( 'google-plus' , $selected_social_icons,true ) || in_array( 'google-plus' , $social_icons_names,true )) && !empty($selected_social_icons['google-plus']) ) { ?>
118
- <a href="<?php echo esc_url($selected_social_icons['google-plus']) ?>" target ="_blank"><li class="icon-google-plus"></li></a>
119
- <?php } ?>
120
-
121
  <?php if( (in_array( 'linkedin' , $selected_social_icons,true ) || in_array( 'linkedin' , $social_icons_names,true )) && !empty($selected_social_icons['linkedin']) ) { ?>
122
  <a href="<?php echo esc_url($selected_social_icons['linkedin']) ?>" target ="_blank"><li class="icon-linkedin"></li></a>
123
  <?php } ?>
@@ -154,10 +142,6 @@ function ampforwp_framework_get_social_icons($selected_social_icons){
154
  <a href="<?php echo esc_url($selected_social_icons['telegram']); ?>" target ="_blank"><li class="icon-telegram"></li></a>
155
  <?php } ?>
156
 
157
- <?php if ( (in_array( 'digg' , $selected_social_icons,true ) || in_array( 'digg' , $social_icons_names,true )) && ! empty($selected_social_icons['digg']) ) { ?>
158
- <a href="<?php echo esc_url($selected_social_icons['digg']); ?>" target ="_blank"><li class="icon-digg"></li></a>
159
- <?php } ?>
160
-
161
  <?php if ( (in_array( 'StumbleUpon' , $selected_social_icons,true ) || in_array( 'StumbleUpon' , $social_icons_names,true )) && ! empty($selected_social_icons['StumbleUpon']) ) { ?>
162
  <a href="<?php echo esc_url($selected_social_icons['StumbleUpon']); ?>" target ="_blank"><li class="icon-StumbleUpon"></li></a>
163
  <?php } ?>
52
  $selected_social_icons['pinterest'] = 'https://pinterest.com/pin/create/bookmarklet/?media='.$image.'&url='.$url.'&description='.$title.'';
53
  //https://pinterest.com/pin/create/bookmarklet/?media={img}&url={url}&is_video={is_video}&description={title}
54
  }
 
 
 
 
55
  if( isset($selected_social_icons['linkedin']) && $selected_social_icons['linkedin'] == null){
56
  $selected_social_icons['linkedin'] = 'https://www.linkedin.com/shareArticle?url='. $url. '&title='. $title .'';
57
  //https://www.linkedin.com/shareArticle?url={url}&title={title}
77
  $selected_social_icons['telegram'] = 'https://telegram.me/share/url?url='. $url. '&text='. $title .'';
78
  //https://telegram.me/share/url?url={url}&text={title}
79
  }
 
 
 
 
80
  if ( isset($selected_social_icons['StumbleUpon']) && null == $selected_social_icons['StumbleUpon'] ) {
81
  $selected_social_icons['StumbleUpon'] = 'http://www.stumbleupon.com/submit?url='. $url. '&title='. $title .'';
82
  //http://www.stumbleupon.com/submit?url={url}&title={title}
106
  <a href="<?php echo esc_url($selected_social_icons['pinterest']) ?>" target ="_blank"><li class="icon-pinterest"></li></a>
107
  <?php } ?>
108
 
 
 
 
 
109
  <?php if( (in_array( 'linkedin' , $selected_social_icons,true ) || in_array( 'linkedin' , $social_icons_names,true )) && !empty($selected_social_icons['linkedin']) ) { ?>
110
  <a href="<?php echo esc_url($selected_social_icons['linkedin']) ?>" target ="_blank"><li class="icon-linkedin"></li></a>
111
  <?php } ?>
142
  <a href="<?php echo esc_url($selected_social_icons['telegram']); ?>" target ="_blank"><li class="icon-telegram"></li></a>
143
  <?php } ?>
144
 
 
 
 
 
145
  <?php if ( (in_array( 'StumbleUpon' , $selected_social_icons,true ) || in_array( 'StumbleUpon' , $social_icons_names,true )) && ! empty($selected_social_icons['StumbleUpon']) ) { ?>
146
  <a href="<?php echo esc_url($selected_social_icons['StumbleUpon']); ?>" target ="_blank"><li class="icon-StumbleUpon"></li></a>
147
  <?php } ?>
images/dof.png ADDED
Binary file
includes/admin-script.js CHANGED
@@ -693,7 +693,7 @@ jQuery(document).ready(function($){
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');
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');
includes/admin-style.css CHANGED
@@ -870,7 +870,7 @@ visibility: hidden;
870
  }
871
  .redux-main .child_opt .redux_field_th{ background: #f9f9f9;padding:23px 10px 23px 20px;
872
  margin-right: -16px;}
873
-
874
  .child_opt_last fieldset {
875
  margin-bottom: 15px;
876
  }
@@ -890,6 +890,7 @@ visibility: hidden;
890
  position: relative;
891
  padding: 8px 10px 8px 20px;
892
  }
 
893
  .redux-main .child_opt .redux-container-textarea{
894
  padding-top: 40px;
895
  }
870
  }
871
  .redux-main .child_opt .redux_field_th{ background: #f9f9f9;padding:23px 10px 23px 20px;
872
  margin-right: -16px;}
873
+ .redux-main .child_opt td {background: #f9f9f9;}
874
  .child_opt_last fieldset {
875
  margin-bottom: 15px;
876
  }
890
  position: relative;
891
  padding: 8px 10px 8px 20px;
892
  }
893
+ span#ampforwp-clear-clcss-msg {line-height: 25px;}
894
  .redux-main .child_opt .redux-container-textarea{
895
  padding-top: 40px;
896
  }
includes/ampforwp-fields-array.php CHANGED
@@ -3,10 +3,14 @@ if ( ! defined( 'ABSPATH' ) ) {
3
  exit;
4
  }
5
  global $amp_ux_fields;
 
6
  $analytics_options = array();
7
- $pages = get_pages();
8
- foreach ($pages as $page ) {
9
- $options[$page->ID] = $page->post_title;
 
 
 
10
  }
11
  $analytics_options = array(''=>'Add Analytics Type','ampforwp-ga-switch'=>'Google Analytics','ampforwp-Segment-switch'=>'Segment Analytics','ampforwp-Piwik-switch'=>'Matomo (Piwik) Analytics','ampforwp-Quantcast-switch'=>'Quantcast Measurement','ampforwp-comScore-switch'=>'comScore', 'ampforwp-Effective-switch'=>'Effective Measure','ampforwp-StatCounter-switch'=>'StatCounter','ampforwp-Histats-switch'=>'Histats Analytics','ampforwp-Yandex-switch'=>'Yandex Metrika','ampforwp-Chartbeat-switch'=>'Chartbeat Analytics','ampforwp-Alexa-switch'=>'Alexa Metrics','ampforwp-afs-analytics-switch'=>'AFS Analytics','amp-fb-pixel'=>'Facebook Pixel','amp-clicky-switch'=>'Clicky Analytics');
12
  $analytics_default_option = ampforwp_get_setting('amp-analytics-select-option');
3
  exit;
4
  }
5
  global $amp_ux_fields;
6
+ $options = array();
7
  $analytics_options = array();
8
+ $current_page = ampforwp_get_admin_current_page();
9
+ if($current_page=="amp_options"){
10
+ $pages = get_pages();
11
+ foreach ($pages as $page ) {
12
+ $options[$page->ID] = $page->post_title;
13
+ }
14
  }
15
  $analytics_options = array(''=>'Add Analytics Type','ampforwp-ga-switch'=>'Google Analytics','ampforwp-Segment-switch'=>'Segment Analytics','ampforwp-Piwik-switch'=>'Matomo (Piwik) Analytics','ampforwp-Quantcast-switch'=>'Quantcast Measurement','ampforwp-comScore-switch'=>'comScore', 'ampforwp-Effective-switch'=>'Effective Measure','ampforwp-StatCounter-switch'=>'StatCounter','ampforwp-Histats-switch'=>'Histats Analytics','ampforwp-Yandex-switch'=>'Yandex Metrika','ampforwp-Chartbeat-switch'=>'Chartbeat Analytics','ampforwp-Alexa-switch'=>'Alexa Metrics','ampforwp-afs-analytics-switch'=>'AFS Analytics','amp-fb-pixel'=>'Facebook Pixel','amp-clicky-switch'=>'Clicky Analytics');
16
  $analytics_default_option = ampforwp_get_setting('amp-analytics-select-option');
includes/features/functions.php CHANGED
@@ -188,6 +188,7 @@ function ampforwp_the_content_filter_full( $content_buffer ) {
188
  $content_buffer = preg_replace("/about:blank/", "#", $content_buffer);
189
  $content_buffer = preg_replace("/<script data-cfasync[^>]*>.*?<\/script>/", "", $content_buffer);
190
  $content_buffer = preg_replace('/<font(.*?)>(.*?)<\/font>/', '$2', $content_buffer);
 
191
  //$content_buffer = preg_replace('/<style type=(.*?)>|\[.*?\]\s\{(.*)\}|<\/style>(?!(<\/noscript>)|(\n<\/head>)|(<noscript>))/','',$content_buffer);
192
 
193
  // xlink attribute causes Validatation Issues #1149
@@ -490,7 +491,7 @@ if(!function_exists('ampforwp_findInternalUrl')){
490
  $get_skip_media_path = pathinfo($url);
491
  $skip_media_extensions = array('jpg','jpeg','gif','png');
492
 
493
- if ( isset( $get_skip_media_path['extension'] ) ){
494
  if (! in_array( $get_skip_media_path['extension'], $skip_media_extensions ) && !strpos(get_option( 'permalink_structure' ), $get_skip_media_path['extension'])){
495
  $skip_media_extensions[] = $get_skip_media_path['extension'];
496
  }
188
  $content_buffer = preg_replace("/about:blank/", "#", $content_buffer);
189
  $content_buffer = preg_replace("/<script data-cfasync[^>]*>.*?<\/script>/", "", $content_buffer);
190
  $content_buffer = preg_replace('/<font(.*?)>(.*?)<\/font>/', '$2', $content_buffer);
191
+ $content_buffer = preg_replace('/<ta(.*?)>(.*?)<\/ta>/', '$2', $content_buffer);
192
  //$content_buffer = preg_replace('/<style type=(.*?)>|\[.*?\]\s\{(.*)\}|<\/style>(?!(<\/noscript>)|(\n<\/head>)|(<noscript>))/','',$content_buffer);
193
 
194
  // xlink attribute causes Validatation Issues #1149
491
  $get_skip_media_path = pathinfo($url);
492
  $skip_media_extensions = array('jpg','jpeg','gif','png');
493
 
494
+ if ( isset( $get_skip_media_path['extension'] ) && !empty($get_skip_media_path['extension'])){
495
  if (! in_array( $get_skip_media_path['extension'], $skip_media_extensions ) && !strpos(get_option( 'permalink_structure' ), $get_skip_media_path['extension'])){
496
  $skip_media_extensions[] = $get_skip_media_path['extension'];
497
  }
includes/features/performance/performance-options.php CHANGED
@@ -85,6 +85,7 @@ if ( ! defined( 'ABSPATH' ) ) {
85
 
86
  'id' => 'ampforwp_css_tree_shaking_clear_cache',
87
  'type' => 'raw',
 
88
  'title' => esc_html__('Want to clear the Cache?', 'accelerated-mobile-pages'),
89
  'content' => "<span class='button button-primary button-small' id='ampforwp-clear-clearcss-data' target='_blank' data-nonce='".wp_create_nonce( 'ampforwp_clear_tree_shaking')."'><i class='el el-trash'></i> Clear Cache</span><span id='ampforwp-clear-clcss-msg' ></span>",
90
  'tooltip-subtitle' => esc_html__('This will remove all the generated cache.', 'amp-pagebuilder-compatibility'),
85
 
86
  'id' => 'ampforwp_css_tree_shaking_clear_cache',
87
  'type' => 'raw',
88
+ 'class' => 'child_opt child_opt_arrow',
89
  'title' => esc_html__('Want to clear the Cache?', 'accelerated-mobile-pages'),
90
  'content' => "<span class='button button-primary button-small' id='ampforwp-clear-clearcss-data' target='_blank' data-nonce='".wp_create_nonce( 'ampforwp_clear_tree_shaking')."'><i class='el el-trash'></i> Clear Cache</span><span id='ampforwp-clear-clcss-msg' ></span>",
91
  'tooltip-subtitle' => esc_html__('This will remove all the generated cache.', 'amp-pagebuilder-compatibility'),
includes/options/admin-config.php CHANGED
@@ -461,12 +461,12 @@ $extension_listing_array = array(
461
  'name'=>'Structured Data for WP',
462
  'desc'=>'Structured Data for your site and for AMP',
463
  'img_src'=>AMPFORWP_IMAGE_DIR . '/sd-icon.png',
464
- 'price'=>'$29',
465
  'url_link'=>'https://ampforwp.com/structuredata-for-wp/#utm_source=options-panel&utm_medium=extension-tab_structuredata-for-wp&utm_campaign=AMP%20Plugin',
466
  'plugin_active_path'=> 'structured-data-for-wp/structured-data-for-wp.php',
467
  'item_name'=>'Structured Data for WP',
468
  'store_url'=>'https://accounts.ampforwp.com',
469
- 'is_activated'=>(function_exists('saswp_non_amp')? 1: 2),
470
  //'settingUrl'=>'',
471
  ),
472
  array(
@@ -693,7 +693,7 @@ $freepro_listing = '
693
  <span class="ov"></span>
694
  </div>
695
  <div class="fp-cnt">
696
- <h1>Upgrade to Pro</h1>
697
  <p>Take your AMP to the next level with more beautiful themes, great extensions and more powerful features.</p>
698
  <a class="buy" href="#upgrade">BUY NOW</a>
699
  </div>
@@ -860,9 +860,11 @@ $freepro_listing = '
860
  </div>
861
  <div class="pri-lst">
862
  <div class="pri-tb">
863
- <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&download_id=24570&edd_options[price_id]=1&utm_medium=freevspro&utm_campaign=AMP%20Plugin">
864
  <h5>PERSONAL</h5>
865
- <span class="amt"><sup>$</sup>149</span>
 
 
866
  <span class="bil">Billed Annually</span>
867
  <span class="s">1 Site License</span>
868
  <span class="e">E-mail support</span>
@@ -872,9 +874,11 @@ $freepro_listing = '
872
  </a>
873
  </div>
874
  <div class="pri-tb rec">
875
- <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&download_id=24570&edd_options[price_id]=2&utm_medium=freevspro&utm_campaign=AMP%20Plugin">
876
  <h5>MULTIPLE</h5>
877
- <span class="amt"><sup>$</sup>199</span>
 
 
878
  <span class="bil">Billed Annually</span>
879
  <span class="s">3 Site License</span>
880
  <span class="e">E-mail support</span>
@@ -885,9 +889,11 @@ $freepro_listing = '
885
  </a>
886
  </div>
887
  <div class="pri-tb">
888
- <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&download_id=24570&edd_options[price_id]=3&utm_medium=freevspro&utm_campaign=AMP%20Plugin">
889
  <h5>WEBMASTER</h5>
890
- <span class="amt"><sup>$</sup>249</span>
 
 
891
  <span class="bil">Billed Annually</span>
892
  <span class="s">10 Site License</span>
893
  <span class="e">E-mail support</span>
@@ -897,9 +903,11 @@ $freepro_listing = '
897
  </a>
898
  </div>
899
  <div class="pri-tb">
900
- <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&download_id=24570&edd_options[price_id]=4&utm_medium=freevspro&utm_campaign=AMP%20Plugin">
901
  <h5>FREELANCER</h5>
902
- <span class="amt"><sup>$</sup>299</span>
 
 
903
  <span class="bil">Billed Annually</span>
904
  <span class="s">25 Site License</span>
905
  <span class="e">E-mail support</span>
@@ -909,9 +917,11 @@ $freepro_listing = '
909
  </a>
910
  </div>
911
  <div class="pri-tb">
912
- <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&download_id=24570&edd_options[price_id]=5&utm_medium=freevspro&utm_campaign=AMP%20Plugin">
913
  <h5>AGENCY</h5>
914
- <span class="amt"><sup>$</sup>499</span>
 
 
915
  <span class="bil">Billed Annually</span>
916
  <span class="s">Unlimited</span>
917
  <span class="e">E-mail support</span>
@@ -923,8 +933,8 @@ $freepro_listing = '
923
  </div><!-- /.pri-lst -->
924
  <div class="tru-us">
925
  <img src="'.AMPFORWP_IMAGE_DIR . '/rating.png" />
926
- <h2>Trusted by more that 130000+ Users!</h2>
927
- <p>More than 130k Websites, Blogs & E-Commerce website are powered by our AMP making it the #1 Rated AMP plugin in WordPress Community.</p>
928
  <a href="https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/?filter=5" target="_blank">Read The Reviews</a>
929
  </div>
930
  </div><!--/ .amp-upg -->
@@ -1183,7 +1193,12 @@ if(get_theme_support('amp-template-mode')){
1183
  $upg_to_pro_url = 'https://ampforwp.com/membership/#utm_source=options-panel&utm_medium=view_pro_features_btn&utm_campaign=AMP%20Plugin';
1184
  $upg_to_pro_target = 'target="_blank"';
1185
  }
1186
- $proDetailsProvide = '<a class="technical_support_btn_txt" href="https://ampforwp.com/support/" target="_blank">'.esc_html__('Technical Support','accelerated-mobile-pages').'</a> <a class="premium_features_btn" href="'.$upg_to_pro_url.'" id="ampforwp-prem-upg-to" '.$upg_to_pro_target.'>Upgrade to PRO</a> ';
 
 
 
 
 
1187
  if($ampforwp_nameOfUser!=""){
1188
  $proDetailsProvide = "<span class='extension-menu-call'><span class='activated-plugins'>Hello, ".esc_html($ampforwp_nameOfUser)."</span> <a class='' href='".esc_url(admin_url('admin.php?page=amp_options&tabid=opt-go-premium'))."'><i class='dashicons-before dashicons-admin-generic'></i></a></span>";
1189
  }elseif($ampforwp_is_productActivated){
@@ -1461,10 +1476,13 @@ Redux::setArgs( "redux_builder_amp", $args );
1461
  $custom_logo_id = '';
1462
  $image = '';
1463
  $value = '';
1464
- $custom_logo_id = get_theme_mod( 'custom_logo' );
1465
- $image = wp_get_attachment_image_src( $custom_logo_id , 'full');
1466
- if( $image ){
1467
- return $image[0];
 
 
 
1468
  }
1469
  return $value;
1470
  }
@@ -4055,6 +4073,18 @@ Redux::setSection( $opt_name, array(
4055
  array('border-type','=',3)
4056
  )
4057
  ),
 
 
 
 
 
 
 
 
 
 
 
 
4058
  array(
4059
  'id' => 'ampforwp-amp-menu',
4060
  'type' => 'switch',
@@ -6952,13 +6982,6 @@ else{
6952
  'default' => 0,
6953
  'required' => array('enable-single-twitter-share', '=' , '1'),
6954
  ),
6955
- // GooglePlus ON/OFF
6956
- array(
6957
- 'id' => 'enable-single-gplus-share',
6958
- 'type' => 'switch',
6959
- 'title' => esc_html__('GooglePlus', 'accelerated-mobile-pages'),
6960
- 'default' => 1,
6961
- ),
6962
  // Email ON/OFF
6963
  array(
6964
  'id' => 'enable-single-email-share',
@@ -7029,13 +7052,6 @@ else{
7029
  'title' => esc_html__('Telegram', 'accelerated-mobile-pages'),
7030
  'default' => 0,
7031
  ),
7032
- // Digg
7033
- array(
7034
- 'id' => 'enable-single-digg-share',
7035
- 'type' => 'switch',
7036
- 'title' => esc_html__('Digg', 'accelerated-mobile-pages'),
7037
- 'default' => 0,
7038
- ),
7039
  // StumbleUpon
7040
  array(
7041
  'id' => 'enable-single-stumbleupon-share',
461
  'name'=>'Structured Data for WP',
462
  'desc'=>'Structured Data for your site and for AMP',
463
  'img_src'=>AMPFORWP_IMAGE_DIR . '/sd-icon.png',
464
+ 'price'=>'FREE',
465
  'url_link'=>'https://ampforwp.com/structuredata-for-wp/#utm_source=options-panel&utm_medium=extension-tab_structuredata-for-wp&utm_campaign=AMP%20Plugin',
466
  'plugin_active_path'=> 'structured-data-for-wp/structured-data-for-wp.php',
467
  'item_name'=>'Structured Data for WP',
468
  'store_url'=>'https://accounts.ampforwp.com',
469
+ 'is_activated'=>2,
470
  //'settingUrl'=>'',
471
  ),
472
  array(
693
  <span class="ov"></span>
694
  </div>
695
  <div class="fp-cnt">
696
+ <h1>40% OFF for a limited period</h1>
697
  <p>Take your AMP to the next level with more beautiful themes, great extensions and more powerful features.</p>
698
  <a class="buy" href="#upgrade">BUY NOW</a>
699
  </div>
860
  </div>
861
  <div class="pri-lst">
862
  <div class="pri-tb">
863
+ <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&discount=AMP2019&download_id=24570&edd_options[price_id]=1">
864
  <h5>PERSONAL</h5>
865
+ <span class="d-amt"><sup>$</sup>149</span>
866
+ <span class="amt"><sup>$</sup>89</span>
867
+ <span class="s-amt">(Save $59)</span>
868
  <span class="bil">Billed Annually</span>
869
  <span class="s">1 Site License</span>
870
  <span class="e">E-mail support</span>
874
  </a>
875
  </div>
876
  <div class="pri-tb rec">
877
+ <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&discount=AMP2019&download_id=24570&edd_options[price_id]=2">
878
  <h5>MULTIPLE</h5>
879
+ <span class="d-amt"><sup>$</sup>199</span>
880
+ <span class="amt"><sup>$</sup>119</span>
881
+ <span class="s-amt">(Save $79)</span>
882
  <span class="bil">Billed Annually</span>
883
  <span class="s">3 Site License</span>
884
  <span class="e">E-mail support</span>
889
  </a>
890
  </div>
891
  <div class="pri-tb">
892
+ <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&discount=AMP2019&download_id=24570&edd_options[price_id]=3">
893
  <h5>WEBMASTER</h5>
894
+ <span class="d-amt"><sup>$</sup>249</span>
895
+ <span class="amt"><sup>$</sup>149</span>
896
+ <span class="s-amt">(Save $99)</span>
897
  <span class="bil">Billed Annually</span>
898
  <span class="s">10 Site License</span>
899
  <span class="e">E-mail support</span>
903
  </a>
904
  </div>
905
  <div class="pri-tb">
906
+ <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&discount=AMP2019&download_id=24570&edd_options[price_id]=4">
907
  <h5>FREELANCER</h5>
908
+ <span class="d-amt"><sup>$</sup>299</span>
909
+ <span class="amt"><sup>$</sup>179</span>
910
+ <span class="s-amt">(Save $119)</span>
911
  <span class="bil">Billed Annually</span>
912
  <span class="s">25 Site License</span>
913
  <span class="e">E-mail support</span>
917
  </a>
918
  </div>
919
  <div class="pri-tb">
920
+ <a href="https://accounts.ampforwp.com/order?edd_action=add_to_cart&discount=AMP2019&download_id=24570&edd_options[price_id]=5">
921
  <h5>AGENCY</h5>
922
+ <span class="d-amt"><sup>$</sup>499</span>
923
+ <span class="amt"><sup>$</sup>299</span>
924
+ <span class="s-amt">(Save $199)</span>
925
  <span class="bil">Billed Annually</span>
926
  <span class="s">Unlimited</span>
927
  <span class="e">E-mail support</span>
933
  </div><!-- /.pri-lst -->
934
  <div class="tru-us">
935
  <img src="'.AMPFORWP_IMAGE_DIR . '/rating.png" />
936
+ <h2>Trusted by more that 180000+ Users!</h2>
937
+ <p>More than 180k Websites, Blogs & E-Commerce website are powered by our AMP making it the #1 Rated AMP plugin in WordPress Community.</p>
938
  <a href="https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/?filter=5" target="_blank">Read The Reviews</a>
939
  </div>
940
  </div><!--/ .amp-upg -->
1193
  $upg_to_pro_url = 'https://ampforwp.com/membership/#utm_source=options-panel&utm_medium=view_pro_features_btn&utm_campaign=AMP%20Plugin';
1194
  $upg_to_pro_target = 'target="_blank"';
1195
  }
1196
+ $proDetailsProvide = '<a class="technical_support_btn_txt" href="https://ampforwp.com/support/" target="_blank">'.esc_html__('Technical Support','accelerated-mobile-pages').'</a>
1197
+ <a class="premium_features_btn dof" href="'.$upg_to_pro_url.'" id="ampforwp-prem-upg-to" '.$upg_to_pro_target.'>
1198
+ <img src="'.AMPFORWP_IMAGE_DIR . '/dof.png" />
1199
+ <span>40% OFF on Upgrades & Renewals</span>
1200
+ </a>
1201
+ ';
1202
  if($ampforwp_nameOfUser!=""){
1203
  $proDetailsProvide = "<span class='extension-menu-call'><span class='activated-plugins'>Hello, ".esc_html($ampforwp_nameOfUser)."</span> <a class='' href='".esc_url(admin_url('admin.php?page=amp_options&tabid=opt-go-premium'))."'><i class='dashicons-before dashicons-admin-generic'></i></a></span>";
1204
  }elseif($ampforwp_is_productActivated){
1476
  $custom_logo_id = '';
1477
  $image = '';
1478
  $value = '';
1479
+ $current_page = ampforwp_get_admin_current_page();
1480
+ if($current_page=="amp_options"){
1481
+ $custom_logo_id = get_theme_mod( 'custom_logo' );
1482
+ $image = wp_get_attachment_image_src( $custom_logo_id , 'full');
1483
+ if( $image ){
1484
+ return $image[0];
1485
+ }
1486
  }
1487
  return $value;
1488
  }
4073
  array('border-type','=',3)
4074
  )
4075
  ),
4076
+ array(
4077
+ 'id' => 'cta-responsive-view',
4078
+ 'class' => 'child_opt child_opt_arrow',
4079
+ 'title' => esc_html__('CTA Position on Mobile', 'accelerated-mobile-pages'),
4080
+ 'type' => 'select',
4081
+ 'options'=> array(
4082
+ '1' => 'Header',
4083
+ '2' => 'Menu',
4084
+ ),
4085
+ 'default'=> '1',
4086
+ 'required' => array( array('signin-button', '=' ,1) ),
4087
+ ),
4088
  array(
4089
  'id' => 'ampforwp-amp-menu',
4090
  'type' => 'switch',
6982
  'default' => 0,
6983
  'required' => array('enable-single-twitter-share', '=' , '1'),
6984
  ),
 
 
 
 
 
 
 
6985
  // Email ON/OFF
6986
  array(
6987
  'id' => 'enable-single-email-share',
7052
  'title' => esc_html__('Telegram', 'accelerated-mobile-pages'),
7053
  'default' => 0,
7054
  ),
 
 
 
 
 
 
 
7055
  // StumbleUpon
7056
  array(
7057
  'id' => 'enable-single-stumbleupon-share',
includes/options/redux-core/assets/css/redux-admin.css CHANGED
@@ -512,7 +512,41 @@ background: linear-gradient(45deg, #E47B49 0%, #ea4c89 100%);
512
  top: 1px;
513
  left: 4px;
514
  }
515
- .premium_features_btn:hover{background: #fff;color:#eb3349 !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
516
  .getting_started_listing .align_left{display: none}
517
  .getting_started_listing li a{width: 288px}
518
  .extension_listing li:hover{border-color:rgba(48, 63, 159, 0.35)}
@@ -851,7 +885,7 @@ background: linear-gradient(45deg, #E47B49 0%, #ea4c89 100%);
851
  width: 100%;
852
  display: grid;
853
  grid-template-columns: 1fr 1fr;
854
- grid-gap: 42px;
855
  margin-top: 40px;
856
  }
857
  .fe-2{
@@ -866,7 +900,7 @@ background: linear-gradient(45deg, #E47B49 0%, #ea4c89 100%);
866
  margin: 0;
867
  display: inline-block;
868
  vertical-align: middle;
869
- font-size: 20px;
870
  color: #000;
871
  font-weight: normal;
872
  line-height: 1.4;
@@ -966,6 +1000,27 @@ background: linear-gradient(45deg, #E47B49 0%, #ea4c89 100%);
966
  color: #1e8fff;
967
  font-weight: 500;
968
  margin-bottom:20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
969
  }
970
  .pri-tb .amt sup{
971
  font-size:22px;
512
  top: 1px;
513
  left: 4px;
514
  }
515
+ /*.premium_features_btn:hover{background: #fff;color:#eb3349 !important; }*/
516
+ /** Discount Offer CSS **/
517
+ .premium_features_btn.dof{
518
+ background: linear-gradient(to right,#4CAF50,#4CAF50);
519
+ padding: 22px 14px 22px 47px;
520
+ border-radius: 0;
521
+ position: relative;
522
+ top: 0px;
523
+ right: -15px;
524
+ font-weight: 500;
525
+ font-size: 15px !important;
526
+ }
527
+ .redux-intro-text a.premium_features_btn:hover{color:#fff !important;}
528
+ .premium_features_btn.dof img{
529
+ width: 26px;
530
+ position: absolute;
531
+ left: 13px;
532
+ top: 20px;
533
+ }
534
+ #toplevel_page_amp_options > a{
535
+ position: relative;
536
+ }
537
+ #toplevel_page_amp_options .wp-menu-name:after{
538
+ content:"";
539
+ display:inline-block;
540
+ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512.003 512.003" style="enable-background:new 0 0 512.003 512.003;" xml:space="preserve"><g><g><path xmlns="http://www.w3.org/2000/svg" d="M477.958,262.633c-2.06-4.215-2.06-9.049,0-13.263l19.096-39.065c10.632-21.751,2.208-47.676-19.178-59.023l-38.41-20.38 c-4.144-2.198-6.985-6.11-7.796-10.729l-7.512-42.829c-4.183-23.846-26.241-39.87-50.208-36.479l-43.053,6.09 c-4.647,0.656-9.242-0.838-12.613-4.099l-31.251-30.232c-17.401-16.834-44.661-16.835-62.061,0L193.72,42.859 c-3.372,3.262-7.967,4.753-12.613,4.099l-43.053-6.09c-23.975-3.393-46.025,12.633-50.208,36.479l-7.512,42.827 c-0.811,4.62-3.652,8.531-7.795,10.73l-38.41,20.38c-21.386,11.346-29.81,37.273-19.178,59.024l19.095,39.064 c2.06,4.215,2.06,9.049,0,13.263l-19.096,39.064c-10.632,21.751-2.208,47.676,19.178,59.023l38.41,20.38 c4.144,2.198,6.985,6.11,7.796,10.729l7.512,42.829c3.808,21.708,22.422,36.932,43.815,36.93c2.107,0,4.245-0.148,6.394-0.452 l43.053-6.09c4.643-0.659,9.241,0.838,12.613,4.099l31.251,30.232c8.702,8.418,19.864,12.626,31.03,12.625 c11.163-0.001,22.332-4.209,31.03-12.625l31.252-30.232c3.372-3.261,7.968-4.751,12.613-4.099l43.053,6.09 c23.978,3.392,46.025-12.633,50.208-36.479l7.513-42.827c0.811-4.62,3.652-8.531,7.795-10.73l38.41-20.38 c21.386-11.346,29.81-37.273,19.178-59.024L477.958,262.633z M464.035,334.635l-38.41,20.38 c-12.246,6.499-20.645,18.057-23.04,31.713l-7.512,42.828c-1.415,8.068-8.874,13.487-16.987,12.342l-43.053-6.09 c-13.73-1.945-27.316,2.474-37.281,12.113L266.5,478.152c-5.886,5.694-15.109,5.694-20.997,0l-31.251-30.232 c-8.422-8.147-19.432-12.562-30.926-12.562c-2.106,0-4.229,0.148-6.355,0.449l-43.053,6.09 c-8.106,1.146-15.571-4.274-16.987-12.342l-7.513-42.829c-2.396-13.656-10.794-25.215-23.041-31.712l-38.41-20.38 c-7.236-3.839-10.086-12.61-6.489-19.969l19.096-39.065c6.088-12.456,6.088-26.742,0-39.198l-19.096-39.065 c-3.597-7.359-0.747-16.13,6.489-19.969l38.41-20.38c12.246-6.499,20.645-18.057,23.04-31.713l7.512-42.828 c1.416-8.068,8.874-13.488,16.987-12.342l43.053,6.09c13.725,1.943,27.316-2.474,37.281-12.113l31.252-30.232 c5.886-5.694,15.109-5.694,20.997,0l31.251,30.232c9.965,9.64,23.554,14.056,37.281,12.113l43.053-6.09 c8.107-1.147,15.572,4.274,16.987,12.342l7.512,42.829c2.396,13.656,10.794,25.215,23.041,31.712l38.41,20.38 c7.236,3.839,10.086,12.61,6.489,19.969l-19.096,39.064c-6.088,12.455-6.088,26.743,0,39.198l19.096,39.064 C474.121,322.024,471.271,330.796,464.035,334.635z" style="fill: white;"/></g></g><g><g><path xmlns="http://www.w3.org/2000/svg" d="M363.886,148.116c-5.765-5.766-15.115-5.766-20.881,0L148.116,343.006c-5.766,5.766-5.766,15.115,0,20.881 c2.883,2.883,6.662,4.325,10.44,4.325c3.778,0,7.558-1.441,10.44-4.325l194.889-194.889 C369.653,163.231,369.653,153.883,363.886,148.116z" style="fill: white;"/></g></g><g><g><path xmlns="http://www.w3.org/2000/svg" d="M196.941,123.116c-29.852,0-54.139,24.287-54.139,54.139s24.287,54.139,54.139,54.139s54.139-24.287,54.139-54.139 S226.793,123.116,196.941,123.116z M196.941,201.863c-13.569,0-24.608-11.039-24.608-24.609c0-13.569,11.039-24.608,24.608-24.608 c13.569,0,24.609,11.039,24.609,24.608C221.549,190.824,210.51,201.863,196.941,201.863z" style="fill: white;"/></g></g><g><g><path xmlns="http://www.w3.org/2000/svg" d="M315.061,280.61c-29.852,0-54.139,24.287-54.139,54.139s24.287,54.139,54.139,54.139 c29.852,0,54.139-24.287,54.139-54.139S344.913,280.61,315.061,280.61z M315.061,359.357c-13.569,0-24.609-11.039-24.609-24.608 s11.039-24.608,24.609-24.608c13.569,0,24.608,11.039,24.608,24.608S328.63,359.357,315.061,359.357z" style="fill: white;"/></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>');
541
+ width: 20px;
542
+ height: 20px;
543
+ background-repeat: no-repeat;
544
+ position: absolute;
545
+ right: 20px;
546
+ top: 7px;
547
+ }
548
+
549
+ /** Discount Offer CSS Ends **/
550
  .getting_started_listing .align_left{display: none}
551
  .getting_started_listing li a{width: 288px}
552
  .extension_listing li:hover{border-color:rgba(48, 63, 159, 0.35)}
885
  width: 100%;
886
  display: grid;
887
  grid-template-columns: 1fr 1fr;
888
+ grid-gap: 25px;
889
  margin-top: 40px;
890
  }
891
  .fe-2{
900
  margin: 0;
901
  display: inline-block;
902
  vertical-align: middle;
903
+ font-size: 19px;
904
  color: #000;
905
  font-weight: normal;
906
  line-height: 1.4;
1000
  color: #1e8fff;
1001
  font-weight: 500;
1002
  margin-bottom:20px;
1003
+ display: block;
1004
+ }
1005
+ .pri-tb .d-amt{
1006
+ font-size: 24px;
1007
+ color: #666;
1008
+ font-weight: 500;
1009
+ margin-bottom: 15px;
1010
+ display: block;
1011
+ text-decoration: line-through;
1012
+ }
1013
+ .d-amt sup{
1014
+ line-height: 0;
1015
+ position: relative;
1016
+ top: 7px;
1017
+ }
1018
+ .pri-tb .s-amt{
1019
+ font-size: 13px;
1020
+ color: #4caf50;
1021
+ font-weight: 500;
1022
+ margin-bottom:10px;
1023
+ display: block;
1024
  }
1025
  .pri-tb .amt sup{
1026
  font-size:22px;
includes/options/redux-core/assets/js/redux.js CHANGED
@@ -131,6 +131,7 @@
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 ) {
131
  } else{
132
  jQuery('#ampforwp-clear-clearcss-data').addClass('hide');
133
  jQuery('#ampforwp-clear-clcss-msg').removeClass('hide');
134
+ jQuery("#ampforwp-clear-clcss-msg").html("Please Save Before Clearing Cache");
135
  }
136
  $notification_bar.html( response.notification_bar ).slideDown( 'fast' );
137
  if ( response.errors !== null || response.warnings !== null ) {
includes/options/redux-core/assets/js/redux.min.js CHANGED
@@ -1 +1 @@
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};
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"),jQuery("#ampforwp-clear-clcss-msg").html("Please Save Before Clearing Cache"))}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/options/redux-core/framework.php CHANGED
@@ -910,16 +910,7 @@
910
  $data = array();
911
  $args = wp_parse_args( $args, array() );
912
 
913
- if ( $type == "categories" || $type == "category" ) {
914
- $args['number'] = apply_filters('ampforwp_number_of_categories', 500);
915
- $cats = get_categories( $args );
916
- if ( ! empty ( $cats ) ) {
917
- foreach ( $cats as $cat ) {
918
- $data[ $cat->term_id ] = $cat->name;
919
- }
920
- //foreach
921
- } // If
922
- } else if ( $type == "menus" || $type == "menu" ) {
923
  $menus = wp_get_nav_menus( $args );
924
  if ( ! empty ( $menus ) ) {
925
  foreach ( $menus as $item ) {
@@ -988,16 +979,7 @@
988
  $data[ $name ] = ucfirst( $name );
989
  }
990
  }
991
- } else if ( $type == "tags" || $type == "tag" ) {
992
- $args['number'] = apply_filters('ampforwp_number_of_tags', 500);
993
- $tags = get_tags( $args );
994
- if ( ! empty ( $tags ) ) {
995
- foreach ( $tags as $tag ) {
996
- $data[ $tag->term_id ] = $tag->name;
997
- }
998
- //foreach
999
- }
1000
- //if
1001
  } else if ( $type == "menu_location" || $type == "menu_locations" ) {
1002
  global $_wp_registered_nav_menus;
1003
 
910
  $data = array();
911
  $args = wp_parse_args( $args, array() );
912
 
913
+ if ( $type == "menus" || $type == "menu" ) {
 
 
 
 
 
 
 
 
 
914
  $menus = wp_get_nav_menus( $args );
915
  if ( ! empty ( $menus ) ) {
916
  foreach ( $menus as $item ) {
979
  $data[ $name ] = ucfirst( $name );
980
  }
981
  }
982
+
 
 
 
 
 
 
 
 
 
983
  } else if ( $type == "menu_location" || $type == "menu_locations" ) {
984
  global $_wp_registered_nav_menus;
985
 
includes/vendor/amp/includes/embeds/class-amp-gallery-embed.php CHANGED
@@ -150,7 +150,7 @@ class AMP_Gallery_Embed_Handler extends AMP_Base_Embed_Handler {
150
  '3' => array(
151
  'main-html'=>'<div class="gal_w">{{with_images}}</div>
152
  {{amp_image_lightbox}}',
153
- 'image-with-caption-html'=>'',
154
  'image-without-caption-html' =>'{{main_images}}',
155
  'gallery_css' => '
156
  .gal_w{display:inline-block;width:100%}
@@ -253,6 +253,7 @@ class AMP_Gallery_Embed_Handler extends AMP_Base_Embed_Handler {
253
  'width' => $this->args['width'],
254
  'height' => $this->args['height'],
255
  'type' => 'slides',
 
256
  'layout' => 'responsive',
257
  'class' => 'collapsible-captions',
258
  'id' => 'carousel-with-carousel-preview-'.$r
150
  '3' => array(
151
  'main-html'=>'<div class="gal_w">{{with_images}}</div>
152
  {{amp_image_lightbox}}',
153
+ 'image-with-caption-html'=>'<figure><div class="ampforwp-gallery-item amp-carousel-containerd3">{{main_images}}<figcaption>{{main_images_caption}}</figcaption></div></figure>',
154
  'image-without-caption-html' =>'{{main_images}}',
155
  'gallery_css' => '
156
  .gal_w{display:inline-block;width:100%}
253
  'width' => $this->args['width'],
254
  'height' => $this->args['height'],
255
  'type' => 'slides',
256
+ 'controls' =>'',
257
  'layout' => 'responsive',
258
  'class' => 'collapsible-captions',
259
  'id' => 'carousel-with-carousel-preview-'.$r
includes/vendor/amp/includes/embeds/class-amp-instagram-embed.php CHANGED
@@ -8,7 +8,7 @@ require_once( AMP__VENDOR__DIR__ . '/includes/embeds/class-amp-base-embed-handle
8
  // Much of this class is borrowed from Jetpack embeds
9
  class AMP_Instagram_Embed_Handler extends AMP_Base_Embed_Handler {
10
  const SHORT_URL_HOST = 'instagr.am';
11
- const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/p/([^/?]+)#i';
12
 
13
  protected $DEFAULT_WIDTH = 600;
14
  protected $DEFAULT_HEIGHT = 600;
8
  // Much of this class is borrowed from Jetpack embeds
9
  class AMP_Instagram_Embed_Handler extends AMP_Base_Embed_Handler {
10
  const SHORT_URL_HOST = 'instagr.am';
11
+ const URL_PATTERN = '#http(s?)://(www\.)?instagr(\.am|am\.com)/(p|tv)/([^/?]+)#i';
12
 
13
  protected $DEFAULT_WIDTH = 600;
14
  protected $DEFAULT_HEIGHT = 600;
includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer.php CHANGED
@@ -370,8 +370,15 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
370
 
371
  elseif ( 3 == ampforwp_get_setting('ampforwp-gallery-design-type') ) {
372
  $gal_div = AMP_DOM_Utils::create_node($this->dom, 'div', array('class'=>'gal_w') );
373
- foreach ($amp_images as $amp_image) {
374
- $gal_div->appendChild( $amp_image );
 
 
 
 
 
 
 
375
  }
376
  $amp_carousel = $gal_div;
377
  add_action('amp_post_template_css', 'AMPforWP\\AMPVendor\\ampforwp_gal_des_3');
370
 
371
  elseif ( 3 == ampforwp_get_setting('ampforwp-gallery-design-type') ) {
372
  $gal_div = AMP_DOM_Utils::create_node($this->dom, 'div', array('class'=>'gal_w') );
373
+ $i = 0;
374
+ foreach ($amp_images as $amp_image) {
375
+ $figure_node = AMP_DOM_Utils::create_node($this->dom, 'figure', array('class'=>'ampforwp-gallery-item amp-carousel-containerd3'));
376
+ $figure_node->appendChild($amp_image);
377
+ $fig_caption = AMP_DOM_Utils::create_node($this->dom, 'figcaption', array());
378
+ $fig_caption->nodeValue = $args['images'][$i]['caption'];
379
+ $figure_node->appendChild($fig_caption);
380
+ $gal_div->appendChild( $figure_node );
381
+ $i++;
382
  }
383
  $amp_carousel = $gal_div;
384
  add_action('amp_post_template_css', 'AMPforWP\\AMPVendor\\ampforwp_gal_des_3');
includes/vendor/vendor-changelog.txt CHANGED
@@ -90,4 +90,5 @@ Reason: To extend the functionality of sidebars and Pagebuilder
90
  60. Added the Filter to modify attributes in HTML Tag #3685
91
  61. Undefined variable amp_url issue fixed #3776
92
  62. Warnings fixed of util function to get array component #3778
93
- 63. Need to remove width from inline style on amp images #3741
 
90
  60. Added the Filter to modify attributes in HTML Tag #3685
91
  61. Undefined variable amp_url issue fixed #3776
92
  62. Warnings fixed of util function to get array component #3778
93
+ 63. Need to remove width from inline style on amp images #3741
94
+ 64. Fixed Instagram video (tv) rendering issue #3812
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.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -191,6 +191,29 @@ You can contact us from [here](https://ampforwp.com/contact/)
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  = 0.9.98.19 (25th November 2019) =
195
  * Fixed: image transients should clear automatically #3781
196
  * Fixed: CTA button in header could be made no follow #3798
@@ -219,17 +242,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
219
  * Fixed: Verify button of Google Font API key is not working after update #3858
220
  * Fixed: Cache is not clearing after clicking clear cache button #3863
221
 
222
- = 0.9.98.17 (19th November 2019) =
223
- * Fixed: Validation error of 'srcset' in 'amp-img' after Latest update of Divi Theme (From version 4.0.2) #3803
224
- * Fixed: Logo is not resizing when using fixed width #3696
225
- * Fixed: Fatal Error when "AMP FOR WP" is activated on AMP FOR WP Garage URL #3765
226
- * Fixed: Images and Videos with Gutenberg does not have proper spacing #3634
227
- * Fixed: Undefined variable: amp_url #3776
228
- * Fixed: amp-image-lightbox markup is loading in paginated post even the image is not present #3700
229
- * Fixed: Search results on/off option in amp #3786
230
- * Fixed: Internal links are breaking in Persian language #3777
231
- * Fixed: Use util function to get array component. Fixes #3778 #3842
232
- * Fixed: Add Hyperlink option to Gallery module images. #3850
233
- * Fixed: Need to remove WPBakery Page Builder Support Option #3855
234
-
235
  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.20
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.20 (27th November 2019) =
195
+ * Fixed: Menu closer icon is getting overlapped by the header part of firefox web browser #3744
196
+ * Fixed: Instagram TV videos are not rendering into AMP #3812
197
+ * Fixed: Need To move CTA button in header two in sidebar if the website layout is in mobile view #3669
198
+ * Fixed: When the image is added from ThirstyAffiliate image block from Guntenber editor facing validation error #3706
199
+ * Fixed: PHP Warning:DOMDocument::loadHTML(): Empty string supplied as input #3745
200
+ * Fixed: When Convert AMP to WP theme (Beta) option is enabled Back to Top link functionality is not working #3695
201
+ * Fixed: Post date always shows 3 hours ago #3624
202
+ * Fixed: Gutenberg Design Bugs #3645
203
+ * Fixed: Toolbar AMP link bug #3692
204
+ * Fixed: Breadcrumb icommon symbol direction should be changed when RTL is enabled in Swift. #3678
205
+ * Fixed: Extra CSS are loading in swift and AMP Layouts #3414
206
+ * Fixed: Remove Digg and Google plus option form Social Sharing #3709
207
+ * Fixed: When Yoast SEO plugin is activated the same excerpt shows #3708
208
+ * Fixed: Allow people to use captions below thumbnails in gallery #3702
209
+ * Fixed: Design improvements of D2 #3637
210
+ * Fixed: Fatal error: Uncaught Error: Cannot use object of type stdClass as array (after 98.15) #3867
211
+ * Fixed: In amp gallery need to make improvement in arrow #3860
212
+ * Fixed: Performance issues in AMP FOR WP #3732
213
+ * Fixed: Yoast Separator is converting from Hyphen to Dash #3783
214
+ * Fixed: Multiple UX related modifactions #3869
215
+ * Fixed: strpos() debug error after 19 update #3878
216
+
217
  = 0.9.98.19 (25th November 2019) =
218
  * Fixed: image transients should clear automatically #3781
219
  * Fixed: CTA button in header could be made no follow #3798
242
  * Fixed: Verify button of Google Font API key is not working after update #3858
243
  * Fixed: Cache is not clearing after clicking clear cache button #3863
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
templates/design-manager/design-1/elements/social-icons.php CHANGED
@@ -68,9 +68,6 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
68
  data-param-text="TITLE <?php echo esc_url($twitter_amp_permalink).' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.esc_attr($data_param_data) ?>"
69
  ></amp-social-share>
70
  <?php } ?>
71
- <?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
72
- <amp-social-share type="gplus" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
73
- <?php } ?>
74
  <?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
75
  <amp-social-share type="email" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
76
  <?php } ?>
@@ -129,13 +126,6 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
129
  </div>
130
  </a>
131
  <?php } ?>
132
- <?php if ( true == $redux_builder_amp['enable-single-digg-share'] ) { ?>
133
- <a title="digg share" <?php ampforwp_nofollow_social_links(); ?> href="http://digg.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" target="_blank" aria-label="digg share">
134
- <div class="amp-social-icon amp-social-digg">
135
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzI4IDI4MmgyMDR2OTgzSDBWNTY4aDMyOFYyODJ6bTAgODE5VjczMkgyMDV2MzY5aDEyM3ptMjg2LTUzM3Y2OTdoMjA1VjU2OEg2MTR6bTAtMjg2djIwNGgyMDVWMjgySDYxNHptMjg3IDI4Nmg1MzN2OTQySDkwMXYtMTYzaDMyOHYtODJIOTAxVjU2OHptMzI4IDUzM1Y3MzJoLTEyM3YzNjloMTIzem0yODctNTMzaDUzMnY5NDJoLTUzMnYtMTYzaDMyN3YtODJoLTMyN1Y1Njh6bTMyNyA1MzNWNzMyaC0xMjN2MzY5aDEyM3oiPjwvcGF0aD48L3N2Zz4=" width="50" height="20" />
136
- </div>
137
- </a>
138
- <?php } ?>
139
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
140
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" target="_blank" aria-label="stumbleupon share">
141
  <div class="amp-social-icon amp-social-stumbleupon">
68
  data-param-text="TITLE <?php echo esc_url($twitter_amp_permalink).' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.esc_attr($data_param_data) ?>"
69
  ></amp-social-share>
70
  <?php } ?>
 
 
 
71
  <?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
72
  <amp-social-share type="email" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
73
  <?php } ?>
126
  </div>
127
  </a>
128
  <?php } ?>
 
 
 
 
 
 
 
129
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
130
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" target="_blank" aria-label="stumbleupon share">
131
  <div class="amp-social-icon amp-social-stumbleupon">
templates/design-manager/design-1/style.php CHANGED
@@ -171,9 +171,6 @@ amp-social-share[type="facebookmessenger"] {
171
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
172
  .amp-social-tumblr{background:#35465c}
173
  <?php } ?>
174
- <?php if ( true == ampforwp_get_setting('enable-single-digg-share') ) { ?>
175
- .amp-social-digg{background:#005be2}
176
- <?php } ?>
177
  <?php if ( true == ampforwp_get_setting('enable-single-stumbleupon-share') ) { ?>
178
  .amp-social-stumbleupon{background:#eb4924}
179
  <?php } ?>
171
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
172
  .amp-social-tumblr{background:#35465c}
173
  <?php } ?>
 
 
 
174
  <?php if ( true == ampforwp_get_setting('enable-single-stumbleupon-share') ) { ?>
175
  .amp-social-stumbleupon{background:#eb4924}
176
  <?php } ?>
templates/design-manager/design-2/elements/social-icons.php CHANGED
@@ -69,9 +69,6 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
69
  data-param-text="TITLE <?php echo esc_url($twitter_amp_permalink).' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.esc_attr($data_param_data) ?>"
70
  ></amp-social-share>
71
  <?php } ?>
72
- <?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
73
- <amp-social-share type="gplus" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
74
- <?php } ?>
75
  <?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
76
  <amp-social-share type="email" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
77
  <?php } ?>
@@ -130,13 +127,6 @@ if(true == ampforwp_get_setting('ampforwp-social-share')){ ?>
130
  </div>
131
  </a>
132
  <?php } ?>
133
- <?php if ( true == $redux_builder_amp['enable-single-digg-share'] ) { ?>
134
- <a title="digg share" <?php ampforwp_nofollow_social_links(); ?> href="http://digg.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" aria-label="digg share">
135
- <div class="amp-social-icon amp-social-digg">
136
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzI4IDI4MmgyMDR2OTgzSDBWNTY4aDMyOFYyODJ6bTAgODE5VjczMkgyMDV2MzY5aDEyM3ptMjg2LTUzM3Y2OTdoMjA1VjU2OEg2MTR6bTAtMjg2djIwNGgyMDVWMjgySDYxNHptMjg3IDI4Nmg1MzN2OTQySDkwMXYtMTYzaDMyOHYtODJIOTAxVjU2OHptMzI4IDUzM1Y3MzJoLTEyM3YzNjloMTIzem0yODctNTMzaDUzMnY5NDJoLTUzMnYtMTYzaDMyN3YtODJoLTMyN1Y1Njh6bTMyNyA1MzNWNzMyaC0xMjN2MzY5aDEyM3oiPjwvcGF0aD48L3N2Zz4=" width="50" height="20" />
137
- </div>
138
- </a>
139
- <?php } ?>
140
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
141
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" aria-label="stumbleupon share">
142
  <div class="amp-social-icon amp-social-stumbleupon">
69
  data-param-text="TITLE <?php echo esc_url($twitter_amp_permalink).' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.esc_attr($data_param_data) ?>"
70
  ></amp-social-share>
71
  <?php } ?>
 
 
 
72
  <?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
73
  <amp-social-share type="email" width="50" height="28" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
74
  <?php } ?>
127
  </div>
128
  </a>
129
  <?php } ?>
 
 
 
 
 
 
 
130
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
131
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" aria-label="stumbleupon share">
132
  <div class="amp-social-icon amp-social-stumbleupon">
templates/design-manager/design-2/style.php CHANGED
@@ -81,7 +81,7 @@ a { color: #312C7E; text-decoration: none }
81
  .clearfix, .cb { clear: both }
82
  amp-iframe{ max-width: 100%; margin-bottom : 20px; }
83
  amp-anim { max-width: 100%; }
84
- .amp-wp-article amp-addthis{display: inherit;margin-top: -44px;bottom: -20px;margin-left: -10px;}
85
  amp-wistia-player {margin:5px 0px;}
86
  .alignleft{ margin-right: 12px; margin-bottom:5px; float: left; }
87
  .alignright{ float:right; margin-left: 12px; margin-bottom:5px; }
@@ -164,9 +164,14 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
164
  /* Pagination */
165
  .amp-wp-content.pagination-holder { background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
166
  #pagination{ width: 100%; margin-top: 15px; }
167
- #pagination .next{ float: right; margin-bottom: 10px; }
168
- #pagination .prev{ float: left }
169
- #pagination .next a, #pagination .prev a{ margin-bottom: 12px; background: #fefefe; -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); padding: 11px 15px; font-size: 12px; color: #666; }
 
 
 
 
 
170
  <?php } // AMP Woocommerce condition ends ?>
171
  <?php
172
  if(is_single() || is_page() ){?>
@@ -210,9 +215,6 @@ amp-social-share[type="facebookmessenger"] {
210
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
211
  .amp-social-tumblr{background:#35465c}
212
  <?php } ?>
213
- <?php if ( true == ampforwp_get_setting('enable-single-digg-share') ) { ?>
214
- .amp-social-digg{background:#005be2}
215
- <?php } ?>
216
  <?php if ( true == ampforwp_get_setting('enable-single-stumbleupon-share') ) { ?>
217
  .amp-social-stumbleupon{background:#eb4924}
218
  <?php } ?>
@@ -430,7 +432,9 @@ amp-user-notification button:hover { cursor: pointer }
430
  @media screen and (max-width: 340px) { .related_posts .related_link a { font-size: 15px; } .single-post main{ padding: 10px 5px 10px 5px } .the_content .amp-ad-wrapper{ text-align: center; margin-left: -13px; } .amp-category-post {line-height: 1.45;font-size: 12px; } .amp-category-block li:nth-child(3) {margin:0%} }
431
  @media screen and (max-width: 320px) { .related_posts .related_link a { font-size: 13px; } h1.amp-wp-title{ font-size:17px; padding:0px 4px } }
432
  @media screen and (max-width: 400px) { .amp-wp-title{ font-size: 19px; margin: 21px 10px -1px 10px; } }
433
- @media screen and (max-width: 767px) { .amp-wp-post-content .small-screen-excerpt { display: block; } main, .amp-category-block, .category-widget-wrapper{ padding: 15px 18px 0px 18px; } .toggle-navigation ul li{ width: 50% } }
 
 
434
  @media screen and (max-width: 495px) { h2.amp-wp-title a{ font-size: 17px; line-height: 26px;} }
435
  <?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
436
  header, amp-sidebar, article, footer, main { direction: rtl; }
81
  .clearfix, .cb { clear: both }
82
  amp-iframe{ max-width: 100%; margin-bottom : 20px; }
83
  amp-anim { max-width: 100%; }
84
+ .amp-wp-article amp-addthis{display: inherit;margin-top: 20px;margin-left: -10px;}
85
  amp-wistia-player {margin:5px 0px;}
86
  .alignleft{ margin-right: 12px; margin-bottom:5px; float: left; }
87
  .alignright{ float:right; margin-left: 12px; margin-bottom:5px; }
164
  /* Pagination */
165
  .amp-wp-content.pagination-holder { background: none; padding: 0; box-shadow: none; height: auto; min-height: auto; }
166
  #pagination{ width: 100%; margin-top: 15px; }
167
+ #pagination .next{ float: right;width:60%;text-align: right;}
168
+ #pagination .prev{ float: left;width:60%; }
169
+ #pagination .next a, #pagination .prev a{ margin-bottom: 12px; -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); padding: 11px 15px; font-size: 12px;}
170
+ #pagination .next a, #pagination .prev a{
171
+ color:#666666;
172
+ background:#fefefe;
173
+ display:inline-block;
174
+ }
175
  <?php } // AMP Woocommerce condition ends ?>
176
  <?php
177
  if(is_single() || is_page() ){?>
215
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
216
  .amp-social-tumblr{background:#35465c}
217
  <?php } ?>
 
 
 
218
  <?php if ( true == ampforwp_get_setting('enable-single-stumbleupon-share') ) { ?>
219
  .amp-social-stumbleupon{background:#eb4924}
220
  <?php } ?>
432
  @media screen and (max-width: 340px) { .related_posts .related_link a { font-size: 15px; } .single-post main{ padding: 10px 5px 10px 5px } .the_content .amp-ad-wrapper{ text-align: center; margin-left: -13px; } .amp-category-post {line-height: 1.45;font-size: 12px; } .amp-category-block li:nth-child(3) {margin:0%} }
433
  @media screen and (max-width: 320px) { .related_posts .related_link a { font-size: 13px; } h1.amp-wp-title{ font-size:17px; padding:0px 4px } }
434
  @media screen and (max-width: 400px) { .amp-wp-title{ font-size: 19px; margin: 21px 10px -1px 10px; } }
435
+ @media screen and (max-width: 767px) { .amp-wp-post-content .small-screen-excerpt { display: block; } main, .amp-category-block, .category-widget-wrapper{ padding: 15px 18px 0px 18px; } .toggle-navigation ul li{ width: 50% }
436
+ #pagination .next{ width:100%;}
437
+ #pagination .prev{ float: none;width:100%; } }
438
  @media screen and (max-width: 495px) { h2.amp-wp-title a{ font-size: 17px; line-height: 26px;} }
439
  <?php if($redux_builder_amp['amp-rtl-select-option'] == true) { ?>
440
  header, amp-sidebar, article, footer, main { direction: rtl; }
templates/design-manager/design-3/elements/social-icons.php CHANGED
@@ -77,13 +77,6 @@ if(true == ampforwp_get_setting('ampforwp-social-share') && false == ampforwp_ge
77
  </a>
78
  </div>
79
  <?php } ?>
80
- <?php if ( true == $redux_builder_amp['enable-single-gplus-share'] ) { ?>
81
- <div class="ampforwp-custom-social">
82
- <a title="google plus share" <?php ampforwp_nofollow_social_links(); ?> href="https://plus.google.com/share?url=<?php echo esc_url($amp_permalink); ?>" class="amp-social-icon-rounded amp-social-gplus" aria-label="google plus share">
83
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzQuOTQyIDRIMTguMTk2QzEwLjY4OCA0IDMuNjIzIDkuNjg4IDMuNjIzIDE2LjI3NmMwIDYuNzMzIDUuMTE4IDEyLjE2NyAxMi43NTUgMTIuMTY3LjUzIDAgMS4wNDctLjAxIDEuNTUzLS4wNDctLjQ5NS45NS0uODUgMi4wMTgtLjg1IDMuMTI4IDAgMS44NyAxLjAwNyAzLjM4OCAyLjI4IDQuNjI3LS45NjIgMC0xLjg5LjAzLTIuOTAzLjAzQzcuMTU3IDM2LjE4IDAgNDIuMSAwIDQ4LjI0MmMwIDYuMDUgNy44NDcgOS44MzIgMTcuMTQ3IDkuODMyIDEwLjYwMiAwIDE2LjQ1Ny02LjAxNSAxNi40NTctMTIuMDY0IDAtNC44NS0xLjQzLTcuNzU0LTUuODU1LTEwLjg4Mi0xLjUxNS0xLjA3Mi00LjQxLTMuNjc3LTQuNDEtNS4yMSAwLTEuNzk0LjUxMy0yLjY3OCAzLjIxNS00Ljc5IDIuNzctMi4xNjMgNC43My01LjIwNSA0LjczLTguNzQ0IDAtNC4yMTMtMS44NzYtOC4zMi01LjM5OC05LjY3M2g1LjMxbDMuNzQ4LTIuNzA4em0tNS44NSA0MC45NjZjLjEzNC41Ni4yMDYgMS4xMzguMjA2IDEuNzI3IDAgNC44ODgtMy4xNSA4LjcwNy0xMi4xODYgOC43MDctNi40MjggMC0xMS4wNy00LjA3LTExLjA3LTguOTU2IDAtNC43OSA1Ljc1OC04Ljc3OCAxMi4xODUtOC43MDggMS41LjAxNiAyLjg5OC4yNTcgNC4xNjcuNjY4IDMuNDkgMi40MjcgNS45OTIgMy43OTggNi42OTggNi41NjN6bS0xMC4yOS0xOC4yM2MtNC4zMTYtLjEzLTguNDE2LTQuODI3LTkuMTYtMTAuNDktLjc0NS01LjY2OCAyLjE0OC0xMC4wMDQgNi40NjItOS44NzUgNC4zMTMuMTMgOC40MTUgNC42NzcgOS4xNiAxMC4zNDJzLTIuMTUgMTAuMTU0LTYuNDYyIDEwLjAyNHpNNTIgMTZWNGgtNHYxMkgzNnY0aDEydjEyaDRWMjBoMTJ2LTR6Ij48L3BhdGg+PC9zdmc+" width="16" height="16" />
84
- </a>
85
- </div>
86
- <?php } ?>
87
  <?php if ( true == $redux_builder_amp['enable-single-email-share'] ) { ?>
88
  <div class="ampforwp-custom-social">
89
  <a title="mailto" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>&body=<?php echo esc_url($amp_permalink); ?>" class="amp-social-icon-rounded amp-social-email" aria-label="mailto share">
@@ -155,13 +148,6 @@ if(true == ampforwp_get_setting('ampforwp-social-share') && false == ampforwp_ge
155
  </a>
156
  </div>
157
  <?php } ?>
158
- <?php if ( true == $redux_builder_amp['enable-single-digg-share'] ) { ?>
159
- <div class="ampforwp-custom-social">
160
- <a title="digg share" <?php ampforwp_nofollow_social_links(); ?> href="http://digg.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" class="amp-social-icon-rounded amp-social-digg" aria-label="digg share">
161
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzI4IDI4MmgyMDR2OTgzSDBWNTY4aDMyOFYyODJ6bTAgODE5VjczMkgyMDV2MzY5aDEyM3ptMjg2LTUzM3Y2OTdoMjA1VjU2OEg2MTR6bTAtMjg2djIwNGgyMDVWMjgySDYxNHptMjg3IDI4Nmg1MzN2OTQySDkwMXYtMTYzaDMyOHYtODJIOTAxVjU2OHptMzI4IDUzM1Y3MzJoLTEyM3YzNjloMTIzem0yODctNTMzaDUzMnY5NDJoLTUzMnYtMTYzaDMyN3YtODJoLTMyN1Y1Njh6bTMyNyA1MzNWNzMyaC0xMjN2MzY5aDEyM3oiPjwvcGF0aD48L3N2Zz4=" width="16" height="16" />
162
- </a>
163
- </div>
164
- <?php } ?>
165
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
166
  <div class="ampforwp-custom-social">
167
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" class="amp-social-icon-rounded amp-social-stumbleupon" aria-label="stumbleupon share">
77
  </a>
78
  </div>
79
  <?php } ?>
 
 
 
 
 
 
 
80
  <?php if ( true == $redux_builder_amp['enable-single-email-share'] ) { ?>
81
  <div class="ampforwp-custom-social">
82
  <a title="mailto" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>&body=<?php echo esc_url($amp_permalink); ?>" class="amp-social-icon-rounded amp-social-email" aria-label="mailto share">
148
  </a>
149
  </div>
150
  <?php } ?>
 
 
 
 
 
 
 
151
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
152
  <div class="ampforwp-custom-social">
153
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars( get_the_title() )); ?>" target="_blank" class="amp-social-icon-rounded amp-social-stumbleupon" aria-label="stumbleupon share">
templates/design-manager/design-3/style.php CHANGED
@@ -319,9 +319,6 @@ if ( true == ampforwp_get_setting('enable-single-vk-share') ) { ?>
319
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
320
  .amp-social-tumblr{background:#35465c}
321
  <?php } ?>
322
- <?php if ( true == ampforwp_get_setting('enable-single-digg-share') ) { ?>
323
- .amp-social-digg{background:#005be2}
324
- <?php } ?>
325
  <?php if ( true == ampforwp_get_setting('enable-single-stumbleupon-share') ) { ?>
326
  .amp-social-stumbleupon{background:#eb4924}
327
  <?php } ?>
@@ -343,9 +340,6 @@ if ( true == ampforwp_get_setting('enable-single-vk-share') ) { ?>
343
  <?php if ( true == ampforwp_get_setting('enable-single-twitter-share') ) { ?>
344
  .amp-social-twitter{background:#1da1f2}
345
  <?php } ?>
346
- <?php if ( true == ampforwp_get_setting('enable-single-gplus-share') ) { ?>
347
- .amp-social-gplus{background:#dd4b39}
348
- <?php } ?>
349
  <?php if ( true == ampforwp_get_setting('enable-single-email-share') ) { ?>
350
  .amp-social-email{background:#000000}
351
  <?php } ?>
319
  <?php if ( true == ampforwp_get_setting('enable-single-tumblr-share') ) { ?>
320
  .amp-social-tumblr{background:#35465c}
321
  <?php } ?>
 
 
 
322
  <?php if ( true == ampforwp_get_setting('enable-single-stumbleupon-share') ) { ?>
323
  .amp-social-stumbleupon{background:#eb4924}
324
  <?php } ?>
340
  <?php if ( true == ampforwp_get_setting('enable-single-twitter-share') ) { ?>
341
  .amp-social-twitter{background:#1da1f2}
342
  <?php } ?>
 
 
 
343
  <?php if ( true == ampforwp_get_setting('enable-single-email-share') ) { ?>
344
  .amp-social-email{background:#000000}
345
  <?php } ?>
templates/design-manager/swift/footer.php CHANGED
@@ -129,11 +129,6 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
129
  </a>
130
  </li>
131
  <?php } ?>
132
- <?php if($redux_builder_amp['enable-single-gplus-share']){?>
133
- <li>
134
- <a title="google plus share" class="s_gp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://plus.google.com/share?url=<?php echo esc_url($amp_permalink); ?>"></a>
135
- </li>
136
- <?php } ?>
137
  <?php if($redux_builder_amp['enable-single-email-share']){?>
138
  <li>
139
  <a title="email" class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>"></a>
@@ -194,11 +189,6 @@ if( (is_single() && $redux_builder_amp['enable-single-social-icons']) || (is_pag
194
  <a title="telegram share" class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"></a>
195
  </li>
196
  <?php } ?>
197
- <?php if($redux_builder_amp['enable-single-digg-share']){?>
198
- <li>
199
- <a title="digg share" class="s_dg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://digg.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"></a>
200
- </li>
201
- <?php } ?>
202
  <?php if($redux_builder_amp['enable-single-stumbleupon-share']){?>
203
  <li>
204
  <a title="stumbleupon share" class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"></a>
129
  </a>
130
  </li>
131
  <?php } ?>
 
 
 
 
 
132
  <?php if($redux_builder_amp['enable-single-email-share']){?>
133
  <li>
134
  <a title="email" class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>"></a>
189
  <a title="telegram share" class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"></a>
190
  </li>
191
  <?php } ?>
 
 
 
 
 
192
  <?php if($redux_builder_amp['enable-single-stumbleupon-share']){?>
193
  <li>
194
  <a title="stumbleupon share" class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>"></a>
templates/design-manager/swift/functions.php CHANGED
@@ -120,11 +120,6 @@ function ampforwp_swift_social_icons(){
120
  </a>
121
  </li>
122
  <?php } ?>
123
- <?php if($redux_builder_amp['enable-single-gplus-share']){?>
124
- <li>
125
- <a class="s_gp" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://plus.google.com/share?url=<?php echo esc_url($amp_permalink); ?>" aria-label="google plus share messenger"></a>
126
- </li>
127
- <?php } ?>
128
  <?php if($redux_builder_amp['enable-single-email-share']){?>
129
  <li>
130
  <a class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>" aria-label="email share"></a>
@@ -185,11 +180,6 @@ function ampforwp_swift_social_icons(){
185
  <a class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="telegram share"></a>
186
  </li>
187
  <?php } ?>
188
- <?php if($redux_builder_amp['enable-single-digg-share']){?>
189
- <li>
190
- <a class="s_dg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://digg.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="digg share"></a>
191
- </li>
192
- <?php } ?>
193
  <?php if($redux_builder_amp['enable-single-stumbleupon-share']){?>
194
  <li>
195
  <a class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="stumbleupon share"></a>
120
  </a>
121
  </li>
122
  <?php } ?>
 
 
 
 
 
123
  <?php if($redux_builder_amp['enable-single-email-share']){?>
124
  <li>
125
  <a class="s_em" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="mailto:?subject=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>&body=<?php echo esc_url($amp_permalink); ?>" aria-label="email share"></a>
180
  <a class="s_tg" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="https://telegram.me/share/url?url=<?php echo esc_url($amp_permalink); ?>&text=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="telegram share"></a>
181
  </li>
182
  <?php } ?>
 
 
 
 
 
183
  <?php if($redux_builder_amp['enable-single-stumbleupon-share']){?>
184
  <li>
185
  <a class="s_su" target="_blank" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(htmlspecialchars(get_the_title())); ?>" aria-label="stumbleupon share"></a>
templates/design-manager/swift/header.php CHANGED
@@ -160,6 +160,11 @@ if( !ampforwp_levelup_compatibility('hf_builder_head') ){
160
  </nav><!--end slide-menu -->
161
  <?php endif; ?>
162
  <?php do_action('ampforwp_after_amp_menu');?>
 
 
 
 
 
163
  <?php if ( $redux_builder_amp['menu-search'] ) { ?>
164
  <div class="m-srch">
165
  <?php amp_search();?>
160
  </nav><!--end slide-menu -->
161
  <?php endif; ?>
162
  <?php do_action('ampforwp_after_amp_menu');?>
163
+ <?php if( true == ampforwp_get_setting('signin-button') && '2' == ampforwp_get_setting('cta-responsive-view')){?>
164
+ <div class="h-sing cta-res">
165
+ <a target="_blank" <?php ampforwp_nofollow_cta_header_link(); ?> href="<?php echo esc_url(ampforwp_get_setting('signin-button-link'))?>"><?php echo esc_html__(ampforwp_get_setting('signin-button-text'), 'accelerated-mobile-pages'); ?></a>
166
+ </div>
167
+ <?php } ?>
168
  <?php if ( $redux_builder_amp['menu-search'] ) { ?>
169
  <div class="m-srch">
170
  <?php amp_search();?>
templates/design-manager/swift/style.php CHANGED
@@ -235,7 +235,7 @@ if($redux_builder_amp['menu-type'] == '1'){?>
235
  .fsc{width: 100%;height: -webkit-fill-available;position: absolute;cursor: pointer;top:0;left:0;z-index:9;}
236
  <?php if($redux_builder_amp['header-position-type'] == '1'){?>
237
  .tg:checked + .hamb-mnu > .m-ctr {margin-left: 0;border-right: 1px solid <?php if(isset($redux_builder_amp['swift-element-menu-border-color']['rgba'])){echo ampforwp_sanitize_color($redux_builder_amp['swift-element-menu-border-color']['rgba']);}?>;}
238
- <?php $overlaybg = ampforwp_get_setting('swift-header-overlay','color'); ?>
239
  .tg:checked + .hamb-mnu > .m-ctr .c-btn {position: fixed;right: 5px;top:5px;
240
  background: <?php echo ampforwp_sanitize_color( $overlaybg ); ?>;
241
  border-radius: 50px;}
@@ -274,7 +274,7 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
274
  .m-ctr{transition: margin 0.3s ease-in-out;}
275
  .m-ctr{<?php if(ampforwp_get_setting('header-overlay-width')){?>width:<?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>;<?php } ?>height:100%;position: absolute;z-index:99;padding: 2% 0% 100vh 0%;}
276
  .m-menu{display: inline-block;width: 100%;padding: 2px 20px 10px 20px;}
277
- .m-scrl{overflow-y: auto;display: inline-block;width: 100%;overflow: scroll;max-height: 94vh;}
278
  .m-menu .amp-menu .toggle:after{
279
  <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
280
  content: "\e313";font-family: 'icomoon';font-size:25px;
@@ -1728,17 +1728,6 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
1728
  <?php } ?>
1729
  }
1730
  <?php }
1731
- if($redux_builder_amp['enable-single-gplus-share'] || $redux_builder_amp['enbl-gol']){?>
1732
- .s_gp{background:#dd4b39;}
1733
- .s_gp:after{
1734
- <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
1735
- content: "\e931";
1736
- <?php }
1737
- if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
1738
- content:"\f0d5";
1739
- <?php } ?>
1740
- }
1741
- <?php }
1742
  if($redux_builder_amp['enable-single-linkedin-share'] || $redux_builder_amp['enbl-lk']){?>
1743
  .s_lk{background:#0077b5;}
1744
  .s_lk:after{
@@ -1852,17 +1841,6 @@ if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
1852
  <?php } ?>
1853
  }
1854
  <?php }
1855
- if($redux_builder_amp['enable-single-digg-share']){?>
1856
- .s_dg{background:#005be2;}
1857
- .s_dg:after{
1858
- <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
1859
- content: "\e919";
1860
- <?php }
1861
- if ( $ampforwp_font_icon == 'fontawesome-icons' ){ ?>
1862
- content:"\f1a6";
1863
- <?php } ?>
1864
- }
1865
- <?php }
1866
  if($redux_builder_amp['enable-single-stumbleupon-share']){?>
1867
  .s_su{background:#eb4924;}
1868
  .s_su:after{
@@ -2258,4 +2236,38 @@ if(true == ampforwp_get_setting('ampforwp-single-related-posts-excerpt')){?>
2258
  <?php }
2259
  if(is_page()){?>
2260
  .ss-ic li a{display: initial;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2261
  <?php }
235
  .fsc{width: 100%;height: -webkit-fill-available;position: absolute;cursor: pointer;top:0;left:0;z-index:9;}
236
  <?php if($redux_builder_amp['header-position-type'] == '1'){?>
237
  .tg:checked + .hamb-mnu > .m-ctr {margin-left: 0;border-right: 1px solid <?php if(isset($redux_builder_amp['swift-element-menu-border-color']['rgba'])){echo ampforwp_sanitize_color($redux_builder_amp['swift-element-menu-border-color']['rgba']);}?>;}
238
+ <?php $overlaybg = ampforwp_get_setting('swift-header-overlay','rgba'); ?>
239
  .tg:checked + .hamb-mnu > .m-ctr .c-btn {position: fixed;right: 5px;top:5px;
240
  background: <?php echo ampforwp_sanitize_color( $overlaybg ); ?>;
241
  border-radius: 50px;}
274
  .m-ctr{transition: margin 0.3s ease-in-out;}
275
  .m-ctr{<?php if(ampforwp_get_setting('header-overlay-width')){?>width:<?php echo esc_html(ampforwp_get_setting('header-overlay-width'))?>;<?php } ?>height:100%;position: absolute;z-index:99;padding: 2% 0% 100vh 0%;}
276
  .m-menu{display: inline-block;width: 100%;padding: 2px 20px 10px 20px;}
277
+ .m-scrl{overflow-y: scroll;display: inline-block;width: 100%;max-height: 94vh;}
278
  .m-menu .amp-menu .toggle:after{
279
  <?php if ( $ampforwp_font_icon == 'swift-icons' ){ ?>
280
  content: "\e313";font-family: 'icomoon';font-size:25px;
1728
  <?php } ?>
1729
  }
1730
  <?php }
 
 
 
 
 
 
 
 
 
 
 
1731
  if($redux_builder_amp['enable-single-linkedin-share'] || $redux_builder_amp['enbl-lk']){?>
1732
  .s_lk{background:#0077b5;}
1733
  .s_lk:after{
1841
  <?php } ?>
1842
  }
1843
  <?php }
 
 
 
 
 
 
 
 
 
 
 
1844
  if($redux_builder_amp['enable-single-stumbleupon-share']){?>
1845
  .s_su{background:#eb4924;}
1846
  .s_su:after{
2236
  <?php }
2237
  if(is_page()){?>
2238
  .ss-ic li a{display: initial;}
2239
+ <?php }
2240
+
2241
+ if(true == ampforwp_get_setting('signin-button') && '2' == ampforwp_get_setting('cta-responsive-view')){
2242
+ $color = ampforwp_get_setting('signin-button-text-color','rgba');
2243
+ $border_color = ampforwp_get_setting('signin-button-border-color','rgba');
2244
+ if($color == 'rgba(0,0,0,1)'){
2245
+ $color = '#fff';
2246
+ }
2247
+ if($border_color == 'rgba(0,0,0,1)'){
2248
+ $border_color = '#fff';
2249
+ }
2250
+ ?>
2251
+ .h-sing.cta-res{display:none}
2252
+ @media(max-width:480px){
2253
+ .h-2 .h-sing {display:none}
2254
+ .h-sing.cta-res {display: block;}
2255
+ .h-sing a {margin-left: 25px;
2256
+ color: <?php echo ampforwp_sanitize_color($color) ?>;
2257
+ border-color: <?php echo ampforwp_sanitize_color($border_color) ?>;
2258
+ }
2259
+ }
2260
+ <?php }
2261
+ if(true == ampforwp_get_setting('amp-rtl-select-option')){?>
2262
+ .breadcrumbs li a:after, .breadcrumbs span a:after{
2263
+ content: "\e314";
2264
+ }
2265
+ <?php }
2266
+ if(ampforwp_get_setting('ampforwp-gallery-design-type')==3){?>
2267
+ .ampforwp-gallery-item.amp-carousel-containerd3 {
2268
+ float: left;
2269
+ }
2270
+ .amp-carousel-containerd3 figcaption {
2271
+ max-width: 150px;
2272
+ }
2273
  <?php }
templates/features.php CHANGED
@@ -1224,9 +1224,6 @@ function ampforwp_sticky_social_icons(){
1224
  data-param-url=""
1225
  data-param-text="TITLE <?php echo esc_url($permalink).' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.esc_attr($data_param_data) ?>"
1226
  ></amp-social-share>
1227
- <?php } ?>
1228
- <?php if($redux_builder_amp['enable-single-gplus-share'] == true) { ?>
1229
- <amp-social-share type="gplus" width="50" height="28" aria-label="gplus" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
1230
  <?php } ?>
1231
  <?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
1232
  <amp-social-share type="email" width="50" height="28" aria-label="email" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
@@ -1290,13 +1287,6 @@ function ampforwp_sticky_social_icons(){
1290
  </div>
1291
  </a>
1292
  <?php } ?>
1293
- <?php if ( true == $redux_builder_amp['enable-single-digg-share'] ) { ?>
1294
- <a title="digg share" <?php ampforwp_nofollow_social_links(); ?> href="http://digg.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(get_the_title()); ?>" target="_blank">
1295
- <div class="amp-social-icon amp-social-digg">
1296
- <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjA0OCAxODk2LjA4MzMiIGZpbGw9IiNmZmZmZmYiID48cGF0aCBkPSJNMzI4IDI4MmgyMDR2OTgzSDBWNTY4aDMyOFYyODJ6bTAgODE5VjczMkgyMDV2MzY5aDEyM3ptMjg2LTUzM3Y2OTdoMjA1VjU2OEg2MTR6bTAtMjg2djIwNGgyMDVWMjgySDYxNHptMjg3IDI4Nmg1MzN2OTQySDkwMXYtMTYzaDMyOHYtODJIOTAxVjU2OHptMzI4IDUzM1Y3MzJoLTEyM3YzNjloMTIzem0yODctNTMzaDUzMnY5NDJoLTUzMnYtMTYzaDMyN3YtODJoLTMyN1Y1Njh6bTMyNyA1MzNWNzMyaC0xMjN2MzY5aDEyM3oiPjwvcGF0aD48L3N2Zz4=" width="50" height="20" />
1297
- </div>
1298
- </a>
1299
- <?php } ?>
1300
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
1301
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(get_the_title()); ?>" target="_blank">
1302
  <div class="amp-social-icon amp-social-stumbleupon">
@@ -1373,7 +1363,9 @@ function ampforwp_add_proper_post_meta(){
1373
  }
1374
  }
1375
  function ampforwp_yoast_the_excerpt(){
1376
- add_filter('get_the_excerpt','ampforwp_yoast_excerpt',9);
 
 
1377
  }
1378
  function ampforwp_yoast_excerpt($desc){
1379
  if(ampforwp_is_front_page()){
@@ -1752,6 +1744,9 @@ function ampforwp_replace_title_tags() {
1752
  $site_title = $tsf_title;
1753
  }
1754
  }
 
 
 
1755
  return esc_html( convert_chars( wptexturize( trim( $site_title ) ) ) );
1756
  }
1757
  }
@@ -2928,7 +2923,6 @@ if( !function_exists( 'is_socialshare_or_socialsticky_enabled_in_ampforwp' ) ) {
2928
  global $redux_builder_amp;
2929
  if( $redux_builder_amp['enable-single-facebook-share'] ||
2930
  $redux_builder_amp['enable-single-twitter-share'] ||
2931
- $redux_builder_amp['enable-single-gplus-share'] ||
2932
  $redux_builder_amp['enable-single-email-share'] ||
2933
  $redux_builder_amp['enable-single-pinterest-share'] ||
2934
  $redux_builder_amp['enable-single-linkedin-share'] ) {
@@ -3004,6 +2998,7 @@ function ampforwp_content_sanitizer( $content ) {
3004
 
3005
  if ( $amp_custom_content ) {
3006
  global $data;
 
3007
  $data['amp_component_scripts'] = $amp_custom_content->get_amp_scripts();
3008
  $data['post_amp_styles'] = $amp_custom_content->get_amp_styles();
3009
  return $amp_custom_content->get_amp_content();
@@ -4905,6 +4900,18 @@ if ( ! function_exists('ampforwp_gravatar_checker') ) {
4905
  return $has_valid_avatar;
4906
  }
4907
  }
 
 
 
 
 
 
 
 
 
 
 
 
4908
  // 92. View AMP in Admin Bar
4909
  add_action( 'wp_before_admin_bar_render', 'ampforwp_view_amp_admin_bar' );
4910
  if( ! function_exists( 'ampforwp_view_amp_admin_bar' ) ) {
@@ -4980,12 +4987,15 @@ if( ! function_exists( 'ampforwp_view_amp_admin_bar' ) ) {
4980
  $current_url = get_term_link($term_id);
4981
  }else{
4982
  $post_type_title = ucfirst($post->post_type);
4983
- $current_url = get_permalink( $post->ID );
 
 
 
4984
  }
4985
  $wp_admin_bar->add_node(array(
4986
  'id' => 'ampforwp-view-amp',
4987
  'title' => 'View ' . esc_html($post_type_title) . ' (AMP)' ,
4988
- 'href' => ampforwp_url_controller( $current_url )
4989
  ));
4990
  }
4991
  }
@@ -5023,10 +5033,7 @@ if( ! function_exists( 'ampforwp_full_post_date_loops' ) ){
5023
  }
5024
  }
5025
  if( 1 == $redux_builder_amp['ampforwp-post-date-format'] ){
5026
- $time = get_the_time('U', get_the_ID() );
5027
- if( 2 == $redux_builder_amp['ampforwp-post-date-global'] ){
5028
- $time = get_the_modified_time('U', get_the_ID() );
5029
- }
5030
  $date = human_time_diff( $time, current_time('timestamp') );
5031
  if( $redux_builder_amp['ampforwp-post-date-format-text'] ){
5032
  $full_date = $redux_builder_amp['ampforwp-post-date-format-text'];
@@ -5037,10 +5044,7 @@ if( ! function_exists( 'ampforwp_full_post_date_loops' ) ){
5037
  }
5038
  }
5039
  if(is_single() && 1 == $redux_builder_amp['ampforwp-post-date-format']){
5040
- $time = get_the_time('U', get_the_ID() );
5041
- if( 2 == $redux_builder_amp['ampforwp-post-date-global'] ){
5042
- $time = get_the_modified_time('U', get_the_ID() );
5043
- }
5044
  $date = human_time_diff( $time, current_time('timestamp') );
5045
  $full_date = human_time_diff( $time, current_time('timestamp') ) .' '. ampforwp_translation( $redux_builder_amp['amp-translator-ago-date-text'],'ago');
5046
  if( $redux_builder_amp['ampforwp-post-date-format-text'] ){
@@ -5053,7 +5057,25 @@ if( ! function_exists( 'ampforwp_full_post_date_loops' ) ){
5053
  return $full_date;
5054
  }
5055
  }
5056
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5057
  // 99. Merriweather Font Management
5058
  add_filter( 'amp_post_template_data', 'ampforwp_merriweather_font_management' );
5059
  function ampforwp_merriweather_font_management( $data ) {
@@ -7170,29 +7192,31 @@ function ampforwp_head_css(){
7170
  ) );
7171
  $user_info = $wp_admin_bar->get_node('user-info');
7172
  $title = $user_info->title;
7173
- $dom->loadHTML($title);
7174
- $anchors = $dom -> getElementsByTagName('img');
7175
- $src="";
7176
- foreach($anchors as $im){
7177
- $src = $im->getAttribute('src');
7178
- }
7179
- $authname = get_the_author_meta('nickname');
7180
- $title = '<span style="background: url('.esc_url($src).');background-repeat: no-repeat;height: 64px;position: absolute;width: 100px;top: 13px;left: -70px;" class="display-name"></span><span class="display-name">'.esc_html__($authname,'accelerated-mobile-pages').'<span>';
7181
- $wp_admin_bar->add_menu( array(
7182
- 'id' => 'user-info',
7183
- 'title' => $title
7184
- ) );
7185
- $wp_admin_bar->add_menu( array(
7186
- 'id' => 'wpseo-menu',
7187
- 'title' => "SEO"
7188
- ) );
7189
- $wp_admin_bar->remove_menu( 'ampforwp-view-amp' );
7190
- $url = ampforwp_get_non_amp_url();
7191
- $wp_admin_bar->add_node(array(
7192
- 'id' => 'ampforwp-view-non-amp',
7193
- 'title' => 'View Non-AMP' ,
7194
- 'href' => esc_url($url)
7195
- ));
 
 
7196
  }
7197
 
7198
  function ampforwp_remove_admin_menu_front($wp){
1224
  data-param-url=""
1225
  data-param-text="TITLE <?php echo esc_url($permalink).' '.ampforwp_translation( $redux_builder_amp['amp-translator-via-text'], 'via' ).' '.esc_attr($data_param_data) ?>"
1226
  ></amp-social-share>
 
 
 
1227
  <?php } ?>
1228
  <?php if($redux_builder_amp['enable-single-email-share'] == true) { ?>
1229
  <amp-social-share type="email" width="50" height="28" aria-label="email" <?php ampforwp_nofollow_social_links(); ?>></amp-social-share>
1287
  </div>
1288
  </a>
1289
  <?php } ?>
 
 
 
 
 
 
 
1290
  <?php if ( true == $redux_builder_amp['enable-single-stumbleupon-share'] ) { ?>
1291
  <a title="stumbleupon share" <?php ampforwp_nofollow_social_links(); ?> href="http://www.stumbleupon.com/submit?url=<?php echo esc_url($amp_permalink); ?>&title=<?php echo esc_attr(get_the_title()); ?>" target="_blank">
1292
  <div class="amp-social-icon amp-social-stumbleupon">
1363
  }
1364
  }
1365
  function ampforwp_yoast_the_excerpt(){
1366
+ if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){
1367
+ add_filter('get_the_excerpt','ampforwp_yoast_excerpt',9);
1368
+ }
1369
  }
1370
  function ampforwp_yoast_excerpt($desc){
1371
  if(ampforwp_is_front_page()){
1744
  $site_title = $tsf_title;
1745
  }
1746
  }
1747
+ if (class_exists('WPSEO_Frontend') && $sep == 'sc-dash') {
1748
+ return esc_html( convert_chars( trim( $site_title ) ) );
1749
+ }
1750
  return esc_html( convert_chars( wptexturize( trim( $site_title ) ) ) );
1751
  }
1752
  }
2923
  global $redux_builder_amp;
2924
  if( $redux_builder_amp['enable-single-facebook-share'] ||
2925
  $redux_builder_amp['enable-single-twitter-share'] ||
 
2926
  $redux_builder_amp['enable-single-email-share'] ||
2927
  $redux_builder_amp['enable-single-pinterest-share'] ||
2928
  $redux_builder_amp['enable-single-linkedin-share'] ) {
2998
 
2999
  if ( $amp_custom_content ) {
3000
  global $data;
3001
+ $data = (array) $data;
3002
  $data['amp_component_scripts'] = $amp_custom_content->get_amp_scripts();
3003
  $data['post_amp_styles'] = $amp_custom_content->get_amp_styles();
3004
  return $amp_custom_content->get_amp_content();
4900
  return $has_valid_avatar;
4901
  }
4902
  }
4903
+ function ampfowp_add_extra_css(){
4904
+ echo '<style>
4905
+ #wp-admin-bar-ampforwp-view-amp a{
4906
+ background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjMxNHB4IiBoZWlnaHQ9IjMxNXB4IiB2aWV3Qm94PSIwIDAgMzE0IDMxNSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggNDEgKDM1MzI2KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TaGFwZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSIjODI4NzhjIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIyNjA3MSIgZmlsbD0iIzgyODc4YyI+CiAgICAgICAgICAgIDxnIGlkPSJDYXBhXzEiPgogICAgICAgICAgICAgICAgPGcgaWQ9Il94MzJfNDAuX1Bvd2VyIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTU3LjAwNywwIEM3MC4yOTIsMCAwLDcwLjI5MiAwLDE1Ny4wMDcgQzAsMjQzLjcxNSA3MC4yOTIsMzE0LjAxNCAxNTcuMDA3LDMxNC4wMTQgQzI0My43MTYsMzE0LjAxNCAzMTQuMDE0LDI0My43MTUgMzE0LjAxNCwxNTcuMDA3IEMzMTQuMDE0LDcwLjI5MiAyNDMuNzE2LDAgMTU3LjAwNywwIFogTTE1Ny4wMDcsMjgyLjYxMiBDODcuNjM0LDI4Mi42MTIgMzEuNDAyLDIyNi4zNzIgMzEuNDAyLDE1Ny4wMDcgQzMxLjQwMiw4Ny42MzQgODcuNjM0LDMxLjQwMiAxNTcuMDA3LDMxLjQwMiBDMjI2LjM3MSwzMS40MDIgMjgyLjYxMSw4Ny42MzQgMjgyLjYxMSwxNTcuMDA3IEMyODIuNjEyLDIyNi4zNzIgMjI2LjM3MiwyODIuNjEyIDE1Ny4wMDcsMjgyLjYxMiBaIE0yMDQuMTExLDE0MS4zNjggTDE2My40NzksMTQxLjUzMyBDMTU5LjEzOSwxNDEuNTUzIDE1Ny41NDQsMTM4LjYyMyAxNTkuOTA1LDEzNC45NzkgTDIwMy4zOTcsNjguMTA5IEMyMDguMTI2LDYwLjg0MSAyMDYuOTg0LDU5LjkyMiAyMDAuODYxLDY2LjA1MyBMMTA1LjMwNSwxNjEuNiBDOTkuMTcyLDE2Ny43MzIgMTAxLjIzMiwxNzIuNjc2IDEwOS45MDYsMTcyLjY0MSBMMTQyLjY3OSwxNzIuNTA4IEMxNTEuMzQ3LDE3Mi40NzIgMTU0LjU1MiwxNzguMzM1IDE0OS44MjQsMTg1LjYwNSBMMTA2LjMzNCwyNTIuNDc3IEMxMDMuOTcyLDI1Ni4xMTIgMTA0LjU0MiwyNTYuNTgxIDEwNy42MiwyNTMuNTI3IEwxNzUuOTE1LDE4NS43MTcgQzE3OC45ODgsMTgyLjY1OSAxODMuOTUsMTc3LjY4NiAxODYuOTgzLDE3NC41OTYgTDIwOC43ODgsMTUyLjQ4NSBDMjE0Ljg3NSwxNDYuMzE3IDIxMi43NzUsMTQxLjMzIDIwNC4xMTEsMTQxLjM2OCBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) !important;
4907
+ background-size: 18px !important;
4908
+ background-repeat: no-repeat !important;
4909
+ background-position: 4px 7px !important;
4910
+ text-indent: -99999px;
4911
+ width: 12px;
4912
+ }</style>';
4913
+ }
4914
+ add_action('wp_head', 'ampfowp_add_extra_css');
4915
  // 92. View AMP in Admin Bar
4916
  add_action( 'wp_before_admin_bar_render', 'ampforwp_view_amp_admin_bar' );
4917
  if( ! function_exists( 'ampforwp_view_amp_admin_bar' ) ) {
4987
  $current_url = get_term_link($term_id);
4988
  }else{
4989
  $post_type_title = ucfirst($post->post_type);
4990
+ $amp_cur_url = get_permalink( $post->ID );
4991
+ if(is_home()){
4992
+ $amp_cur_url = home_url();
4993
+ }
4994
  }
4995
  $wp_admin_bar->add_node(array(
4996
  'id' => 'ampforwp-view-amp',
4997
  'title' => 'View ' . esc_html($post_type_title) . ' (AMP)' ,
4998
+ 'href' => ampforwp_url_controller($amp_cur_url)
4999
  ));
5000
  }
5001
  }
5033
  }
5034
  }
5035
  if( 1 == $redux_builder_amp['ampforwp-post-date-format'] ){
5036
+ $time = ampforwp_get_the_time();
 
 
 
5037
  $date = human_time_diff( $time, current_time('timestamp') );
5038
  if( $redux_builder_amp['ampforwp-post-date-format-text'] ){
5039
  $full_date = $redux_builder_amp['ampforwp-post-date-format-text'];
5044
  }
5045
  }
5046
  if(is_single() && 1 == $redux_builder_amp['ampforwp-post-date-format']){
5047
+ $time = ampforwp_get_the_time();
 
 
 
5048
  $date = human_time_diff( $time, current_time('timestamp') );
5049
  $full_date = human_time_diff( $time, current_time('timestamp') ) .' '. ampforwp_translation( $redux_builder_amp['amp-translator-ago-date-text'],'ago');
5050
  if( $redux_builder_amp['ampforwp-post-date-format-text'] ){
5057
  return $full_date;
5058
  }
5059
  }
5060
+ if(!function_exists('ampforwp_get_the_time')){
5061
+ function ampforwp_get_the_time(){
5062
+ $time = get_the_time('U', get_the_ID());
5063
+ if( 2 == ampforwp_get_setting('ampforwp-post-date-global') ){
5064
+ $time = get_the_modified_time('U', get_the_ID() );
5065
+ }
5066
+ if(defined('ECWD_VERSION')){
5067
+ global $ecwd_options;
5068
+ $tz = $ecwd_options['time_zone'];
5069
+ $ewwetz = new DateTime( get_the_time('c', get_the_ID()) );
5070
+ if( 2 == ampforwp_get_setting('ampforwp-post-date-global') ){
5071
+ $ewwetz = new DateTime( get_the_modified_time('c', get_the_ID()) );
5072
+ }
5073
+ $ewwetz->setTimezone(new DateTimeZone($tz));
5074
+ $time = $ewwetz->format('U');
5075
+ }
5076
+ return $time;
5077
+ }
5078
+ }
5079
  // 99. Merriweather Font Management
5080
  add_filter( 'amp_post_template_data', 'ampforwp_merriweather_font_management' );
5081
  function ampforwp_merriweather_font_management( $data ) {
7192
  ) );
7193
  $user_info = $wp_admin_bar->get_node('user-info');
7194
  $title = $user_info->title;
7195
+ if($title){
7196
+ $dom->loadHTML($title);
7197
+ $anchors = $dom -> getElementsByTagName('img');
7198
+ $src="";
7199
+ foreach($anchors as $im){
7200
+ $src = $im->getAttribute('src');
7201
+ }
7202
+ $authname = get_the_author_meta('nickname');
7203
+ $title = '<span style="background: url('.esc_url($src).');background-repeat: no-repeat;height: 64px;position: absolute;width: 100px;top: 13px;left: -70px;" class="display-name"></span><span class="display-name">'.esc_html__($authname,'accelerated-mobile-pages').'<span>';
7204
+ $wp_admin_bar->add_menu( array(
7205
+ 'id' => 'user-info',
7206
+ 'title' => $title
7207
+ ) );
7208
+ $wp_admin_bar->add_menu( array(
7209
+ 'id' => 'wpseo-menu',
7210
+ 'title' => "SEO"
7211
+ ) );
7212
+ $wp_admin_bar->remove_menu( 'ampforwp-view-amp' );
7213
+ $url = ampforwp_get_non_amp_url();
7214
+ $wp_admin_bar->add_node(array(
7215
+ 'id' => 'ampforwp-view-non-amp',
7216
+ 'title' => 'View Non-AMP' ,
7217
+ 'href' => esc_url($url)
7218
+ ));
7219
+ }
7220
  }
7221
 
7222
  function ampforwp_remove_admin_menu_front($wp){