diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-27 13:19:03 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-27 13:19:03 +0800 |
| commit | ce2d24dd39d0f73b9439ffc9cf40e2b9a8c1800e (patch) | |
| tree | 44fc6403a059c4cf18c5778a8a8354666edd6123 /includes | |
| parent | 042657dbed65bb2eac479fe6b4ff029381df1ff0 (diff) | |
:dizzy: Add: 重写移动端导航栏
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/header.php | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/includes/header.php b/includes/header.php index 4a5ba24..6ce591f 100644 --- a/includes/header.php +++ b/includes/header.php @@ -3,9 +3,34 @@ $this->need("includes/head.php"); ?> <body<?php Matcha::ifDark(); ?>> <?php $this->need('includes/sidebar.php'); ?> <div id="body"> - <div class="container"> - <!-- 移动端导航 --> - <div class="small-header" id="small-header"> - <div class="site-name"><?php Matcha::siteName(); ?></div> - <div class="page-links"><?php Matcha::pageNav($this, "span"); ?></div> - </div>
\ No newline at end of file + <!-- 移动端导航 --> + <div class="small-header" id="small-header"> + <div class="navbar"> + <div class="navbar-action"> + <div class="navbar-action-left"> + <button class="navbar-button" id="nav-light"><span class="iconfont"></span></button> + + </div> + <div class="navbar-action-right"> + <button class="navbar-button" id="nav-drop"><span class="iconfont"></span></button> + </div> + </div> + <div class="navbar-dropdown"> + <button class="navbar-button navbar-dropup" id="nav-rise"><span>+</span></button> + <h2>页面</h2> + <ul class="widget-list"><?php Matcha::pageNav($this, "li"); ?></ul> + <h2>分类</h2> + <ul class="widget-list widget-category"> + <?php $this->widget('Widget_Contents_Page_List')->to($pages); + while($pages->next()): ?> + <li> + <a href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a> + </li> + <?php endwhile; ?> + </ul> + </div> + </div> + <?php Matcha::siteName(); ?> + </div> + <!--页面主体--> + <div class="container">
\ No newline at end of file |
