新闻页左侧导航样式。

This commit is contained in:
Li Heng 2014-03-05 09:18:04 +00:00
parent 76ae9a3807
commit 5c2f05a50d
2 changed files with 12 additions and 11 deletions

View File

@ -3,13 +3,14 @@
<!-- Three columns of text below the carousel -->
<div class="row-fluid">
<div class="span3">
<div class="Lbox">
<h4 class="box-title">所有栏目</h4>
<ul class="unstyled nav nav-pills nav-stacked">
<!-- /.bs-docs-sidebar -->
<div class="bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<?php if(!empty($this->categories)) { ?>
<li class="active"><a href="#"><i class="icon-chevron-right"></i>新闻中心</a></li>
<?php foreach($this->categories as $k=>$v) { ?>
<li <?= $v['ROOTDEEP'] > 0 ? 'style="padding-left:'. (12 * $v['ROOTDEEP']) .'px"':"" ?>><a href="/news/<?= $v['code'] ?>"><?= $v['title'] ?></a></li>
<li> <a href="/news/<?= $v['code'] ?>"><i class="icon-chevron-right"></i><?= $v['title'] ?></a></li>
<?php } } ?>
</ul>
</div>

View File

@ -9,22 +9,22 @@
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row-fluid">
<div class="row-fluid">
<div class="span3">
<!-- /.bs-docs-sidebar -->
<div class="Lbox">
<h4 class="box-title">所有栏目</h4>
<ul class="unstyled nav nav-pills nav-stacked">
<div class="bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<?php if(!empty($this->categories)) { ?>
<?php foreach($this->categories as $k=>$v) { ?>
<li <?= $v['ROOTDEEP'] > 0 ? 'style="padding-left:'. (12 * $v['ROOTDEEP']) .'px"':"" ?>><a href="/news/<?= $v['code'] ?>"><?= $v['title'] ?></a></li>
<li ><a href="/news/<?= $v['code'] ?>"><i class="icon-chevron-right"></i><?= $v['title'] ?></a></li>
<?php } } ?>
</ul>
</div>
</div>
<!-- /.span3 -->
<?php $list = $this->paginator;?>
<div class="span9">
<div class="Lbox">
<h4 class="box-title">新闻列表</h4>