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":107929,"date":"2026-08-28T10:03:29","date_gmt":"2026-08-28T09:03:29","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=107929"},"modified":"2026-08-28T10:03:31","modified_gmt":"2026-08-28T09:03:31","slug":"%e6%90%ba%e5%b8%af%e9%9b%bb%e8%a9%b1%e3%81%a7%e6%94%af%e6%89%95%e3%81%86%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%ab%e3%82%b8%e3%83%8e-%e6%90%ba%e5%b8%af%e9%9b%bb%e8%a9%b1%e6%96%99%e9%87%91","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=107929","title":{"rendered":"\u643a\u5e2f\u96fb\u8a71\u3067\u652f\u6255\u3046\u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30b8\u30ce \u643a\u5e2f\u96fb\u8a71\u6599\u91d1 \u30ed\u30fc\u30ab\u30eb\u30ab\u30b8\u30ce\u30b5\u30a4\u30c8 \u643a\u5e2f\u96fb\u8a71\u306e\u6e2f\u3092\u6240\u6709\u3059\u308b"},"content":{"rendered":"
\n

\u30d6\u30ed\u30b0<\/p>\n