영카트 메인 히트상품 스킨에 1줄당 이미지 수 적용

This commit is contained in:
thisgun
2021-02-26 17:11:57 +09:00
parent f9f8d0a9f0
commit 9367862f4b
4 changed files with 17 additions and 5 deletions

View File

@ -46,7 +46,13 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
<!-- } 히트상품 끝 -->
<script>
//히트상품
$(function(){
$(function(){
var hit_smt_val = parseInt($('#idx_hit .smt_40').attr("data-value"));
if(! hit_smt_val){
hit_smt_val = 5;
}
$('#idx_hit .smt_40').owlCarousel({
loop:true,
nav:true,

View File

@ -29,7 +29,7 @@ foreach((array) $list as $row){
if ($this->css) {
echo "<ul class=\"{$this->css}\">\n";
} else {
echo "<ul class=\"sct smt_40 owl-carousel\">\n";
echo "<ul class=\"sct smt_40 owl-carousel\" data-value=\"".$this->list_mod."\">\n";
}
}

View File

@ -39,14 +39,20 @@ include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
<!-- } 히트상품 끝 -->
<script>
//히트상품
$(function(){
$(function(){
var hit_smt_val = parseInt($('#idx_hit .smt_40').attr("data-value"));
if(! hit_smt_val){
hit_smt_val = 5;
}
$('#idx_hit .smt_40').owlCarousel({
loop:true,
nav:true,
autoplay:true,
autoplayHoverPause:true,
responsive:{
1000:{items:5}
1000:{items: hit_smt_val}
}
})
});

View File

@ -29,7 +29,7 @@ foreach((array) $list as $row){
if ($this->css) {
echo "<ul class=\"{$this->css}\">\n";
} else {
echo "<ul class=\"sct smt_40 owl-carousel\">\n";
echo "<ul class=\"sct smt_40 owl-carousel\" data-value=\"".$this->list_mod."\">\n";
}
}