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":646941,"date":"2026-11-19T13:03:02","date_gmt":"2026-11-19T13:03:02","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646941"},"modified":"2026-11-19T13:03:02","modified_gmt":"2026-11-19T13:03:02","slug":"100%e7%84%a1%e6%96%99%e3%81%ae%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%82%b2%e3%83%bc%e3%83%a0%e3%81%a71100%e7%a8%ae%e9%a1%9e%e4%bb%a5%e4%b8%8a%e3%81%ae","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646941","title":{"rendered":"100%\u7121\u6599\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30ed\u30c3\u30c8\u30b2\u30fc\u30e0\u30671,100\u7a2e\u985e\u4ee5\u4e0a\u306e\u30b2\u30fc\u30e0\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n