-
Notifications
You must be signed in to change notification settings - Fork 78
/
page.php
26 lines (26 loc) · 1.14 KB
/
page.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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="container <?php if ($this->options->pagesidebar == "able"): ?>container-page<?php else: ?>container-no-sidebar<?php endif; ?>">
<?php if ($this->options->pagesidebar == "able"): ?>
<div class="pageside">
<div class="pagemenus">
<ul class="pagemenu">
<?php $this->widget('Widget_Contents_Page_List')->to($cpages);?>
<?php while ($cpages->next()): ?>
<li <?php if($cpages->title==$this->title){print ' class="active"';} ?>><a href="<?php $cpages->permalink();?>"><?php $cpages->title();?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php endif; ?>
<div class="content">
<header class="article-header">
<h1 class="article-title"><a href="<?php $this->permalink(); ?>"><?php $this->title() ?></a></h1>
</header>
<article class="article-content">
<?php parseContent($this); ?>
</article>
<?php //$this->need('comments.php'); ?>
</div>
</div>
<?php $this->need('footer.php'); ?>