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":639914,"date":"2026-11-18T16:37:17","date_gmt":"2026-11-18T16:37:17","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=639914"},"modified":"2026-11-18T16:37:15","modified_gmt":"2026-11-18T16:37:15","slug":"nhung-tro-choi-slot-truc-tuyen-hay-nhat-nam-2026-cac-nha-cai-ca-cuoc-de-thu-van-%e2%80%8b%e2%80%8bmay-bang-tien-that","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=639914","title":{"rendered":"Nh\u1eefng tr\u00f2 ch\u01a1i slot tr\u1ef1c tuy\u1ebfn hay nh\u1ea5t n\u0103m 2026 - C\u00e1c nh\u00e0 c\u00e1i c\u00e1 c\u01b0\u1ee3c \u0111\u1ec3 th\u1eed v\u1eadn \u200b\u200bmay b\u1eb1ng ti\u1ec1n th\u1eadt."},"content":{"rendered":"
\n

B\u00e0i vi\u1ebft<\/p>\n