str += '<div class="t-feed__row-bigimg-grid__post-wrapper">';
815 if (opts.imagePos == 'beforetitle') { 816 str += '' + t_feed_drawImageInRowBig(opts, post, 'beforetitle', recid); 819 if ((opts.showDate && opts.datePos == 'beforetitle') || (opts.showParts && post.postparts.length > 0 && opts.partsPos == 'beforetitle')) { 820 str += '' + t_feed_drawDateAndParts(opts, post, 'beforetitle', 'col', recid); 823 str += '' + t_feed_drawTitle(recid, opts, post, 'medium', titleMargin); 825 if ((opts.showDate && opts.datePos == 'aftertitle') || (opts.showParts && post.postparts.length > 0 && opts.partsPos == 'aftertitle')) { 826 str += '' + t_feed_drawDateAndParts(opts, post, 'aftertitle', 'col', recid); 829 if (opts.imagePos == 'aftertitle') { 830 str += '' + t_feed_drawImageInRowBig(opts, post, 'aftertitle', recid); 833 if (opts.showShortDescr) { 834 str += ' <div class="t-feed__textwrapper">'; 835 str += '' + t_feed_drawDescr(opts, post, 'medium'); 839 if ((opts.showDate && opts.datePos == 'afterdescr') || (opts.showParts && post.postparts.length > 0 && opts.partsPos == 'afterdescr')) { 840 str += '' + t_feed_drawDateAndParts(opts, post, 'afterdescr', 'col', recid); 843 if (opts.imagePos == 'afterdescr') { 844 str += '' + t_feed_drawImageInRowBig(opts, post, 'afterdescr', recid); 854 * Generate layout for FD10* 855 * @param {object} post – JSON with data for post 856 * @param {object} opts – object with feed settings 857 * @param {string} recid – recid of current block 860function t_feed_drawRowType(post, opts, recid) { 861 var rec = document.querySelector('#rec' + recid); 862 var gridType = rec.querySelector('.js-feed').getAttribute('data-feed-grid-type'); 863 var imageUrl = post.thumb ? post.thumb : post.image; 866 if (gridType === 'side-panel') { 867 str += '<div class="t-feed__row-grid__post-wrapper t-feed__row-grid__post-wrapper_panel">'; 869 var paddingClass = opts.separator.hideSeparator ? ' t-feed__row-grid__post-wrapper_padd-sm' : ''; 870 str += '<div class="t-feed__row-grid__post-wrapper' + paddingClass + '">'; 873 if (post.mediatype === 'video' && post.image === '' && post.thumb === '') { 874 imageUrl = 'https://static.tildacdn.' + t_feed__getRootZone() + '/ffb6456b-781b-40e8-9517-ffb5225e8bcd/imgfish.jpg'; 877 if ((post.thumb !== '' || post.image !== '' || post.mediatype === 'video') && opts.showImage) { 878 var bgFieldAttr = post.uid ? 'bgimgfield="fe_img__' + post.uid + '"' : ''; 879 var feedImageClass = 'js-feed-post-image t-feed__post-bgimg t-bgimg'; 880 var isSquare = opts.imageHeight === opts.imageWidth; 883 if (post.thumb !== '' && post.thumbalt !== '') { 884 altText = post.thumbalt; 885 } else if (post.thumb === '' && post.image !== '' && post.imagealt !== '') { 886 altText = post.imagealt; 889 var alt = altText ? `role="img" aria-label="${altText}"` : ''; 891 if (isSquare) feedImageClass += ' t-feed__post-bgimg_square'; 893 <div class="t-feed__post-imgwrapper"> 895 class="${feedImageClass}" 896 data-original="${imageUrl}" 899 style="background-image:url(${t_feed_getLazyUrl(opts, imageUrl)}); 900 width:${opts.imageWidth};