From 3999b86f9ffa0805f1c6606cb416269f9cee1793 Mon Sep 17 00:00:00 2001 From: seeoya Date: Thu, 7 Apr 2022 14:28:50 +0900 Subject: [PATCH] =?UTF-8?q?G5-67=20=EC=83=81=ED=92=88=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20=EA=B0=A4=EB=9F=AC=EB=A6=AC=20=EC=8A=A4=ED=82=A8=20=EB=B3=B5?= =?UTF-8?q?=EA=B5=AC,=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=8A=A4=ED=82=A8?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=82=AC=EC=A7=84=20=ED=81=B4=EB=A6=AD=20?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/shop/basic/list.10.skin.php | 4 +- skin/shop/basic/list.30.skin.php | 22 +++- skin/shop/basic/list.40.skin.php | 168 +++++++++++++++----------- skin/shop/basic/style.css | 2 +- theme/basic/skin/shop/basic/style.css | 2 +- 5 files changed, 119 insertions(+), 79 deletions(-) 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"; } - } - - //$list_top_pad = 20; - //$list_right_pad = 10; - //$list_bottom_pad = 20; - //$list_left_pad = $this->img_width + 10; - //$list_real_width = 740; - //$list_width = $list_real_width - $list_right_pad - $list_left_pad; - //$list_height = $this->img_height - $list_top_pad - $list_bottom_pad; + } echo "
    • \n"; + echo "
      \n"; if ($this->href) { - echo "\n"; + echo "\n"; } + + if ( !$is_soldout ){ // 품절 상태가 아니면 출력합니다. + echo "
      + \n"; + echo "
      \n"; + } - if ($this->view_it_icon) { - echo "
      ".item_icon($row)."
      \n"; + echo "
      \n"; + + if ($this->view_it_icon) { + // 품절 + if ($is_soldout) { + echo 'SOLD OUT'; + } } - + echo "
      \n"; + + echo "
      \n"; + + // 사용후기 평점표시 + if ($this->view_star && $star_score) { + echo "
      고객평점\"별점
      \n"; + } + if ($this->view_it_id) { echo "
      <".stripslashes($row['it_id']).">
      \n"; } if ($this->href) { - echo "
      \n"; + echo "\n"; } - - if ($this->view_it_basic && $row['it_basic']) { + + if ($this->view_it_basic && $row['it_basic']) { echo "
      ".stripslashes($row['it_basic'])."
      \n"; } - if ($this->view_it_cust_price || $this->view_it_price) { + echo "
      \n"; - echo "
      \n"; + if ($this->view_it_cust_price || $this->view_it_price) { - if ($this->view_it_cust_price && $row['it_cust_price']) { - echo "".display_price($row['it_cust_price'])."\n"; + echo "
      \n"; + if ($this->view_it_price) { + echo display_price(get_price($row), $row['it_tel_inq'])."\n"; + } + if ($this->view_it_cust_price && $row['it_cust_price']) { + echo "".display_price($row['it_cust_price'])."\n"; + } + echo "
      \n"; } - - if ($this->view_it_price) { - echo display_price(get_price($row), $row['it_tel_inq'])."\n"; + + // 위시리스트 + 공유 버튼 시작 + echo "
      \n"; + echo "\n"; + if ($this->view_sns) { + echo "\n"; } - - echo "
      \n"; - - } + + echo "
      "; + if ($this->view_sns) { + $sns_top = $this->img_height + 10; + $sns_url = $item_link_href; + $sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']); + echo "
      "; + echo "

      SNS 공유

      "; + echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/facebook.png'); + echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/twitter.png'); + echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/gplus.png'); + echo ""; + echo "
      \n"; + } + echo "
      "; + echo "
      \n"; + // 위시리스트 + 공유 버튼 끝 - echo "
      - \n"; + echo "
      "; + + if ($this->view_it_icon) { + echo "
      ".item_icon($row)."
      \n"; + } + echo "
      \n"; - // 위시리스트 + 공유 버튼 시작 - echo "
      \n"; - echo "\n"; - if ($this->view_sns) { - echo "\n"; - } - - echo "
      "; - if ($this->view_sns) { - $sns_top = $this->img_height + 10; - $sns_url = $item_link_href; - $sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']); - echo "
      "; - echo "

      SNS 공유

      "; - echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/facebook.png'); - echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/twitter.png'); - echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/gplus.png'); - echo ""; - echo "
      \n"; - } - echo "
      "; - echo "
      \n"; - // 위시리스트 + 공유 버튼 끝 - - // 관련상품 - echo "
      ".relation_item($row['it_id'], 70, 0, 5)."
      \n"; - echo "
    • \n"; } if ($i >= 1) 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}