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":594266,"date":"2026-11-13T01:53:03","date_gmt":"2026-11-13T01:53:03","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=594266"},"modified":"2026-11-13T01:53:02","modified_gmt":"2026-11-13T01:53:02","slug":"duhet-te-jeni-ne-hap-me-nje-pozicion-te-mire-per-xhekpotin-provoni-lojen-falas-tani","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=594266","title":{"rendered":"Duhet t\u00eb jeni n\u00eb hap me nj\u00eb pozicion t\u00eb mir\u00eb p\u00ebr xhekpotin. Provoni loj\u00ebn falas tani."},"content":{"rendered":"
\n

Postimet<\/p>\n