diff --git a/skin/shop/basic/list.10.skin.php b/skin/shop/basic/list.10.skin.php index 78f494096..eef54df06 100644 --- a/skin/shop/basic/list.10.skin.php +++ b/skin/shop/basic/list.10.skin.php @@ -149,7 +149,7 @@ foreach((array) $list as $row){ if ($i >= 1) echo "\n"; -if($i === 0) echo "

등록된 상품이 없습니다.

\n"; +if ($i === 0) echo "

등록된 상품이 없습니다.

\n"; ?> @@ -160,7 +160,7 @@ $(function (){ $(this).parent("div").children(".sct_sns_wrap").show(); }); $('.sct_sns_bg, .sct_sns_cls').click(function(){ - $('.sct_sns_wrap').hide(); + $('.sct_sns_wrap').hide(); }); }); \ No newline at end of file diff --git a/skin/shop/basic/list.30.skin.php b/skin/shop/basic/list.30.skin.php index 303566363..a37dafb99 100644 --- a/skin/shop/basic/list.30.skin.php +++ b/skin/shop/basic/list.30.skin.php @@ -36,9 +36,9 @@ foreach((array) $list as $row){ $list_right_pad = 10; $list_bottom_pad = 20; $list_left_pad = $this->img_width + 10; - $list_real_width = 360; - $list_width = $list_real_width - $list_right_pad - $list_left_pad; - $list_height = $this->img_height - $list_top_pad - $list_bottom_pad; + $list_real_width = 389; + $list_width = $list_real_width; + $list_height = $this->img_height; echo "
  • \n"; @@ -83,7 +83,7 @@ foreach((array) $list as $row){ echo "
    \n"; if ($this->view_it_cust_price && $row['it_cust_price']) { - echo "".display_price($row['it_cust_price'])."\n"; + echo "".display_price($row['it_cust_price'])."\n"; } if ($this->view_it_price) { @@ -114,4 +114,16 @@ if ($i >= 1) echo "\n"; if($i == 0) echo "

    등록된 상품이 없습니다.

    \n"; ?> - \ No newline at end of file + + + \ No newline at end of file diff --git a/skin/shop/basic/list.40.skin.php b/skin/shop/basic/list.40.skin.php index b0771d72d..846788c28 100644 --- a/skin/shop/basic/list.40.skin.php +++ b/skin/shop/basic/list.40.skin.php @@ -9,22 +9,27 @@ add_stylesheet('', view_star = (method_exists($this, 'view_star')) ? $this->view_star : true; + foreach((array) $list as $row){ - if( empty($row) ) continue; - $i++; - $item_link_href = shop_item_url($row['it_id']); - $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; + $item_link_href = shop_item_url($row['it_id']); // 상품링크 + $star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; //사용자후기 평균별점 + $list_mod = $this->list_mod; // 분류관리에서 1줄당 이미지 수 값 또는 파일에서 지정한 가로 수 + $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 - if ($list_mod >= 2) { // 1줄 이미지 : 2개 이상 - if ($i%$list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막 - else if ($i%$list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째 - else $sct_last = ''; - } else { // 1줄 이미지 : 1개 - $sct_last = ' sct_clear'; + $classes = array(); + + $classes[] = 'col-row-'.$list_mod; + + if( $i && ($i % $list_mod == 0) ){ + $classes[] = 'row-clear'; } + + $i++; // 변수 i 를 증가 if ($i == 1) { if ($this->css) { @@ -32,20 +37,13 @@ foreach((array) $list as $row){ } else { echo "\n"; -if($i == 0) echo "

    등록된 상품이 없습니다.

    \n"; +if ($i === 0) echo "

    등록된 상품이 없습니다.

    \n"; ?> - + + + \ No newline at end of file diff --git a/skin/shop/basic/style.css b/skin/shop/basic/style.css index e4f46ed55..73c55206b 100644 --- a/skin/shop/basic/style.css +++ b/skin/shop/basic/style.css @@ -265,7 +265,7 @@ .sct_40 .sct_a:focus, .sct_40 .sct_a:hover {text-decoration:none} .sct_40 .sct_img {text-align:center;float:left;margin-right:20px} -.sct_40 .sct_img a {display:block} +.sct_40 .sct_img a {display:block;position:relative;z-index: 9999;} .sct_40 .sct_cart {position:absolute;right:0;bottom:0;border:0;width:150px;padding:15px 0;background:#000;background:rgba(0,0,0,0.5);color:#fff;font-size:1em;font-weight:bold;z-index:99999} .sct_40 .list-10-btn .sct_cart{z-index:1;top:40px;right:10px;bottom:initial;padding:8px 0;width:140px;border:1px solid #1c70e9;background:#3a8afd;color:#fff;cursor:pointer;border-radius:3px} .sct_40 .list-10-btn .sct_cart:hover {background:#2375eb} diff --git a/theme/basic/skin/shop/basic/style.css b/theme/basic/skin/shop/basic/style.css index 9622b3731..c7251bc9d 100644 --- a/theme/basic/skin/shop/basic/style.css +++ b/theme/basic/skin/shop/basic/style.css @@ -266,7 +266,7 @@ .sct_40 .sct_a:focus, .sct_40 .sct_a:hover {text-decoration:none} .sct_40 .sct_img {text-align:center;float:left;margin-right:20px} -.sct_40 .sct_img a {display:block} +.sct_40 .sct_img a {display:block;position:relative;z-index: 9999;} .sct_40 .sct_cart {position:absolute;right:0;bottom:0;border:0;width:150px;padding:15px 0;background:#000;background:rgba(0,0,0,0.5);color:#fff;font-size:1em;font-weight:bold;z-index:99999} .sct_40 .list-10-btn .sct_cart{z-index:1;top:40px;right:10px;bottom:initial;padding:8px 0;width:140px;border:1px solid #1c70e9;background:#3a8afd;color:#fff;cursor:pointer;border-radius:3px} .sct_40 .list-10-btn .sct_cart:hover {background:#2375eb}