-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsidebar.php
More file actions
58 lines (57 loc) · 2.32 KB
/
sidebar.php
File metadata and controls
58 lines (57 loc) · 2.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="bar">
<a href="<?php $this->options->siteUrl(); ?>" class="barItemBindex">
<div class="mdui-ripple" id="Get-newCom">
<i class="fa fa-home"></i>
</div>
</a>
<div class="barItem mdui-ripple" id="Get-newCom">
<i class="fa fa-commenting"></i>
</div>
<div class="barItem mdui-ripple" id="Get-newPage">
<i class="fa fa-list"></i>
</div>
<div class="barItem mdui-ripple" id="Get-Tags">
<i class="fa fa-tags"></i>
</div>
<div class="barItem mdui-ripple" id="pay">
<i class="fa fa-credit-card"></i>
</div>
<div class="barClose mdui-ripple">
<i class="fa fa-close"></i>
</div>
</div>
<div class="indexSidebar otherSidebarPos">
<div class="indexSidebarBtn-Pos">
<button class="fa fa-angle-up mdui-ripple backPageTop" title="页面顶部"></button>
<a <!--href="--><?php /*$this->options->adminUrl(); */?>">
<button class="fa fa-link mdui-ripple openLinkMenu" onclick="linkMenu()" title="撰写新文章"></button>
</a>
<div class="linkMenu">
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<a<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><div class="mdui-ripple"><?php $pages->title(); ?></div></a>
<?php endwhile; ?>
<a href="<?php $this->options->adminUrl(); ?>">
<div>登陆</div>
</a>
<a href="<?php $this->options->feedUrl(); ?>">
<div class="mdui-ripple">
<i class="fa fa-rss"></i>
</div>
</a>
</div>
<button class="fa fa-angle-down mdui-ripple toBottom" title="页面底部"></button>
</div>
</div>
<script>
$('.mb-fixedToolBtn').click(function () {
$('.bar').css({transform : 'translate(5px,0)'});
$(this).css({transform: 'translate(-12px,0)',opacity:'0'});
});
$('.barClose').on('click',function () {
$('.bar').css({transform : 'translate(-45px,0)'});
$('.mb-fixedToolBtn').css({transform: 'translate(0,0)',opacity:'1'});
});
scrollSidebar();
</script>