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":646932,"date":"2026-11-19T13:01:19","date_gmt":"2026-11-19T13:01:19","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646932"},"modified":"2026-11-19T13:01:19","modified_gmt":"2026-11-19T13:01:19","slug":"2026%e5%b9%b4%e7%b1%b3%e5%9b%bd%e6%9c%80%e9%ab%98%e3%81%ae%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e4%bc%81%e6%a5%ad10%e3%83%89%e3%83%ab%e5%85%a5%e9%87%91","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646932","title":{"rendered":"2026\u5e74\u7c73\u56fd\u6700\u9ad8\u306e\u5165\u91d1\u4e0d\u8981\u30ae\u30e3\u30f3\u30d6\u30eb\u4f01\u696d10\u30c9\u30eb\u5165\u91d1\u4e0d\u8981\u30dc\u30fc\u30ca\u30b9\u3092\u7372\u5f97\u3057\u3088\u3046"},"content":{"rendered":"
\n

\u30d6\u30ed\u30b0<\/p>\n