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":591914,"date":"2026-11-12T18:35:48","date_gmt":"2026-11-12T18:35:48","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591914"},"modified":"2026-11-12T18:35:48","modified_gmt":"2026-11-12T18:35:48","slug":"%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%ab%e3%82%b8%e3%83%8e%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b32025-%e4%bb%8a%e3%81%99%e3%81%90gladiators%e3%83%9d%e3%82%b8%e3%82%b7%e3%83%a7","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591914","title":{"rendered":"\u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30b8\u30ce\u30aa\u30d7\u30b7\u30e7\u30f32025 \u4eca\u3059\u3050GLADIATORS\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n