테마기능 추가
This commit is contained in:
@ -16,5 +16,6 @@ if (isset($_REQUEST['sortodr'])) {
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
@ -228,7 +228,7 @@ $(function() {
|
||||
});
|
||||
|
||||
// 옵션수정 닫기
|
||||
$("#mod_option_close").live("click", function() {
|
||||
$(document).on("click", "#mod_option_close", function() {
|
||||
$("#mod_option_frm").remove();
|
||||
$(".mod_options").eq(close_btn_idx).focus();
|
||||
});
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
// 초기화면 파일 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||
if ($default['de_include_index'] && is_file(G5_SHOP_PATH.'/'.$default['de_include_index'])) {
|
||||
include_once(G5_SHOP_PATH.'/'.$default['de_include_index']);
|
||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_SHOP_PATH.'/index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
|
||||
@ -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');
|
||||
?>
|
||||
|
||||
@ -23,13 +23,16 @@ $g5['title'] = $ca['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');
|
||||
|
||||
// 스킨경로
|
||||
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||
|
||||
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)) {
|
||||
$skin_file = $skin_dir.'/'.$ca['ca_skin'];
|
||||
@ -148,7 +151,7 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
|
||||
if ($ca['ca_include_tail'])
|
||||
@include_once($ca['ca_include_tail']);
|
||||
else
|
||||
include_once('./_tail.php');
|
||||
include_once(G5_SHOP_PATH.'/_tail.php');
|
||||
|
||||
echo "\n<!-- {$ca['ca_skin']} -->\n";
|
||||
?>
|
||||
|
||||
@ -719,7 +719,7 @@ $(function() {
|
||||
);
|
||||
});
|
||||
|
||||
$(".cp_apply").live("click", function() {
|
||||
$(document).on("click", ".cp_apply", function() {
|
||||
var $el = $(this).closest("tr");
|
||||
var cp_id = $el.find("input[name='f_cp_id[]']").val();
|
||||
var price = $el.find("input[name='f_cp_prc[]']").val();
|
||||
@ -778,12 +778,12 @@ $(function() {
|
||||
$cp_btn_el.after("<button type=\"button\" class=\"cp_cancel btn_frmline\">취소</button>");
|
||||
});
|
||||
|
||||
$("#cp_close").live("click", function() {
|
||||
$(document).on("click", "#cp_close", function() {
|
||||
$("#cp_frm").remove();
|
||||
$cp_btn_el.focus();
|
||||
});
|
||||
|
||||
$(".cp_cancel").live("click", function() {
|
||||
$(document).on("click", ".cp_cancel", function() {
|
||||
coupon_cancel($(this).closest("tr"));
|
||||
calculate_total_price();
|
||||
$("#cp_frm").remove();
|
||||
@ -808,7 +808,7 @@ $(function() {
|
||||
);
|
||||
});
|
||||
|
||||
$(".od_cp_apply").live("click", function() {
|
||||
$(document).on("click", ".od_cp_apply", function() {
|
||||
var $el = $(this).closest("tr");
|
||||
var cp_id = $el.find("input[name='o_cp_id[]']").val();
|
||||
var price = parseInt($el.find("input[name='o_cp_prc[]']").val());
|
||||
@ -845,12 +845,12 @@ $(function() {
|
||||
$("#od_coupon_btn").after("<button type=\"button\" id=\"od_coupon_cancel\" class=\"btn_frmline\">쿠폰취소</button>");
|
||||
});
|
||||
|
||||
$("#od_coupon_close").live("click", function() {
|
||||
$(document).on("click", "#od_coupon_close", function() {
|
||||
$("#od_coupon_frm").remove();
|
||||
$("#od_coupon_btn").focus();
|
||||
});
|
||||
|
||||
$("#od_coupon_cancel").live("click", function() {
|
||||
$(document).on("click", "#od_coupon_cancel", function() {
|
||||
var org_price = $("input[name=org_od_price]").val();
|
||||
var item_coupon = parseInt($("input[name=item_coupon]").val());
|
||||
$("input[name=od_price]").val(org_price - item_coupon);
|
||||
@ -881,7 +881,7 @@ $(function() {
|
||||
);
|
||||
});
|
||||
|
||||
$(".sc_cp_apply").live("click", function() {
|
||||
$(document).on("click", ".sc_cp_apply", function() {
|
||||
var $el = $(this).closest("tr");
|
||||
var cp_id = $el.find("input[name='s_cp_id[]']").val();
|
||||
var price = parseInt($el.find("input[name='s_cp_prc[]']").val());
|
||||
@ -904,12 +904,12 @@ $(function() {
|
||||
$("#sc_coupon_btn").after("<button type=\"button\" id=\"sc_coupon_cancel\" class=\"btn_frmline\">쿠폰취소</button>");
|
||||
});
|
||||
|
||||
$("#sc_coupon_close").live("click", function() {
|
||||
$(document).on("click", "#sc_coupon_close", function() {
|
||||
$("#sc_coupon_frm").remove();
|
||||
$("#sc_coupon_btn").focus();
|
||||
});
|
||||
|
||||
$("#sc_coupon_cancel").live("click", function() {
|
||||
$(document).on("click", "#sc_coupon_cancel", function() {
|
||||
$("input[name=od_send_coupon]").val(0);
|
||||
$("#sc_cp_price").text(0);
|
||||
calculate_order_price();
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 상단 파일 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||
if ($default['de_include_head'] && is_file(G5_SHOP_PATH.'/'.$default['de_include_head'])) {
|
||||
include_once(G5_SHOP_PATH.'/'.$default['de_include_head']);
|
||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
@ -36,7 +35,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
</aside>
|
||||
|
||||
<div id="hd_wrapper">
|
||||
<div id="logo"><a href="<?php echo $default['de_root_index_use'] ? G5_URL : G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a></div>
|
||||
<div id="logo"><a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a></div>
|
||||
|
||||
<div id="hd_sch">
|
||||
<h3>쇼핑몰 검색</h3>
|
||||
@ -79,24 +78,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
|
||||
<?php
|
||||
if(!$default['de_root_index_use']) {
|
||||
$com_href = G5_URL;
|
||||
$com_name = '커뮤니티';
|
||||
|
||||
if($default['de_shop_layout_use']) {
|
||||
if(!preg_match('#'.G5_SHOP_DIR.'/#', $_SERVER['SCRIPT_NAME'])) {
|
||||
$com_href = G5_SHOP_URL;
|
||||
$com_name = '쇼핑몰';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li><a href="<?php echo $com_href; ?>/"><?php echo $com_name; ?></a></li>
|
||||
<?php
|
||||
unset($com_href);
|
||||
unset($com_name);
|
||||
}
|
||||
?>
|
||||
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 하단 파일 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||
if ($default['de_include_tail'] && is_file(G5_SHOP_PATH.'/'.$default['de_include_tail'])) {
|
||||
include_once(G5_SHOP_PATH.'/'.$default['de_include_tail']);
|
||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$admin = get_admin("super");
|
||||
@ -21,7 +20,7 @@ $admin = get_admin("super");
|
||||
|
||||
<div id="ft">
|
||||
<div>
|
||||
<a href="<?php echo $default['de_root_index_use'] ? G5_URL : G5_SHOP_URL; ?>/" id="ft_logo"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img2" alt="처음으로"></a>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/" id="ft_logo"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img2" alt="처음으로"></a>
|
||||
<ul>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=company">회사소개</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=provision">서비스이용약관</a></li>
|
||||
|
||||
Reference in New Issue
Block a user