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":646595,"date":"2026-11-19T11:57:33","date_gmt":"2026-11-19T11:57:33","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646595"},"modified":"2026-11-19T11:57:33","modified_gmt":"2026-11-19T11:57:33","slug":"2026%e5%b9%b411%e6%9c%88%e3%81%ae%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%ae%e8%a6%81%e4%bb%b6%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646595","title":{"rendered":"2026\u5e7411\u6708\u306e\u5165\u91d1\u4e0d\u8981\u30b9\u30ed\u30c3\u30c8\u30de\u30b7\u30f3\u306e\u8981\u4ef6\u306b\u95a2\u3059\u308b\u77e5\u8b58"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n