Каталог файловtilda-catalog-1.1.js
1801 animationduration +1802 '" data-slider-items-in-row="' +1803 (!isRelevantsShow && isT973 ? blocksInRow : blocksInRowForRelevant) +1804 '" data-slider-transition="' +1805 animationspeed +1806 '" data-slider-with-cycle="true" data-slider-cycle="yes" data-slider-correct-height="' +1807 (!isRelevantsShow && isT973 ? 'true' : 'false') +1808 '" data-auto-correct-mobile-width="false">';1809 1810 productsHtml = productsHtml1811 .replace('[[noCycleClass]]', options.slider_opts.cycle ? '' : 't-slds__nocycle')
История файла и сравнение версий
.replace('[[isCycled]]', options.slider_opts.cycle ? 'true' : 'false');
1815 // Store product min and max prices 1816 Array.prototype.forEach.call(productsArr, function (product) { 1817 var minPrice = null; 1818 var maxPrice = null; 1820 t_store_onFuncLoad('t_store__cleanPrice', function () { 1821 product.editions.forEach(function (edition) { 1822 if (edition.price && edition.price !== '') { 1823 var price = t_store__cleanPrice(edition.price); 1825 if (minPrice === null) { 1828 minPrice = Math.min(minPrice, price); 1831 if (maxPrice === null) { 1834 maxPrice = Math.max(maxPrice, price); 1840 product.minPrice = minPrice; 1841 product.maxPrice = maxPrice; 1844 var cardList = gridContainer.querySelector('.t-store__card-list'); 1848 '<div class="t-store__card-list ' + 1849 (options.verticalAlignButtons ? 't-store__card-list__vertical-align-buttons' : '') + 1851 (options.vindent ? `style="row-gap: ${options.vindent};"` : '') + 1855 Array.prototype.forEach.call(productsArr, function (product, i) { 1856 if ((!isRelevantsShow && !isT973 && !isT1025) || (isRelevantsShow && !options.relevants_slider)) { 1857 if (countProducts > 0 && countProducts % blocksInRow === 0 && !options.vindent) { 1858 productsHtml += separator; 1862 productsHtml += t_store_get_productCard_html(rec, product, options, isRelevantsShow, i, productsArr); 1863 obj_products[product.uid] = product; 1869 productsHtml += '</div>'; 1874 options.relevants_slider && 1875 (productsArr.length > blocksInRowForRelevant || window.innerWidth <= 960)) || 1876 (!isRelevantsShow && isT973) 1878 var arrowsTplEl = rec.querySelector('.js-store-tpl-slider-arrows'); 1879 var arrowsTpl = arrowsTplEl.innerHTML; 1881 productsHtml += '</div>'; 1882 productsHtml += '</div>'; 1884 if (arrowsTpl && !isRelevantsShow && isT973) { 1885 productsHtml += arrowsTpl; 1886 gridContainer.classList.remove('t-container'); 1887 gridContainer.classList.remove('t-store__grid-cont_mobile-grid'); 1890 if (!isRelevantsShow && isT973) { 1891 var strBullets = '<div class="t-slds__bullet_wrapper">'; 1892 Array.prototype.forEach.call(productsArr, function (product, i) { 1895 '<div class="t-slds__bullet' + 1896 (key === 1 ? ' t-slds__bullet_active' : '') + 1897 '" data-slide-bullet-for="' + 1900 '<div class="t-slds__bullet_body" style="background-color: transparent;"></div>' +