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":645062,"date":"2026-11-19T02:57:46","date_gmt":"2026-11-19T02:57:46","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645062"},"modified":"2026-11-19T02:57:46","modified_gmt":"2026-11-19T02:57:46","slug":"%e0%a6%85%e0%a6%a8%e0%a6%b2%e0%a6%be%e0%a6%87%e0%a6%a8-%e0%a6%95%e0%a7%8d%e0%a6%af%e0%a6%be%e0%a6%b8%e0%a6%bf%e0%a6%a8%e0%a7%8b-%e0%a6%af%e0%a6%be-%e0%a6%95%e0%a7%8d%e0%a6%b0%e0%a7%87%e0%a6%a1","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645062","title":{"rendered":"\u0985\u09a8\u09b2\u09be\u0987\u09a8 \u0995\u09cd\u09af\u09be\u09b8\u09bf\u09a8\u09cb \u09af\u09be \u0995\u09cd\u09b0\u09c7\u09a1\u09bf\u099f \u0995\u09be\u09b0\u09cd\u09a1 \u0997\u09cd\u09b0\u09b9\u09a3 \u0995\u09b0\u09c7, \u09af\u09c1\u0995\u09cd\u09a4\u09b0\u09be\u099c\u09cd\u09af \u09e8\u09e6\u09e8\u09ec \u09b8\u09be\u09b2\u09c7\u09b0 \u09b8\u09c7\u09b0\u09be \u09a1\u09c7\u09ac\u09bf\u099f \u0993 \u09ac\u09cd\u09af\u09be\u0982\u0995 \u0995\u09be\u09b0\u09cd\u09a1 \u0995\u09cd\u09af\u09be\u09b8\u09bf\u09a8\u09cb"},"content":{"rendered":"
\n

\u09ac\u09cd\u09b2\u0997<\/p>\n