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":592443,"date":"2026-11-12T19:36:13","date_gmt":"2026-11-12T19:36:13","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592443"},"modified":"2026-11-12T19:36:18","modified_gmt":"2026-11-12T19:36:18","slug":"%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab-%e3%83%81%e3%83%aa%e6%b8%a9%e5%ba%a6%e3%83%9d%e3%82%b8%e3%82%b7%e3%83%a7%e3%83%b3-%e5%ae%8c%e5%85%a8%e7%84%a1%e6%96%99%e3%82%b9%e3%83%94%e3%83%b3","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592443","title":{"rendered":"\u30ae\u30e3\u30f3\u30d6\u30eb \u30c1\u30ea\u6e29\u5ea6\u30dd\u30b8\u30b7\u30e7\u30f3 \u5b8c\u5168\u7121\u6599\u30b9\u30d4\u30f3 \u5165\u91d1\u4e0d\u8981 \u30a6\u30a7\u30eb\u30ab\u30e0\u30dc\u30fc\u30ca\u30b9"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n