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":168256,"date":"2026-09-15T05:12:57","date_gmt":"2026-09-15T04:12:57","guid":{"rendered":"https:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=168256"},"modified":"2026-09-15T05:13:01","modified_gmt":"2026-09-15T04:13:01","slug":"%e0%a6%aa%e0%a7%87%e0%a6%b6%e0%a6%be%e0%a6%a6%e0%a6%be%e0%a6%b0-%e0%a6%95%e0%a6%be%e0%a6%b0%e0%a7%8d%e0%a6%af%e0%a6%95%e0%a6%b2%e0%a6%be%e0%a6%aa%e0%a7%87%e0%a6%b0-%e0%a6%ac%e0%a6%be%e0%a6%9b%e0%a6%be","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=168256","title":{"rendered":"\u09aa\u09c7\u09b6\u09be\u09a6\u09be\u09b0 \u0995\u09be\u09b0\u09cd\u09af\u0995\u09b2\u09be\u09aa\u09c7\u09b0 \u09ac\u09be\u099b\u09be\u0987 \u0993 \u09aa\u09c2\u09b0\u09cd\u09ac\u09be\u09ad\u09be\u09b8"},"content":{"rendered":"
\n

\u09aa\u09cb\u09b8\u09cd\u099f<\/p>\n