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":592441,"date":"2026-11-12T19:36:02","date_gmt":"2026-11-12T19:36:02","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592441"},"modified":"2026-11-12T19:36:05","modified_gmt":"2026-11-12T19:36:05","slug":"%e4%be%8b%e3%81%88%e3%81%b0%e3%80%81%e6%ad%a6%e5%99%a8%e3%82%92%e8%a3%85%e5%82%99%e3%81%97%e3%81%9f%e5%a5%b3%e6%80%a7%e3%81%aa%e3%81%a9%e3%81%ae%e6%b8%af%e3%80%82%e5%a4%9c%e6%98%8e%e3%81%91%ef%bc%9a","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592441","title":{"rendered":"\u4f8b\u3048\u3070\u3001\u6b66\u5668\u3092\u88c5\u5099\u3057\u305f\u5973\u6027\u306a\u3069\u306e\u6e2f\u3002\u591c\u660e\u3051\uff1a\u30ae\u30e3\u30f3\u30d6\u30eb\u30c8\u30e9\u30a4\u30a2\u30eb\uff06\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n