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":585570,"date":"2026-11-12T04:22:43","date_gmt":"2026-11-12T04:22:43","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=585570"},"modified":"2026-11-12T04:22:43","modified_gmt":"2026-11-12T04:22:43","slug":"novoline-online-%ce%ba%ce%b1%ce%b6%ce%af%ce%bd%ce%bf-%ce%b8%ce%ad%cf%83%ce%b7-online-%cf%80%ce%b1%ce%b9%cf%87%ce%bd%ce%af%ce%b4%ce%b9-%cf%80%ce%bf%ce%bd%cf%84%ce%ac%cf%81%ce%b9%cf%83%ce%bc%ce%b1","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=585570","title":{"rendered":"Novoline Online \u03ba\u03b1\u03b6\u03af\u03bd\u03bf & \u0398\u03ad\u03c3\u03b7 Online \u03c0\u03b1\u03b9\u03c7\u03bd\u03af\u03b4\u03b9 \u03a0\u03bf\u03bd\u03c4\u03ac\u03c1\u03b9\u03c3\u03bc\u03b1 100% \u03b4\u03c9\u03c1\u03b5\u03ac\u03bd"},"content":{"rendered":"
\n

\u03a0\u03b5\u03c1\u03b9\u03b5\u03c7\u03cc\u03bc\u03b5\u03bd\u03bf<\/p>\n