1/** 2 * Copyright ETS Software Technology Co., Ltd 3 * 4 * NOTICE OF LICENSE 5 * 6 * This file is not open source! Each license that you purchased is only available for 1 website only. 7 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 8 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. 9 * 10 * DISCLAIMER 11 * 12 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 13 * versions in the future. 14 * 15 * @author ETS Software Technology Co., Ltd 16 * @copyright ETS Software Technology Co., Ltd 17 * @license Valid for 1 website (or project) for each purchase of license 18 */ 19 $(document).ready(function(){ 20 if(!$('#category .ybc_block_related_category_page').length){ 21 $.ajax({ 22 type: 'POST', 23 headers: { "cache-control": "no-cache" }, 24 url: '', 25 async: true, 26 cache: false, 27 dataType : "json", 28 data:'displayPostRelatedCategories=1', 29 success: function(jsonData) 30 { 31 if($('#category #main').length) 32 { 33 $('#category #main').append(jsonData.html_block); 34 } 35 else if($('#category #center_column').length) 36 { 37 $('#category #center_column').append(jsonData.html_block); 38 } 39 slickBlogRelated(); 40 } 41 }); 42 } else { 43 slickBlogRelated(); 44 } 45 }); 46 function slickBlogRelated(){ 47 if ($('.ybc_block_related_category_page.ybc_block_slider .ybc_blog_content_block:not(.slick-initialized)').length > 0){ 48 var number_category_posts_per_row = $('.ybc_block_related_category_page').attr('data-items'); 49 $('.ybc_block_related_category_page.ybc_block_slider .ybc_blog_content_block:not(.slick-initialized)').slick({ 50 slidesToShow: number_category_posts_per_row, 51 arrows: true, 52 dots: false, 53 autoplay: false, 54 responsive: [ 55 { 56 breakpoint: 1200, 57 settings: { 58 slidesToShow: number_category_posts_per_row, 59 } 60 }, 61 { 62 breakpoint: 992, 63 settings: { 64 slidesToShow: 3, 65 } 66 }, 67 { 68 breakpoint: 768, 69 settings: { 70 slidesToShow: 2, 71 } 72 }, 73 { 74 breakpoint: 400, 75 settings: { 76 slidesToShow: 1, 77 } 78 } 79 ] 80 }); 81 } 82 }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.