diff --git a/conf/app.php b/conf/app.php index 3604eb7..456929e 100644 --- a/conf/app.php +++ b/conf/app.php @@ -67,6 +67,8 @@ $configs = array( 'showQRImageInFooter' => true, //在网页底部显示当前网址二维码 + 'defaultMenuStatusInPC' => 'closed', //PC下左侧目录默认状态,可选值:opened, closed + /* //视频皮肤配置 'videoblog' => array( diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 85936c1..97ecad4 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -10,7 +10,7 @@ $supportedExts = array_merge($imgExts, $videoExts); $authConfig = FSC::$app['config']['password_auth']; $dir_ext_status = !empty($_COOKIE['dir_ext_status']) ? $_COOKIE['dir_ext_status'] : 'opened'; -$menu_ext_status = !empty($_COOKIE['menu_ext_status']) ? $_COOKIE['menu_ext_status'] : 'opened'; +$menu_ext_status = !empty($_COOKIE['menu_ext_status']) ? $_COOKIE['menu_ext_status'] : FSC::$app['config']['defaultMenuStatusInPC']; $menu_expand_icon_cls = $menu_ext_status == 'opened' ? '' : 'closed'; $menu_expand_icon_url = $menu_ext_status == 'opened' ? 'arrow-left-circle.svg' : 'arrow-right-circle.svg';