diff options
Diffstat (limited to 'libs/Contents.php')
| -rw-r--r-- | libs/Contents.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/Contents.php b/libs/Contents.php index da552a5..45b8f03 100644 --- a/libs/Contents.php +++ b/libs/Contents.php @@ -224,13 +224,13 @@ class Contents $title = $de_json[$i]['title']; $link = $de_json[$i]['link']; //输出导航 - if($type="top-nav") { + if($type=="top-nav") { echo '<a href="'. $link .'">'. $title .'</a>'; } - elseif($type="mobile") { + elseif($type=="mobile") { echo '<div class="col-6"><a href="'. $link .'">'. $title .'</a></div>'; } - elseif($type="drawer") { + elseif($type=="drawer") { echo '<a href="'. $link .'" onclick="toggleDrawer()">'. $title .'</a>'; } } |
