__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
 * Customizer controls
 *
 * @package Astra
 */

( function( $ ) {

	/* Internal shorthand */
	var api = wp.customize;

	/**
	 * Helper class for the main Customizer interface.
	 *
	 * @since 1.0.0
	 * @class ASTCustomizer
	 */
	ASTCustomizer = {

		controls	: {},

		/**
		 * Initializes our custom logic for the Customizer.
		 *
		 * @since 1.0.0
		 * @method init
		 */
		init: function()
		{
			ASTCustomizer._initToggles();
			ASTCustomizer._initSubControlsToggle();
		},

		/**
		 * Initializes the logic for showing and hiding controls
		 * when a setting changes.
		 *
		 * @since 1.0.0
		 * @method _initToggles
		 */
		_initToggles: function()
		{
			// Trigger the Adv Tab Click trigger.
			ASTControlTrigger.triggerHook( 'astra-toggle-control', api );

			// Loop through each setting.
			$.each( ASTCustomizerToggles, function( settingId, toggles ) {

				// Get the setting object.
				api( settingId, function( setting ) {

					// Loop though the toggles for the setting.
					$.each( toggles, function( i, toggle ) {

						// Loop through the controls for the toggle.
						$.each( toggle.controls, function( k, controlId ) {

							// Get the control object.
							api.control( controlId, function( control ) {

								// Define the visibility callback.
								var visibility = function( to ) {
									control.container.toggle( toggle.callback( to ) );
								};

								// Init visibility.
								visibility( setting.get() );

								// Bind the visibility callback to the setting.
								setting.bind( visibility );
							});
						});
					});
				});

			});
		},

		/**
		 * Toggle sub control visibility CSS.
		 *
		 * @since x.x.x
		 */
		subControlsToggleCSS( controlValue, dependents ) {
			$.each( dependents, function( controlOption, dependentSubControls ) {
				$.each( dependentSubControls, function( dependentIndex, subControl ) {
					// Remove old.
					jQuery( 'style#ast-sub-control-' + subControl ).remove();
					// Add new.
					if ( controlValue !== controlOption ) {
						// Concat and append new <style>.
						jQuery( 'head' ).append(
							'<style id="ast-sub-control-' + subControl + '">' +
							'#customize-control-' + subControl + '	{ display: none; }' +
							'</style>'
						);
					}
				});
			});
		},

		/**
		 * Initializes the logic for showing and hiding sub controls
		 * when a setting changes.
		 *
		 * @since x.x.x
		 * @method _initSubControlsToggle
		 * @return void
		 */
		_initSubControlsToggle: function()
		{
			document.addEventListener('AstraToggleSubControls', function (e) {
				let subControlData = e.detail;
				ASTCustomizer.subControlsToggleCSS( subControlData.controlValue, subControlData.dependents );
			});
		}
	};

	$( function() { ASTCustomizer.init(); } );

})( jQuery );


( function( api ) {
    // Extends our custom astra-pro section.
    api.sectionConstructor['astra-pro'] = api.Section.extend( {
        // No events for this type of section.
        attachEvents: function () {},
        // Always make the section active.
        isContextuallyActive: function () {
            return true;
        }
    } );
} )( wp.customize );

Filemanager

Name Type Size Permission Actions
add-to-cart-quantity-btn.js File 10.95 KB 0640
customizer-controls-toggle.js File 2.62 KB 0640
customizer-controls.js File 3.07 KB 0640
customizer-preview.js File 131.55 KB 0640
customizer-quick-tour.js File 1.8 KB 0640
customizer-style-guide.js File 3.37 KB 0640
extend-customizer.js File 6.38 KB 0640
flexibility.js File 25.13 KB 0640
frontend-pro.js File 6.73 KB 0640
frontend.js File 49.21 KB 0640
live-search.js File 5 KB 0640
mobile-cart.js File 11.13 KB 0640
navigation.js File 25.93 KB 0640
shop-add-to-cart.js File 1.21 KB 0640
skip-link-focus-fix.js File 1 KB 0640
sticky-add-to-cart.js File 1.42 KB 0640
sticky-sidebar.js File 3.07 KB 0640
style-guide-previewer.js File 1002 B 0640
style.js File 25.93 KB 0640
Filemanager