Merge branch 'master' of github.com:gnuboard/gnuboard5

This commit is contained in:
thisgun
2025-07-08 11:41:40 +09:00
2 changed files with 20 additions and 0 deletions

View File

@ -1,6 +1,16 @@
<?php
include_once('./_common.php');
// 테마에 list.php 있으면 include
if(defined('G5_THEME_MSHOP_PATH')) {
$theme_list_file = G5_THEME_MSHOP_PATH.'/list.php';
if(is_file($theme_list_file)) {
include_once($theme_list_file);
return;
}
unset($theme_list_file);
}
// 상품 리스트에서 다른 필드로 정렬을 하려면 아래의 배열 코드에서 해당 필드를 추가하세요.
if( isset($sort) && ! in_array($sort, array('it_name', 'it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time')) ){
$sort='';

View File

@ -14,6 +14,16 @@ if (G5_IS_MOBILE) {
return;
}
// 테마에 list.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
$theme_list_file = G5_THEME_SHOP_PATH.'/list.php';
if(is_file($theme_list_file)) {
include_once($theme_list_file);
return;
}
unset($theme_list_file);
}
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' and ca_use = '1' ";
$ca = sql_fetch($sql);
if (! (isset($ca['ca_id']) && $ca['ca_id']))