| 인기상품출력 |
diff --git a/css/default_shop.css b/css/default_shop.css
index ca747a2e6..0927ff6f0 100644
--- a/css/default_shop.css
+++ b/css/default_shop.css
@@ -341,6 +341,34 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_11 .sct_icon img {display:block}
.sct_11 .sct_sns {position:absolute;bottom:10px;right:10px}
+/* 상품 목록 스킨 12 */
+.sct_12 .sct_li {float:left;margin:0 16px 16px 0;width:362px}
+.sct_12 .sct_last {margin:0 !important}
+.sct_12 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;width:110px;height:190px;border:1px solid #e9e9e9;background:#f7f7f7;text-decoration:none}
+.sct_12 .sct_img {position:absolute;top:0;left:0}
+.sct_12 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
+.sct_12 p {margin:0 0 15px;padding:0;line-height:1.5em}
+.sct_12 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
+.sct_12 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
+.sct_12 .sct_icon img {display:block}
+.sct_12 .sct_sns {position:absolute;bottom:20px;right:10px}
+
+/* 상품 목록 스킨 13 */
+.sct_13 .sct_li {float:left;margin:0 0 16px 0;width:100%}
+.sct_13 .sct_last {}
+.sct_13 .sct_clear {clear:both}
+.sct_13 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;height:190px;border:1px solid #e9e9e9;background:#f7f7f7;text-decoration:none}
+.sct_13 .sct_img {position:absolute;top:0;left:0}
+.sct_13 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
+.sct_13 p {margin:0 0 15px;padding:0;line-height:1.5em}
+.sct_13 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
+.sct_13 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
+.sct_13 .sct_icon img {display:block}
+.sct_13 .sct_rel {position:absolute;bottom:20px;right:20px}
+.sct_13 .sct_rel_ul {margin:0;padding:0;list-style:none}
+.sct_13 .sct_rel_li {float:left;margin:0 0 0 10px}
+.sct_13 .sct_sns {position:absolute;top:20px;right:20px}
+
/* 상품 상세보기 */
.sit_icon {display:inline-block;margin:0 0 0 4px}
.sit_icon img {margin:0 4px 0 0}
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index a2695b610..9ffa391f9 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -663,7 +663,7 @@ function get_new_od_id()
return $od_id;
}
-// 관련상품출력
+// 상품 목록 : 관련 상품 출력
function display_relation_item($it_id, $width, $height, $rows=3)
{
global $g4;
@@ -681,7 +681,7 @@ function display_relation_item($it_id, $width, $height, $rows=3)
for($i=0; $row=sql_fetch_array($result); $i++) {
if($i == 0)
- $str .= '';
+ $str .= '';
$full_img = G4_DATA_PATH.'/item/'.$row['it_id'].'_s';
$it_name = get_text($row['it_name']); // 상품명
@@ -694,12 +694,12 @@ function display_relation_item($it_id, $width, $height, $rows=3)
if(is_file($full_img)) {
$img_url = G4_DATA_URL.'/item/'.$row['it_id'].'_s';
- $img = ' ';
+ $img = ' ';
} else {
- $img = ' ';
+ $img = ' ';
}
- $str .= '- '.$img.'
';
+ $str .= '- '.$img.'
';
}
if($i > 0)
diff --git a/shop/maintype10.inc.php b/shop/maintype10.inc.php
index e0186e397..30206b257 100644
--- a/shop/maintype10.inc.php
+++ b/shop/maintype10.inc.php
@@ -1,24 +1,25 @@
-';
+ 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';
+ }
+ if ($i == 1) echo '';
+if ($i > 1) echo ' ';
?>
diff --git a/shop/maintype11.inc.php b/shop/maintype11.inc.php
index e34c226a0..7a75430d6 100644
--- a/shop/maintype11.inc.php
+++ b/shop/maintype11.inc.php
@@ -1,24 +1,25 @@
-';
+ 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';
+ }
+ if ($i == 1) echo '';
+if ($i > 1) echo ' ';
?>
diff --git a/shop/maintype12.inc.php b/shop/maintype12.inc.php
new file mode 100644
index 000000000..03e3a8658
--- /dev/null
+++ b/shop/maintype12.inc.php
@@ -0,0 +1,34 @@
+= 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';
+ }
+ if ($i == 1) echo '';
+?>
diff --git a/shop/maintype13.inc.php b/shop/maintype13.inc.php
new file mode 100644
index 000000000..50c02cbb9
--- /dev/null
+++ b/shop/maintype13.inc.php
@@ -0,0 +1,37 @@
+= 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';
+ }
+ if ($i == 1) echo '';
+?>
|