Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
5.4 버전 쇼핑몰 스킨 품절 표시 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jun 11, 2020
1 parent 4bfc0d4 commit 7cc992f
Show file tree
Hide file tree
Showing 16 changed files with 119 additions and 11 deletions.
11 changes: 10 additions & 1 deletion mobile/skin/shop/basic/list.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

$item_link_href = shop_item_url($row['it_id']); // 상품링크
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; //사용자후기 평균별점
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -59,7 +60,15 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
}
echo "</div>\n";
}

// 사용후기 평점표시
Expand Down
12 changes: 11 additions & 1 deletion mobile/skin/shop/basic/list.best.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
$slide_btn = '<button type="button" class="bst_sl">'.$k.'번째 리스트</button>';

for ($i=0; $row=sql_fetch_array($result); $i++) {
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if($i == 0) {
echo '<script src="'.G5_JS_URL.'/swipe.js"></script>'.PHP_EOL;
echo '<section id="best_item">'.PHP_EOL;
Expand Down Expand Up @@ -40,7 +42,15 @@
}

if ($this->href) {
echo '</a></div>'.PHP_EOL;
echo '</a>';

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
}
echo '</div>'.PHP_EOL;
}

if ($this->view_it_id) {
Expand Down
9 changes: 8 additions & 1 deletion mobile/skin/shop/basic/main.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -53,7 +54,13 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
echo "</div>\n";
}

// 사용후기 평점표시
Expand Down
9 changes: 8 additions & 1 deletion mobile/skin/shop/basic/main.20.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -56,7 +57,13 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
echo "</div>\n";
}

// 사용후기 평점표시
Expand Down
11 changes: 10 additions & 1 deletion mobile/skin/shop/basic/main.30.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -56,7 +57,15 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
}
echo "</div>\n";
}

echo "<div class=\"sct_txt_wr\">\n";
Expand Down
3 changes: 3 additions & 0 deletions mobile/skin/shop/basic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
.sct_10 .sct_sns_bg {background:rgba(0,0,0,0.1);width:100%;height:100%}
.sct_10 .sct_sns_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff;margin:0;height:50px}

.li_wr .sct_img{position:relative}
.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);justify-content:center;display:flex;align-items:center;text-align:center;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px}

.sct_10 .sct_icon {margin:0 0 10px}
.li_more {text-align:center}

Expand Down
8 changes: 8 additions & 0 deletions skin/shop/basic/main.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막
Expand Down Expand Up @@ -48,6 +49,13 @@
echo "</a>\n";
}

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout h160"><span class="soldout_txt">SOLD OUT</span></span>';
}
}

echo "</div>\n";

if ($this->view_it_id) {
Expand Down
1 change: 1 addition & 0 deletions skin/shop/basic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
.shop_icon_5 {background:#ff5081}

.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:#000;background:rgba(0,0,0,0.5);text-align:center;line-height:215px;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px}
.shop_icon_soldout.h160{line-height:160px}
.shop_icon_coupon {background:#d45959}

/* 재생/정지/이전/다음 버튼 */
Expand Down
11 changes: 10 additions & 1 deletion theme/basic/mobile/skin/shop/basic/list.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

$item_link_href = shop_item_url($row['it_id']); // 상품링크
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; //사용자후기 평균별점
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -59,7 +60,15 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
}
echo "</div>\n";
}

// 사용후기 평점표시
Expand Down
12 changes: 11 additions & 1 deletion theme/basic/mobile/skin/shop/basic/list.best.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
$slide_btn = '<button type="button" class="bst_sl">'.$k.'번째 리스트</button>';

for ($i=0; $row=sql_fetch_array($result); $i++) {
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if($i == 0) {
echo '<script src="'.G5_JS_URL.'/swipe.js"></script>'.PHP_EOL;
echo '<section id="best_item">'.PHP_EOL;
Expand Down Expand Up @@ -40,7 +42,15 @@
}

if ($this->href) {
echo '</a></div>'.PHP_EOL;
echo '</a>';

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
}
echo '</div>'.PHP_EOL;
}

if ($this->view_it_id) {
Expand Down
9 changes: 8 additions & 1 deletion theme/basic/mobile/skin/shop/basic/main.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -53,7 +54,13 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
echo "</div>\n";
}

// 사용후기 평점표시
Expand Down
9 changes: 8 additions & 1 deletion theme/basic/mobile/skin/shop/basic/main.20.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -56,7 +57,13 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
echo "</div>\n";
}

// 사용후기 평점표시
Expand Down
11 changes: 10 additions & 1 deletion theme/basic/mobile/skin/shop/basic/main.30.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($i == 0) {
if ($this->css) {
Expand All @@ -56,7 +57,15 @@
}

if ($this->href) {
echo "</a></div>\n";
echo "</a>";

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
}
}
echo "</div>\n";
}

echo "<div class=\"sct_txt_wr\">\n";
Expand Down
5 changes: 4 additions & 1 deletion theme/basic/mobile/skin/shop/basic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
.sct_10 {margin:10px}
.sct_10 .sct_li {float:left;text-align:left;padding:5px;margin-bottom:10px}
.sct_10 .sct_li .li_wr {position:relative}
.sct_10 .sct_img {margin-bottom:10px;font-size:0}
.sct_10 .sct_img {position:relative;margin-bottom:10px;font-size:0}
.sct_10 .sct_img img {width:100%;height:auto}
.sct_10 .sct_clear {clear:both}
.sct_10 .sct_id {margin:5px 0;font-size:0.92em;color:#666}
Expand All @@ -108,6 +108,9 @@
.sct_10 .sct_sns_bg {background:rgba(0,0,0,0.1);width:100%;height:100%}
.sct_10 .sct_sns_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff;margin:0;height:50px}

.li_wr .sct_img{position:relative}
.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);justify-content:center;display:flex;align-items:center;text-align:center;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px}

.sct_10 .sct_icon {margin:0 0 10px}
.li_more {text-align:center}

Expand Down
8 changes: 8 additions & 0 deletions theme/basic/skin/shop/basic/main.10.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

$item_link_href = shop_item_url($row['it_id']);
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크

if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막
Expand Down Expand Up @@ -48,6 +49,13 @@
echo "</a>\n";
}

if ($this->view_it_icon) {
// 품절
if ($is_soldout) {
echo '<span class="shop_icon_soldout h160"><span class="soldout_txt">SOLD OUT</span></span>';
}
}

echo "</div>\n";

if ($this->view_it_id) {
Expand Down
1 change: 1 addition & 0 deletions theme/basic/skin/shop/basic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
.shop_icon_5 {background:#ff5081}

.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:#000;background:rgba(0,0,0,0.5);text-align:center;line-height:215px;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px}
.shop_icon_soldout.h160{line-height:160px}
.shop_icon_coupon {background:#d45959}

/* 재생/정지/이전/다음 버튼 */
Expand Down

0 comments on commit 7cc992f

Please sign in to comment.