/**
* Update Customizer settings live.
*
* @version 1.0.0
*/
( function( $ ) {
// Declare vars
// Declare vars
var api = wp.customize;
var BreadcrumbAlignment = [
'left',
'end',
'center'
];
/******** General *********/
api( 'aces_theme_topbar_bg_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_theme_topbar_bg_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_border_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_border_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_theme_topbar_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_topbar_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_topbar_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Content
api('aces_topbar_content_text', function( value ) {
value.bind( function( newval ) {
$( '.aces-top-bar span.top-text' ).html( newval );
});
});
api( 'aces_topbar_contnt_text_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_contnt_text_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_contnt_link_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_contnt_link_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_contnt_link_hover_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_contnt_link_hover_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_menu_text_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_menu_text_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_menu_hover_text_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_menu_hover_text_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_social_icon_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_social_icon_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_social_icon_hover_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_social_icon_hover_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_topbar_social_border_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_topbar_social_border_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
///Global
api( 'aces_primary_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_primary_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_primary_link_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_primary_link_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_primary_link_hover_color', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_primary_link_hover_color' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_full_width_length', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_full_width_length' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
//padding
api("aces_site_container_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_boxed_width_length", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_boxed_width_length");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
/// margin starts
//margin
api("aces_site_container_top_margin", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_top_margin");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_bottom_margin", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_bottom_margin");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_tablet_top_margin", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_tablet_top_margin");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_tablet_bottom_margin", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_tablet_bottom_margin");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_mobile_top_margin", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_mobile_top_margin");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_site_container_mobile_bottom_margin", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_site_container_mobile_bottom_margin");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
/// margin ends
// boxed bg
api( 'aces_boxed_outside_background', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_boxed_outside_background' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api( 'aces_boxed_inside_background', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_boxed_inside_background' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
// ends boxed bg
//typography
api( 'aces_body_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_body_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_body_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_body_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_body_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_body_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading Preview
api("aces_all_heading_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_all_heading_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_all_heading_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading H1 Preview
// Heading Preview
api( 'aces_h1_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_h1_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_h1_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h1_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h1_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading h2 Preview
// Heading Preview
api( 'aces_h2_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_h2_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_h2_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h2_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h2_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading h3 Preview
// Heading Preview
api( 'aces_h3_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_h3_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_h3_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h3_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h3_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading h4 Preview
// Heading Preview
api( 'aces_h4_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_h4_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_h4_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h4_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h4_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading h5 Preview
// Heading Preview
api( 'aces_h5_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_h5_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_h5_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h5_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h5_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Heading h6 Preview
// Heading Preview
api( 'aces_h6_desktop_typography_font_size', function( value ) {
value.bind( function( to ) {
var $child = $( '.customizer-aces_h6_desktop_typography_font_size' );
if ( to ) {
var style = '';
if ( $child.length ) {
$child.replaceWith( style );
} else {
$( 'head' ).append( style );
}
} else {
$child.remove();
}
} );
} );
api("aces_h6_tablet_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_tablet_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_mobile_typography_font_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_mobile_typography_font_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_font_weight", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_font_weight");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_text_transform", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_text_transform");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_tablet_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_tablet_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_mobile_line_height", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_mobile_line_height");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_tablet_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_tablet_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_h6_typography_global_mobile_letter_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_h6_typography_global_mobile_letter_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_button_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_button_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_theme_button_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_button_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_theme_button_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_button_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// color
api("aces_global_button_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_button_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_global_button_hover_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_button_hover_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_global_button_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_button_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_global_button_hover_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_button_hover_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_button_border_radius", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_button_border_radius");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// Breadcrumb
api("aces_breadcrumb_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_breadcrumb_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_breadcrumb_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_breadcrumb_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_breadcrumb_link_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_breadcrumb_link_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_breadcrumb_hover_link_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_breadcrumb_hover_link_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_breadcrumb_seperator_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_breadcrumb_seperator_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_breadcrumb_separator_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_breadcrumb_separator_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// sidebar
api("aces_sidebar_width", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sidebar_width");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_bg", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_bg");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_titles_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_titles_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_titles_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_titles_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_titles_border_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_titles_border_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// widget padding
api("aces_widgets_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_widgets_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_widgets_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_title_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_title_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_title_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_title_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_widgets_title_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_title_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_title_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_title_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_widgets_title_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_widgets_title_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_title_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_title_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_title_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_link_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_link_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_link_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_link_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widgets_link_border_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widgets_link_border_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_widget_title_positioning", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_widget_title_positioning");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_link_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_link_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_link_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_link_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_border_bottom_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_border_bottom_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_title_positioning", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_title_positioning");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_widget_title_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_widget_title_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// footer widget padding starts
// widget padding
api("aces_theme_footer_widget_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_footer_widget_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_widget_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_widget_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_theme_footer_widget_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_footer_widget_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_widget_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_widget_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_theme_footer_widget_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_footer_widget_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_widget_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_widget_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_widget_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// footer widget padding ends
api("aces_footer__bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer__bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_bottom_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_bottom_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_bottom_link_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_bottom_link_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_footer_bottom_link_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_footer_bottom_link_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_footer_bottom_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_theme_footer_bottom_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_footer_bottom_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_theme_footer_bottom_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_footer_bottom_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_footer_bottom_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_footer_bottom_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// copyright
api('aces_footer_copyright_text', function( value ) {
value.bind( function( newval ) {
$( '.site-info .row .copyright' ).html( newval );
});
});
// copyright
api('aces_blog_entry_read_more_text', function( value ) {
value.bind( function( newval ) {
$( '.read-more a' ).html( newval );
});
});
api("aces_global_read_more_button_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_read_more_button_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_global_read_more_button_hover_text_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_read_more_button_hover_text_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_global_read_more_button_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_read_more_button_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_global_read_more_button_hover_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_global_read_more_button_hover_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_border_radius", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_border_radius");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_border_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_border_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_border_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_border_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_read_more_button_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_theme_read_more_button_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_read_more_button_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_theme_read_more_button_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_read_more_button_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_read_more_button_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_read_more_button_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_logo_length", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_logo_length");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_logo_length", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_logo_length");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// copyright
api('blogname', function( value ) {
value.bind( function( newval ) {
$( '.site-title a' ).html( newval );
});
});
// copyright
api('blogdescription', function( value ) {
value.bind( function( newval ) {
$( '.site-description' ).html( newval );
});
});
api("aces_header_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_border_bottom_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_border_bottom_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_border_bottom_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_border_bottom_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_header_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_theme_header_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_header_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_theme_header_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_theme_header_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_theme_header_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_theme_header_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_active_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_active_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_bg_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_bg_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_border_bottom_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_border_bottom_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_border_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_border_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_item_spacing", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_item_spacing");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_main_menu_item_border_radius", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_main_menu_item_border_radius");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_main_menu_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_main_menu_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_main_menu_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_main_menu_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_main_menu_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_main_menu_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_main_menu_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_sub_menu_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_sub_menu_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_sub_menu_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_sub_menu_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_sub_menu_bg_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_sub_menu_bg_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_sub_menu_bg_hover_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_sub_menu_bg_hover_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_sub_menu_border_bottom_size", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_sub_menu_border_bottom_size");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_header_sub_menu_border_color", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_header_sub_menu_border_color");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_mobile_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_mobile_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_sub_menu_mobile_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_mobile_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_mobile_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_mobile_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_mobile_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_mobile_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// tablet
api("aces_sub_menu_tablet_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_tablet_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_sub_menu_tablet_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_tablet_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_tablet_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_tablet_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_tablet_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_tablet_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// desktop
api("aces_sub_menu_top_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_top_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
// button preview
api("aces_sub_menu_right_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_right_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_bottom_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_bottom_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
api("aces_sub_menu_left_padding", function($swipe) {
$swipe.bind(function(to) {
var $child = $(".customizer-aces_sub_menu_left_padding");
if (to) {
/** @type {string} */
var style = '";
if ($child.length) {
$child.replaceWith(style);
} else {
$("head").append(style);
}
} else {
$child.remove();
}
});
});
} )( jQuery );