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":636264,"date":"2026-11-18T10:56:34","date_gmt":"2026-11-18T10:56:34","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=636264"},"modified":"2026-11-18T10:56:33","modified_gmt":"2026-11-18T10:56:33","slug":"%e0%a4%b0%e0%a4%bf%e0%a4%b5%e0%a5%89%e0%a4%b2%e0%a5%8d%e0%a4%b5%e0%a5%8d%e0%a4%b8-%e0%a4%95%e0%a5%88%e0%a4%b8%e0%a5%80%e0%a4%a8%e0%a5%8b-%e0%a4%b9%e0%a4%ae-%e0%a4%b8%e0%a4%ad%e0%a5%80-%e0%a4%96","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=636264","title":{"rendered":"\u0930\u093f\u0935\u0949\u0932\u094d\u0935\u094d\u0938 \u0915\u0948\u0938\u0940\u0928\u094b \u0939\u092e \u0938\u092d\u0940 \u0916\u093f\u0932\u093e\u0921\u093c\u093f\u092f\u094b\u0902 \u0915\u0947 \u0932\u093f\u090f 100 \u092a\u094d\u0930\u0924\u093f\u0936\u0924 \u092e\u0941\u092b\u094d\u0924 \u0938\u0941\u0935\u093f\u0927\u093e \u092d\u0940 \u092a\u094d\u0930\u0926\u093e\u0928 \u0915\u0930\u0924\u093e \u0939\u0948\u0964"},"content":{"rendered":"
\n

\u0938\u093e\u092e\u0917\u094d\u0930\u0940<\/p>\n