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":636303,"date":"2026-11-18T10:58:04","date_gmt":"2026-11-18T10:58:04","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=636303"},"modified":"2026-11-18T10:58:06","modified_gmt":"2026-11-18T10:58:06","slug":"%e0%a4%ac%e0%a5%8b%e0%a4%b5%e0%a5%87%e0%a4%97%e0%a4%be%e0%a4%b8-%e0%a4%b5%e0%a5%80%e0%a4%a1%e0%a4%bf%e0%a4%af%e0%a5%8b-%e0%a4%97%e0%a5%87%e0%a4%ae-%e0%a4%b8%e0%a5%82%e0%a4%9a%e0%a5%80-%e0%a4%ab","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=636303","title":{"rendered":"\u092c\u094b\u0935\u0947\u0917\u093e\u0938 \u0935\u0940\u0921\u093f\u092f\u094b \u0917\u0947\u092e \u0938\u0942\u091a\u0940: \u092b\u093f\u0932\u0940\u092a\u0940\u0902\u0938 \u092e\u0947\u0902 GCash \u0915\u0947 \u092e\u093e\u0927\u094d\u092f\u092e \u0938\u0947 \u0938\u0930\u094d\u0935\u0936\u094d\u0930\u0947\u0937\u094d\u0920 \u0911\u0928\u0932\u093e\u0907\u0928 \u0938\u094d\u0932\u0949\u091f \u0917\u0947\u092e"},"content":{"rendered":"
\n

\u0938\u093e\u092e\u0917\u094d\u0930\u0940<\/p>\n