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":585396,"date":"2026-11-12T03:04:05","date_gmt":"2026-11-12T03:04:05","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=585396"},"modified":"2026-11-12T03:04:05","modified_gmt":"2026-11-12T03:04:05","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%aa%e0%a7%8d%e0%a6%b0%e0%a6%95%e0%a7%83%e0%a6%a4-%e0%a6%86%e0%a6%af%e0%a6%bc-%e0%a6%95%e0%a6%b0%e0%a6%be%e0%a6%b0","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=585396","title":{"rendered":"\u09e8\u09e6\u09e8\u09ec \u09b8\u09be\u09b2\u09c7 \u09aa\u09cd\u09b0\u0995\u09c3\u09a4 \u0986\u09af\u09bc \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09b8\u09c7\u09b0\u09be \u09ab\u09cd\u09b0\u09bf \u09b0\u09bf\u09ad\u09b2\u09ad\u09be\u09b0 \u098f\u09ac\u0982 \u09a8\u09cb-\u09a1\u09bf\u09aa\u09cb\u099c\u09bf\u099f \u0987\u09a8\u09b8\u09c7\u09a8\u099f\u09bf\u09ad\u0964"},"content":{"rendered":"
\n

\u09aa\u09cd\u09b0\u09ac\u09a8\u09cd\u09a7<\/p>\n