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":2934,"date":"2025-01-01T17:43:36","date_gmt":"2025-01-01T17:43:36","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=2934"},"modified":"2025-01-02T06:23:54","modified_gmt":"2025-01-02T06:23:54","slug":"die-besten-boni-2024","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=2934","title":{"rendered":"Die Besten Boni 2024"},"content":{"rendered":"

<\/p>\n

\"Casinos \u00d6sterreich 1 Five-hundred + 150 Freispiele<\/h1>\n
\n

Content<\/p>\n