3301relevantsWrapper.insertAdjacentHTML('beforeend', relevantsHTML);3302}33033304function t_feed_addRelevantsTitle(recid, opts) {3305var style = opts.popup_opts.titleColor ? ' style="color:' + opts.popup_opts.titleColor + '";' : '';3306var widthWrapper = opts.popup_opts.styleRelevants == 'cols' ? ' t-col_12' : ' t-col_8 t-prefix t-prefix_2';3307var title = opts.popup_opts.titleRelevants ? opts.popup_opts.titleRelevants : t_feed_getDictionary('seealso', recid);3308var str =3309'<div class="t-feed__post-popup__relevants-title-wrapper t-col' +3310widthWrapper +3311
'">' + '<div class="t-feed__post-popup__relevants-title t-align_left t-uptitle t-uptitle_xxl"' + style + '>' + title + '</div>' + '</div>'; return str;}function t_feed_drawRelevantsPostInRow(opts, post) { var str = '<div class="t-feed__post-popup__relevants-item-wrapper">' + '<div class="t-feed__post-popup__relevants-item t-feed__post-popup__relevants-item_row t-col t-col_8 t-prefix t-prefix_2 t-align_left">' + '<a class="" href="' + post.url + '">' + '<div class="t-feed__post-popup__relevants-content">' + '' + t_feed_drawRelevantsPostContent(opts, post) + '</div>' + '</a>' + '</div>' + '</div>'; return str;}function t_feed_drawRelevantsPostInCol(opts, post) { var str = '<div class="t-feed__post-popup__relevants-item t-col t-col_3 t-align_left">' + '<a class="" href="' + post.url + '">' + '' + t_feed_drawRelevantsPostContent(opts, post) + '</a>' + '</div>'; return str;}function t_feed_drawRelevantsPostContent(opts, post) { var imageRatio; var imageStyle; if (opts.popup_opts.styleRelevants == 'cols') { imageRatio = opts.imageRatio ? opts.imageRatio + '%' : '66%'; imageStyle = 'style="padding-bottom:' + imageRatio + ';"'; } else { imageRatio = opts.imageRatio ? opts.imageRatio / 100 : '0.75'; var width = '100px'; if (window.innerWidth <= 560) { width = '60px'; } imageStyle = 'style="height: calc(' + width + ' * ' + imageRatio + ');"'; } var titleStyle = ''; if (opts.popup_opts.titleColor) titleStyle += 'color:' + opts.popup_opts.titleColor + ';'; if (opts.popup_opts.titleFontFamily) titleStyle += 'font-family:' + opts.popup_opts.titleFontFamily + ';'; var textStyle = ''; if (opts.popup_opts.textColor) textStyle += 'color:' + opts.popup_opts.textColor + ';'; if (opts.popup_opts.descrFontFamily) textStyle += 'font-family:' + opts.popup_opts.descrFontFamily + ';'; var partsStyle = ''; if (opts.popup_opts.subtitleColor) partsStyle += 'color:' + opts.popup_opts.subtitleColor + ';'; if (opts.popup_opts.subtitleFontFamily) partsStyle += 'font-family:' + opts.popup_opts.subtitleFontFamily + ';'; var imgSrc = ''; if (post.thumb) { imgSrc = post.thumb; } else if (post.image) { imgSrc = post.image; } var str = ''; if (imgSrc) { str += '<div class="t-feed__post-popup__relevants-imgwrapper" ' + imageStyle + '>' + '<div class="t-feed__post-popup__relevants-bgimg t-bgimg" data-original="' + imgSrc + '" style="background-image: url(' + imgSrc + ');"></div>' + '</div>'; } str += '<div class="t-feed__post-popup__relevants-textwrapper">'; if (opts.popup_opts.showParts) { str += '<div class="t-feed__post-popup__relevants-parts" style="">'; post.postparts.forEach(function (item) { if (item != '') {