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

© 2020-2026 Некодим

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

Компания

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

Полезное

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

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

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

tilda-catalog-1.1.js

Код файла
Версия от 04.12.2026, 04:03:55 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
6501		str += '    <div class="t-slds__thumbsbullet-border"></div>';6502		str += '</div>';6503 6504		str = str.replace(6505			'[[zoomAttrs]]',6506			options.slider_slidesOpts.zoomable6507				? 'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"'6508				: ''6509		);6510	}6511 6512	return str;
История файла и сравнение версий
  • 04.12.2026, 04:03:55 · 56c3b845
6513
}
6514
6515/**
6516 * Get URL for style="background-image: url()" of lazyload image
6517 *
6518 * @param {object} options
6519 * @param {string} imgSrc - the original image URL
6520 **/
6521function t_store_getLazyUrl(options, imgSrc) {
6522 // lazyLoad works just in published pages, so in redactor and previewmode we do not add smaller images
6523 if (!options.isPublishedPage || window.lazy !== 'y') {
6524 return imgSrc;
6525 }
6526 if (imgSrc.indexOf('static.tildacdn.' + t_store__getRootZone()) === -1) {
6527 // we can't apply lazy load to image, hosted to another servers
6528 return imgSrc;
6529 }
6530
6531 var arr = imgSrc.split('/');
6532 arr.splice(imgSrc.split('/').length - 1, 0, '-/resizeb/x20');
6533
6534 return arr.join('/');
6535}
6536
6537/**
6538 * Get URL for SRC attr of lazyload image
6539 *
6540 * @param options - an object with the following properties:
6541 * @param imgSrc - the original image URL
6542 **/
6543function t_store_getLazySrc(options, imgSrc) {
6544 // lazyLoad works just in published pages, so in redactor and previewmode we do not add smaller images
6545 if (!options.isPublishedPage || window.lazy !== 'y') {
6546 return imgSrc;
6547 }
6548 if (
6549 imgSrc.indexOf('.tildacdn.com') === -1 ||
6550 imgSrc.indexOf('-/empty/') !== -1 ||
6551 imgSrc.indexOf('-/resize/') !== -1
6552 ) {
6553 return imgSrc;
6554 }
6555
6556 var arr = imgSrc.split('/');
6557 arr.splice(imgSrc.split('/').length - 1, 0, '-/empty');
6558
6559 return arr.join('/');
6560}
6561
6562/**
6563 * Translated string based on the current language
6564 *
6565 * If the message is not empty and the dictionary exists and the message is in the dictionary, return
6566 * the message from the dictionary. Otherwise, return a message saying the text was not found.
6567 *
6568 * @param {string} msg - the text to translate
6569 * @returns {string} - translated text
6570 **/
6571
6572function t_store_dict(msg) {
6573 if (!window.tStoreDict) {
6574 t_store_getDictObj();
6575 }
6576
6577 return window.tStoreDict[msg] || 'Text not found for "' + msg + '"';
6578}
6579
6580/**
6581 * Escaping the quote character in the text
6582 *
6583 * @param {string} text
6584 * @returns {string} - text without quotes
6585 **/
6586function t_store_escapeQuote(text) {
6587 if (!text) {
6588 return '';
6589 }
6590 var map = {
6591 '"': '&quot;',
6592 "'": '&#039;',
6593 };
6594
6595 return text.replace(/["']/g, function (m) {
6596 return map[m];
6597 });
6598}
6599
6600/**
Предыдущие 100 строкСледующие 100 строк