Browse Source

add default menu expand status for config

master
filesite 2 months ago
parent
commit
7c212cc382
  1. 2
      conf/app.php
  2. 2
      themes/beauty/views/site/index.php

2
conf/app.php

@ -67,6 +67,8 @@ $configs = array(
'showQRImageInFooter' => true, //在网页底部显示当前网址二维码 'showQRImageInFooter' => true, //在网页底部显示当前网址二维码
'defaultMenuStatusInPC' => 'closed', //PC下左侧目录默认状态,可选值:opened, closed
/* /*
//视频皮肤配置 //视频皮肤配置
'videoblog' => array( 'videoblog' => array(

2
themes/beauty/views/site/index.php

@ -10,7 +10,7 @@ $supportedExts = array_merge($imgExts, $videoExts);
$authConfig = FSC::$app['config']['password_auth']; $authConfig = FSC::$app['config']['password_auth'];
$dir_ext_status = !empty($_COOKIE['dir_ext_status']) ? $_COOKIE['dir_ext_status'] : 'opened'; $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_cls = $menu_ext_status == 'opened' ? '' : 'closed';
$menu_expand_icon_url = $menu_ext_status == 'opened' ? 'arrow-left-circle.svg' : 'arrow-right-circle.svg'; $menu_expand_icon_url = $menu_ext_status == 'opened' ? 'arrow-left-circle.svg' : 'arrow-right-circle.svg';

Loading…
Cancel
Save