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":585408,"date":"2026-11-12T03:06:19","date_gmt":"2026-11-12T03:06:19","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=585408"},"modified":"2026-11-12T03:06:19","modified_gmt":"2026-11-12T03:06:19","slug":"%e0%a7%a8%e0%a7%a6%e0%a7%a8%e0%a7%ac-%e0%a6%b8%e0%a6%be%e0%a6%b2%e0%a7%87-%e0%a6%a6%e0%a6%95%e0%a7%8d%e0%a6%b7%e0%a6%bf%e0%a6%a3-%e0%a6%86%e0%a6%ab%e0%a7%8d%e0%a6%b0%e0%a6%bf%e0%a6%95%e0%a6%be","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=585408","title":{"rendered":"\u09e8\u09e6\u09e8\u09ec \u09b8\u09be\u09b2\u09c7 \u09a6\u0995\u09cd\u09b7\u09bf\u09a3 \u0986\u09ab\u09cd\u09b0\u09bf\u0995\u09be\u09af\u09bc \u09b8\u09b0\u09cd\u09ac\u09b6\u09cd\u09b0\u09c7\u09b7\u09cd\u09a0 \u09e7\u09e6\u09e6 \u09b6\u09a4\u09be\u0982\u09b6 \u09ac\u09bf\u09a8\u09be\u09ae\u09c2\u09b2\u09cd\u09af\u09c7 \u09b0\u09bf\u09ad\u09b2\u09ad\u09b8 \u0987\u09a8\u09b8\u09c7\u09a8\u099f\u09bf\u09ad \u098f\u09ac\u0982 \u09b6\u09a4 \u09b6\u09a4 \u09b8\u09cd\u09aa\u09bf\u09a8\u09c7\u09b0 \u09a6\u09be\u09ac\u09bf \u0995\u09b0\u09c1\u09a8\u0964"},"content":{"rendered":"
\n

\u09ac\u09bf\u09b7\u09af\u09bc\u09ac\u09b8\u09cd\u09a4\u09c1<\/p>\n