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":636321,"date":"2026-11-18T11:01:40","date_gmt":"2026-11-18T11:01:40","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=636321"},"modified":"2026-11-18T11:01:39","modified_gmt":"2026-11-18T11:01:39","slug":"%e0%a4%ac%e0%a4%bf%e0%a4%a8%e0%a4%be-%e0%a4%9c%e0%a4%ae%e0%a4%be-%e0%a4%b0%e0%a4%be%e0%a4%b6%e0%a4%bf-%e0%a4%b5%e0%a4%be%e0%a4%b2%e0%a5%87-%e0%a4%9c%e0%a5%81%e0%a4%86%e0%a4%98%e0%a4%b0%e0%a5%8b","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=636321","title":{"rendered":"\u092c\u093f\u0928\u093e \u091c\u092e\u093e \u0930\u093e\u0936\u093f \u0935\u093e\u0932\u0947 \u091c\u0941\u0906\u0918\u0930\u094b\u0902 \u0915\u0947 \u092a\u094d\u0930\u094b\u0924\u094d\u0938\u093e\u0939\u0928: 2026 \u092e\u0947\u0902 \u0911\u0928\u0932\u093e\u0907\u0928 \u0932\u094b\u0917\u094b\u0902 \u0915\u0947 \u0932\u093f\u090f 100 \u092a\u094d\u0930\u0924\u093f\u0936\u0924 \u092e\u0941\u092b\u094d\u0924 \u0938\u094d\u092a\u093f\u0928\u0964"},"content":{"rendered":"
\n

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