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":646986,"date":"2026-11-19T13:11:29","date_gmt":"2026-11-19T13:11:29","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646986"},"modified":"2026-11-19T13:12:15","modified_gmt":"2026-11-19T13:12:15","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%81%b8%e3%81%ae%e7%99%bb%e9%8c%b2%e3%81%a750%e5%9b%9e%e3%81%ae%e3%83%95%e3%83%aa%e3%83%bc%e3%82%b9%e3%83%94%e3%83%b3%e3%83%9c","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646986","title":{"rendered":"\u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30b8\u30ce\u3078\u306e\u767b\u9332\u306750\u56de\u306e\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u30dc\u30fc\u30ca\u30b9\uff082026\u5e74\uff09"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n