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":592435,"date":"2026-11-12T19:35:25","date_gmt":"2026-11-12T19:35:25","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592435"},"modified":"2026-11-12T19:35:25","modified_gmt":"2026-11-12T19:35:25","slug":"%e8%aa%ad%e3%82%80%e3%81%b9%e3%81%8d%e6%9c%ac%e3%81%8c%e8%a6%8b%e3%81%a4%e3%81%8b%e3%82%8b%e6%9c%80%e9%ab%98%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%8811%e9%81%b8","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=592435","title":{"rendered":"\u8aad\u3080\u3079\u304d\u672c\u304c\u898b\u3064\u304b\u308b\u6700\u9ad8\u306e\u30b5\u30a4\u30c811\u9078"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n