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":646481,"date":"2026-11-19T11:37:09","date_gmt":"2026-11-19T11:37:09","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646481"},"modified":"2026-11-19T11:37:09","modified_gmt":"2026-11-19T11:37:09","slug":"%e3%83%a9%e3%83%83%e3%82%ad%e3%83%bc%e3%83%8a%e3%82%b2%e3%83%83%e3%83%88%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e6%96%bd%e8%a8%ad%e3%81%ae%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88-%e3%82%ae%e3%83%a3","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646481","title":{"rendered":"\u30e9\u30c3\u30ad\u30fc\u30ca\u30b2\u30c3\u30c8\u30ae\u30e3\u30f3\u30d6\u30eb\u65bd\u8a2d\u306e\u30b3\u30e1\u30f3\u30c8 \u30ae\u30e3\u30f3\u30d6\u30eb 750\u7a2e\u985e\u4ee5\u4e0a\u306e\u30b9\u30ed\u30c3\u30c8\u30de\u30b7\u30f3 \u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c3\u30c8"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n