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":646588,"date":"2026-11-19T11:56:14","date_gmt":"2026-11-19T11:56:14","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646588"},"modified":"2026-11-19T11:56:14","modified_gmt":"2026-11-19T11:56:14","slug":"%e3%82%88%e3%82%8a%e8%89%af%e3%81%84%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%bb%e3%83%b3%e3%83%86%e3%82%a3%e3%83%96%e3%81%a7%e3%80%81%e5%ae%9f%e9%9a%9b%e3%81%ae%e5%8f%8e","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646588","title":{"rendered":"\u3088\u308a\u826f\u3044\u5165\u91d1\u4e0d\u8981\u306e\u30a4\u30f3\u30bb\u30f3\u30c6\u30a3\u30d6\u3067\u3001\u5b9f\u969b\u306e\u53ce\u5165\u3092\u7372\u5f97\u3057\u307e\u3057\u3087\u3046\u3002100\u56de\u306e\u7121\u6599\u30ea\u30dc\u30eb\u30d3\u30f3\u30b0\u3092\u30b2\u30c3\u30c8\u3057\u307e\u3057\u3087\u3046\u3002"},"content":{"rendered":"
\n

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