0 ? (string) wp_get_attachment_image_url($background_id, 'full') : ''; // 主题模式由 Router 通过 jio_initial_theme_mode / jio_theme_mode_js_value 统一注入。 $theme_mode = (string) ($ui['theme_mode'] ?? 'no'); $position = (string) ($ui['card_position'] ?? 'right'); $show_header = !empty($ui['show_header']) && !$interim; add_filter('document_title_parts', static function (array $parts): array { $parts['title'] = __('登录 / 注册', 'jio'); unset($parts['tagline']); return $parts; }); $initial_theme_mode = ''; if ($theme_mode !== 'no' && class_exists('\Jio\Settings\Settings')) { $initial_theme_mode = (string) apply_filters('jio_forced_theme_mode', ''); } remove_action('wp_footer', 'jio_float_right'); $body_classes = ['page-template-user-sign', 'site-layout-1']; if ($theme_mode !== 'no') { $body_classes[] = $theme_mode; } if ($initial_theme_mode === 'dark') { $body_classes[] = 'theme-dark'; $body_classes[] = 'dark-theme'; } elseif ($initial_theme_mode === 'light') { $body_classes[] = 'white-theme'; } $card_offset = ' col-md-offset-6'; if ($position === 'left') { $card_offset = ''; } elseif ($position === 'center') { $card_offset = ' col-md-offset-3'; } $jio_auth_context = [ 'surface' => 'page', 'tab' => $tab, 'show_logo' => !empty($ui['show_logo']), 'redirect_to' => $redirect_to, 'obk' => $obk, ]; ?> > >