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":592806,"date":"2026-11-12T20:17:22","date_gmt":"2026-11-12T20:17:22","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592806"},"modified":"2026-11-12T20:17:24","modified_gmt":"2026-11-12T20:17:24","slug":"%e3%83%9b%e3%83%83%e3%82%b1%e3%83%bc%e3%82%ad%e3%83%a3%e3%83%a9%e3%82%af%e3%82%bf%e3%83%bc%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%81%ae%e3%83%ac%e3%83%93%e3%83%a5%e3%83%bc%ef%bc%9a%e3%82%a4%e3%83%b3","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592806","title":{"rendered":"\u30db\u30c3\u30b1\u30fc\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u30b9\u30ed\u30c3\u30c8\u306e\u30ec\u30d3\u30e5\u30fc\uff1a\u30a4\u30f3\u30bb\u30f3\u30c6\u30a3\u30d6\u3001\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u306a\u3069"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n