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":142956,"date":"2026-09-08T02:47:22","date_gmt":"2026-09-08T01:47:22","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=142956"},"modified":"2026-09-08T02:47:23","modified_gmt":"2026-09-08T01:47:23","slug":"6-%ce%b1%ce%b3%ce%bf%cf%81%ce%b1%cf%83%ce%bc%ce%ad%ce%bd%ce%b1-%ce%bf%ce%bd%cf%8c%ce%bc%ce%b1%cf%84%ce%b1-%cf%84%ce%b7%cf%82-%ce%bc%cf%80%ce%bf%ce%bb%cf%8c%ce%bd%ce%b9%ce%b1-%cf%80%ce%bf%cf%85-%cf%87","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=142956","title":{"rendered":"6 \u03b1\u03b3\u03bf\u03c1\u03b1\u03c3\u03bc\u03ad\u03bd\u03b1 \u03bf\u03bd\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c4\u03b7\u03c2 \u039c\u03c0\u03bf\u03bb\u03cc\u03bd\u03b9\u03b1 \u03c0\u03bf\u03c5 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bd \u03c4\u03c1\u03cc\u03c6\u03b9\u03bc\u03b1 \u03c5\u03c8\u03b7\u03bb\u03ae\u03c2 \u03c0\u03bf\u03b9\u03cc\u03c4\u03b7\u03c4\u03b1\u03c2"},"content":{"rendered":"
\n

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