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":647053,"date":"2026-11-19T13:21:47","date_gmt":"2026-11-19T13:21:47","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=647053"},"modified":"2026-11-19T13:21:47","modified_gmt":"2026-11-19T13:21:47","slug":"microgaming-wildstorm%e7%a4%be%e3%81%aethunderstruck-ii%e3%80%81%e3%82%b9%e3%83%94%e3%83%b3%e3%81%a8%e3%83%9e%e3%83%ab%e3%83%81%e3%83%97%e3%83%a9%e3%82%a4%e3%83%a4%e3%83%bc%e3%81%ae%e3%82%b0%e3%83%ac","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=647053","title":{"rendered":"Microgaming Wildstorm\u793e\u306eThunderstruck II\u3001\u30b9\u30d4\u30f3\u3068\u30de\u30eb\u30c1\u30d7\u30e9\u30a4\u30e4\u30fc\u306e\u30b0\u30ec\u30fc\u30c8\u30db\u30fc\u30eb"},"content":{"rendered":"
\n

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