31013102t_feed_initCodeHightlight();3103}31043105function t_feed_drawPostPopupDate(opts, post, recid) {3106var style = opts.popup_opts.subtitleColor ? 'style="color:' + opts.popup_opts.subtitleColor + '"' : '';3107var str = '';3108if (typeof opts.popup_opts.showDate == 'undefined' || opts.popup_opts.showDate) {3109str +=3110'<span class="t-feed__post-popup__date-wrapper">' +3111'<span class="js-feed-post-date t-feed__post-popup__date t-uptitle t-uptitle_sm" ' +3112
style + '>' + t_feed_formateDate(post.date, opts, recid) + '</span>' + '</span>'; } return str;}function t_feed_drawPostPopupTitle(opts, post) { var style = opts.popup_opts.titleColor ? 'style="color:' + opts.popup_opts.titleColor + '"' : ''; var str = ''; if (post.title) { str += '<div class="t-feed__post-popup__title-wrapper">' + '<div class="js-feed-post-title t-feed__post-popup__title t-title t-title_xxs" ' + style + '>' + '' + post.title + '</div>' + '</div>'; } return str;}function t_feed_drawPostPopupText(opts, post) { var style = opts.popup_opts.textColor ? 'style="color:' + opts.popup_opts.textColor + '"' : ''; var text = ''; if (post.text) { text = post.text; } else if (post.descr && typeof post.needGetPost == 'undefined') { text = post.descr; } // Временно убираем var textFF = ''; // if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { // textFF = ' t-feed__post-popup__text_ff'; // } var str = ''; if (text || post.needGetPost) { str += '<div id="feed-text" class="t-feed__post-popup__text-wrapper" data-animationappear="off">' + '<div class="js-feed-post-text t-feed__post-popup__text t-text t-text_md' + textFF + '" ' + style + '>' + text + '</div>' + '</div>'; } return str;}/** * Draw author element if it is filled in admin panel * @param {object} opts – object with feed settings * @param {object} post – JSON with data for post * @returns */function t_feed_drawPostPopupAuthor(opts, post) { var authorLink = { open: post.authorurl ? '<a href="' + post.authorurl + '" class="t-feed__post-popup__author-link" target="_blank">' : '', close: post.authorurl ? '</a>' : '', }; var style = opts.popup_opts.textColor ? 'style="color:' + opts.popup_opts.textColor + '"' : ''; var str = ''; str += authorLink.open; str += '<div class="js-feed-post-author t-feed__post-popup__author-wrapper">'; if (post.authorimg) { str += '<div class="js-feed-post-author-image t-feed__post-popup__author-bgimg t-bgimg" data-original="' + post.authorimg + '" style="background-image:url(' + post.authorimg + ')"></div>'; } if (post.authorname) { str += '<span class="js-feed-post-author-name t-feed__post-popup__author-name t-descr t-descr_xxs" ' + style + '>' + post.authorname + '</span>'; } str += '</div>'; str += authorLink.close;