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":634783,"date":"2026-11-18T03:55:42","date_gmt":"2026-11-18T03:55:42","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=634783"},"modified":"2026-11-18T03:55:42","modified_gmt":"2026-11-18T03:55:42","slug":"%ce%bf-%ce%bd%ce%b5%cf%8c%cf%84%ce%b5%cf%81%ce%bf%cf%82-%ce%bf%ce%b4%ce%b7%ce%b3%cf%8c%cf%82-%ce%b1%cf%85%cf%84%ce%bf%ce%b2%ce%bf%ce%ae%ce%b8%ce%b5%ce%b9%ce%b1%cf%82-%ce%b3%ce%b9%ce%b1-%ce%ad%ce%bd","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=634783","title":{"rendered":"\u039f \u03bd\u03b5\u03cc\u03c4\u03b5\u03c1\u03bf\u03c2 \u03bf\u03b4\u03b7\u03b3\u03cc\u03c2 \u03b1\u03c5\u03c4\u03bf\u03b2\u03bf\u03ae\u03b8\u03b5\u03b9\u03b1\u03c2 \u03b3\u03b9\u03b1 \u03ad\u03bd\u03b1 \u03ad\u03bc\u03c0\u03b5\u03b9\u03c1\u03bf \u03b4\u03b9\u03b1\u03b4\u03b9\u03ba\u03c4\u03c5\u03b1\u03ba\u03cc \u03ba\u03b1\u03b6\u03af\u03bd\u03bf. \u039e\u03b5\u03ba\u03b9\u03bd\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf \u03b4\u03b9\u03ba\u03cc \u03c3\u03b1\u03c2 \u03c4\u03b1\u03be\u03af\u03b4\u03b9 \u03c3\u03c4\u03b7\u03bd \u03b5\u03c0\u03b9\u03c7\u03b5\u03af\u03c1\u03b7\u03c3\u03b7 \u03c4\u03c5\u03c7\u03b5\u03c1\u03ce\u03bd \u03c0\u03b1\u03b9\u03c7\u03bd\u03b9\u03b4\u03b9\u03ce\u03bd \u03b5\u03b4\u03ce!"},"content":{"rendered":"
\n

\u03a0\u03b5\u03c1\u03b9\u03b5\u03c7\u03cc\u03bc\u03b5\u03bd\u03bf<\/p>\n