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":126947,"date":"2026-09-04T01:21:23","date_gmt":"2026-09-04T00:21:23","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=126947"},"modified":"2026-09-04T01:21:25","modified_gmt":"2026-09-04T00:21:25","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%b0-%e0%a6%b8%e0%a7%87%e0%a6%b0%e0%a6%be-%e0%a6%ae%e0%a6%be%e0%a6%b0%e0%a7%8d%e0%a6%95%e0%a6%bf%e0%a6%a8-%e0%a6%ab","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=126947","title":{"rendered":"\u09e8\u09e6\u09e8\u09ec \u09b8\u09be\u09b2\u09c7\u09b0 \u09b8\u09c7\u09b0\u09be \u09ae\u09be\u09b0\u09cd\u0995\u09bf\u09a8 \u09ab\u09cd\u09b0\u09bf \u09b8\u09cd\u09aa\u09bf\u09a8 \u09ac\u09cb\u09a8\u09be\u09b8\u0997\u09c1\u09b2\u09cb\u09b0 \u09ac\u09c7\u099f\u09bf\u0982 \u09aa\u09b0\u09cd\u09af\u09be\u09b2\u09cb\u099a\u09a8\u09be"},"content":{"rendered":"
\n

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