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":592752,"date":"2026-11-12T20:13:14","date_gmt":"2026-11-12T20:13:14","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592752"},"modified":"2026-11-12T20:13:14","modified_gmt":"2026-11-12T20:13:14","slug":"starburst%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%ef%bc%9anetent%e3%81%ab%e3%82%88%e3%82%8b%e5%ae%8c%e5%85%a8%e7%84%a1%e6%96%99%e3%81%ae%e3%82%aa","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592752","title":{"rendered":"Starburst\u30b9\u30ed\u30c3\u30c8\u30de\u30b7\u30f3\u30b2\u30fc\u30e0\uff1aNetEnt\u306b\u3088\u308b\u5b8c\u5168\u7121\u6599\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30ed\u30c3\u30c8\u30b2\u30fc\u30e0\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044\uff1a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u8981"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n