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":646935,"date":"2026-11-19T13:02:06","date_gmt":"2026-11-19T13:02:06","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646935"},"modified":"2026-11-19T13:02:05","modified_gmt":"2026-11-19T13:02:05","slug":"zimpler%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e4%bc%81%e6%a5%ad-zimpler%e5%85%a5%e9%87%91%e3%81%8c%e5%8f%af%e8%83%bd%e3%81%aa%e6%9c%80%e9%ab%98%e3%81%ae%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=646935","title":{"rendered":"Zimpler\u30ae\u30e3\u30f3\u30d6\u30eb\u4f01\u696d Zimpler\u5165\u91d1\u304c\u53ef\u80fd\u306a\u6700\u9ad8\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30b8\u30ce"},"content":{"rendered":"
\n

\u6295\u7a3f<\/p>\n