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":108091,"date":"2026-08-28T10:33:32","date_gmt":"2026-08-28T09:33:32","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=108091"},"modified":"2026-08-28T10:33:33","modified_gmt":"2026-08-28T09:33:33","slug":"%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81%e3%80%81100%e7%84%a1%e6%96%99%e3%81%ae%e3%83%aa%e3%83%9c%e3%83%ab%e3%83%93%e3%83%b3%e3%82%b0%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e4%bc%81%e6%a5%ad2026","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=108091","title":{"rendered":"\u5165\u91d1\u4e0d\u8981\u3001100%\u7121\u6599\u306e\u30ea\u30dc\u30eb\u30d3\u30f3\u30b0\u30ae\u30e3\u30f3\u30d6\u30eb\u4f01\u696d2026\u5b8c\u5168\u7121\u6599\u3067\u697d\u3057\u3093\u3067\u3001\u30ea\u30a2\u30eb\u30de\u30cd\u30fc\u3092\u7372\u5f97\u3057\u3088\u3046"},"content":{"rendered":"
\n

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