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":594350,"date":"2026-11-13T02:41:07","date_gmt":"2026-11-13T02:41:07","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=594350"},"modified":"2026-11-13T02:41:06","modified_gmt":"2026-11-13T02:41:06","slug":"phan-tich-song-bac-truc-tuyen-tot-hon-nam-2025-danh-gia-va-tien-thuong-uy-tin","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=594350","title":{"rendered":"Ph\u00e2n t\u00edch s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn t\u1ed1t h\u01a1n n\u0103m 2025: \u0110\u00e1nh gi\u00e1 v\u00e0 ti\u1ec1n th\u01b0\u1edfng uy t\u00edn"},"content":{"rendered":"
\n

B\u00e0i \u0111\u0103ng<\/p>\n