'" ' + animAttr + ' data-post-uid="' + post.uid + '" ' + slideIndex + marginTopStyle + '>'; if (gridType === 'row' && !opts.separator.hideSeparator) { str += '' + t_feed_drawPostSeparatorLine(opts); } if (gridType === 'slider') { str += linkHTML.open; } if (gridType === 'row' || gridType === 'side-panel') { str += '' + t_feed_drawRowType(post, opts, recid); } else if (gridType === 'col') { str += '' + t_feed_drawColType(post, opts, gridColModification, recid); } else if (gridType === 'slider') { str += '' + t_feed_drawSliderType(post, opts, gridColModification, recid); } else if (gridType === 'row-bigimg') { str += '' + t_feed_drawRowBigImgType(post, opts, recid); } if (gridType === 'slider') { str += linkHTML.close; } str += '</' + tag + '>'; return str;}/** * Generate layout for FD20* * @param {object} post – JSON with data for post * @param {object} opts – object with feed settings * @param {string} recid – recid of current block * @returns */function t_feed_drawRowBigImgType(post, opts, recid) { var titleMargin; if (opts.imagePos === 'aftertitle') { if (opts.datePos !== 'aftertitle' && opts.partsPos !== 'aftertitle') { titleMargin = true; } else { titleMargin = false; } } else { titleMargin = false; } var str = ''; str += '<div class="t-feed__row-bigimg-grid__post-wrapper">'; if (opts.imagePos == 'beforetitle') { str += '' + t_feed_drawImageInRowBig(opts, post, 'beforetitle', recid); } if ( (opts.showDate && opts.datePos == 'beforetitle') || (opts.showParts && post.postparts.length > 0 && opts.partsPos == 'beforetitle') ) { str += '' + t_feed_drawDateAndParts(opts, post, 'beforetitle', 'col', recid); } str += '' + t_feed_drawTitle(recid, opts, post, 'medium', titleMargin); if ( (opts.showDate && opts.datePos == 'aftertitle') || (opts.showParts && post.postparts.length > 0 && opts.partsPos == 'aftertitle') ) { str += '' + t_feed_drawDateAndParts(opts, post, 'aftertitle', 'col', recid); } if (opts.imagePos == 'aftertitle') { str += '' + t_feed_drawImageInRowBig(opts, post, 'aftertitle', recid); } if (opts.showShortDescr) { str += ' <div class="t-feed__textwrapper">'; str += '' + t_feed_drawDescr(opts, post, 'medium'); str += ' </div>'; } if ( (opts.showDate && opts.datePos == 'afterdescr') || (opts.showParts && post.postparts.length > 0 && opts.partsPos == 'afterdescr') ) {