테마기능 추가
This commit is contained in:
149
theme/basic/shop/index.php
Normal file
149
theme/basic/shop/index.php
Normal file
@ -0,0 +1,149 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
define("_INDEX_", TRUE);
|
||||
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<!-- 메인이미지 시작 { -->
|
||||
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
|
||||
<!-- } 메인이미지 끝 -->
|
||||
|
||||
<?php if($default['de_type1_list_use']) { ?>
|
||||
<!-- 히트상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(1);
|
||||
$list->set_view('it_img', true);
|
||||
$list->set_view('it_id', true);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 히트상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type2_list_use']) { ?>
|
||||
<!-- 추천상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 추천상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(2);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 추천상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type3_list_use']) { ?>
|
||||
<!-- 최신상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(3);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 최신상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type4_list_use']) { ?>
|
||||
<!-- 인기상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 인기상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 인기상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type5_list_use']) { ?>
|
||||
<!-- 할인상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(5);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 할인상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<!-- 커뮤니티 최신글 시작 { -->
|
||||
<section id="sidx_lat">
|
||||
<h2>커뮤니티 최신글</h2>
|
||||
<?php echo latest('theme/shop_basic', 'notice', 5, 30); ?>
|
||||
<?php echo latest('theme/shop_basic', 'free', 5, 25); ?>
|
||||
<?php echo latest('theme/shop_basic', 'qa', 5, 20); ?>
|
||||
</section>
|
||||
<!-- } 커뮤니티 최신글 끝 -->
|
||||
|
||||
<?php echo poll('theme/shop_basic'); // 설문조사 ?>
|
||||
|
||||
<?php echo visit('theme/shop_basic'); // 접속자 ?>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user