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":591946,"date":"2026-11-12T18:38:13","date_gmt":"2026-11-12T18:38:13","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591946"},"modified":"2026-11-12T18:38:14","modified_gmt":"2026-11-12T18:38:14","slug":"%e3%83%af%e3%83%b3%e3%83%80%e3%83%95%e3%83%ab%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b9%e3%83%ab%ef%bc%9a%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%8d%e3%83%83%e3%83%88%e3%82%ab%e3%82%b8%e3%83%8e%e3%81%ae","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591946","title":{"rendered":"\u30ef\u30f3\u30c0\u30d5\u30eb\u30ad\u30e3\u30c3\u30b9\u30eb\uff1a\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30ab\u30b8\u30ce\u306e\u304a\u3059\u3059\u3081\u3001\u30ec\u30d3\u30e5\u30fc\u3001\u305d\u3057\u3066\u5b8c\u5168\u7121\u6599\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n