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":108079,"date":"2026-08-28T10:31:02","date_gmt":"2026-08-28T09:31:02","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=108079"},"modified":"2026-08-28T10:31:04","modified_gmt":"2026-08-28T09:31:04","slug":"%e5%b9%b8%e9%81%8b%e3%81%aa%e3%83%9d%e3%82%b8%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%8b%e3%82%89%e3%81%ae%e3%82%b2%e3%83%bc%e3%83%a0%e3%82%92%e3%83%87%e3%83%a2%e8%a8%ad%e5%ae%9a%e3%81%a7%e7%84%a1%e6%96%99","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=108079","title":{"rendered":"\u5e78\u904b\u306a\u30dd\u30b8\u30b7\u30e7\u30f3\u304b\u3089\u306e\u30b2\u30fc\u30e0\u3092\u30c7\u30e2\u8a2d\u5b9a\u3067\u7121\u6599\u3067\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044 EGT"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n