Version Description
(11th December 2019) = * Improvement: Need to clear amp treeshaking css for reset section button. #3916 * Improvement: Need to add easy table of contents in extension list #3922 * Fixed: If hide amp hide on post or pages from anywhere then that needs to redirect to 301 #3767 * Fixed: Need to add filter in "wp_localize_script" #3764 * Fixed: Need to add preload key requests for font icons #3752 * Fixed: Advance footer options should not be hidden by default #3652 * Fixed: Button Rel Attribute #3872 * Fixed: Need to update the PWA for WP extension from the options panel #3888 * Fixed: View AMP Button Showing CSS on frontend #3890 * Fixed: Images get streched in new version of the AMP FOR WP Plugin #3914 * Fixed: Need to remove one signal push notification button in pages. #3874 * Fixed: when images are placed along with the anchor tag in gallery module of guntenberg editor the image src is getting unknown in AMP #3923 * Fixed: When RTL is enabled,the menu in header is going to right but the elements in right are not moved to left. #3881
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.0 |
Comparing to | |
See all releases |
Code changes from version 0.9.98.22 to 1.0.0
- README.md +16 -1
- accelerated-moblie-pages.php +2 -2
- changelog.txt +15 -0
- components/components-core.php +3 -2
- includes/features/functions.php +1 -0
- includes/features/push-notification/push-notification-functions.php +5 -5
- includes/options/admin-config.php +17 -6
- includes/options/redux-core/assets/css/redux-admin.css +4 -2
- includes/options/redux-core/assets/js/redux.js +8 -0
- includes/options/redux-core/assets/js/redux.min.js +1 -1
- includes/vendor/amp/amp.php +1 -1
- includes/vendor/amp/includes/amp-post-template-actions.php +14 -0
- includes/vendor/amp/includes/sanitizers/class-amp-gallery-block-sanitizer-5-3.php +7 -10
- includes/vendor/vendor-changelog.txt +2 -1
- readme.txt +16 -24
- templates/design-manager/design-1/style.php +0 -1
- templates/design-manager/design-3/style.php +1 -0
- templates/design-manager/swift/style.php +0 -1
- templates/features.php +7 -2
@@ -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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,21 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 0.9.98.22 (9th December 2019) =
|
195 |
* Improvement: Need to add full short pixel plugin compatibility #3782
|
196 |
* Fixed: Need to improve UI when "Saved" notification displays. #3856
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 1.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.0 (11th December 2019) =
|
195 |
+
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
196 |
+
* Improvement: Need to add easy table of contents in extension list #3922
|
197 |
+
* Fixed: If hide amp hide on post or pages from anywhere then that needs to redirect to 301 #3767
|
198 |
+
* Fixed: Need to add filter in "wp_localize_script" #3764
|
199 |
+
* Fixed: Need to add preload key requests for font icons #3752
|
200 |
+
* Fixed: Advance footer options should not be hidden by default #3652
|
201 |
+
* Fixed: Button Rel Attribute #3872
|
202 |
+
* Fixed: Need to update the PWA for WP extension from the options panel #3888
|
203 |
+
* Fixed: “View AMP” Button Showing CSS on frontend #3890
|
204 |
+
* Fixed: Images get streched in new version of the AMP FOR WP Plugin #3914
|
205 |
+
* Fixed: Need to remove one signal push notification button in pages. #3874
|
206 |
+
* Fixed: when images are placed along with the anchor tag in gallery module of guntenberg editor the image src is getting unknown in AMP #3923
|
207 |
+
* Fixed: When RTL is enabled,the menu in header is going to right but the elements in right are not moved to left. #3881
|
208 |
+
|
209 |
= 0.9.98.22 (9th December 2019) =
|
210 |
* Improvement: Need to add full short pixel plugin compatibility #3782
|
211 |
* Fixed: Need to improve UI when "Saved" notification displays. #3856
|
@@ -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.
|
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.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
+
Version: 1.0.0
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
+
define('AMPFORWP_VERSION','1.0.0');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
@@ -1,5 +1,20 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 0.9.98.22 (9th December 2019) =
|
4 |
* Improvement: Need to add full short pixel plugin compatibility #3782
|
5 |
* Fixed: Need to improve UI when "Saved" notification displays. #3856
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.0 (11th December 2019) =
|
4 |
+
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
5 |
+
* Improvement: Need to add easy table of contents in extension list #3922
|
6 |
+
* Fixed: If hide amp hide on post or pages from anywhere then that needs to redirect to 301 #3767
|
7 |
+
* Fixed: Need to add filter in "wp_localize_script" #3764
|
8 |
+
* Fixed: Need to add preload key requests for font icons #3752
|
9 |
+
* Fixed: Advance footer options should not be hidden by default #3652
|
10 |
+
* Fixed: Button Rel Attribute #3872
|
11 |
+
* Fixed: Need to update the PWA for WP extension from the options panel #3888
|
12 |
+
* Fixed: “View AMP” Button Showing CSS on frontend #3890
|
13 |
+
* Fixed: Images get streched in new version of the AMP FOR WP Plugin #3914
|
14 |
+
* Fixed: Need to remove one signal push notification button in pages. #3874
|
15 |
+
* Fixed: when images are placed along with the anchor tag in gallery module of guntenberg editor the image src is getting unknown in AMP #3923
|
16 |
+
* Fixed: When RTL is enabled,the menu in header is going to right but the elements in right are not moved to left. #3881
|
17 |
+
|
18 |
= 0.9.98.22 (9th December 2019) =
|
19 |
* Improvement: Need to add full short pixel plugin compatibility #3782
|
20 |
* Fixed: Need to improve UI when "Saved" notification displays. #3856
|
@@ -701,8 +701,9 @@ function amp_author_meta( $args ) {
|
|
701 |
|
702 |
// amp-animation CSS #2819
|
703 |
add_action('amp_post_template_css','ampforwp_backtotop_global_css');
|
704 |
-
function ampforwp_backtotop_global_css(){
|
705 |
-
|
|
|
706 |
.btt{
|
707 |
position: fixed;
|
708 |
<?php if( (is_single() && ampforwp_get_setting('enable-single-social-icons')) || (is_page() && true == ampforwp_get_setting('ampforwp-page-sticky-social')) ){ ?>
|
701 |
|
702 |
// amp-animation CSS #2819
|
703 |
add_action('amp_post_template_css','ampforwp_backtotop_global_css');
|
704 |
+
function ampforwp_backtotop_global_css(){?>
|
705 |
+
amp-img.amp-wp-enforced-sizes[layout=intrinsic] > img, .amp-wp-unknown-size > img { object-fit: contain; }
|
706 |
+
<?php if( true == ampforwp_get_setting('ampforwp-footer-top') ) { ?>
|
707 |
.btt{
|
708 |
position: fixed;
|
709 |
<?php if( (is_single() && ampforwp_get_setting('enable-single-social-icons')) || (is_page() && true == ampforwp_get_setting('ampforwp-page-sticky-social')) ){ ?>
|
@@ -55,6 +55,7 @@ function ampforwp_add_admin_styling($hook_suffix){
|
|
55 |
wp_localize_script( 'ampforwp_admin_js', 'amp_option_panel_view', "$opt");
|
56 |
}
|
57 |
wp_localize_script( 'ampforwp_admin_js', 'amp_fields', $amp_fields );
|
|
|
58 |
wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
|
59 |
wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', wp_create_nonce('ampforwp-verify-request') );
|
60 |
wp_enqueue_script( 'ampforwp_admin_js' );
|
55 |
wp_localize_script( 'ampforwp_admin_js', 'amp_option_panel_view', "$opt");
|
56 |
}
|
57 |
wp_localize_script( 'ampforwp_admin_js', 'amp_fields', $amp_fields );
|
58 |
+
$redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
|
59 |
wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
|
60 |
wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', wp_create_nonce('ampforwp-verify-request') );
|
61 |
wp_enqueue_script( 'ampforwp_admin_js' );
|
@@ -8,7 +8,7 @@ if( ! function_exists( ' ampforwp_onesignal_notifications ' ) ){
|
|
8 |
function ampforwp_onesignal_notifications(){
|
9 |
global $redux_builder_amp;
|
10 |
$checker = false;
|
11 |
-
if ( (!checkAMPforPageBuilderStatus(get_the_ID()) &&
|
12 |
$checker = true;
|
13 |
}
|
14 |
if(isset($redux_builder_amp['ampforwp-web-push-onesignal']) && $redux_builder_amp['ampforwp-web-push-onesignal'] && $checker ){
|
@@ -100,7 +100,7 @@ if(function_exists('amp_activate')){
|
|
100 |
if( ! function_exists('ampforwp_onesignal_notifications_widget') ){
|
101 |
function ampforwp_onesignal_notifications_widget(){
|
102 |
global $redux_builder_amp;
|
103 |
-
if(
|
104 |
<!-- A subscription widget -->
|
105 |
<div class="amp-web-push-container">
|
106 |
<amp-web-push-widget visibility="unsubscribed" layout="fixed" width="245" height="45">
|
@@ -131,10 +131,10 @@ if(!function_exists('ampforwp_onesignal_notifications_script')){
|
|
131 |
function ampforwp_onesignal_notifications_script( $data ){
|
132 |
global $redux_builder_amp;
|
133 |
$checker = false;
|
134 |
-
if ( (!checkAMPforPageBuilderStatus(get_the_ID()) && (ampforwp_is_front_page() ||
|
135 |
$checker = true;
|
136 |
}
|
137 |
-
if(
|
138 |
if ( empty( $data['amp_component_scripts']['amp-web-push'] ) ) {
|
139 |
$data['amp_component_scripts']['amp-web-push'] = 'https://cdn.ampproject.org/v0/amp-web-push-0.1.js';
|
140 |
}
|
@@ -147,7 +147,7 @@ add_action('amp_post_template_css' , 'ampforwp_onesignal_notifications_styling'
|
|
147 |
if(!function_exists('ampforwp_onesignal_notifications_styling')){
|
148 |
function ampforwp_onesignal_notifications_styling(){
|
149 |
global $redux_builder_amp;
|
150 |
-
if(
|
151 |
amp-web-push-widget button.subscribe { display: inline-flex; align-items: center; border-radius: 2px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 400; background: #4A90E2; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
|
152 |
amp-web-push-widget button.subscribe .subscribe-icon {margin-right: 10px;}
|
153 |
amp-web-push-widget button.subscribe:active {transform: scale(0.99);}
|
8 |
function ampforwp_onesignal_notifications(){
|
9 |
global $redux_builder_amp;
|
10 |
$checker = false;
|
11 |
+
if ( (!checkAMPforPageBuilderStatus(get_the_ID()) && is_single() ) || true == ampforwp_get_setting('ampforwp-web-push-onesignal-header') || true == ampforwp_get_setting('ampforwp-web-push-onesignal-sticky') ){
|
12 |
$checker = true;
|
13 |
}
|
14 |
if(isset($redux_builder_amp['ampforwp-web-push-onesignal']) && $redux_builder_amp['ampforwp-web-push-onesignal'] && $checker ){
|
100 |
if( ! function_exists('ampforwp_onesignal_notifications_widget') ){
|
101 |
function ampforwp_onesignal_notifications_widget(){
|
102 |
global $redux_builder_amp;
|
103 |
+
if(is_single() && ampforwp_get_setting('ampforwp-web-push-onesignal') && !checkAMPforPageBuilderStatus(get_the_ID()) ){ ?>
|
104 |
<!-- A subscription widget -->
|
105 |
<div class="amp-web-push-container">
|
106 |
<amp-web-push-widget visibility="unsubscribed" layout="fixed" width="245" height="45">
|
131 |
function ampforwp_onesignal_notifications_script( $data ){
|
132 |
global $redux_builder_amp;
|
133 |
$checker = false;
|
134 |
+
if ( (!checkAMPforPageBuilderStatus(get_the_ID()) && (ampforwp_is_front_page() || is_single()) ) || true == ampforwp_get_setting('ampforwp-web-push-onesignal-header') || true == ampforwp_get_setting('ampforwp-web-push-onesignal-sticky') ){
|
135 |
$checker = true;
|
136 |
}
|
137 |
+
if(ampforwp_get_setting('ampforwp-web-push-onesignal') && $checker ){
|
138 |
if ( empty( $data['amp_component_scripts']['amp-web-push'] ) ) {
|
139 |
$data['amp_component_scripts']['amp-web-push'] = 'https://cdn.ampproject.org/v0/amp-web-push-0.1.js';
|
140 |
}
|
147 |
if(!function_exists('ampforwp_onesignal_notifications_styling')){
|
148 |
function ampforwp_onesignal_notifications_styling(){
|
149 |
global $redux_builder_amp;
|
150 |
+
if(ampforwp_get_setting('ampforwp-web-push-onesignal') && !checkAMPforPageBuilderStatus(get_the_ID()) && is_single() ){ ?>
|
151 |
amp-web-push-widget button.subscribe { display: inline-flex; align-items: center; border-radius: 2px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 400; background: #4A90E2; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
|
152 |
amp-web-push-widget button.subscribe .subscribe-icon {margin-right: 10px;}
|
153 |
amp-web-push-widget button.subscribe:active {transform: scale(0.99);}
|
@@ -256,12 +256,11 @@ $extension_listing_array = array(
|
|
256 |
'name'=>'PWA For WordPress',
|
257 |
'desc'=>'Add Progressive Web App support for WordPress website',
|
258 |
'img_src'=>AMPFORWP_IMAGE_DIR . '/pwa-icon.png',
|
259 |
-
'price'=>'
|
260 |
-
'url_link'=>'
|
261 |
'plugin_active_path'=> 'pwa-for-wordpress/amp-pwa.php',
|
262 |
'item_name'=>'PWA For WordPress',
|
263 |
-
'
|
264 |
-
'is_activated'=>(is_plugin_active('pwa-for-wordpress/amp-pwa.php')? 1 : 2),
|
265 |
'settingUrl'=>admin_url( 'admin.php?page=ampforwp-pwa' ),
|
266 |
),
|
267 |
array(
|
@@ -538,7 +537,19 @@ $extension_listing_array = array(
|
|
538 |
'item_name'=>'Table Of Content Plus For AMP',
|
539 |
'store_url'=>'https://accounts.ampforwp.com',
|
540 |
'is_activated'=>(is_plugin_active('table-of-content-plus-for-amp/table-of-content-plus-for-amp.php')? 1 : 2),
|
541 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
);
|
543 |
$viewAllExtensions = array(
|
544 |
'name'=>'View All Extensions',
|
@@ -6451,7 +6462,7 @@ else{
|
|
6451 |
array('amp-design-selector', '=' , '4')
|
6452 |
),
|
6453 |
'layout_type' => 'accordion',
|
6454 |
-
'accordion-open'=>
|
6455 |
),
|
6456 |
array(
|
6457 |
'id' => 'footer-customize-options',
|
256 |
'name'=>'PWA For WordPress',
|
257 |
'desc'=>'Add Progressive Web App support for WordPress website',
|
258 |
'img_src'=>AMPFORWP_IMAGE_DIR . '/pwa-icon.png',
|
259 |
+
'price'=>'FREE',
|
260 |
+
'url_link'=>'https://pwa-for-wp.com//#utm_source=options-panel&utm_medium=extension-tab_pwa-for-wordpress&utm_campaign=AMP%20Plugin',
|
261 |
'plugin_active_path'=> 'pwa-for-wordpress/amp-pwa.php',
|
262 |
'item_name'=>'PWA For WordPress',
|
263 |
+
'is_activated'=>(is_plugin_active('pwa-for-wp/pwa-for-wp.php')? 1 : 2),
|
|
|
264 |
'settingUrl'=>admin_url( 'admin.php?page=ampforwp-pwa' ),
|
265 |
),
|
266 |
array(
|
537 |
'item_name'=>'Table Of Content Plus For AMP',
|
538 |
'store_url'=>'https://accounts.ampforwp.com',
|
539 |
'is_activated'=>(is_plugin_active('table-of-content-plus-for-amp/table-of-content-plus-for-amp.php')? 1 : 2),
|
540 |
+
),
|
541 |
+
array(
|
542 |
+
'name'=>'Easy Table of Contents for AMP',
|
543 |
+
'class'=>'new-ext',
|
544 |
+
'desc'=>'Easy Table of Contents Plugin Compatibility in AMP',
|
545 |
+
'img_src'=>AMPFORWP_IMAGE_DIR . '/easytoc-icon.png',
|
546 |
+
'price'=>'$39',
|
547 |
+
'url_link'=>'https://ampforwp.com/addons/easy-table-of-contents-for-amp/',
|
548 |
+
'plugin_active_path'=> 'easy-table-of-contents-for-amp/easy-table-of-contents-for-amp.php',
|
549 |
+
'item_name'=>'Easy Table of Contents for AMP',
|
550 |
+
'store_url'=>'https://accounts.ampforwp.com',
|
551 |
+
'is_activated'=>(is_plugin_active('easy-table-of-contents-for-amp/easy-table-of-contents-for-amp.php')? 1 : 2),
|
552 |
+
),
|
553 |
);
|
554 |
$viewAllExtensions = array(
|
555 |
'name'=>'View All Extensions',
|
6462 |
array('amp-design-selector', '=' , '4')
|
6463 |
),
|
6464 |
'layout_type' => 'accordion',
|
6465 |
+
'accordion-open'=> 1,
|
6466 |
),
|
6467 |
array(
|
6468 |
'id' => 'footer-customize-options',
|
@@ -432,10 +432,12 @@ img.ampforwp-post-builder-img{
|
|
432 |
margin-top: 8px;
|
433 |
margin-left: 15px;
|
434 |
width: 265px;}
|
435 |
-
.extension_desc h2{
|
|
|
436 |
font-size: 20px;
|
437 |
color: #303f9f;
|
438 |
-
font-weight: 500;
|
|
|
439 |
.extension_desc p{margin: 0; color: #666}
|
440 |
.extension_btn{ display: inline-block;
|
441 |
background: #303f9f;
|
432 |
margin-top: 8px;
|
433 |
margin-left: 15px;
|
434 |
width: 265px;}
|
435 |
+
.extension_desc h2{
|
436 |
+
margin: 0 0 12px 0px;
|
437 |
font-size: 20px;
|
438 |
color: #303f9f;
|
439 |
+
font-weight: 500;
|
440 |
+
line-height: 1.2;}
|
441 |
.extension_desc p{margin: 0; color: #666}
|
442 |
.extension_btn{ display: inline-block;
|
443 |
background: #303f9f;
|
@@ -188,11 +188,19 @@
|
|
188 |
// Defaults button clicked
|
189 |
if ( !confirm( redux.args.reset_confirm ) ) {
|
190 |
return false;
|
|
|
|
|
|
|
|
|
191 |
}
|
192 |
} else if ( $( this ).attr( 'name' ) == redux.args.opt_name + '[defaults-section]' ) {
|
193 |
// Default section clicked
|
194 |
if ( !confirm( redux.args.reset_section_confirm ) ) {
|
195 |
return false;
|
|
|
|
|
|
|
|
|
196 |
}
|
197 |
}
|
198 |
|
188 |
// Defaults button clicked
|
189 |
if ( !confirm( redux.args.reset_confirm ) ) {
|
190 |
return false;
|
191 |
+
}else{
|
192 |
+
try{
|
193 |
+
jQuery("#ampforwp-clear-clearcss-data").click();
|
194 |
+
}catch(err){}
|
195 |
}
|
196 |
} else if ( $( this ).attr( 'name' ) == redux.args.opt_name + '[defaults-section]' ) {
|
197 |
// Default section clicked
|
198 |
if ( !confirm( redux.args.reset_section_confirm ) ) {
|
199 |
return false;
|
200 |
+
}else{
|
201 |
+
try{
|
202 |
+
jQuery("#ampforwp-clear-clearcss-data").click();
|
203 |
+
}catch(err){}
|
204 |
}
|
205 |
}
|
206 |
|
@@ -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"),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};
|
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){var t=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(){!function(r){var i=r.type.toUpperCase();if(e.inArray(i,t.inputTypes)>=0){var a={timer:null,text:e(r).val().toUpperCase(),cb:t.callback,el:r,wait:t.wait};t.highlight&&e(r).focus(function(){this.select()}),e(r).on("keydown paste cut input",function(r){var i=a.wait,n=!1,s=this.type.toUpperCase();void 0!==r.keyCode&&13==r.keyCode&&"TEXTAREA"!=s&&e.inArray(s,t.inputTypes)>=0&&(i=1,n=!0),clearTimeout(a.timer),a.timer=setTimeout(function(){!function(r,i){var a=e(r.el).val();(a.length>=t.captureLength&&a.toUpperCase()!=r.text||i&&a.length>=t.captureLength)&&(r.text=a.toUpperCase(),r.cb.call(r.el,a))}(a,n)},i)})}}(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((a>=32||10==a||13==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=e.split(""),i=0;for(i=0;i<t.length;i++)r[t[i]]=!0;return r}(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 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;try{jQuery("#ampforwp-clear-clearcss-data").click()}catch(e){}}else if(e(this).attr("name")==redux.args.opt_name+"[defaults-section]"){if(!confirm(redux.args.reset_section_confirm))return!1;try{jQuery("#ampforwp-clear-clearcss-data").click()}catch(e){}}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"))}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"))}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};
|
@@ -41,7 +41,7 @@ if ( ! function_exists('AMPforWP\\AMPVendor\\amp_maybe_add_actions') ) {
|
|
41 |
|
42 |
if ( ! $supports ) {
|
43 |
if ( $is_amp_endpoint ) {
|
44 |
-
wp_safe_redirect( get_permalink( $post->ID ) );
|
45 |
exit;
|
46 |
}
|
47 |
return;
|
41 |
|
42 |
if ( ! $supports ) {
|
43 |
if ( $is_amp_endpoint ) {
|
44 |
+
wp_safe_redirect( get_permalink( $post->ID ) , 301);
|
45 |
exit;
|
46 |
}
|
47 |
return;
|
@@ -25,6 +25,20 @@ function amp_post_template_add_meta_generator() {
|
|
25 |
<?php
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_scripts' );
|
29 |
function amp_post_template_add_scripts( $amp_template ) {
|
30 |
$scripts = $amp_template->get( 'amp_component_scripts', array() );
|
25 |
<?php
|
26 |
}
|
27 |
|
28 |
+
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_cached_link' );
|
29 |
+
function amp_post_template_add_cached_link($amp_template) {
|
30 |
+
$design = "swift";
|
31 |
+
if(ampforwp_get_setting("ampforwp_font_icon")=="swift-icons"){
|
32 |
+
if(ampforwp_get_setting('amp-design-selector')!=4){
|
33 |
+
$design = "design-".ampforwp_get_setting('amp-design-selector');
|
34 |
+
}
|
35 |
+
$font_url = AMPFORWP_PLUGIN_DIR_URI."templates/design-manager/$design/fonts/icomoon.ttf";
|
36 |
+
?>
|
37 |
+
<link rel="preload" as="font" href="<?php echo esc_url($font_url); ?>" type="font/ttf" crossorigin>
|
38 |
+
<?php
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
add_action( 'amp_post_template_head', 'AMPforWP\\AMPVendor\\amp_post_template_add_scripts' );
|
43 |
function amp_post_template_add_scripts( $amp_template ) {
|
44 |
$scripts = $amp_template->get( 'amp_component_scripts', array() );
|
@@ -112,12 +112,6 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
112 |
continue;
|
113 |
}
|
114 |
$images = [];
|
115 |
-
// If it's not AMP lightbox, look for links first.
|
116 |
-
if ( ! $is_amp_lightbox ) {
|
117 |
-
foreach ( $node->getElementsByTagName( 'a' ) as $element ) {
|
118 |
-
$images[] = $element;
|
119 |
-
}
|
120 |
-
}
|
121 |
// If not linking to anything then look for <amp-img>.
|
122 |
if ( empty( $images ) ) {
|
123 |
foreach ( $node->getElementsByTagName( 'amp-img' ) as $element ) {
|
@@ -139,6 +133,7 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
139 |
'layout' => 'responsive',
|
140 |
]
|
141 |
);
|
|
|
142 |
foreach ( $images as $element ) {
|
143 |
$possible_caption_text = $this->possibly_get_caption_text( $element );
|
144 |
$url = $element->getAttribute('src');
|
@@ -184,11 +179,11 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
184 |
public function possibly_get_caption_text( $element ) {
|
185 |
$caption_tag = 'figcaption';
|
186 |
if ( isset( $element->nextSibling->nodeName ) && $caption_tag === $element->nextSibling->nodeName ) {
|
187 |
-
return $element->nextSibling->
|
188 |
}
|
189 |
// If 'Link To' is selected, the image will be wrapped in an <a>, so search for the sibling of the <a>.
|
190 |
if ( isset( $element->parentNode->nextSibling->nodeName ) && $caption_tag === $element->parentNode->nextSibling->nodeName ) {
|
191 |
-
return $element->parentNode->nextSibling->
|
192 |
}
|
193 |
return null;
|
194 |
}
|
@@ -273,7 +268,6 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
273 |
'src' => $image['url'],
|
274 |
'width' => $image['width'],
|
275 |
'height' => $image['height'],
|
276 |
-
'caption' => $image['caption'],
|
277 |
'layout' => 'fill',
|
278 |
'class' => 'amp-carousel-img',
|
279 |
);
|
@@ -291,7 +285,10 @@ class AMP_Gallery_Block_Sanitizer extends AMP_Base_Sanitizer {
|
|
291 |
if ( isset($image['caption']) ) {
|
292 |
$figure_node = AMP_DOM_Utils::create_node($this->dom, 'figure', array());
|
293 |
$fig_caption = AMP_DOM_Utils::create_node($this->dom, 'figcaption', array('on'=>"tap:AMP.setState({expanded: !expanded})",'tabindex'=>0,'role'=>'button'));
|
294 |
-
$
|
|
|
|
|
|
|
295 |
$figure_node->appendChild($image_div);
|
296 |
$figure_node->appendChild($fig_caption);
|
297 |
$amp_images[$key] = $figure_node;
|
112 |
continue;
|
113 |
}
|
114 |
$images = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
// If not linking to anything then look for <amp-img>.
|
116 |
if ( empty( $images ) ) {
|
117 |
foreach ( $node->getElementsByTagName( 'amp-img' ) as $element ) {
|
133 |
'layout' => 'responsive',
|
134 |
]
|
135 |
);
|
136 |
+
$urls = array();
|
137 |
foreach ( $images as $element ) {
|
138 |
$possible_caption_text = $this->possibly_get_caption_text( $element );
|
139 |
$url = $element->getAttribute('src');
|
179 |
public function possibly_get_caption_text( $element ) {
|
180 |
$caption_tag = 'figcaption';
|
181 |
if ( isset( $element->nextSibling->nodeName ) && $caption_tag === $element->nextSibling->nodeName ) {
|
182 |
+
return $element->nextSibling->childNodes;
|
183 |
}
|
184 |
// If 'Link To' is selected, the image will be wrapped in an <a>, so search for the sibling of the <a>.
|
185 |
if ( isset( $element->parentNode->nextSibling->nodeName ) && $caption_tag === $element->parentNode->nextSibling->nodeName ) {
|
186 |
+
return $element->parentNode->nextSibling->childNodes;
|
187 |
}
|
188 |
return null;
|
189 |
}
|
268 |
'src' => $image['url'],
|
269 |
'width' => $image['width'],
|
270 |
'height' => $image['height'],
|
|
|
271 |
'layout' => 'fill',
|
272 |
'class' => 'amp-carousel-img',
|
273 |
);
|
285 |
if ( isset($image['caption']) ) {
|
286 |
$figure_node = AMP_DOM_Utils::create_node($this->dom, 'figure', array());
|
287 |
$fig_caption = AMP_DOM_Utils::create_node($this->dom, 'figcaption', array('on'=>"tap:AMP.setState({expanded: !expanded})",'tabindex'=>0,'role'=>'button'));
|
288 |
+
$captionlength = $image['caption']->length;
|
289 |
+
for ($i=0 ;$i < $captionlength;$i++){
|
290 |
+
$fig_caption->appendChild($image['caption']->item(0));
|
291 |
+
}
|
292 |
$figure_node->appendChild($image_div);
|
293 |
$figure_node->appendChild($fig_caption);
|
294 |
$amp_images[$key] = $figure_node;
|
@@ -91,4 +91,5 @@ Reason: To extend the functionality of sidebars and Pagebuilder
|
|
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
|
|
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
|
95 |
+
65. Needs to redirect to 301, not in 302 #3767
|
@@ -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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,6 +191,21 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 0.9.98.22 (9th December 2019) =
|
195 |
* Improvement: Need to add full short pixel plugin compatibility #3782
|
196 |
* Fixed: Need to improve UI when "Saved" notification displays. #3856
|
@@ -224,27 +239,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
224 |
* Fixed: Google Tag manager not firing properly #3826
|
225 |
* Fixed: After Update AMP option panel design is changing #3877
|
226 |
|
227 |
-
= 0.9.98.20 (27th November 2019) =
|
228 |
-
* Fixed: Menu closer icon is getting overlapped by the header part of firefox web browser #3744
|
229 |
-
* Fixed: Instagram TV videos are not rendering into AMP #3812
|
230 |
-
* Fixed: Need To move CTA button in header two in sidebar if the website layout is in mobile view #3669
|
231 |
-
* Fixed: When the image is added from ThirstyAffiliate image block from Guntenber editor facing validation error #3706
|
232 |
-
* Fixed: PHP Warning:DOMDocument::loadHTML(): Empty string supplied as input #3745
|
233 |
-
* Fixed: When Convert AMP to WP theme (Beta) option is enabled Back to Top link functionality is not working #3695
|
234 |
-
* Fixed: Post date always shows 3 hours ago #3624
|
235 |
-
* Fixed: Gutenberg Design Bugs #3645
|
236 |
-
* Fixed: Toolbar AMP link bug #3692
|
237 |
-
* Fixed: Breadcrumb icommon symbol direction should be changed when RTL is enabled in Swift. #3678
|
238 |
-
* Fixed: Extra CSS are loading in swift and AMP Layouts #3414
|
239 |
-
* Fixed: Remove Digg and Google plus option form Social Sharing #3709
|
240 |
-
* Fixed: When Yoast SEO plugin is activated the same excerpt shows #3708
|
241 |
-
* Fixed: Allow people to use captions below thumbnails in gallery #3702
|
242 |
-
* Fixed: Design improvements of D2 #3637
|
243 |
-
* Fixed: Fatal error: Uncaught Error: Cannot use object of type stdClass as array (after 98.15) #3867
|
244 |
-
* Fixed: In amp gallery need to make improvement in arrow #3860
|
245 |
-
* Fixed: Performance issues in AMP FOR WP #3732
|
246 |
-
* Fixed: Yoast Separator is converting from Hyphen to Dash #3783
|
247 |
-
* Fixed: Multiple UX related modifactions #3869
|
248 |
-
* Fixed: strpos() debug error after 19 update #3878
|
249 |
-
|
250 |
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: 1.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.0 (11th December 2019) =
|
195 |
+
* Improvement: Need to clear amp treeshaking css for reset section button. #3916
|
196 |
+
* Improvement: Need to add easy table of contents in extension list #3922
|
197 |
+
* Fixed: If hide amp hide on post or pages from anywhere then that needs to redirect to 301 #3767
|
198 |
+
* Fixed: Need to add filter in "wp_localize_script" #3764
|
199 |
+
* Fixed: Need to add preload key requests for font icons #3752
|
200 |
+
* Fixed: Advance footer options should not be hidden by default #3652
|
201 |
+
* Fixed: Button Rel Attribute #3872
|
202 |
+
* Fixed: Need to update the PWA for WP extension from the options panel #3888
|
203 |
+
* Fixed: “View AMP” Button Showing CSS on frontend #3890
|
204 |
+
* Fixed: Images get streched in new version of the AMP FOR WP Plugin #3914
|
205 |
+
* Fixed: Need to remove one signal push notification button in pages. #3874
|
206 |
+
* Fixed: when images are placed along with the anchor tag in gallery module of guntenberg editor the image src is getting unknown in AMP #3923
|
207 |
+
* Fixed: When RTL is enabled,the menu in header is going to right but the elements in right are not moved to left. #3881
|
208 |
+
|
209 |
= 0.9.98.22 (9th December 2019) =
|
210 |
* Improvement: Need to add full short pixel plugin compatibility #3782
|
211 |
* Fixed: Need to improve UI when "Saved" notification displays. #3856
|
239 |
* Fixed: Google Tag manager not firing properly #3826
|
240 |
* Fixed: After Update AMP option panel design is changing #3877
|
241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
@@ -103,7 +103,6 @@ if(empty($cross_btn_hvr_clr)){
|
|
103 |
.aligncenter{ display: block; margin-left: auto; margin-right: auto; max-width: 100% }
|
104 |
.amp-wp-enforced-sizes{ max-width: 100%; margin: 0 auto; }
|
105 |
.amp-wp-unknown-size img{ object-fit: contain; }
|
106 |
-
amp-img.amp-wp-enforced-sizes[layout=intrinsic] > img, .amp-wp-unknown-size > img { object-fit: contain; }
|
107 |
amp-iframe{ max-width: 100%; margin-bottom : 20px; }
|
108 |
amp-wistia-player {margin:5px 0px;}
|
109 |
.hide{display:none}
|
103 |
.aligncenter{ display: block; margin-left: auto; margin-right: auto; max-width: 100% }
|
104 |
.amp-wp-enforced-sizes{ max-width: 100%; margin: 0 auto; }
|
105 |
.amp-wp-unknown-size img{ object-fit: contain; }
|
|
|
106 |
amp-iframe{ max-width: 100%; margin-bottom : 20px; }
|
107 |
amp-wistia-player {margin:5px 0px;}
|
108 |
.hide{display:none}
|
@@ -706,6 +706,7 @@ if( ampforwp_get_setting('ampforwp-advertisement-sticky-type') == 3) {?>
|
|
706 |
<?php if ( ampforwp_get_setting('ampforwp-callnow-button') ) { ?>
|
707 |
.callnow{ position: absolute; top: 15px; right: 20px }
|
708 |
.callnow a:before { content: ""; position: absolute; right: 23px; width: 4px; height: 8px; border-width: 6px 0 6px 3px; border-style: solid; border-color:<?php echo ampforwp_get_setting('amp-opt-color-rgba-colorscheme-call','color','ampforwp_sanitize_color'); ?>; background: transparent; transform: rotate(-30deg); box-sizing: initial; border-top-left-radius: 3px 5px; border-bottom-left-radius: 3px 5px; }
|
|
|
709 |
<?php } ?>
|
710 |
<?php
|
711 |
if ( class_exists('TablePress') ) { ?>
|
706 |
<?php if ( ampforwp_get_setting('ampforwp-callnow-button') ) { ?>
|
707 |
.callnow{ position: absolute; top: 15px; right: 20px }
|
708 |
.callnow a:before { content: ""; position: absolute; right: 23px; width: 4px; height: 8px; border-width: 6px 0 6px 3px; border-style: solid; border-color:<?php echo ampforwp_get_setting('amp-opt-color-rgba-colorscheme-call','color','ampforwp_sanitize_color'); ?>; background: transparent; transform: rotate(-30deg); box-sizing: initial; border-top-left-radius: 3px 5px; border-bottom-left-radius: 3px 5px; }
|
709 |
+
.rtl .callnow{ left: 75px;right: unset; }
|
710 |
<?php } ?>
|
711 |
<?php
|
712 |
if ( class_exists('TablePress') ) { ?>
|
@@ -68,7 +68,6 @@ blockquote{ background: #f1f1f1; margin: 10px 0 20px 0; padding: 15px;}
|
|
68 |
blockquote p:last-child {margin-bottom: 0;}
|
69 |
.amp-wp-unknown-size img {object-fit: contain;}
|
70 |
.amp-wp-enforced-sizes{ max-width: 100% }
|
71 |
-
amp-img.amp-wp-enforced-sizes[layout=intrinsic] > img, .amp-wp-unknown-size > img { object-fit: contain; }
|
72 |
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}
|
73 |
*,*:after,*:before {
|
74 |
box-sizing: border-box;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;-o-box-sizing: border-box;}
|
68 |
blockquote p:last-child {margin-bottom: 0;}
|
69 |
.amp-wp-unknown-size img {object-fit: contain;}
|
70 |
.amp-wp-enforced-sizes{ max-width: 100% }
|
|
|
71 |
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}
|
72 |
*,*:after,*:before {
|
73 |
box-sizing: border-box;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-ms-box-sizing: border-box;-o-box-sizing: border-box;}
|
@@ -607,7 +607,6 @@ function ampforwp_new_dir( $dir ) {
|
|
607 |
//for removing attributes within html tags
|
608 |
$content = preg_replace('/(<[^>]+) onclick=".*?"/', '$1', $content);
|
609 |
$content = preg_replace('/(<[^>]+) rel="(.*?) noopener(.*?)"/', '$1 rel="$2$3"', $content);
|
610 |
-
$content = preg_replace('/<div(.*?) rel=".*?"(.*?)/', '<div $1', $content);
|
611 |
// Remove alt attribute from the div tag #2093
|
612 |
$content = preg_replace('/<div(.*?) alt=".*?"(.*?)/', '<div $1', $content);
|
613 |
$content = preg_replace('/(<[^>]+) ref=".*?"/', '$1', $content);
|
@@ -4258,6 +4257,9 @@ if (! function_exists( 'ampforwp_get_body_class' ) ) {
|
|
4258 |
$classes[] = 'amp-frontpage';
|
4259 |
}
|
4260 |
|
|
|
|
|
|
|
4261 |
$classes[] = $post_id;
|
4262 |
|
4263 |
if ( $post_id ) {
|
@@ -4911,7 +4913,9 @@ function ampfowp_add_extra_css(){
|
|
4911 |
width: 12px;
|
4912 |
}</style>';
|
4913 |
}
|
4914 |
-
|
|
|
|
|
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' ) ) {
|
@@ -6805,6 +6809,7 @@ function ampforwp_ivory_search_css(){
|
|
6805 |
add_action('amp_post_template_head', 'ampforwp_fontawesome_canonical_link');
|
6806 |
function ampforwp_fontawesome_canonical_link(){
|
6807 |
if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
|
|
|
6808 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
6809 |
<?php }
|
6810 |
}
|
607 |
//for removing attributes within html tags
|
608 |
$content = preg_replace('/(<[^>]+) onclick=".*?"/', '$1', $content);
|
609 |
$content = preg_replace('/(<[^>]+) rel="(.*?) noopener(.*?)"/', '$1 rel="$2$3"', $content);
|
|
|
610 |
// Remove alt attribute from the div tag #2093
|
611 |
$content = preg_replace('/<div(.*?) alt=".*?"(.*?)/', '<div $1', $content);
|
612 |
$content = preg_replace('/(<[^>]+) ref=".*?"/', '$1', $content);
|
4257 |
$classes[] = 'amp-frontpage';
|
4258 |
}
|
4259 |
|
4260 |
+
if(true == ampforwp_get_setting('amp-rtl-select-option')){
|
4261 |
+
$classes[] = 'rtl';
|
4262 |
+
}
|
4263 |
$classes[] = $post_id;
|
4264 |
|
4265 |
if ( $post_id ) {
|
4913 |
width: 12px;
|
4914 |
}</style>';
|
4915 |
}
|
4916 |
+
if ( is_user_logged_in() ) {
|
4917 |
+
add_action('wp_head', 'ampfowp_add_extra_css');
|
4918 |
+
}
|
4919 |
// 92. View AMP in Admin Bar
|
4920 |
add_action( 'wp_before_admin_bar_render', 'ampforwp_view_amp_admin_bar' );
|
4921 |
if( ! function_exists( 'ampforwp_view_amp_admin_bar' ) ) {
|
6809 |
add_action('amp_post_template_head', 'ampforwp_fontawesome_canonical_link');
|
6810 |
function ampforwp_fontawesome_canonical_link(){
|
6811 |
if ( ampforwp_get_setting('ampforwp_font_icon') == 'fontawesome-icons' ){ ?>
|
6812 |
+
<link rel="preconnect dns-prefetch" href="//use.fontawesome.com" crossorigin>
|
6813 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
6814 |
<?php }
|
6815 |
}
|