fix(theme): repair page display frontend regressions

This commit is contained in:
kate522 committed 2026-08-19 00:14:58 +08:00
1 parent 1436232a34
commit 55571648a0
3 files changed
+14 -2

No files matched your search

-2
View File
@@ -527,7 +527,6 @@ trait ScriptsPart1c {
// 用户状态
'isLoggedIn' => is_user_logged_in(),
'userId' => get_current_user_id(),
'cartUrl' => $runtime_routes['cart'],
'ordersUrl' => $runtime_routes['orders'],
'userCenterUrl' => function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url() : home_url('/'),
'routes' => [
@@ -536,7 +535,6 @@ trait ScriptsPart1c {
'register' => function_exists('aksrt_get_register_url') ? aksrt_get_register_url() : wp_registration_url(),
'resetPassword' => function_exists('aksrt_get_reset_password_url') ? aksrt_get_reset_password_url() : wp_lostpassword_url(),
'profile' => function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url() : home_url('/profile/'),
'cart' => $runtime_routes['cart'],
'orders' => $runtime_routes['orders'],
'resources' => $runtime_routes['resources'],
],
+9
View File
@@ -827,6 +827,15 @@ class Settings {
/**
* 获取页脚布局模板。
*/
public static function get_footer_template(): string {
return HomeCms::get_footer_template();
}
/**
* 获取页脚品牌列(第一列)配置
* @return array {m_s, img, img_dark, title, custom_code}