5.4 버전 쇼핑몰 스킨 품절 표시 코드 수정
This commit is contained in:
@ -15,6 +15,7 @@ foreach((array) $list as $row){
|
||||
|
||||
$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'; // 줄 마지막
|
||||
@ -48,6 +49,13 @@ foreach((array) $list as $row){
|
||||
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) {
|
||||
|
||||
@ -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}
|
||||
|
||||
/* 재생/정지/이전/다음 버튼 */
|
||||
|
||||
Reference in New Issue
Block a user