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":591909,"date":"2026-11-12T18:35:13","date_gmt":"2026-11-12T18:35:13","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591909"},"modified":"2026-11-12T18:35:12","modified_gmt":"2026-11-12T18:35:12","slug":"dragon-ports-%e8%bf%bd%e5%8a%a0%e3%83%9c%e3%83%bc%e3%83%8a%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89-2026%e5%b9%b411%e6%9c%88-%e6%af%8e%e6%97%a5%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591909","title":{"rendered":"Dragon Ports \u8ffd\u52a0\u30dc\u30fc\u30ca\u30b9\u30b3\u30fc\u30c9 2026\u5e7411\u6708 \u6bce\u65e5\u66f4\u65b0"},"content":{"rendered":"
\n

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