class item_list 모바일 적용
This commit is contained in:
@ -13,13 +13,11 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
// 최신상품
|
||||
$type = 3;
|
||||
if ($default['de_mobile_type'.$type.'_list_use'])
|
||||
{
|
||||
mobile_display_type($type, $default["de_mobile_type{$type}_list_skin"], $default["de_mobile_type{$type}_list_row"], $default["de_mobile_type{$type}_img_width"], $default["de_mobile_type{$type}_img_height"]);
|
||||
}
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(1);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
@ -28,13 +26,11 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
// 히트상품
|
||||
$type = 1;
|
||||
if ($default['de_mobile_type'.$type.'_list_use'])
|
||||
{
|
||||
mobile_display_type($type, $default["de_mobile_type{$type}_list_skin"], $default["de_mobile_type{$type}_list_row"], $default["de_mobile_type{$type}_img_width"], $default["de_mobile_type{$type}_img_height"]);
|
||||
}
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(2);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
@ -43,13 +39,11 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 추천상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
// 추천상품
|
||||
$type = 2;
|
||||
if ($default['de_mobile_type'.$type.'_list_use'])
|
||||
{
|
||||
mobile_display_type($type, $default["de_mobile_type{$type}_list_skin"], $default["de_mobile_type{$type}_list_row"], $default["de_mobile_type{$type}_img_width"], $default["de_mobile_type{$type}_img_height"]);
|
||||
}
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(3);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
@ -58,13 +52,11 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 인기상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
// 인기상품
|
||||
$type = 4;
|
||||
if ($default['de_mobile_type'.$type.'_list_use'])
|
||||
{
|
||||
mobile_display_type($type, $default["de_mobile_type{$type}_list_skin"], $default["de_mobile_type{$type}_list_row"], $default["de_mobile_type{$type}_img_width"], $default["de_mobile_type{$type}_img_height"]);
|
||||
}
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(4);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
@ -73,13 +65,11 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
// 할인상품
|
||||
$type = 5;
|
||||
if ($default['de_mobile_type'.$type.'_list_use'])
|
||||
{
|
||||
mobile_display_type($type, $default["de_mobile_type{$type}_list_skin"], $default["de_mobile_type{$type}_list_row"], $default["de_mobile_type{$type}_img_width"], $default["de_mobile_type{$type}_img_height"]);
|
||||
}
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(5);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
|
||||
|
||||
@ -252,10 +252,10 @@ else
|
||||
$sns_url = G4_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
?>
|
||||
고객선호도 <span>별<?php echo $score?>개</span>
|
||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $score?>.png" alt="" class="sit_star">
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb2.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt2.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo2.png'); ?>
|
||||
<img src="<?php echo G4_SHOP_URL; ?>/img/s_star<?php echo $score?>.png" alt="" class="sit_star">
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb2.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt2.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo2.png'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<table class="sit_ov_tbl">
|
||||
@ -609,6 +609,7 @@ else
|
||||
|
||||
<div class="sct_wrap">
|
||||
<?php
|
||||
/*
|
||||
$img_width = 230;
|
||||
$img_height = 230;
|
||||
|
||||
@ -619,10 +620,21 @@ else
|
||||
and b.it_use='1' ";
|
||||
$result = sql_query($sql);
|
||||
$num = @mysql_num_rows($result);
|
||||
*/
|
||||
|
||||
$sql = " select b.* from {$g4['shop_item_relation_table']} a left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
|
||||
$list = new item_list("list.10.skin.php", 3, 1, 150, 0);
|
||||
$list->set_mobile(true);
|
||||
$list->set_query($sql);
|
||||
echo $list->run();
|
||||
|
||||
/*
|
||||
if ($num)
|
||||
include G4_MSHOP_PATH.'/maintype10.inc.php';
|
||||
else
|
||||
echo '<p class="sit_empty">이 상품과 관련된 상품이 없습니다.</p>';
|
||||
*/
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user