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":647084,"date":"2026-11-19T13:24:46","date_gmt":"2026-11-19T13:24:46","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=647084"},"modified":"2026-11-19T13:24:47","modified_gmt":"2026-11-19T13:24:47","slug":"%e6%9c%80%e9%ab%98%e3%81%ae%e5%ae%8c%e5%85%a8%e7%84%a1%e6%96%99%e3%82%b9%e3%83%94%e3%83%b3%e3%82%92%e6%8f%90%e4%be%9b%e3%81%99%e3%82%8b%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e4%bc%81%e6%a5%ad","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=647084","title":{"rendered":"\u6700\u9ad8\u306e\u5b8c\u5168\u7121\u6599\u30b9\u30d4\u30f3\u3092\u63d0\u4f9b\u3059\u308b\u30ae\u30e3\u30f3\u30d6\u30eb\u4f01\u696d\u3068\u305d\u306e\u4ed5\u7d44\u307f"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n