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":592433,"date":"2026-11-12T19:35:13","date_gmt":"2026-11-12T19:35:13","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592433"},"modified":"2026-11-12T19:35:13","modified_gmt":"2026-11-12T19:35:13","slug":"%e7%a7%81%e3%81%8c%e6%83%9a%e3%82%8c%e8%be%bc%e3%82%93%e3%81%a0%e4%bb%96%e3%81%ae%e8%89%af%e3%81%84%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e4%be%8b27%e9%81%b8","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592433","title":{"rendered":"\u79c1\u304c\u60da\u308c\u8fbc\u3093\u3060\u4ed6\u306e\u826f\u3044\u30b5\u30a4\u30c8\u306e\u4f8b27\u9078"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n