/** * Theme customizer binding File. * * @package Articled * @since Articled 1.0 * */ (function($) { wp.customize('articled_visibility_footer_widgets', function(value) { value.bind(function(newval) { if (newval !== !0) { $('footer .widget-wrap').slideUp() } else { $('footer .widget-wrap').slideDown() } }) }); wp.customize('articled_footer_wdgt_title_color', function(value) { value.bind(function(newval) { $('footer .widget-titles').css({ 'color': newval }) }) }); wp.customize('articled_footer_wdgt_title_bg_color', function(value) { value.bind(function(newval) { $('footer .widget-titles').css({ "background-color": newval, }) }) }); wp.customize('articled_footer_wdgt_title_font_size', function(value) { value.bind(function(newval) { $('footer .widget-titles .screen-text').css({ "font-size": newval, }) }) }); wp.customize('articled_footer_wdgt_font_size', function(value) { value.bind(function(newval) { $('footer .widget ').css({ "font-size": newval, }) }) }); wp.customize('articled_footer_wdgt_font_color', function(value) { value.bind(function(newval) { $('footer .widget ').css({ "color": newval, }) }) }); wp.customize('articled_footer_wdgt_font_bg_color', function(value) { value.bind(function(newval) { $('footer .widget ').css({ "background-color": newval, }) }) }); wp.customize('articled_footer_wdgt_padding', function(value) { value.bind(function(newval) { $('footer .widget-wrap').css({ "padding": newval, }) }) }); wp.customize('articled_footer_wdgt_title_position', function(value) { value.bind(function(newval) { $('footer .widget-titles ').css({ 'text-align': newval }) }) }); wp.customize('articled_footer_wdgt_title_font_padding', function(value) { value.bind(function(newval) { $('footer .widget-titles ').css({ 'padding': newval }) }) }); wp.customize('articled_footer_wdgt_link_deco', function(value) { value.bind(function(newval) { $('footer .widget-wrap a').css({ "text-decoration": newval, }) }) }); wp.customize('articled_footer_wdgt_link_hover_color', function(value) { value.bind(function(newval) { $('footer .widget-wrap a').hover({ "color": newval, }) }) }); wp.customize('articled_footer_wdgt_link_color', function(value) { value.bind(function(newval) { $('footer .widget-wrap a').css({ "color": newval, }) }) }) })(jQuery)