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 : 3.129.249.240
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/blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/softaculous/sitepad/editor/site-data/plugins/pagelayer-pro/js/react/src/blocks/col.js
import { __ } from '@wordpress/i18n';
import { InnerBlocks, useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';
import { useEffect } from '@wordpress/element';
import { select } from '@wordpress/data';

export const RenderColBlock = (props) =>{
	
	const { _props, data} = props;
	const { clientId } = _props;
	const { atts, tmp, id} = data;
	const { getBlockOrder } = select( 'core/block-editor' );
	
	const hasChildBlocks = getBlockOrder( clientId ).length > 0;
	const hasChildClass = hasChildBlocks ? 'pagelayer-has-child': '';
	
	const ALLOWED_BLOCKS = wp.blocks.getBlockTypes().map(block => block.name).filter(blockName => blockName !== 'pagelayer/pl-col');
	
	const InnerBlocksProps = {
		templateLock: false,
		renderAppender: hasChildBlocks ? undefined : InnerBlocks.ButtonBlockAppender,
		allowedBlocks:ALLOWED_BLOCKS
	};
	
	const newProps = { className:`pagelayer-col-holder ${hasChildClass}` };
	const innerProps = useInnerBlocksProps(newProps, InnerBlocksProps);
		
	return (
		<>
			{ atts?.bg_video_src && (
				<div className="pagelayer-background-video" dangerouslySetInnerHTML={{ __html: atts.vid_src}}/>
			) }
			{ atts?.bg_slider && (
				<div className="pagelayer-bgimg-slider" dangerouslySetInnerHTML={{ __html: atts.slider}}/>
			)}
			{ atts?.parallax_img && (
				<div className="pagelayer-parallax-window">
					<img className="pagelayer-img" src={atts.parallax_img_src} title={tmp['parallax_img-title']} alt={tmp['parallax_img-alt']} />
				</div>
			)}
			{ atts?.overlay_type && (<div className="pagelayer-background-overlay"></div>)}
			<div {...innerProps} />
		</>
	);
}

Youez - 2016 - github.com/yon3zu
LinuXploit