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":591924,"date":"2026-11-12T18:36:45","date_gmt":"2026-11-12T18:36:45","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591924"},"modified":"2026-11-12T18:36:45","modified_gmt":"2026-11-12T18:36:45","slug":"%e3%82%b9%e3%83%bc%e3%83%91%e3%83%bc%e3%82%ab%e3%82%b8%e3%83%8e%e3%81%a7%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%80%8c%e3%82%a6","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=591924","title":{"rendered":"\u30b9\u30fc\u30d1\u30fc\u30ab\u30b8\u30ce\u3067\u30aa\u30f3\u30e9\u30a4\u30f3\u30d3\u30c7\u30aa\u30b9\u30ed\u30c3\u30c8\u300c\u30a6\u30a3\u30f3\u30bf\u30fc\u30de\u30b8\u30c3\u30af\u300d\u3092\u30d7\u30ec\u30a4\u3057\u3088\u3046"},"content":{"rendered":"
\n

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