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":634681,"date":"2026-11-18T03:05:51","date_gmt":"2026-11-18T03:05:51","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=634681"},"modified":"2026-11-18T03:05:53","modified_gmt":"2026-11-18T03:05:53","slug":"%cf%80%cf%8e%cf%82-%ce%bd%ce%b1-%ce%ba%ce%b5%cf%81%ce%b4%ce%af%cf%83%ce%b5%cf%84%ce%b5-%cf%87%cf%81%ce%ae%ce%bc%ce%b1%cf%84%ce%b1-%cf%83%cf%84%ce%b1-%ce%ba%ce%bf%cf%85%ce%bb%ce%bf%cf%87%ce%ad%cf%81","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=634681","title":{"rendered":"\u03a0\u03ce\u03c2 \u03bd\u03b1 \u03ba\u03b5\u03c1\u03b4\u03af\u03c3\u03b5\u03c4\u03b5 \u03c7\u03c1\u03ae\u03bc\u03b1\u03c4\u03b1 \u03c3\u03c4\u03b1 \u03ba\u03bf\u03c5\u03bb\u03bf\u03c7\u03ad\u03c1\u03b7\u03b4\u03b5\u03c2: \u039c\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 \u03b2\u03af\u03bd\u03c4\u03b5\u03bf \u03ba\u03bf\u03c5\u03bb\u03bf\u03c7\u03ad\u03c1\u03b7 \u03ba\u03b1\u03b9 \u03b8\u03b1 \u03bc\u03ac\u03b8\u03b5\u03c4\u03b5 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1"},"content":{"rendered":"
\n

\u0394\u03b7\u03bc\u03bf\u03c3\u03b9\u03b5\u03cd\u03c3\u03b5\u03b9\u03c2<\/p>\n