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":646691,"date":"2026-11-19T12:11:42","date_gmt":"2026-11-19T12:11:42","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646691"},"modified":"2026-11-19T12:11:41","modified_gmt":"2026-11-19T12:11:41","slug":"%e3%83%8a%e3%83%9d%e3%83%ac%e3%82%aa%e3%83%b3%ef%bc%86%e3%82%b8%e3%83%a7%e3%82%bc%e3%83%95%e3%82%a3%e3%83%bc%e3%83%8c-%e3%82%ab%e3%82%b8%e3%83%8e%e3%82%b9%e3%83%ad%e3%83%83%e3%83%88%e3%82%b2%e3%83%bc","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646691","title":{"rendered":"\u30ca\u30dd\u30ec\u30aa\u30f3\uff06\u30b8\u30e7\u30bc\u30d5\u30a3\u30fc\u30cc \u30ab\u30b8\u30ce\u30b9\u30ed\u30c3\u30c8\u30b2\u30fc\u30e0 \u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30b8\u30ce\u30b2\u30fc\u30e0"},"content":{"rendered":"
\n

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