/* ** Scripts within the customizer controls window. */ (function( $ ) { wp.customize.bind( 'ready', function() { /* ** Reusable Functions */ var optPrefix = '#customize-control-business_lawyer_firm_options-'; // Label function business_lawyer_firm_customizer_label( id, title ) { // Colors if ( id === 'business_lawyer_firm_theme_color' || id === 'background_color' || id === 'background_image' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Site Identity if ( id === 'custom_logo' || id === 'site_icon' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Top Header if ( id === 'business_lawyer_firm_time' || id === 'business_lawyer_firm_location' || id === 'business_lawyer_firm_phone_number' || id === 'business_lawyer_firm_email' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } if ( id === 'business_lawyer_firm_tropy_title' || id === 'business_lawyer_firm_consultation_button' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // General Setting if ( id === 'business_lawyer_firm_preloader_hide' || id === 'business_lawyer_firm_sticky_header' || id === 'business_lawyer_firm_scroll_hide' || id === 'business_lawyer_firm_scroll_top_position' || id === 'business_lawyer_firm_products_per_row') { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Woocommerce product sale Setting if ( id === 'business_lawyer_firm_woocommerce_product_sale' || id === 'business_lawyer_firm_woocommerce_related_product_show_hide') { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Social Icon if ( id === 'business_lawyer_firm_facebook_url' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Slider if ( id === 'business_lawyer_firm_slider_setting' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Header Image if ( id === 'header_image' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Latest Project if ( id === 'business_lawyer_firm_projects_title' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Footer if ( id === 'business_lawyer_firm_footer_bg_image' || id === 'business_lawyer_firm_show_hide_copyright') { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Single Post Setting if ( id === 'business_lawyer_firm_single_post_thumb' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Single Post Comment Setting if ( id === 'business_lawyer_firm_single_post_comment_title' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Post Setting if ( id === 'business_lawyer_firm_post_page_title' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } // Page Setting if ( id === 'business_lawyer_firm_single_page_title' ) { $( '#customize-control-'+ id ).before('
  • '+ title +'
  • '); } else { $( '#customize-control-business_lawyer_firm_options-'+ id ).before('
  • '+ title +'
  • '); } } /* ** Tabs */ // Colors business_lawyer_firm_customizer_label( 'business_lawyer_firm_theme_color', 'Theme Color' ); business_lawyer_firm_customizer_label( 'background_color', 'Colors' ); business_lawyer_firm_customizer_label( 'background_image', 'Image' ); // Site Identity business_lawyer_firm_customizer_label( 'custom_logo', 'Logo Setup' ); business_lawyer_firm_customizer_label( 'site_icon', 'Favicon' ); // Top Header business_lawyer_firm_customizer_label( 'business_lawyer_firm_time', 'Time' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_location', 'Location' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_phone_number', 'Phone' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_email', 'Email' ); //Header business_lawyer_firm_customizer_label( 'business_lawyer_firm_tropy_title', 'Headings' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_consultation_button', 'Consultation Button' ); // General Setting business_lawyer_firm_customizer_label( 'business_lawyer_firm_preloader_hide', 'Preloader' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_sticky_header', 'Sticky Header' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_scroll_hide', 'Scroll To Top' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_scroll_top_position', 'Scroll to top Position' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_products_per_row', 'woocommerce Setting' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_woocommerce_product_sale', 'Woocommerce Product Sale Positions' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_woocommerce_related_product_show_hide', 'Woocommerce Related Products' ); // Social Icon business_lawyer_firm_customizer_label( 'business_lawyer_firm_facebook_url', 'Social Links' ); //Slider business_lawyer_firm_customizer_label( 'business_lawyer_firm_slider_setting', 'Slider' ); //Header Image business_lawyer_firm_customizer_label( 'header_image', 'Header Image' ); //Latest Project business_lawyer_firm_customizer_label( 'business_lawyer_firm_projects_title', 'Latest Project' ); //Footer business_lawyer_firm_customizer_label( 'business_lawyer_firm_footer_bg_image', 'Footer' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_show_hide_copyright', 'Copyright' ); //Single Post Setting business_lawyer_firm_customizer_label( 'business_lawyer_firm_single_post_thumb', 'Single Post Setting' ); business_lawyer_firm_customizer_label( 'business_lawyer_firm_single_post_comment_title', 'Single Post Comment' ); // Post Setting business_lawyer_firm_customizer_label( 'business_lawyer_firm_post_page_title', 'Post Setting' ); // Page Setting business_lawyer_firm_customizer_label( 'business_lawyer_firm_single_page_title', 'Page Setting' ); }); // wp.customize ready })( jQuery );