'; $menu_title = $logo . __( 'Arkhe', 'arkhe' ); add_theme_page( $menu_title, $menu_title, 'edit_theme_options', 'arkhe', __NAMESPACE__ . '\cb_theme_menu' ); } function cb_theme_menu() { if ( \Arkhe::$is_ja ) { $theme_url = 'https://arkhe-theme.com/ja'; } else { $theme_url = 'https://arkhe-theme.com'; } ?>

_x( 'Information', 'tab', 'arkhe' ), 'licence' => __( 'Licence registration', 'arkhe' ), ); // 現在表示中のタブ // phpcs:ignore WordPress.Security.NonceVerification.Recommended $now_tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'info'; // タブリスト echo ''; // コンテンツ $file_to_include = __DIR__ . '/theme_menu/' . $now_tab . '.php'; $real_include_path = realpath( $file_to_include ); $theme_menu_dir = realpath( __DIR__ . '/theme_menu' ); // ファイルが存在し、theme_menuディレクトリ内にあることを確認 if ( $real_include_path && file_exists( $real_include_path ) && strpos( $real_include_path, $theme_menu_dir ) === 0 ) { echo '
'; include $real_include_path; echo '
'; } ?>