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":646875,"date":"2026-11-19T12:54:49","date_gmt":"2026-11-19T12:54:49","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646875"},"modified":"2026-11-19T12:54:48","modified_gmt":"2026-11-19T12:54:48","slug":"%e3%82%b0%e3%83%a9%e3%83%87%e3%82%a3%e3%82%a8%e3%83%bc%e3%82%bf%e3%83%bc%e3%83%9d%e3%82%b8%e3%82%b7%e3%83%a7%e3%83%b3%e3%83%87%e3%83%a2%ef%bc%86%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%882026%e1%90%88-100","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646875","title":{"rendered":"\u30b0\u30e9\u30c7\u30a3\u30a8\u30fc\u30bf\u30fc\u30dd\u30b8\u30b7\u30e7\u30f3\u30c7\u30e2\uff06\u30b3\u30e1\u30f3\u30c82026\u1408 100%\u7121\u6599\u3067\u8ced\u3051\u308b"},"content":{"rendered":"
\n

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