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":646882,"date":"2026-11-19T12:55:54","date_gmt":"2026-11-19T12:55:54","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646882"},"modified":"2026-11-19T12:55:53","modified_gmt":"2026-11-19T12:55:53","slug":"%e3%83%a9%e3%83%83%e3%82%ad%e3%83%bc%e3%83%95%e3%82%a3%e3%83%83%e3%82%b7%e3%83%a5-100%e7%84%a1%e6%96%99%e3%83%aa%e3%83%9c%e3%83%ab%e3%83%93%e3%83%b3%e3%82%b0%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646882","title":{"rendered":"\u30e9\u30c3\u30ad\u30fc\u30d5\u30a3\u30c3\u30b7\u30e5 100%\u7121\u6599\u30ea\u30dc\u30eb\u30d3\u30f3\u30b0\u5165\u91d1\u4e0d\u8981\u30ac\u30a4\u30c950\u7121\u6599\u30ea\u30dc\u30eb\u30d3\u30f3\u30b0\u3042\u306a\u305f\u306e\u5b98\u80fd\u7684\u306a\u5b98\u80fd\u7684\u306a\u65b0\u9bae\u306a\u30d5\u30eb\u30fc\u30c4"},"content":{"rendered":"
\n

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