示例#1
0
			</p>
		</div>
	</article>
<?php 
}
if ($__count['max'] > 1) {
    ?>
	<ul class="pager">
		<?php 
    if ($__count['page'] > 1) {
        ?>
			<?php 
        if ($__count['page'] == 2) {
            ?>
				<li class="previous"><a href="<?php 
            echo post_list_link();
            ?>
">上一页</a></li>
			<?php 
        } else {
            ?>
				<li class="previous"><a href="<?php 
            echo post_list_pager_link($__count['page'] - 1);
            ?>
">上一页</a></li>
			<?php 
        }
        ?>
		<?php 
    }
    ?>
示例#2
0
?>
" title="返回 <?php 
echo site_title();
?>
 首页"><?php 
echo site_title();
?>
</a>
		</div>
		<div class="collapse navbar-collapse" id="home_navbar">
			<ul class="nav navbar-nav">
				<?php 
echo create_menu_link(get_url(), "首页", NULL, []);
echo create_menu_link(time_line_link(), "时间线", NULL, ['Show', 'time_line']);
echo create_menu_link(gallery_list_link(), "图集", NULL, ['Show', 'gallery_list']);
echo create_menu_link(post_list_link(), "文章列表", NULL, ['Show', 'post_list']);
?>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<?php 
if (!is_login()) {
    ?>
					<?php 
    echo create_menu_link(get_url("Home", "login"), '<span class="glyphicon glyphicon-log-in"></span> 登录', NULL, ["Home", "login"]);
    echo create_menu_link(get_url("Home", "register"), '注册', NULL, ["Home", "register"]);
    ?>
				<?php 
} else {
    ?>
					<li class="dropdown">
						<a class="glyphicon-user glyphicon" id="dLabel" role="button" data-toggle="dropdown"