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":646547,"date":"2026-11-19T11:48:17","date_gmt":"2026-11-19T11:48:17","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646547"},"modified":"2026-11-19T11:48:17","modified_gmt":"2026-11-19T11:48:17","slug":"%e3%83%91%e3%83%81%e3%83%b3%e3%82%b3%e3%82%b2%e3%83%bc%e3%83%a0%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%9a%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%8d%e3%83%83%e3%83%88%e4%b8%8a%e3%81%ae%e3%82%ab%e3%82%b8","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646547","title":{"rendered":"\u30d1\u30c1\u30f3\u30b3\u30b2\u30fc\u30e0\u30ac\u30a4\u30c9\uff1a\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306e\u30ab\u30b8\u30ce\u3067\u30d1\u30c1\u30f3\u30b3\u3092\u30ae\u30e3\u30f3\u30d6\u30eb\u3059\u308b\u65b9\u6cd5\u306e\u30a2\u30a4\u30c7\u30a2"},"content":{"rendered":"
\n

\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n