diff --git a/admin.php b/admin.php index b01f961..9e37951 100644 --- a/admin.php +++ b/admin.php @@ -49,7 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['login'])) { } if (!fb_admin_logged_in()) { - fb_layout_head('管理登录', ['robots' => 'noindex,nofollow']); + fb_layout_head('管理登录', ['robots' => 'noindex,nofollow', 'admin' => true]); ?>
← 返回问题列表
@@ -638,7 +638,7 @@ function fb_admin_save_settings() { $tab = (string)(isset($_GET['tab']) ? $_GET['tab'] : 'pending'); if (!in_array($tab, ['pending', 'all', 'thread', 'taxonomy', 'statuses', 'settings', 'mail', 'log'], true)) { $tab = 'pending'; } -fb_layout_head('管理后台', ['robots' => 'noindex,nofollow']); +fb_layout_head('管理后台', ['robots' => 'noindex,nofollow', 'admin' => true]); ?>
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 8a03a64..fa2109c 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -8,7 +8,7 @@ if (!defined('FB_ROOT')) { define('FB_ROOT', dirname(__DIR__)); // 静态资源版本号:改 assets/ 下的 css/js 后把这个数字 +1, // 让浏览器与 CDN 缓存失效。全站只此一处,别再往页面里写死数字。 - if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 38); } + if (!defined('FB_ASSET_V')) { define('FB_ASSET_V', 39); } } /* ------------------------------------------------------------------ diff --git a/lib/layout.php b/lib/layout.php index be20ccf..a94c41e 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -62,6 +62,17 @@ function fb_layout_head($title, array $opt = []) { * 视觉上主次颠倒。 */ $curSw = isset($opt['software']) && is_array($opt['software']) ? $opt['software'] : null; $swList = fb_softwares(true); + /* ---- 后台模式 ---- + * 用户 2026-11-03 问:「管理后台还需要『我要反馈』吗?还需要右上角三横线吗? + * 还需要下拉选软件吗?这些是不是都不需要了?」 + * ⇒ 都不需要,全去掉。理由: + * ① 「我要反馈」是给访客用的入口,管理员不该从后台跳去前台表单; + * ② 后台是**跨软件**视图(待审核/全部问题本身就带软件筛选器), + * 再放一个切软件的菜单是重复的,而且切了也不会改变后台视图; + * ③ 「问题列表」依赖 ?sw= 当前软件上下文,后台没有这个上下文, + * 点了只会跳到前台某个软件,属于误导。 + * 后台保留的只有:站点标识(回首页)+ 管理后台 + 退出登录。 */ + $isAdminBar = !empty($opt['admin']); ?>
+ + + 去前台看看 + + 去前台看看 + + 我要反馈 + - 1): ?> + 1): ?>