__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

[email protected]: ~ $
import { useBlockProps } from "@wordpress/block-editor";
import {
BlockProps
} from "@essential-blocks/controls";
const Save = ({ attributes }) => {
    const {
        blockId,
        mainPrice,
        showOnSale,
        salePrice,
        priceCurrency,
        currencyPlacement,
        pricePeriod,
        periodSeparator,
        salePricePeriod,
        salePeriodSeparator,
        priceView,
        classHook,
    } = attributes;
    const wrapperClasses =
        priceView === "inline"
            ? "eb-price-view-inline"
            : "eb-price-view-stacked";

    return (
        <BlockProps.Save attributes={attributes}>
            <div
                className={`eb-parent-wrapper eb-parent-${blockId} ${classHook}`}
            >
                <div
                    className={`eb-price-wrapper ${blockId} ${wrapperClasses}`}
                    data-id={blockId}
                >
                    <div className="eb-price-container">
                        {showOnSale && (
                            <>
                                <h3 className="eb-sale-price-wrapper">
                                    <span
                                        className="eb-sale-price"
                                        data-sale-price={salePrice}
                                    >
                                        {currencyPlacement === "left" && (
                                            <span className="eb-price-currency">
                                                {priceCurrency}
                                            </span>
                                        )}
                                        {salePrice}
                                        {currencyPlacement === "right" && (
                                            <span className="eb-price-currency">
                                                {priceCurrency}
                                            </span>
                                        )}
                                    </span>
                                    <span className="eb-sale-price-period">
                                        {salePeriodSeparator}
                                        {salePricePeriod}
                                    </span>
                                </h3>{" "}
                            </>
                        )}
                        <h3
                            className={`eb-original-price-wrapper${showOnSale === true ? " eb-line-through" : ""
                                }`}
                        >
                            <span className="eb-original-price">
                                {currencyPlacement === "left" && (
                                    <span className="eb-price-currency">
                                        {priceCurrency}
                                    </span>
                                )}
                                {mainPrice}
                                {currencyPlacement === "right" && (
                                    <span className="eb-price-currency">
                                        {priceCurrency}
                                    </span>
                                )}
                            </span>
                            <span className="eb-price-period">
                                {periodSeparator}
                                {pricePeriod}
                            </span>
                        </h3>
                    </div>
                </div>
            </div>
        </BlockProps.Save>
    );
};

export default Save;

Filemanager

Name Type Size Permission Actions
constants Folder 0750
attributes.js File 2.75 KB 0640
deprecated.js File 4.34 KB 0640
edit.js File 4.71 KB 0640
example.js File 65 B 0640
icon.svg File 2.21 KB 0640
index.js File 649 B 0640
inspector.js File 10.27 KB 0640
save.js File 3.56 KB 0640
style.js File 6.93 KB 0640
style.scss File 468 B 0640
Filemanager