영카트 메인 히트상품 스킨에 1줄당 이미지 수 적용
This commit is contained in:
@ -46,7 +46,13 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
|||||||
<!-- } 히트상품 끝 -->
|
<!-- } 히트상품 끝 -->
|
||||||
<script>
|
<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({
|
$('#idx_hit .smt_40').owlCarousel({
|
||||||
loop:true,
|
loop:true,
|
||||||
nav:true,
|
nav:true,
|
||||||
|
|||||||
@ -29,7 +29,7 @@ foreach((array) $list as $row){
|
|||||||
if ($this->css) {
|
if ($this->css) {
|
||||||
echo "<ul class=\"{$this->css}\">\n";
|
echo "<ul class=\"{$this->css}\">\n";
|
||||||
} else {
|
} else {
|
||||||
echo "<ul class=\"sct smt_40 owl-carousel\">\n";
|
echo "<ul class=\"sct smt_40 owl-carousel\" data-value=\"".$this->list_mod."\">\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -39,14 +39,20 @@ include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
|||||||
<!-- } 히트상품 끝 -->
|
<!-- } 히트상품 끝 -->
|
||||||
<script>
|
<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({
|
$('#idx_hit .smt_40').owlCarousel({
|
||||||
loop:true,
|
loop:true,
|
||||||
nav:true,
|
nav:true,
|
||||||
autoplay:true,
|
autoplay:true,
|
||||||
autoplayHoverPause:true,
|
autoplayHoverPause:true,
|
||||||
responsive:{
|
responsive:{
|
||||||
1000:{items:5}
|
1000:{items: hit_smt_val}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
@ -29,7 +29,7 @@ foreach((array) $list as $row){
|
|||||||
if ($this->css) {
|
if ($this->css) {
|
||||||
echo "<ul class=\"{$this->css}\">\n";
|
echo "<ul class=\"{$this->css}\">\n";
|
||||||
} else {
|
} else {
|
||||||
echo "<ul class=\"sct smt_40 owl-carousel\">\n";
|
echo "<ul class=\"sct smt_40 owl-carousel\" data-value=\"".$this->list_mod."\">\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user