테마기능 추가
This commit is contained in:
@ -1,8 +1,5 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])
|
||||
include_once(G5_SHOP_PATH.'/_head.php');
|
||||
else
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
?>
|
||||
@ -1,8 +1,5 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(isset($default['de_shop_layout_use']) && $default['de_shop_layout_use'])
|
||||
include_once(G5_SHOP_PATH.'/_tail.php');
|
||||
else
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
@ -49,8 +49,8 @@ $str = preg_replace($src, $dst, $str);
|
||||
if(trim($co['co_mobile_skin']) == '')
|
||||
$co['co_mobile_skin'] = 'basic';
|
||||
|
||||
$content_skin_path = G5_MOBILE_PATH .'/'.G5_SKIN_DIR.'/content/'.$co['co_mobile_skin'];
|
||||
$content_skin_url = G5_MOBILE_URL .'/'.G5_SKIN_DIR.'/content/'.$co['co_mobile_skin'];
|
||||
$content_skin_path = get_skin_path('content', $co['co_mobile_skin']);
|
||||
$content_skin_url = get_skin_url('content', $co['co_mobile_skin']);
|
||||
$skin_file = $content_skin_path.'/content.skin.php';
|
||||
|
||||
if(is_file($skin_file)) {
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_PATH.'/head.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
|
||||
@ -1,7 +1,12 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_MOBILE_PATH.'/_head.php');
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_PATH.'/index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_MOBILE_PATH.'/head.php');
|
||||
?>
|
||||
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
@ -26,5 +31,5 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_MOBILE_PATH.'/_tail.php');
|
||||
include_once(G5_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
@ -119,7 +119,7 @@ $cart_count = mysql_num_rows($result);
|
||||
<span class="total_price total_span"><span>소계 </span><strong><?php echo number_format($sell_price); ?></strong></span>
|
||||
<span class="total_point total_span"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
|
||||
</div>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<?php
|
||||
@ -204,7 +204,7 @@ $(function() {
|
||||
});
|
||||
|
||||
// 옵션수정 닫기
|
||||
$("#mod_option_close").live("click", function() {
|
||||
$(document).on("click", "#mod_option_close", function() {
|
||||
$("#mod_option_frm").remove();
|
||||
$("#win_mask, .window").hide();
|
||||
$(".mod_options").eq(close_btn_idx).focus();
|
||||
|
||||
@ -38,13 +38,13 @@ if (file_exists($list_file))
|
||||
include G5_MSHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $ev['ev_mobile_list_mod'];
|
||||
$items = $ev['ev_mobile_list_mod'] * $ev['ev_mobile_list_row'];
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list(G5_MSHOP_SKIN_PATH.'/'.$ev['ev_mobile_skin'], $ev['ev_mobile_list_mod'], 1, $ev['ev_mobile_img_width'], $ev['ev_mobile_img_height']);
|
||||
$list = new item_list(G5_MSHOP_SKIN_PATH.'/'.$ev['ev_mobile_skin'], $ev['ev_mobile_list_mod'], $ev['ev_mobile_list_row'], $ev['ev_mobile_img_width'], $ev['ev_mobile_img_height']);
|
||||
$list->set_event($ev['ev_id']);
|
||||
$list->set_is_page(true);
|
||||
$list->set_mobile(true);
|
||||
|
||||
@ -151,7 +151,10 @@ $skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
$ca_dir_check = true;
|
||||
|
||||
if($it['it_mobile_skin']) {
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_mobile_skin'];
|
||||
if(preg_match('#^theme/(.+)$#', $it['it_mobile_skin'], $match))
|
||||
$skin_dir = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_skin'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||
@ -163,7 +166,10 @@ if($it['it_mobile_skin']) {
|
||||
|
||||
if($ca_dir_check) {
|
||||
if($ca['ca_mobile_skin_dir']) {
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
if(preg_match('#^theme/(.+)$#', $ca['ca_mobile_skin_dir'], $match))
|
||||
$skin_dir = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||
|
||||
@ -24,7 +24,10 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
|
||||
if($ca['ca_mobile_skin_dir']) {
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
if(preg_match('#^theme/(.+)$#', $ca['ca_mobile_skin_dir'], $match))
|
||||
$skin_dir = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$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'];
|
||||
@ -56,8 +59,8 @@ var g5_shop_url = "<?php echo G5_SHOP_URL; ?>";
|
||||
include $cate_skin;
|
||||
|
||||
// 분류 Best Item
|
||||
$list_mod = 3;
|
||||
$list_row = 3;
|
||||
$list_mod = (isset($theme_config['ca_mobile_list_best_mod']) && $theme_config['ca_mobile_list_best_mod']) ? (int)$theme_config['ca_mobile_list_best_mod'] : $ca['ca_mobile_list_mod'];
|
||||
$list_row = (isset($theme_config['ca_mobile_list_best_row']) && $theme_config['ca_mobile_list_best_row']) ? (int)$theme_config['ca_mobile_list_best_row'] : $ca['ca_mobile_list_row'];
|
||||
$limit = $list_mod * $list_row;
|
||||
$best_skin = G5_MSHOP_SKIN_PATH.'/list.best.10.skin.php';
|
||||
|
||||
|
||||
@ -696,7 +696,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();
|
||||
@ -755,12 +755,12 @@ $(function() {
|
||||
$cp_btn_el.after("<button type=\"button\" class=\"cp_cancel\">쿠폰취소</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("li"));
|
||||
calculate_total_price();
|
||||
$("#cp_frm").remove();
|
||||
@ -785,7 +785,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());
|
||||
@ -822,12 +822,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);
|
||||
@ -858,7 +858,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());
|
||||
@ -881,12 +881,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,6 +1,11 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
include_once(G5_LIB_PATH.'/visit.lib.php');
|
||||
@ -35,7 +40,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
|
||||
|
||||
</ul>
|
||||
<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/mobile_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/mobile_logo_img" alt="<?php echo $config['cf_title']; ?> 메인"></a></div>
|
||||
|
||||
<?php include_once(G5_MSHOP_PATH.'/category.php'); // 분류 ?>
|
||||
|
||||
@ -79,28 +84,8 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
<ul id="hd_mb">
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</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>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<?php if($default['de_root_index_use']) { ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">세일상품</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_MSHOP_PATH.'/shop.tail.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$admin = get_admin("super");
|
||||
|
||||
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
|
||||
|
||||
@ -179,7 +179,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
|
||||
<?php
|
||||
// 코멘트 입출력
|
||||
include_once('./view_comment.php');
|
||||
include_once(G5_BBS_PATH.'/view_comment.php');
|
||||
?>
|
||||
|
||||
<div id="bo_v_bot">
|
||||
|
||||
@ -179,7 +179,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
|
||||
<?php
|
||||
// 코멘트 입출력
|
||||
include_once('./view_comment.php');
|
||||
include_once(G5_BBS_PATH.'/view_comment.php');
|
||||
?>
|
||||
|
||||
<div id="bo_v_bot">
|
||||
|
||||
@ -21,7 +21,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<ul id="memo_list_ul">
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li>
|
||||
<a href="<?php echo $list[$i]['view_href'] ?>" class="memo_link"><?php echo $list[$i]['send_datetime'] ?> 에 받은 쪽지</a>
|
||||
<a href="<?php echo $list[$i]['view_href'] ?>" class="memo_link"><?php echo $list[$i]['send_datetime'] ?> 에 <?php echo ($kind == "recv") ? "받은" : "보낸"; ?> 쪽지</a>
|
||||
<span class="memo_read"><?php echo $list[$i]['read_datetime'] ?></span>
|
||||
<span class="memo_send"><?php echo $list[$i]['name'] ?></span>
|
||||
<a href="<?php echo $list[$i]['del_href'] ?>" onclick="del(this.href); return false;" class="memo_del">삭제</a>
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(defined('G5_THEME_PATH')) {
|
||||
require_once(G5_THEME_PATH.'/tail.php');
|
||||
return;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user