HEX
Server: Apache
System: Linux p3plzcpnl504740.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: l2pbkn5l6xav (4972877)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/l2pbkn5l6xav/public_html/wp-content/themes/prime-business/inc/customizer/toggle/toggle.js
/*
 * Script run inside a Customizer control sidebar
 *
 * Enable / disable the control title by toggeling its .disabled-control-title style class on or off.
 */
( function( $ ) {
    wp.customize.bind( 'ready', function() { // Ready?

        var customize = this; // Customize object alias.
        // Array with the control names
        // TODO: Replace #CONTROLNAME01#, #CONTROLNAME02# etc with the real control names.
        var toggleControls = [
            '#CONTROLNAME01#',
            '#CONTROLNAME02#'
        ];
        $.each( toggleControls, function( index, control_name ) {
            customize( control_name, function( value ) {
                var controlTitle = customize.control( control_name ).container.find( '.customize-control-title' ); // Get control  title.
                // 1. On loading.
                controlTitle.toggleClass('disabled-control-title', !value.get() );
                // 2. Binding to value change.
                value.bind( function( to ) {
                    controlTitle.toggleClass( 'disabled-control-title', !value.get() );
                } );
            } );
        } );
    } );
} )( jQuery );