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":634605,"date":"2026-11-18T02:45:01","date_gmt":"2026-11-18T02:45:01","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=634605"},"modified":"2026-11-18T02:45:00","modified_gmt":"2026-11-18T02:45:00","slug":"%cf%80%ce%b1%ce%af%ce%be%cf%84%ce%b5-%ce%b4%cf%89%cf%81%ce%b5%ce%ac%ce%bd-online-%ce%b6%ce%ac%cf%81%ce%b9%ce%b1-%ce%b1%cf%80%ce%bf%ce%bb%ce%b1%cf%8d%cf%83%cf%84%ce%b5-%ce%bc%ce%b9%ce%b1-%ce%b4%ce%bf","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=634605","title":{"rendered":"\u03a0\u03b1\u03af\u03be\u03c4\u03b5 \u03b4\u03c9\u03c1\u03b5\u03ac\u03bd online \u03b6\u03ac\u03c1\u03b9\u03b1. \u0391\u03c0\u03bf\u03bb\u03b1\u03cd\u03c3\u03c4\u03b5 \u03bc\u03b9\u03b1 \u03b4\u03bf\u03ba\u03b9\u03bc\u03b1\u03c3\u03c4\u03b9\u03ba\u03ae \u03c0\u03b5\u03c1\u03af\u03bf\u03b4\u03bf \u03ba\u03b1\u03b9 \u03ad\u03bd\u03b1\u03bd \u03c0\u03c1\u03bf\u03c3\u03bf\u03bc\u03bf\u03b9\u03c9\u03c4\u03ae \u03b6\u03b1\u03c1\u03b9\u03ce\u03bd."},"content":{"rendered":"
\n

\u0399\u03c3\u03c4\u03bf\u03bb\u03cc\u03b3\u03b9\u03b1<\/p>\n