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":645323,"date":"2026-11-19T03:56:45","date_gmt":"2026-11-19T03:56:45","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645323"},"modified":"2026-11-19T03:56:47","modified_gmt":"2026-11-19T03:56:47","slug":"%ce%ba%ce%b1%ce%b6%ce%af%ce%bd%ce%bf-%cf%83%cf%84%ce%bf-%ce%b4%ce%b9%ce%b1%ce%b4%ce%af%ce%ba%cf%84%cf%85%ce%bf-%cf%83%cf%84%ce%bf%ce%bd-%ce%ba%ce%b1%ce%bd%ce%b1%ce%b4%ce%ac-%cf%80%cf%8e%cf%82-%ce%bd","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645323","title":{"rendered":"\u039a\u03b1\u03b6\u03af\u03bd\u03bf \u03c3\u03c4\u03bf \u03b4\u03b9\u03b1\u03b4\u03af\u03ba\u03c4\u03c5\u03bf \u03c3\u03c4\u03bf\u03bd \u039a\u03b1\u03bd\u03b1\u03b4\u03ac: \u03a0\u03ce\u03c2 \u03bd\u03b1 \u03c0\u03b1\u03af\u03be\u03b5\u03c4\u03b5 \u039a\u03af\u03bd\u03bf \u03c3\u03c4\u03bf \u03b4\u03b9\u03b1\u03b4\u03af\u03ba\u03c4\u03c5\u03bf"},"content":{"rendered":"
\n

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