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":586068,"date":"2026-11-12T07:41:24","date_gmt":"2026-11-12T07:41:24","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=586068"},"modified":"2026-11-12T07:41:24","modified_gmt":"2026-11-12T07:41:24","slug":"%e0%a4%8f%e0%a4%9c%e0%a4%bc%e0%a5%8d%e0%a4%9f%e0%a5%87%e0%a4%95-%e0%a4%b5%e0%a4%be%e0%a4%87%e0%a4%a1-%e0%a4%b0%e0%a5%87%e0%a4%82%e0%a4%9c-%e0%a4%95%e0%a5%88%e0%a4%b8%e0%a5%80%e0%a4%a8%e0%a5%8b","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=586068","title":{"rendered":"\u090f\u091c\u093c\u094d\u091f\u0947\u0915 \u0935\u093e\u0907\u0921 \u0930\u0947\u0902\u091c \u0915\u0948\u0938\u0940\u0928\u094b \u0930\u093f\u0935\u094d\u092f\u0942, \u0922\u0947\u0930 \u0938\u093e\u0930\u0947 \u0935\u0940\u0921\u093f\u092f\u094b \u0917\u0947\u092e \u0914\u0930 \u092a\u094d\u0930\u094b \u092c\u094b\u0928\u0938"},"content":{"rendered":"
\n

\u092c\u094d\u0932\u0949\u0917<\/p>\n