테마 장바구니 적용할 수 있도록 수정
This commit is contained in:
@ -1,6 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
// 테마에 cart.php 있으면 include
|
||||||
|
if(defined('G5_THEME_MSHOP_PATH')) {
|
||||||
|
$theme_cart_file = G5_THEME_MSHOP_PATH.'/cart.php';
|
||||||
|
if(is_file($theme_cart_file)) {
|
||||||
|
include_once($theme_cart_file);
|
||||||
|
return;
|
||||||
|
unset($theme_cart_file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$g5['title'] = '장바구니';
|
$g5['title'] = '장바구니';
|
||||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,16 @@ if (G5_IS_MOBILE) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 테마에 cart.php 있으면 include
|
||||||
|
if(defined('G5_THEME_SHOP_PATH')) {
|
||||||
|
$theme_cart_file = G5_THEME_SHOP_PATH.'/cart.php';
|
||||||
|
if(is_file($theme_cart_file)) {
|
||||||
|
include_once($theme_cart_file);
|
||||||
|
return;
|
||||||
|
unset($theme_cart_file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$g5['title'] = '장바구니';
|
$g5['title'] = '장바구니';
|
||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user