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":592804,"date":"2026-11-12T20:17:14","date_gmt":"2026-11-12T20:17:14","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592804"},"modified":"2026-11-12T20:17:16","modified_gmt":"2026-11-12T20:17:16","slug":"%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e7%84%a1%e6%96%99%e3%83%9d%e3%82%b8%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%b2%e3%83%bc%e3%83%a0%e3%80%81%e4%bc%9a%e5%93%a1%e7%99%bb%e9%8c%b2%e4%b8%8d%e8%a6%81","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592804","title":{"rendered":"\u30ae\u30e3\u30f3\u30d6\u30eb\u7121\u6599\u30dd\u30b8\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0\u3001\u4f1a\u54e1\u767b\u9332\u4e0d\u8981"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n