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":646478,"date":"2026-11-19T11:36:46","date_gmt":"2026-11-19T11:36:46","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646478"},"modified":"2026-11-19T11:36:46","modified_gmt":"2026-11-19T11:36:46","slug":"higher-rhino-megaways%e3%83%87%e3%83%a2%ef%bc%9a%e6%9c%80%e6%96%b0safari%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%83%81%e3%83%a3%e3%83%b3%e3%82%b9%e3%82%92100%ef%bc%85%e7%84%a1%e6%96%99%e3%81%a7","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646478","title":{"rendered":"Higher Rhino Megaways\u30c7\u30e2\uff1a\u6700\u65b0Safari\u30b9\u30ed\u30c3\u30c8\u30c1\u30e3\u30f3\u30b9\u3092100\uff05\u7121\u6599\u3067\u304a\u8a66\u3057\u304f\u3060\u3055\u3044"},"content":{"rendered":"
\n

\u30d6\u30ed\u30b0<\/p>\n