-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
101 lines (97 loc) · 4.39 KB
/
index.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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* WebStack Xinac
*
* @package WebStack Xinac
* @author xinac
* @version 1.0
* @link https://www.xinac.cn
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<?php $this->need('sidebar.php'); ?>
<div class="main-content">
<nav class="navbar user-info-navbar" role="navigation">
<!-- User Info, Notifications and Menu Bar -->
<!-- Left links for user info navbar -->
<ul class="user-info-menu left-links list-inline list-unstyled">
<li class="hidden-sm hidden-xs">
<a href="#" data-toggle="sidebar">
<i class="fa-bars"></i>
</a>
</li>
<li class="hover-line">
<a href="/" title="首页">
<i class="fa fa-home"></i> 首页
</a>
</li>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while ($pages->next()): ?>
<li class="hover-line">
<?php if (!empty($pages->fields->url)): ?>
<a href="<?php echo $pages->fields->url; ?>" title="<?php echo $pages->fields->text; ?>"
target="_blank">
<?php else: ?>
<a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>">
<?php endif; ?>
<i class="<?php echo $pages->fields->menu_logo; ?>"
aria-hidden="true"></i> <?php $pages->title(); ?>
</a>
</li>
<?php endwhile; ?>
</ul>
<ul class="user-info-menu right-links list-inline list-unstyled">
<li class="hidden-sm hidden-xs">
<a href="<?php $this->options->xinac_github(); ?>" target="_blank" title="GitHub">
<i class="fa-github"></i> GitHub
</a>
</li>
</ul>
</nav>
<?php $this->widget('Widget_Metas_Category_List')->to($categories); ?>
<?php while ($categories->next()): ?>
<?php if (count($categories->children) === 0): ?>
<?php $this->widget('Widget_Archive@category-' . $categories->mid, 'order=order&pageSize=10000&type=category', 'mid=' . $categories->mid)->to($posts); ?>
<h4 class="text-gray">
<i class="linecons-tag" style="margin-right: 7px;"
id="<?php $categories->name(); ?>"></i><?php $categories->name(); ?>
</h4>
<div class="row">
<?php $count = 1; ?>
<?php while ($posts->next()): ?>
<div class="col-sm-3">
<div class="xe-widget xe-conversations box2 label-info"
onclick="window.open('<?php echo $posts->fields->url; ?>', '_blank')" data-toggle="tooltip"
data-placement="bottom" title="" data-original-title="<?php echo $posts->fields->url; ?>">
<div class="xe-comment-entry">
<a class="xe-user-img">
<?php if (!empty($posts->fields->logo)): ?>
<img data-src="<?php echo $posts->fields->logo; ?>" class="lozad img-circle" width="40">
<?php else: ?>
<img data-src="<?php $this->options->themeUrl('assets/images/website.png'); ?>" class="lozad img-circle" width="40">
<?php endif; ?>
</a>
<div class="xe-comment">
<a href="javascript:;" class="xe-user-name overflowClip_1">
<strong><?php $posts->title(); ?></strong>
</a>
<p class="overflowClip_2">
<?php echo $posts->fields->text; ?>
</p>
</div>
</div>
</div>
</div>
<?php if ($count % 4 == 0): ?>
</div>
<div class="row">
<?php endif; ?>
<?php $count++; ?>
<?php endwhile; ?>
</div>
<br/>
<?php else: ?>
<?php endif; ?>
<?php endwhile; ?>
<?php $this->need('footer.php'); ?>