mirror of https://github.com/1099438829/apeblog
修复主题样式
This commit is contained in:
parent
a4d1cc7231
commit
7cb03187a9
|
|
@ -937,14 +937,13 @@ function GetTopTypenameen($id = false)
|
|||
*/
|
||||
function is_active_nav($currCid = false, $cid = false)
|
||||
{
|
||||
if (request()->action() == 'search') {
|
||||
if (in_array(request()->action(),['search','tag','about']) ) {
|
||||
return false;
|
||||
}
|
||||
//首页
|
||||
if (!$currCid && !$cid) {
|
||||
return true;
|
||||
}
|
||||
|
||||
//一般在首页中,要比对的栏目id会为false
|
||||
if ($cid == false) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use app\Request;
|
|||
use think\db\exception\DataNotFoundException;
|
||||
use think\db\exception\DbException;
|
||||
use think\db\exception\ModelNotFoundException;
|
||||
use think\facade\Filesystem;
|
||||
use think\facade\Log;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue