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":128641,"date":"2026-09-04T10:47:41","date_gmt":"2026-09-04T09:47:41","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=128641"},"modified":"2026-09-04T10:47:41","modified_gmt":"2026-09-04T09:47:41","slug":"%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81%e3%81%ae%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%82%ab%e3%82%b8%e3%83%8e%e3%81%ae%e7%89%b9%e5%85%b8%e3%80%81%e7%84%a1%e6%96%99%e3%81%ae%e5%9b%9e%e8%bb%a2%e3%82%b9","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=128641","title":{"rendered":"\u5165\u91d1\u4e0d\u8981\u306e\u30ed\u30fc\u30ab\u30eb\u30ab\u30b8\u30ce\u306e\u7279\u5178\u3001\u7121\u6599\u306e\u56de\u8ee2\u30b9\u30d4\u30f3\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u53c2\u52a0\u80052026"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n