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":591951,"date":"2026-11-12T18:38:33","date_gmt":"2026-11-12T18:38:33","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591951"},"modified":"2026-11-12T18:38:35","modified_gmt":"2026-11-12T18:38:35","slug":"%e3%82%b7%e3%82%ab%e3%82%b4%e3%83%bb%e3%83%8e%e3%83%9c%e3%83%9e%e3%83%86%e3%82%a3%e3%83%83%e3%82%af%e7%a4%be%e3%83%9d%e3%82%b8%e3%82%b7%e3%83%a7%e3%83%b3%e3%83%ac%e3%83%93%e3%83%a5%e3%83%bc%e3%81%8a","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591951","title":{"rendered":"\u30b7\u30ab\u30b4\u30fb\u30ce\u30dc\u30de\u30c6\u30a3\u30c3\u30af\u793e\u30dd\u30b8\u30b7\u30e7\u30f3\u30ec\u30d3\u30e5\u30fc\u304a\u3088\u3073\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\uff082026\u5e7411\u6708\uff09"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n