From 74429e382b624201167a830026bdebf7efb2fe89 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 7 Aug 2013 10:46:24 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/shop/basic/main.20.skin.php | 10 +++------- skin/shop/basic/main.40.skin.php | 10 +++------- skin/shop/basic/main.50.skin.php | 10 +++------- skin/shop/basic/style.css | 4 ---- 4 files changed, 9 insertions(+), 25 deletions(-) diff --git a/skin/shop/basic/main.20.skin.php b/skin/shop/basic/main.20.skin.php index 83dc2eb33..914ad2a9d 100644 --- a/skin/shop/basic/main.20.skin.php +++ b/skin/shop/basic/main.20.skin.php @@ -14,13 +14,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $itemtype = $this->type; for ($i=1; $row=sql_fetch_array($result); $i++) { - if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 - if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막 - else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째 - else $sct_last = ''; - } else { // 1줄 이미지 : 1개 - $sct_last = ' sct_clear'; - } + $sct_last = ''; + if($i>1 && $i%$this->list_mod == 0) + $sct_last = ' sct_last'; // 줄 마지막 if ($i == 1) { if ($this->css) { diff --git a/skin/shop/basic/main.40.skin.php b/skin/shop/basic/main.40.skin.php index 0cc4cb325..a3a66bde2 100644 --- a/skin/shop/basic/main.40.skin.php +++ b/skin/shop/basic/main.40.skin.php @@ -14,13 +14,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $itemtype = $this->type; for ($i=1; $row=sql_fetch_array($result); $i++) { - if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 - if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막 - else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째 - else $sct_last = ''; - } else { // 1줄 이미지 : 1개 - $sct_last = ' sct_clear'; - } + $sct_last = ''; + if($i>1 && $i%$this->list_mod == 0) + $sct_last = ' sct_last'; // 줄 마지막 if ($i == 1) { if ($this->css) { diff --git a/skin/shop/basic/main.50.skin.php b/skin/shop/basic/main.50.skin.php index 470f9810a..41bd3c934 100644 --- a/skin/shop/basic/main.50.skin.php +++ b/skin/shop/basic/main.50.skin.php @@ -13,13 +13,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $itemtype = $this->type; for ($i=1; $row=sql_fetch_array($result); $i++) { - if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 - if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막 - else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째 - else $sct_last = ''; - } else { // 1줄 이미지 : 1개 - $sct_last = ' sct_clear'; - } + $sct_last = ''; + if($i>1 && $i%$this->list_mod == 0) + $sct_last = ' sct_last'; // 줄 마지막 if ($i == 1) { if ($this->css) { diff --git a/skin/shop/basic/style.css b/skin/shop/basic/style.css index 9918347e5..2123333ed 100644 --- a/skin/shop/basic/style.css +++ b/skin/shop/basic/style.css @@ -83,7 +83,6 @@ .smt_20 .sct_li_first {top:0;display:block} .smt_20 .sct_div {float:left;margin:0 25px 15px 0;} .smt_20 .sct_last {margin:0 0 15px !important} -.smt_20 .sct_clear {clear:both} .smt_20 .sct_a {display:block;position:relative;text-decoration:none} .smt_20 .sct_a:focus, .smt_20 .sct_a:hover {text-decoration:none} .smt_20 .sct_img {display:block;margin:0 0 15px} @@ -99,7 +98,6 @@ .smt_30 .sct_li {position:absolute;top:0;left:765px;width:765px;display:none} .smt_30 .sct_li_first {left:0;display:block} .smt_30 .sct_div {float:left;margin:0 25px 15px 0;} -.smt_30 .sct_clear {clear:both} .smt_30 .sct_a {display:block;position:relative;text-decoration:none} .smt_30 .sct_a:focus, .smt_30 .sct_a:hover {text-decoration:none} .smt_30 .sct_img {display:block;margin:0 0 15px} @@ -116,7 +114,6 @@ .smt_40 .sct_li_first {display:block} .smt_40 .sct_div {float:left;margin:0 25px 15px 0;} .smt_40 .sct_last {margin:0 0 15px !important} -.smt_40 .sct_clear {clear:both} .smt_40 .sct_a {display:block;position:relative;text-decoration:none} .smt_40 .sct_a:focus, .smt_40 .sct_a:hover {text-decoration:none} .smt_40 .sct_img {display:block;margin:0 0 15px} @@ -133,7 +130,6 @@ .smt_50 .sct_li_first {display:block} .smt_50 .sct_div {float:left;position:relative;top:-306px;margin:0 25px 15px 0} .smt_50 .sct_last {margin:0 0 15px} -.smt_50 .sct_clear {clear:both} .smt_50 .sct_a {display:block;position:relative;text-decoration:none} .smt_50 .sct_a:focus, .smt_50 .sct_a:hover {text-decoration:none} .smt_50 .sct_img {display:block;margin:0 0 15px}