분류 상품 개별 스킨 기능 추가
This commit is contained in:
@ -20,15 +20,30 @@ $g5['title'] = $ca['ca_name'].' 상품리스트';
|
||||
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
|
||||
//if ($skin) $ca[ca_skin] = $skin;
|
||||
// 스킨경로
|
||||
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||
|
||||
if($ca['ca_mobile_skin_dir']) {
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$skin_file = $skin_dir.'/'.$ca['ca_mobile_skin'];
|
||||
|
||||
if(!is_file($skin_file))
|
||||
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
} else {
|
||||
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="sct">
|
||||
|
||||
<?php
|
||||
$nav_ca_id = $ca_id;
|
||||
include G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
|
||||
$nav_skin = $skin_dir.'/navigation.skin.php';
|
||||
if(!is_file($nav_skin))
|
||||
$nav_skin = G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||
include $nav_skin;
|
||||
|
||||
// 상단 HTML
|
||||
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_mobile_head_html']).'</div>';
|
||||
@ -41,10 +56,14 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G5_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin'];
|
||||
if (file_exists($list_file)) {
|
||||
include G5_MSHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||
// 리스트 스킨
|
||||
$skin_file = $skin_dir.'/'.$ca['ca_mobile_skin'];
|
||||
|
||||
if (file_exists($skin_file)) {
|
||||
$sort_skin = $skin_dir.'/list.sort.skin.php';
|
||||
if(!is_file($sort_skin))
|
||||
$sort_skin = G5_SHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||
include $sort_skin;
|
||||
|
||||
// 총몇개
|
||||
$items = $ca['ca_mobile_list_mod'];
|
||||
@ -53,7 +72,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list($ca['ca_mobile_skin'], $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
||||
$list = new item_list($skin_file, $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
||||
$list->set_category($ca['ca_id'], 1);
|
||||
$list->set_category($ca['ca_id'], 2);
|
||||
$list->set_category($ca['ca_id'], 3);
|
||||
@ -77,14 +96,12 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div class="sct_nofile">'.$ca['ca_mobile_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
|
||||
echo '<div class="sct_nofile">'.str_replace(G5_PATH.'/', '', $skin_file).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$qstr1 .= 'ca_id='.$ca_id;
|
||||
if($skin)
|
||||
$qstr1 .= '&skin='.$skin;
|
||||
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
|
||||
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page=');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user