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":647074,"date":"2026-11-19T13:23:59","date_gmt":"2026-11-19T13:23:59","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=647074"},"modified":"2026-11-19T13:23:59","modified_gmt":"2026-11-19T13:23:59","slug":"%e3%82%b8%e3%83%a3%e3%83%83%e3%82%af%e3%83%bb%e3%83%8f%e3%83%b3%e3%83%9e%e3%83%bc%e7%84%a1%e6%96%99%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%83%9e%e3%82%b7%e3%83%b3%e3%82%b2%e3%83%bc%e3%83%a0%e3%82%aa","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=647074","title":{"rendered":"\u30b8\u30e3\u30c3\u30af\u30fb\u30cf\u30f3\u30de\u30fc\u7121\u6599\u30b9\u30ed\u30c3\u30c8\u30de\u30b7\u30f3\u30b2\u30fc\u30e0\u30aa\u30f3\u30e9\u30a4\u30f3\u30ae\u30e3\u30f3\u30d6\u30eb\u30b2\u30fc\u30e0\u30a8\u30f3\u30bf\u30fc\u30c6\u30a4\u30e1\u30f3\u30c8\u1408NetEnt"},"content":{"rendered":"
\n

\u30d6\u30ed\u30b0<\/p>\n