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":646473,"date":"2026-11-19T11:36:09","date_gmt":"2026-11-19T11:36:09","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646473"},"modified":"2026-11-19T11:36:09","modified_gmt":"2026-11-19T11:36:09","slug":"parimatch%ef%bc%9a%e6%9a%97%e5%8f%b7%e9%80%9a%e8%b2%a8%e3%82%b9%e3%83%9d%e3%83%bc%e3%83%84%e3%83%96%e3%83%83%e3%82%af%ef%bc%86%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%82%ab%e3%82%b8%e3%83%8e","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646473","title":{"rendered":"Parimatch\uff1a\u6697\u53f7\u901a\u8ca8\u30b9\u30dd\u30fc\u30c4\u30d6\u30c3\u30af\uff06\u30ed\u30fc\u30ab\u30eb\u30ab\u30b8\u30ce"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n