summaryrefslogtreecommitdiff
path: root/includes/header.php
blob: a74b47a5d1ec99399fc587bc47866c09fc15e7d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need("includes/head.php"); ?>
<body<?php Matcha::bodyClass(); ?>>
<?php $this->need('includes/sidebar.php'); ?>
<div id="body">
    <!-- 移动端导航 -->
    <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">&#xe7ac;</span></button>
                    
                </div>
                <div class="navbar-action-right">
                    <button class="navbar-button" id="nav-drop"><span class="iconfont">&#xe650;</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_Metas_Category_List')->to($categories); ?>
                    <?php while($categories->next()): ?>
                    <li>
                        <a href="<?php $categories->permalink(); ?>" rel="section"><?php $categories->name(); ?></a>
                    </li>
                    <?php endwhile; ?>
                </ul>
            </div>
        </div>
        <?php Matcha::siteName(); ?>
    </div>
    <!--页面主体-->
    <div class="container">