403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.12.153.19
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
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/js/react/src/blocks/quote/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/softaculous/sitepad/editor/site-data/plugins/pagelayer/js/react/src/blocks/quote/index.js
import { useState, useEffect, useRef } from '@wordpress/element';
import { useBlockProps, RichText } from '@wordpress/block-editor';

export const RenderQuoteBlock = (props) =>{
	
	const { _props, pl_props, tag, data } = props;
	const { setAttributes } = _props;
	const { atts : attributes} = data;
	
	return (
		<>
			<div className={`pagelayer-quote-holder pagelayer-quote-${attributes?.quote_style}`}>
				{ attributes?.quotation_pos && (
					<i className={`fa fa-quote-left pagelayer-quotation-${attributes.quotation_pos}`}></i>
				)}
				<div className="pagelayer-quote-content">
					{ attributes?.double_indent && ( <i className="fa fa-quote-left"></i> )}
					<RichText
						key="editable"
						tagName="span"
						keepPlaceholderOnFocus
						placeholder={"Add Quote description..."}
						onChange={(value) => setAttributes({ quote_content: value })}
						value={attributes.quote_content}
					/>
					{ attributes?.double_indent && ( <i className="fa fa-quote-right"></i> )}
				</div>
				<div className="pagelayer-quote-cite">
					{ attributes?.cite_url ? (
						<a href={attributes.cite_url} className="pagelayer-link-sel" onClick={(event)=> event.preventDefault()}>
							<RichText
								key="editable"
								tagName="span"
								className="pagelayer-cite-holder"
								keepPlaceholderOnFocus
								placeholder={"Add Cite..."}
								onChange={(value) => setAttributes({ cite: value })}
								value={attributes.cite}
							/>
						</a>
					) : (
						<RichText
							key="editable"
							tagName="span"
							className="pagelayer-cite-holder"
							keepPlaceholderOnFocus
							placeholder={"Add Cite..."}
							onChange={(value) => setAttributes({ cite: value })}
							value={attributes.cite}
						/>
					)}
				</div>
			</div>
		</>
	);
}

Youez - 2016 - github.com/yon3zu
LinuXploit