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":646945,"date":"2026-11-19T13:03:33","date_gmt":"2026-11-19T13:03:33","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646945"},"modified":"2026-11-19T13:03:33","modified_gmt":"2026-11-19T13:03:33","slug":"%e3%82%a2%e3%83%a9%e3%82%b9%e3%82%ab%e3%83%b3%e3%83%95%e3%82%a3%e3%83%83%e3%82%b7%e3%83%b3%e3%82%b0%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%81%ae%e7%89%b9%e5%85%b8%e3%80%81rtp%e3%80%81%e3%82%b2","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646945","title":{"rendered":"\u30a2\u30e9\u30b9\u30ab\u30f3\u30d5\u30a3\u30c3\u30b7\u30f3\u30b0\u30b9\u30ed\u30c3\u30c8\u306e\u7279\u5178\u3001RTP\u3001\u30b2\u30fc\u30e0\u30d7\u30ec\u30a4\u30ec\u30d3\u30e5\u30fc\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n