forked from ccjuse/Mirages-For-Typecho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
side_menu.php
33 lines (33 loc) · 1.7 KB
/
side_menu.php
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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<a id="toggle-nav"><i class="fa fa-bars"></i></a>
<div id="canvas">
<div id="nav">
<div class="author">
<a href="<?php $this->options->rootUrl();?>/about.html">
<img src="<?php $this->options->sideMenuAvatar();?>" alt="Avatar" width="100" height="100"/>
</a>
</div>
<div class="search-box">
<form class="form" id="search-form">
<input id="search" type="text" name="s" required placeholder="Search here..." class="search">
<button id="search_btn" type="submit" class="search-btn"><i class="fa fa-search"></i></button>
</form>
</div>
<ul class="menu">
<?php if($this->user->hasLogin()):?>
<li style="margin-bottom: 30px;"><a href="<?php $this->options->rootUrl();?>/<?=isset($this->options->adminDir) ? trim($this->options->adminDir, '/') : "admin";?>/">Dashboard</a></li>
<?php endif?>
<li><a href="<?php $this->options->rootUrl();?>">Home</a></li>
<li>
<a class="slide-toggle">Category</a>
<div class="category-list hide">
<?php $this->widget('Widget_Metas_Category_List')->listCategories('wrapClass=list'); ?>
</div>
</li>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<li><a<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>