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":645659,"date":"2026-11-19T06:33:14","date_gmt":"2026-11-19T06:33:14","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645659"},"modified":"2026-11-19T06:33:15","modified_gmt":"2026-11-19T06:33:15","slug":"%d8%b9%d8%a7%d8%b4%d9%82-%d8%ac%d8%a7%d8%af%d9%88%da%af%d8%b1-%d9%87%d8%a7%d8%b1%d8%a8%d8%b1-%d8%a8%d8%a7%d8%b2%db%8c-%d8%a2%d9%86%d9%84%d8%a7%db%8c%d9%86-%d9%82%d9%85%d8%a7%d8%b1-%d8%b1%d8%a7%db%8c","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=645659","title":{"rendered":"\u0639\u0627\u0634\u0642 \u062c\u0627\u062f\u0648\u06af\u0631 \u0647\u0627\u0631\u0628\u0631 \u0628\u0627\u0632\u06cc \u0622\u0646\u0644\u0627\u06cc\u0646 \u0642\u0645\u0627\u0631 \u0631\u0627\u06cc\u06af\u0627\u0646 \u0631\u0627 \u0622\u0646\u0644\u0627\u06cc\u0646 \u0628\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f"},"content":{"rendered":"
\n

\u0645\u0642\u0627\u0644\u0627\u062a<\/p>\n