__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import {
BlockProps
} from "@essential-blocks/controls";
export default function Save({ attributes }) {
const {
blockId,
endTimeStamp,
showDays,
showHours,
showMinutes,
showSeconds,
daysLabel,
hoursLabel,
minutesLabel,
secondsLabel,
classHook,
isEvergreenTimer,
evergreenTimerHours,
evergreenTimerMinutes,
recurringCountdown,
restartTime,
recurringCountdownEnd,
preset,
showBlockContent
} = attributes;
if (!showBlockContent) {
return
}
return (
<BlockProps.Save
attributes={attributes}
>
<div
className={`eb-parent-wrapper eb-parent-${blockId} ${classHook}`}
>
<div className={`${blockId} eb-cd-wrapper ${preset}`}>
<div
className="eb-cd-inner"
blockId={blockId}
data-deadline-time={`${endTimeStamp || 0}`}
data-is-evergreen-time={isEvergreenTimer || false}
data-evergreen-time-hours={evergreenTimerHours || "11"}
data-evergreen-time-minutes={
evergreenTimerMinutes || "59"
}
data-evergreen-recurring={recurringCountdown || false}
data-evergreen-restart-time={restartTime || "0"}
data-evergreen-deadline-time={`${recurringCountdownEnd || 0
}`}
>
{showDays ? (
<div className="box cd-box-day">
<span className="eb-cd-digit">00</span>
{daysLabel ? (
<span className="eb-cd-label">
{daysLabel}
</span>
) : null}
</div>
) : null}
{showHours ? (
<div className="box cd-box-hour">
<span className="eb-cd-digit">00</span>
{hoursLabel ? (
<span className="eb-cd-label">
{hoursLabel}
</span>
) : null}
</div>
) : null}
{showMinutes ? (
<div className="box cd-box-minute">
<span className="eb-cd-digit">00</span>
{minutesLabel ? (
<span className="eb-cd-label">
{minutesLabel}
</span>
) : null}
</div>
) : null}
{showSeconds ? (
<div className="box cd-box-second">
<span className="eb-cd-digit">00</span>
{secondsLabel ? (
<span className="eb-cd-label">
{secondsLabel}
</span>
) : null}
</div>
) : null}
</div>
</div>
</div>
</BlockProps.Save>
);
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| constants | Folder | 0750 |
|
|
| attributes.js | File | 7.7 KB | 0640 |
|
| deprecated.js | File | 15.49 KB | 0640 |
|
| edit.js | File | 10.08 KB | 0640 |
|
| example.js | File | 105 B | 0640 |
|
| frontend.js | File | 4.82 KB | 0640 |
|
| icon.svg | File | 1.85 KB | 0640 |
|
| index.js | File | 774 B | 0640 |
|
| inspector.js | File | 27.04 KB | 0640 |
|
| save.js | File | 3.67 KB | 0640 |
|
| singleBoxControl.js | File | 1.8 KB | 0640 |
|
| style.css | File | 312 B | 0640 |
|
| style.js | File | 22.16 KB | 0640 |
|
| style.scss | File | 236 B | 0640 |
|