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":591919,"date":"2026-11-12T18:36:23","date_gmt":"2026-11-12T18:36:23","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591919"},"modified":"2026-11-12T18:36:23","modified_gmt":"2026-11-12T18:36:23","slug":"%e3%82%af%e3%83%ac%e3%82%a4%e3%82%b8%e3%83%bc%e3%83%91%e3%83%81%e3%83%b3%e3%82%b3-%e3%82%88%e3%82%8a%e8%89%af%e3%81%84%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%82%aa%e3%83%b3%e3%83%a9","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591919","title":{"rendered":"\u30af\u30ec\u30a4\u30b8\u30fc\u30d1\u30c1\u30f3\u30b3 \u3088\u308a\u826f\u3044\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30b8\u30ce\u30b2\u30fc\u30e0 \u30d7\u30ed\u30b0\u30ec\u30c3\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n