增加导航条

This commit is contained in:
wlx 2014-05-28 14:56:21 +00:00
parent 52983d4d4b
commit af7cf44634
4 changed files with 12 additions and 29 deletions

View File

@ -12,6 +12,10 @@ class AboutController extends Zend_Controller_Action
$this->view->messages = $this->messenger->getMessages();
$this->db=Zend_Registry::get('db');
$this->view->pageID = "about-".$this->_request->getActionName();
$this->view->nav = array(
array('link'=>'/','title'=>'<i class="icon-home"></i>'),
array('link'=>'/about','title'=>'关于'),
);
}
function contactAction()
{

View File

@ -8,7 +8,11 @@ class ArchivesController extends Zend_Controller_Action
{
$this->view->config = Zend_Registry::get('config');
$this->db=Zend_Registry::get('db');
$this->view->theme = new Theme();
$this->view->theme = new Theme();
$this->view->nav = array(
array('link'=>'/','title'=>'<i class="icon-home"></i>'),
array('link'=>'/archives','title'=>'新闻'),
);
}
function testAction()

View File

@ -7,7 +7,6 @@ $this->headTitle()->setSeparator(' - ');
$this->nav[] = array('link'=>"/data/category",'title'=>'分类浏览');
?>
<div class="row-fluid">
<?= $this->render('breadcrumbs.phtml'); ?>
<?= $this->partial('data/tools.phtml'); ?>
</div>
<div class="row-fluid">

View File

@ -1,5 +1,5 @@
<!-- header -->
<link href="../../../../htdocs/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
<header>
@ -38,29 +38,5 @@
</div>
</header>
<!-- Carousel
================================================== -->
<div class="container-fluid1 ">
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active"> <img src="/sjyportal/img/slide-00.jpg" alt="" class="">
<div class="container">
<div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</div>
</div>
</div>
<div class="item"> <img src="/sjyportal/img/slide-01.jpg" alt="" class="">
<div class="container">
<div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"></a> <a class="right carousel-control" href="#myCarousel" data-slide="next"></a> </div>
</div>
<!-- /.carousel -->
<div class="container">
<div class="container">
<?= $this->render('breadcrumbs.phtml'); ?>