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":646939,"date":"2026-11-19T13:02:44","date_gmt":"2026-11-19T13:02:44","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646939"},"modified":"2026-11-19T13:02:44","modified_gmt":"2026-11-19T13:02:44","slug":"%e3%83%95%e3%83%ac%e3%83%83%e3%82%b7%e3%83%a5%e3%83%95%e3%83%ab%e3%83%bc%e3%83%84%e3%83%bb%e3%82%bc%e3%83%b3%e3%83%bb%e3%83%9d%e3%83%bc%e3%83%84%e3%81%ae%e6%84%8f%e8%a6%8b%ef%bc%9a%e3%83%af%e3%82%a4","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646939","title":{"rendered":"\u30d5\u30ec\u30c3\u30b7\u30e5\u30d5\u30eb\u30fc\u30c4\u30fb\u30bc\u30f3\u30fb\u30dd\u30fc\u30c4\u306e\u610f\u898b\uff1a\u30ef\u30a4\u30eb\u30c9\u30a8\u30ea\u30a2\u306e\u62e1\u5927\u3068\u4e21\u65b9\u5411\u306e\u5229\u76ca"},"content":{"rendered":"
\n

\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n