6501str += ' <div class="t-slds__thumbsbullet-border"></div>';6502str += '</div>';65036504str = str.replace(6505'[[zoomAttrs]]',6506options.slider_slidesOpts.zoomable6507? 'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"'6508: ''6509);6510}65116512return str;
}/** * Get URL for style="background-image: url()" of lazyload image * * @param {object} options * @param {string} imgSrc - the original image URL **/function t_store_getLazyUrl(options, imgSrc) { // lazyLoad works just in published pages, so in redactor and previewmode we do not add smaller images if (!options.isPublishedPage || window.lazy !== 'y') { return imgSrc; } if (imgSrc.indexOf('static.tildacdn.' + t_store__getRootZone()) === -1) { // we can't apply lazy load to image, hosted to another servers return imgSrc; } var arr = imgSrc.split('/'); arr.splice(imgSrc.split('/').length - 1, 0, '-/resizeb/x20'); return arr.join('/');}/** * Get URL for SRC attr of lazyload image * * @param options - an object with the following properties: * @param imgSrc - the original image URL **/function t_store_getLazySrc(options, imgSrc) { // lazyLoad works just in published pages, so in redactor and previewmode we do not add smaller images if (!options.isPublishedPage || window.lazy !== 'y') { return imgSrc; } if ( imgSrc.indexOf('.tildacdn.com') === -1 || imgSrc.indexOf('-/empty/') !== -1 || imgSrc.indexOf('-/resize/') !== -1 ) { return imgSrc; } var arr = imgSrc.split('/'); arr.splice(imgSrc.split('/').length - 1, 0, '-/empty'); return arr.join('/');}/** * Translated string based on the current language * * If the message is not empty and the dictionary exists and the message is in the dictionary, return * the message from the dictionary. Otherwise, return a message saying the text was not found. * * @param {string} msg - the text to translate * @returns {string} - translated text **/function t_store_dict(msg) { if (!window.tStoreDict) { t_store_getDictObj(); } return window.tStoreDict[msg] || 'Text not found for "' + msg + '"';}/** * Escaping the quote character in the text * * @param {string} text * @returns {string} - text without quotes **/function t_store_escapeQuote(text) { if (!text) { return ''; } var map = { '"': '"', "'": ''', }; return text.replace(/["']/g, function (m) { return map[m]; });}/**