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":592721,"date":"2026-11-12T20:11:39","date_gmt":"2026-11-12T20:11:39","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592721"},"modified":"2026-11-12T20:11:38","modified_gmt":"2026-11-12T20:11:38","slug":"%e3%83%ab%e3%83%bc%e3%83%ac%e3%83%83%e3%83%88%e3%81%ae%e8%b3%ad%e3%81%91%e3%81%af%e7%a7%81%e3%81%ab%e7%84%a1%e6%96%99%e3%81%ae%e3%82%bd%e3%83%bc%e3%82%b9%e3%83%81%e3%83%a3%e3%83%bc%e3%83%88%e3%82%92","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592721","title":{"rendered":"\u30eb\u30fc\u30ec\u30c3\u30c8\u306e\u8ced\u3051\u306f\u79c1\u306b\u7121\u6599\u306e\u30bd\u30fc\u30b9\u30c1\u30e3\u30fc\u30c8\u3092\u6559\u3048\u3066\u304f\u308c\u307e\u3057\u305f\uff01"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n