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":601292,"date":"2026-11-13T16:12:23","date_gmt":"2026-11-13T16:12:23","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=601292"},"modified":"2026-11-13T16:12:26","modified_gmt":"2026-11-13T16:12:26","slug":"%cf%80%ce%bb%ce%b7%cf%81%cf%8e%cf%83%cf%84%ce%b5-%ce%b1%cf%80%cf%8c-%cf%84%ce%bf-%ce%ba%ce%b9%ce%bd%ce%b7%cf%84%cf%8c-%cf%84%ce%b7%ce%bb%ce%ad%cf%86%cf%89%ce%bd%ce%bf-%cf%84%ce%bf%cf%80%ce%b9%ce%ba","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=601292","title":{"rendered":"\u03a0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 \u03b1\u03c0\u03cc \u03c4\u03bf \u03ba\u03b9\u03bd\u03b7\u03c4\u03cc \u03c4\u03b7\u03bb\u03ad\u03c6\u03c9\u03bd\u03bf \u03a4\u03bf\u03c0\u03b9\u03ba\u03cc \u03ba\u03b1\u03b6\u03af\u03bd\u03bf \u038c\u03bb\u03b5\u03c2 \u03bf\u03b9 \u03c0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ad\u03c2 \u03c0\u03bb\u03b7\u03c1\u03ce\u03bd\u03bf\u03bd\u03c4\u03b1\u03b9 \u03b1\u03c0\u03cc \u03c4\u03bf \u03ba\u03b1\u03b6\u03af\u03bd\u03bf \u03bc\u03ad\u03c3\u03c9 \u03ba\u03b9\u03bd\u03b7\u03c4\u03bf\u03cd \u03c4\u03b7\u03bb\u03b5\u03c6\u03ce\u03bd\u03bf\u03c5 \u0391\u03be\u03b9\u03bf\u03bb\u03bf\u03b3\u03ae\u03b8\u03b7\u03ba\u03b1\u03bd!"},"content":{"rendered":"
\n

\u0386\u03c1\u03b8\u03c1\u03b1<\/p>\n