쇼핑몰: 목록에서 특정 요소 표시하지 않을 경우 스타일 대응 (ex. SNS 미사용)
This commit is contained in:
@ -37,6 +37,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -73,10 +77,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -37,6 +37,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -73,10 +77,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
|
||||
@ -46,6 +46,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -82,10 +86,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
|
||||
@ -48,6 +48,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -84,10 +88,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
|
||||
@ -37,6 +37,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -73,10 +77,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -51,6 +51,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -87,10 +91,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -47,6 +47,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -83,10 +87,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -51,6 +51,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -87,10 +91,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -50,6 +50,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -86,10 +90,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -37,6 +37,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<span class=\"sct_id\"><".stripslashes($row['it_id'])."></span>\n";
|
||||
}
|
||||
@ -73,10 +77,6 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
@ -28,14 +28,13 @@
|
||||
.sct_10 .sct_clear {clear:both}
|
||||
.sct_10 .sct_a {display:inline-block;position:relative;margin:0 0 5px;text-decoration:none}
|
||||
.sct_10 .sct_a:focus, .sct_10 .sct_a:hover {text-decoration:none}
|
||||
.sct_10 .sct_img {margin:0 0 45px}
|
||||
.sct_10 .sct_img {margin:0 0 10px}
|
||||
.sct_10 .sct_icon {margin:0 0 10px}
|
||||
.sct_10 .sct_id {display:block;margin:0 0 5px}
|
||||
.sct_10 .sct_basic {margin:0 0 10px}
|
||||
.sct_10 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.sct_10 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.sct_10 .sct_icon {}
|
||||
.sct_10 .sct_icon img {}
|
||||
.sct_10 .sct_sns {position:absolute;left:0;width:100%;text-align:center}
|
||||
.sct_10 .sct_sns {}
|
||||
|
||||
/* 상품 목록 스킨 20 */
|
||||
.sct_20 .sct_li {position:relative;float:left;margin:0 25px 15px 0}
|
||||
@ -44,13 +43,13 @@
|
||||
.sct_20 .sct_a {display:block;position:relative;text-decoration:none}
|
||||
.sct_20 .sct_a:focus, .sct_20 .sct_a:hover {text-decoration:none}
|
||||
.sct_20 .sct_img {}
|
||||
.sct_20 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important}
|
||||
.sct_20 .sct_icon img {display:block;margin:0 0 3px}
|
||||
.sct_20 .sct_id {display:block;padding:5px 10px 0;background:#f2f5f9}
|
||||
.sct_20 .sct_txt {padding:10px;background:#f2f5f9}
|
||||
.sct_20 .sct_basic {padding:0 10px 5px;background:#f2f5f9;line-height:1.5em}
|
||||
.sct_20 .sct_cost {display:block;padding:0 10px 10px;background:#f2f5f9;font-weight:bold}
|
||||
.sct_20 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.sct_20 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important}
|
||||
.sct_20 .sct_icon img {display:block}
|
||||
.sct_20 .sct_sns {position:absolute;bottom:10px;right:10px}
|
||||
|
||||
/* 상품 목록 스킨 30 */
|
||||
@ -60,12 +59,12 @@
|
||||
.sct_30 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('img/icon_arw_toleft.gif') no-repeat}
|
||||
.sct_30 .sct_a {text-decoration:none}
|
||||
.sct_30 .sct_img img {position:absolute;top:0;left:0}
|
||||
.sct_30 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||
.sct_30 .sct_icon img {display:block;margin:0 0 3px}
|
||||
.sct_30 .sct_txt {display:inline-block;margin:0 0 20px}
|
||||
.sct_30 .sct_basic {margin:0 0 15px;padding:0;line-height:1.5em}
|
||||
.sct_30 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.sct_30 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.sct_30 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||
.sct_30 .sct_icon img {display:block;margin:0 0 1px}
|
||||
.sct_30 .sct_sns {position:absolute;bottom:20px;right:10px}
|
||||
|
||||
/* 상품 목록 스킨 40 */
|
||||
@ -73,12 +72,12 @@
|
||||
.sct_40 .sct_a {text-decoration:none}
|
||||
.sct_40 .sct_a:focus, .sct_40 .sct_a:hover {text-decoration:none}
|
||||
.sct_40 .sct_img {position:absolute;top:0;left:0}
|
||||
.sct_40 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||
.sct_40 .sct_icon img {display:block;margin:0 0 4px}
|
||||
.sct_40 .sct_txt {display:inline-block;margin:0 0 20px}
|
||||
.sct_40 .sct_basic {margin:0 0 15px;padding:0;line-height:1.5em}
|
||||
.sct_40 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.sct_40 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.sct_40 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||
.sct_40 .sct_icon img {display:block;margin:0 0 1px}
|
||||
.sct_40 .sct_rel {position:absolute;bottom:20px;right:20px}
|
||||
.sct_40 .sct_rel_ul {margin:0;padding:0;list-style:none}
|
||||
.sct_40 .sct_rel_li {float:left;margin:0 0 0 10px}
|
||||
@ -92,14 +91,13 @@
|
||||
.smt_20 .sct_last {margin:0 0 15px !important}
|
||||
.smt_20 .sct_a {display:inline-block;position:relative;margin:0 0 5px;text-decoration:none}
|
||||
.smt_20 .sct_a:focus, .smt_20 .sct_a:hover {text-decoration:none}
|
||||
.smt_20 .sct_img {margin:0 0 45px}
|
||||
.smt_20 .sct_img {margin:0 0 10px}
|
||||
.smt_20 .sct_icon {margin:0 0 10px}
|
||||
.smt_20 .sct_id {display:block;margin:0 0 5px}
|
||||
.smt_20 .sct_basic {margin:0 0 10px}
|
||||
.smt_20 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_20 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.smt_20 .sct_icon {}
|
||||
.smt_20 .sct_icon img {}
|
||||
.smt_20 .sct_sns {position:absolute;left:0;width:100%;text-align:center}
|
||||
.smt_20 .sct_sns {}
|
||||
|
||||
/* 메인 상품 목록 스킨 30 */
|
||||
.smt_30 {position:relative;overflow-x:hidden}
|
||||
@ -109,14 +107,13 @@
|
||||
.smt_30 .sct_li {position:relative;float:left;margin-right:25px}
|
||||
.smt_30 .sct_a {display:inline-block;position:relative;margin:0 0 5px;text-decoration:none}
|
||||
.smt_30 .sct_a:focus, .smt_30 .sct_a:hover {text-decoration:none}
|
||||
.smt_30 .sct_img {margin:0 0 45px}
|
||||
.smt_30 .sct_img {margin:0 0 10px}
|
||||
.smt_30 .sct_icon {margin:0 0 10px}
|
||||
.smt_30 .sct_id {display:block;margin:0 0 5px}
|
||||
.smt_30 .sct_basic {margin:0 0 10px}
|
||||
.smt_30 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_30 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.smt_30 .sct_icon {}
|
||||
.smt_30 .sct_icon img {}
|
||||
.smt_30 .sct_sns {position:absolute;left:0;width:100%;text-align:center}
|
||||
.smt_30 .sct_sns {}
|
||||
|
||||
/* 메인 상품 목록 스킨 40 */
|
||||
.smt_40 {clear:both;position:relative}
|
||||
@ -126,14 +123,13 @@
|
||||
.smt_40 .sct_last {margin:0 0 15px !important}
|
||||
.smt_40 .sct_a {display:inline-block;position:relative;margin:0 0 5px;text-decoration:none}
|
||||
.smt_40 .sct_a:focus, .smt_40 .sct_a:hover {text-decoration:none}
|
||||
.smt_40 .sct_img {margin:0 0 45px}
|
||||
.smt_40 .sct_img {margin:0 0 10px}
|
||||
.smt_40 .sct_icon {margin:0 0 10px}
|
||||
.smt_40 .sct_id {display:block;margin:0 0 5px}
|
||||
.smt_40 .sct_basic {margin:0 0 10px}
|
||||
.smt_40 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_40 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.smt_40 .sct_icon {}
|
||||
.smt_40 .sct_icon img {}
|
||||
.smt_40 .sct_sns {position:absolute;left:0;width:100%;text-align:center}
|
||||
.smt_40 .sct_sns {}
|
||||
|
||||
/* 메인 상품 목록 스킨 50 */
|
||||
.smt_50 {position:relative}
|
||||
@ -143,13 +139,12 @@
|
||||
.smt_50 .sct_last {margin:0 0 15px}
|
||||
.smt_50 .sct_a {display:inline-block;position:relative;margin:0 0 5px;text-decoration:none}
|
||||
.smt_50 .sct_a:focus, .smt_50 .sct_a:hover {text-decoration:none}
|
||||
.smt_50 .sct_img {margin:0 0 45px}
|
||||
.smt_50 .sct_img {margin:0 0 10px}
|
||||
.smt_50 .sct_icon {margin:0 0 10px}
|
||||
.smt_50 .sct_id {display:block;margin:0 0 5px}
|
||||
.smt_50 .sct_basic {margin:0 0 10px}
|
||||
.smt_50 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_50 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.smt_50 .sct_icon {}
|
||||
.smt_50 .sct_icon img {}
|
||||
.smt_50 .sct_sns {position:absolute;left:0;width:100%;text-align:center}
|
||||
.smt_50 .sct_sns {}
|
||||
|
||||
/* ##### main(nn).skin.php, list.(nn).skin..php 공통 적용 끝 ##### */
|
||||
Reference in New Issue
Block a user