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 (
\u041c\u0430\u0437\u043c\u04b1\u043d<\/p>\n
\u0411\u0456\u0437 \u0436\u0435\u043a\u0435 \u04e9\u0437\u0456\u043c\u0456\u0437 \u0441\u0443\u0440\u0435\u0442\u0442\u0456 \u0441\u044b\u043d\u0430\u043f \u043a\u04e9\u0440\u0433\u0435\u043d \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u0434\u0430 \u043c\u043e\u0442\u0438\u0432 \u043f\u0435\u043d \u0441\u043b\u043e\u0442\u0442\u044b \u049b\u043e\u0441\u0430 \u0430\u043b\u0493\u0430\u043d\u0434\u0430, \u0442 \u043a\u0438\u0435\u043c\u0456\u0437... \u0416\u043e\u0493\u0430\u0440\u044b\u0434\u0430 \u0430\u0439\u0442\u049b\u0430\u043d\u044b\u043c\u044b\u0437\u0434\u0430\u0439, \u041a\u043e\u043b\u0443\u043c\u0431\u0443\u0441\u0442\u044b\u04a3 \u04e9\u0437\u0456 \u0416\u044b\u043d\u0434\u044b \u0434\u0435\u0433\u0435\u043d\u0434\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456. \u041e\u043b \u0441\u0456\u0437\u0433\u0435 \u0441\u04d9\u0442\u0442\u0456 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f\u043b\u0430\u0440 \u0436\u0430\u0441\u0430\u0443\u0493\u0430 \u043a\u04e9\u043c\u0435\u043a\u0442\u0435\u0441\u0443 \u04af\u0448\u0456\u043d \u0448\u0430\u0448\u044b\u0440\u0430\u04a3\u049b\u044b\u043b\u0430\u0440\u0434\u0430\u043d \u0431\u0430\u0441\u049b\u0430 \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u0431\u0435\u043b\u0433\u0456\u043b\u0435\u0440\u0434\u0456 \u0442\u0430\u04a3\u0434\u0430\u0439 \u0430\u043b\u0430\u0434\u044b. \u0428\u0430\u0448\u044b\u0440\u0430\u04a3\u049b\u044b\u043b\u0430\u0440\u0493\u0430 \u043a\u0435\u043b\u0435\u0442\u0456\u043d \u0431\u043e\u043b\u0441\u0430\u049b, \u043e\u0439\u044b\u043d\u0434\u0430 \u041a\u043e\u043b\u0443\u043c\u0431\u0443\u0441\u0442\u044b\u04a3 \u0436\u0430\u04a3\u0430 \u0441\u0430\u043f\u0430\u0440\u044b\u043d\u0430\u043d \u043a\u0435\u043c\u0435\u043b\u0435\u0440 \u043a\u04e9\u0440\u0441\u0435\u0442\u0456\u043b\u0433\u0435\u043d\u043d\u0435\u043d \u0431\u0435\u0440\u0456 \u0448\u0430\u043c\u0430\u043c\u0435\u043d \u04af\u0448 \u0448\u0430\u0448\u044b\u0440\u0430\u04a3\u049b\u044b \u0441\u0438\u043c\u0432\u043e\u043b \u0431\u0430\u0440, \u043e\u043b\u0430\u0440 \u0441\u0456\u0437\u0434\u0456\u04a3 \u0431\u0430\u0440\u0430\u0431\u0430\u043d\u0434\u0430\u0440\u044b\u04a3\u044b\u0437\u0493\u0430 1, 3 \u049b\u0430\u0434\u0430\u043c\u0434\u0430\u0440\u044b\u043d\u0434\u0430 \u043a\u0435\u043b\u0435\u0434\u0456 \u0436\u04d9\u043d\u0435 \u0441\u0456\u0437 5-\u043a\u0435 \u0436\u0435\u0442\u0435\u0441\u0456\u0437. \u0410\u049b\u0448\u0430\u043b\u0430\u0439 \u043c\u0430\u0440\u0430\u043f\u0430\u0442\u0442\u0430\u0440 \u0441\u04d9\u043b \u0436\u043e\u043c\u0430\u0440\u0442\u0442\u044b\u049b\u043f\u0435\u043d \u0431\u0430\u0441\u0442\u0430\u043b\u0430\u0434\u044b, \u0435\u04a3 \u0436\u0430\u04a3\u0430 100 \u043f\u0430\u0439\u044b\u0437 \u0442\u0435\u0433\u0456\u043d \u0430\u0439\u043d\u0430\u043b\u044b\u043c\u0434\u0430\u0440 \u043c\u0435\u043d \u0431\u043e\u043d\u0443\u0441\u0442\u044b\u049b \u043e\u0439\u044b\u043d\u0434\u044b \u0430\u0439\u0442\u043f\u0430\u0493\u0430\u043d\u0434\u0430, \u04af\u043b\u043a\u0435\u043d \u0436\u04d9\u043d\u0435 \u0436\u044b\u043b\u0434\u0430\u043c \u0436\u0435\u04a3\u0456\u0441\u043a\u0435 \u0436\u0435\u0442\u0443\u0434\u0456\u04a3 \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u0433\u0456\u043d \u04b1\u0441\u044b\u043d\u0430\u0434\u044b.<\/p>\n