( function( jQuery ){ wp.customize( 'theme_mods_best-magazine[cc_menu_elem_back_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-menu_elem_back_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-menu_elem_back_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_sideb_background_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-sideb_background_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-sideb_background_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_footer_sideb_background_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-footer_sideb_background_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-footer_sideb_background_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_footer_back_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-footer_back_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-footer_back_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_home_top_posts_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-home_top_posts_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-home_top_posts_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_cat_tab_backgr_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-cat_tab_backgr_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-cat_tab_backgr_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_top_posts_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-top_posts_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-top_posts_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_text_headers_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-text_headers_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-text_headers_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_primary_text_headers_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-primary_text_headers_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-primary_text_headers_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_primary_text_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-primary_text_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-primary_text_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_footer_text_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-footer_text_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-footer_text_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_primary_links_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-primary_links_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-primary_links_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_primary_links_hover_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-primary_links_hover_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-primary_links_hover_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_menu_links_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-menu_links_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-menu_links_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_menu_links_hover_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-menu_links_hover_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-menu_links_hover_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_menu_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-menu_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-menu_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_selected_menu_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-selected_menu_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-selected_menu_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); wp.customize( 'theme_mods_best-magazine[cc_logo_text_color]', function( value ) { value.bind( function( to ) { style = jQuery('#custom-logo_text_color-css'); style.remove(); style = jQuery('\ ').appendTo( 'head' ); } ); if(!(jQuery('#custom-logo_text_color-css').length > 0)){ jQuery('\ ').appendTo( 'head' ); } } ); } )( jQuery );