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":646695,"date":"2026-11-19T12:11:57","date_gmt":"2026-11-19T12:11:57","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646695"},"modified":"2026-11-19T12:11:57","modified_gmt":"2026-11-19T12:11:57","slug":"%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%b9%e3%83%ad%e3%83%83%e3%83%88%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%af%e3%82%a4%e3%83%ab","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646695","title":{"rendered":"\u30ae\u30e3\u30f3\u30d6\u30eb\u65bd\u8a2d\u306e\u30b9\u30ed\u30c3\u30c8\u30de\u30b7\u30f3\u306b\u304a\u3051\u308b\u30ef\u30a4\u30eb\u30c9\u30b7\u30f3\u30dc\u30eb\u3068\u306f\uff1f\u5305\u62ec\u7684\u306a\u89e3\u8aac\u66f8"},"content":{"rendered":"
\n

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