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":646567,"date":"2026-11-19T11:49:57","date_gmt":"2026-11-19T11:49:57","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646567"},"modified":"2026-11-19T11:50:01","modified_gmt":"2026-11-19T11:50:01","slug":"thunderstruck%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%b2%e3%83%bc%e3%83%a0%ef%bc%9amicrogaming%e3%81%ae%e7%84%a1%e6%96%99%e3%83%97%e3%83%ac%e3%82%a4%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646567","title":{"rendered":"Thunderstruck\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0\uff1aMicrogaming\u306e\u7121\u6599\u30d7\u30ec\u30a4\u30b9\u30ed\u30c3\u30c8\u30b2\u30fc\u30e0\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u4e0d\u8981\u3067\u30d7\u30ec\u30a4"},"content":{"rendered":"
\n

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