feat: add list.php theme override (#358)

* feat: add theme override in shop/list.php

* feat: add theme override in mobile/shop/list.php
This commit is contained in:
restarea92
2025-06-27 09:35:52 +09:00
committed by GitHub
parent 67415cf8d3
commit 327e7ba7ba
2 changed files with 20 additions and 0 deletions

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']))