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":603001,"date":"2026-11-13T17:44:58","date_gmt":"2026-11-13T17:44:58","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=603001"},"modified":"2026-11-13T17:44:57","modified_gmt":"2026-11-13T17:44:57","slug":"%ce%bf%ce%b9%ce%ba%ce%bf%ce%b3%ce%b5%ce%bd%ce%b5%ce%b9%ce%b1%ce%ba%ce%ae-%ce%ba%ce%b5%ce%bd%cf%84%cf%81%ce%b9%ce%ba%ce%ae-%cf%84%cf%81%ce%ac%cf%80%ce%b5%ce%b6%ce%b1-%cf%84%ce%b7%cf%82-%ce%bd%ce%b9","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=603001","title":{"rendered":"\u039f\u03b9\u03ba\u03bf\u03b3\u03b5\u03bd\u03b5\u03b9\u03b1\u03ba\u03ae \u039a\u03b5\u03bd\u03c4\u03c1\u03b9\u03ba\u03ae \u03a4\u03c1\u03ac\u03c0\u03b5\u03b6\u03b1 \u03c4\u03b7\u03c2 \u039d\u03b9\u03b3\u03b7\u03c1\u03af\u03b1\u03c2"},"content":{"rendered":"
\n

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