403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.129.22.159
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/pricing-table/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/pricing-table/save.js
import { useBlockProps, RichText } from '@wordpress/block-editor';
import { FeatureListMarkup, ButtonMarkup } from './markup';

export default function save( { attributes } ) {
	const blockProps = useBlockProps.save( {
		className: 'gkit-pricing-table',
	} );
	const { GkitIcon, GkitImage } = window.gutenkit.components;
	const {
		titleText,
		subTitleText,
		headerIcon,
		headerImage,
		headerIconOrImage,
		htmlTag,
		currency,
		price,
		duration,
		currencyPosition,
		featuresStyle,
		featuresText,
	} = attributes;

	return (
		<div { ...blockProps }>
			<div className="gkit-single-pricing  ">
				<div className="gkit-pricing-header">
					{ headerIconOrImage === 'icon' && headerIcon && (
						<span>
							<GkitIcon icon={ headerIcon } />
						</span>
					) }
					{ headerIconOrImage === 'image' && headerImage && (
						<GkitImage image={ headerImage } />
					) }
					{ titleText?.length > 0 && (
						<RichText.Content
							identifier="title"
							tagName={ htmlTag }
							value={ titleText }
							className="gkit-pricing-title"
						/>
					) }
					{ subTitleText?.length > 0 && (
						<RichText.Content
							identifier="subtitle"
							tagName="p"
							value={ subTitleText }
							className="gkit-pricing-subtitle"
						/>
					) }
				</div>

				{ currency && price && (
					<div className="gkit-pricing-price-wraper">
						<div className="gkit-pricing-tag"></div>
						<div className="gkit-pricing-price">
							{ currencyPosition !== 'end' && (
								<RichText.Content
									identifier="currency-before"
									tagName="sup"
									value={ currency }
									className="currency"
								/>
							) }
							<RichText.Content
								identifier="price-tag"
								tagName="span"
								value={ price }
								className="price"
							/>
							{ currencyPosition === 'end' && (
								<RichText.Content
									identifier="currency-after"
									tagName="sup"
									value={ currency }
									className="currency"
								/>
							) }
							<RichText.Content
								identifier="duration"
								tagName="sub"
								value={ duration }
								className="period"
							/>
						</div>
					</div>
				) }

				{ featuresStyle !== 'list' ? (
					<div className="gkit-pricing-content ">
						{ featuresText && (
							<RichText.Content
								identifier="price-paragraph"
								tagName="p"
								value={ featuresText }
							/>
						) }
					</div>
				) : (
					<FeatureListMarkup attributes={ attributes } />
				) }

				<ButtonMarkup attributes={ attributes } isEdit={ false } />
			</div>
		</div>
	);
}

Youez - 2016 - github.com/yon3zu
LinuXploit