Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-catalog-1.1.js

Код файла
Версия от 04.12.2026, 04:03:55 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
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')
История файла и сравнение версий
  • 04.12.2026, 04:03:55 · 56c3b845
1812
.replace('[[isCycled]]', options.slider_opts.cycle ? 'true' : 'false');
1813 }
1814
1815 // Store product min and max prices
1816 Array.prototype.forEach.call(productsArr, function (product) {
1817 var minPrice = null;
1818 var maxPrice = null;
1819
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);
1824
1825 if (minPrice === null) {
1826 minPrice = price;
1827 } else {
1828 minPrice = Math.min(minPrice, price);
1829 }
1830
1831 if (maxPrice === null) {
1832 maxPrice = price;
1833 } else {
1834 maxPrice = Math.max(maxPrice, price);
1835 }
1836 }
1837 });
1838 });
1839
1840 product.minPrice = minPrice;
1841 product.maxPrice = maxPrice;
1842 });
1843
1844 var cardList = gridContainer.querySelector('.t-store__card-list');
1845
1846 if (!cardList) {
1847 productsHtml +=
1848 '<div class="t-store__card-list ' +
1849 (options.verticalAlignButtons ? 't-store__card-list__vertical-align-buttons' : '') +
1850 '" ' +
1851 (options.vindent ? `style="row-gap: ${options.vindent};"` : '') +
1852 '>';
1853 }
1854
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;
1859 }
1860 }
1861
1862 productsHtml += t_store_get_productCard_html(rec, product, options, isRelevantsShow, i, productsArr);
1863 obj_products[product.uid] = product;
1864
1865 countProducts++;
1866 });
1867
1868 if (!cardList) {
1869 productsHtml += '</div>';
1870 }
1871
1872 if (
1873 (isRelevantsShow &&
1874 options.relevants_slider &&
1875 (productsArr.length > blocksInRowForRelevant || window.innerWidth <= 960)) ||
1876 (!isRelevantsShow && isT973)
1877 ) {
1878 var arrowsTplEl = rec.querySelector('.js-store-tpl-slider-arrows');
1879 var arrowsTpl = arrowsTplEl.innerHTML;
1880
1881 productsHtml += '</div>';
1882 productsHtml += '</div>';
1883
1884 if (arrowsTpl && !isRelevantsShow && isT973) {
1885 productsHtml += arrowsTpl;
1886 gridContainer.classList.remove('t-container');
1887 gridContainer.classList.remove('t-store__grid-cont_mobile-grid');
1888 }
1889
1890 if (!isRelevantsShow && isT973) {
1891 var strBullets = '<div class="t-slds__bullet_wrapper">';
1892 Array.prototype.forEach.call(productsArr, function (product, i) {
1893 var key = i + 1;
1894 strBullets +=
1895 '<div class="t-slds__bullet' +
1896 (key === 1 ? ' t-slds__bullet_active' : '') +
1897 '" data-slide-bullet-for="' +
1898 key +
1899 '">' +
1900 '<div class="t-slds__bullet_body" style="background-color: transparent;"></div>' +
Предыдущие 100 строкСледующие 100 строк