修改默认模板导航菜单

This commit is contained in:
fen 2013-10-22 14:39:18 +08:00
parent 7d7048ea46
commit c617578f48
3 changed files with 29 additions and 31 deletions

View File

@ -1,27 +1,28 @@
<?php $this->need('header.php'); ?>
<div class="col-mb-12 col-tb-8" id="content">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<div class="post">
<h2 class="entry-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<p class="entry-data">
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
<?php _e('分类:'); ?><?php $this->category(','); ?>
</p>
<?php $this->content('阅读剩余部分...'); ?>
</div>
<?php endwhile; ?>
<?php else: ?>
<div class="post">
<h2 class="entry-title"><?php _e('没有找到内容'); ?></h2>
</div>
<?php endif; ?>
<div class="col-mb-12 col-8" id="main">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<article class="post">
<h2 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<div class="post-meta">
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
<?php _e('分类:'); ?><?php $this->category(','); ?>
</div>
<div class="post-content">
<?php $this->content('阅读剩余部分...'); ?>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="post">
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
</article>
<?php endif; ?>
<?php $this->pageNav(); ?>
</div><!-- end #main -->
<ol class="pages clearfix">
<?php $this->pageNav(); ?>
</ol>
</div><!-- end #content-->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>

View File

@ -3,10 +3,6 @@
<div class="col-mb-12 col-8" id="main">
<article class="post">
<h2 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<div class="post-meta">
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
<?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?>
</div>
<div class="post-content">
<?php $this->content(); ?>
</div>

View File

@ -70,16 +70,17 @@ input[type="text"], input[type="email"], input[type="url"] {
/* navigation menu */
#nav-menu {
margin-top: 30px;
padding-bottom: 15px;
border-bottom: 3px double #E9E9E6;
margin-top: 20px;
padding: 0;
border-bottom: 1px solid #E9E9E6;
}
#nav-menu a {
display: inline-block;
margin-right: 16px;
padding-right: 20px;
margin-right: -4px;
padding: 5px 20px 10px;
border-right: 1px solid #E9E9E6;
}
#nav-menu a:hover { text-decoration: none; }
#nav-menu .current {
color: #444;
}