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":607471,"date":"2026-11-14T05:17:37","date_gmt":"2026-11-14T05:17:37","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=607471"},"modified":"2026-11-14T05:17:37","modified_gmt":"2026-11-14T05:17:37","slug":"uu-dai-hay-khong-uu-dai-nhan-xet-va-huong-dan-theo-thoi-gian-thuc-y-tuong-ve-cach-choi-va-cac-buoc-tot-nhat","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=607471","title":{"rendered":"\u01afu \u0111\u00e3i hay kh\u00f4ng \u01b0u \u0111\u00e3i? Nh\u1eadn x\u00e9t v\u00e0 h\u01b0\u1edbng d\u1eabn theo th\u1eddi gian th\u1ef1c. \u00dd t\u01b0\u1edfng v\u1ec1 c\u00e1ch ch\u01a1i v\u00e0 c\u00e1c b\u01b0\u1edbc t\u1ed1t nh\u1ea5t."},"content":{"rendered":"
\n

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