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":645321,"date":"2026-11-19T03:56:29","date_gmt":"2026-11-19T03:56:29","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645321"},"modified":"2026-11-19T03:56:30","modified_gmt":"2026-11-19T03:56:30","slug":"%ce%bb%ce%b1%cf%82-%ce%b2%ce%ad%ce%b3%ce%ba%ce%b1%cf%82-%cf%87%ce%ac%cf%81%ce%bc%cf%80%ce%bf%cf%81-%cf%80%ce%b1%ce%af%ce%be%cf%84%ce%b5-%cf%83%ce%b1%ce%bd-%ce%bd%ce%b1-%ce%b2%cf%81%ce%af%cf%83%ce%ba","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645321","title":{"rendered":"\u039b\u03b1\u03c2 \u0392\u03ad\u03b3\u03ba\u03b1\u03c2 \u03a7\u03ac\u03c1\u03bc\u03c0\u03bf\u03c1 \u03a0\u03b1\u03af\u03be\u03c4\u03b5 \u03c3\u03b1\u03bd \u03bd\u03b1 \u03b2\u03c1\u03af\u03c3\u03ba\u03b5\u03c3\u03c4\u03b5 \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03c0\u03c1\u03b1\u03b3\u03bc\u03b1\u03c4\u03b9\u03ba\u03cc \u03ba\u03b1\u03b6\u03af\u03bd\u03bf"},"content":{"rendered":"
\n

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