6401}64026403function t_store_get_productcard_oneSlide_html(options, element) {6404var str = '';6405str += '<div class="t-slds__item [[activeClass]]" data-slide-index="[[index]]">';6406str += ' <div class="t-slds__wrapper" itemscope itemtype="https://schema.org/ImageObject">';6407str += ' <meta itemprop="image" content="[[imgsource]]">';6408str += ' <meta itemprop="caption" content="[[imgalttext]]">';6409str += ' <div class="t-slds__imgwrapper [[zoomClass]]" [[zoomAttrs]]>';6410str +=6411' <div class="t-slds__bgimg [[containClass]] [[imageClass]] [[productClass]]" data-original="[[imgsource]]" style="padding-bottom:[[paddingBottomVal]]; background-image: url(\'[[imgsource_lazy]]\');">';
str += ' </div>'; str += ' </div>'; str += t_store_addVideoIconForGallery(options, element); str += ' </div>'; str += '</div>'; str = str .replace( '[[zoomAttrs]]', options.slider_slidesOpts.zoomable ? 'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"' : '' ) .replace('[[zoomClass]]', options.slider_slidesOpts.zoomable ? 't-zoomable' : '') .replace('[[containClass]]', options.slider_slidesOpts.bgsize === 'contain' ? 't-slds__bgimg-contain' : '') .replace('[[paddingBottomVal]]', options.slider_slidesOpts.ratio * 100 + '%'); return str;}/** * This function returns the HTML for the dots or thumbs slider's bullets * * @param {object} options * @returns {string} - the HTML for the slider's bullets **/function t_store_get_productcard_oneSliderBullet_html(options) { var str = ''; if (options.slider_opts.controls === 'thumbs' || options.slider_opts.controls === 'arrowsthumbs') { str += '<div class="t-slds__thumbsbullet t-slds__bullet [[activeClass]]" data-slide-bullet-for="[[index]]">'; str += ' [[videoPlayIcon]]'; str += ' <div class="t-slds__bgimg t-bgimg" data-original="[[imgsource]]" style="padding-bottom: 100%; background-image: url(\'[[imgsource_lazy]]\');"></div>'; str += ' <div class="t-slds__thumbsbullet-border"></div>'; str += '</div>'; } if (options.slider_opts.controls === 'dots' || options.slider_opts.controls === '') { str += '<div class="t-slds__bullet [[activeClass]]" data-slide-bullet-for="[[index]]">'; str += ' <div class="t-slds__bullet_body" [[styles]]></div>'; str += '</div>'; var styles = ''; if (options.slider_dotsOpts.size) { var size = parseInt(options.slider_dotsOpts.size, 10); size = size > 20 ? 20 : size; styles += 'width:' + size + 'px;height:' + size + 'px;'; } if (options.slider_dotsOpts.bgcolor) { styles += 'background-color:' + options.slider_dotsOpts.bgcolor + ';'; } if (options.slider_dotsOpts.bordersize) { var borderColor = options.slider_dotsOpts.bgcoloractive ? options.slider_dotsOpts.bgcoloractive : '#222'; styles += 'border: ' + options.slider_dotsOpts.bordersize + ' solid ' + borderColor + ';'; } str = str.replace('[[styles]]', styles !== '' ? 'style="' + styles + '"' : ''); } return str;}/** * Make HTML code for the gallery thumbnails * * @param {object} options * @param {number} galleryLength - the number of images in the gallery * @param {number} maxThumbsCount - the maximum number of thumbnails to display * @returns {string} - HTML code **/function t_store_get_productcard_thumbsGallery_html(options, galleryLength, maxThumbsCount) { var str = ''; var countForGalleryPreview = galleryLength - maxThumbsCount; if (options.slider_opts.controls === 'thumbs' || options.slider_opts.controls === 'arrowsthumbs') { var classes = 't-slds__thumbsbullet t-slds__bullet t-slds__thumbs_gallery [[activeClass]]'; if (options.slider_slidesOpts.zoomable) { classes += ' t-slds__thumbs_gallery-zoomable'; } str += '<div class="' + classes + '" [[zoomAttrs]]' + ' data-gallery-length="' + countForGalleryPreview + '"' + ' data-slide-bullet-for="' + maxThumbsCount + '">'; str += ' <div class="t-slds__bgimg t-bgimg" data-original="[[imgsource]]" style="padding-bottom: 100%; background-image: url(\'[[imgsource_lazy]]\');"></div>';