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":592760,"date":"2026-11-12T20:13:54","date_gmt":"2026-11-12T20:13:54","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592760"},"modified":"2026-11-12T20:13:54","modified_gmt":"2026-11-12T20:13:54","slug":"2026%e5%b9%b4%e7%89%88%e3%80%81%e6%9c%80%e3%82%82%e5%84%aa%e3%82%8c%e3%81%9f%e3%82%b5%e3%82%a4%e3%83%88%e3%83%87%e3%82%b6%e3%82%a4%e3%83%8a%e3%83%bc10%e9%81%b8%ef%bc%9a%e3%83%97%e3%83%ad%e3%81%ab","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592760","title":{"rendered":"2026\u5e74\u7248\u3001\u6700\u3082\u512a\u308c\u305f\u30b5\u30a4\u30c8\u30c7\u30b6\u30a4\u30ca\u30fc10\u9078\uff1a\u30d7\u30ed\u306b\u3088\u308b\u30ec\u30d3\u30e5\u30fc"},"content":{"rendered":"
\n

\u8a18\u4e8b<\/p>\n