테마기능 추가
This commit is contained in:
@ -62,7 +62,10 @@ $skin_dir = G5_SHOP_SKIN_PATH;
|
||||
$ca_dir_check = true;
|
||||
|
||||
if($it['it_skin']) {
|
||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_skin'];
|
||||
if(preg_match('#^theme/(.+)$#', $it['it_skin'], $match))
|
||||
$skin_dir = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_skin'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||
@ -74,7 +77,10 @@ if($it['it_skin']) {
|
||||
|
||||
if($ca_dir_check) {
|
||||
if($ca['ca_skin_dir']) {
|
||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||
if(preg_match('#^theme/(.+)$#', $ca['ca_skin_dir'], $match))
|
||||
$skin_dir = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||
@ -95,7 +101,7 @@ $g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
||||
if ($ca['ca_include_head'])
|
||||
@include_once($ca['ca_include_head']);
|
||||
else
|
||||
include_once('./_head.php');
|
||||
include_once(G5_SHOP_PATH.'/_head.php');
|
||||
|
||||
// 분류 위치
|
||||
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
||||
@ -259,5 +265,5 @@ echo conv_content($it['it_tail_html'], 1);
|
||||
if ($ca['ca_include_tail'])
|
||||
@include_once($ca['ca_include_tail']);
|
||||
else
|
||||
include_once('./_tail.php');
|
||||
include_once(G5_SHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user