import { RichText } from "@wordpress/block-editor"; import { sanitizeURL, BlockProps } from "@essential-blocks/controls"; const save = ({ attributes }) => { const { blockId, image, imageCaption, horizontalAlign, verticalAlign, verticalAlignCap2, stylePreset, captionStyle, hoverEffect, openInNewTab, imageLink, enableLink, classHook, imgSource } = attributes; if (imgSource !== 'custom') { return null; } let imageURL = image.url; const linkTarget = openInNewTab ? "_blank" : undefined; if (imageURL === "") return null; return (
{enableLink && ( )} {image.alt} {!RichText.isEmpty(imageCaption) && captionStyle != "caption-style-2" && ( )}
{!RichText.isEmpty(imageCaption) && captionStyle == "caption-style-2" && ( )}
); }; export default save; {"id":144064,"date":"2026-09-08T14:25:13","date_gmt":"2026-09-08T13:25:13","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=144064"},"modified":"2026-09-08T14:25:16","modified_gmt":"2026-09-08T13:25:16","slug":"2026-zhyldy%d2%a3-tamyz-ayynda%d2%93y-zha%d2%a3a-n%d3%a9ld%d1%96k-depozitt%d1%96k-bonustardy%d2%a3-t%d1%96z%d1%96m%d1%96","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=144064","title":{"rendered":"2026 \u0436\u044b\u043b\u0434\u044b\u04a3 \u0442\u0430\u043c\u044b\u0437 \u0430\u0439\u044b\u043d\u0434\u0430\u0493\u044b \u0436\u0430\u04a3\u0430 \u043d\u04e9\u043b\u0434\u0456\u043a \u0434\u0435\u043f\u043e\u0437\u0438\u0442\u0442\u0456\u043a \u0431\u043e\u043d\u0443\u0441\u0442\u0430\u0440\u0434\u044b\u04a3 \u0442\u0456\u0437\u0456\u043c\u0456"},"content":{"rendered":"
\n

\u041c\u0430\u049b\u0430\u043b\u0430\u043b\u0430\u0440<\/p>\n