Fatal error: Uncaught --> Smarty: Invalid compiled template for 'string: <script> $(document).ready(function(){ $('.product-photo.gallery').on('click',function(e){ e.preventDefault(); var images = []; var $elements = $('.product-thumb-item'); if($elements.length > 0){ var index = 0; $elements.each(function(i){ var href = $('a',this).attr('href'); var src = $('img',this).attr('src'); if($(this).hasClass('active')){ index = i; } images.push({src:href,thumb:src}); }); new Fancybox(images,{backdropClick: "close", startIndex: index, compact: true}); }else{ var src = $('#preview').attr('src'); var thumb = src.replace('big','thumbs'); images.push({src:src,thumb:thumb}); new Fancybox(images,{backdropClick: "close", startIndex: 0, compact: true}); } }); in /var/www/user129605/data/www/welder.kg/includes/app/Smarty/sysplugins/smarty_template_resource_base.php on line 121