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":1969,"date":"2023-04-30T18:30:46","date_gmt":"2023-04-30T17:30:46","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=1969"},"modified":"2024-06-24T03:27:58","modified_gmt":"2024-06-24T02:27:58","slug":"banki-vnov-povysili-stavki-po-vkladam-rossijskaja-gazet","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=1969","title":{"rendered":"\u0411\u0430\u043d\u043a\u0438 \u0412\u043d\u043e\u0432\u044c \u041f\u043e\u0432\u044b\u0441\u0438\u043b\u0438 \u0421\u0442\u0430\u0432\u043a\u0438 \u041f\u043e \u0412\u043a\u043b\u0430\u0434\u0430\u043c \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0430\u044f \u0413\u0430\u0437\u0435\u0442"},"content":{"rendered":"

\u0411\u0430\u043d\u043a\u0438 \u0412\u043d\u043e\u0432\u044c \u041f\u043e\u0432\u044b\u0441\u0438\u043b\u0438 \u0421\u0442\u0430\u0432\u043a\u0438 \u041f\u043e \u0412\u043a\u043b\u0430\u0434\u0430\u043c \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0430\u044f \u0413\u0430\u0437\u0435\u0442\u0430<\/p>\n

C\u043f\u043e\u0440\u0442 \u041b\u0430\u0439\u0432 \u041e\u043d\u043b\u0430\u0439\u043d \u041f\u0440\u044f\u043c\u044b\u0435 \u0421\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0435 \u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0424\u0443\u0442\u0431\u043e\u043b%2C \u0422\u0435\u043d\u043d\u0438\u0441%2C \u0425\u043e\u043a\u043a\u0435\u0439<\/h1>\n
\n

Content<\/p>\n