westdc-zf1/application/default/views/scripts/yrnmr/thumb.phtml

48 lines
1.9 KiB
PHTML
Raw Normal View History

2013-04-17 02:55:43 +00:00
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('全部浏览');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->theme->AppendPlus($this,'colorbox');
2015-04-26 13:35:40 +00:00
$this->theme->AppendPlus($this,'masonry');
$this->nav[] = array('link'=>"/yrnmr",'title'=>'黄河上游宁蒙河段');
2013-04-17 02:55:43 +00:00
?>
2015-04-26 13:35:40 +00:00
<?= $this->render('breadcrumbs.phtml'); ?>
2013-04-17 02:55:43 +00:00
<div class="row">
2015-04-26 13:35:40 +00:00
<div class="span2">
2013-04-17 02:55:43 +00:00
<?= $this->partial('yrnmr/navi.phtml'); ?>
</div>
2015-04-26 13:35:40 +00:00
<div class="span10">
2013-04-17 02:55:43 +00:00
<?php echo $this->page->getNavigation(); ?>
2015-04-26 13:35:40 +00:00
<div>
<ul class="thumb water-thumb unstyled" id="container">
2013-04-17 02:55:43 +00:00
<?php foreach($this->metadata as $md) : ?>
2015-04-26 13:35:40 +00:00
<li class="items">
<h4><a href="/yrnmr/view/uuid/<?php echo $md['uuid'];?>"><?= $this->escape($md['title']);?></a></h4>
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="thumbnail colorbox">
<img src="/service/thumb/id/<?php echo $md['id'];?>" alt="">
</a>
<div class="caption">
<p>
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
</p>
</div>
<span class="pull-right"><a href="/hiwater/view/uuid/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>查看</a></span>
</li>
2013-04-17 02:55:43 +00:00
<?php endforeach; ?>
2015-04-26 13:35:40 +00:00
</ul>
2013-04-17 02:55:43 +00:00
</div>
2015-04-26 13:35:40 +00:00
<hr class="clearfix" />
2013-04-17 02:55:43 +00:00
<?php echo $this->page->getNavigation(); ?>
2015-04-26 13:35:40 +00:00
</div>
2013-04-17 02:55:43 +00:00
</div>
<script type="text/javascript" charset="utf-8">
2015-04-26 13:35:40 +00:00
$(document).ready(function(){
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
$(".colorbox").colorbox({photo:"true"});
});
$('#container').masonry({
itemSelector : '.items',
});
2012-08-30 13:38:05 +00:00
</script>