2013-04-10 08:47:05 +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->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
|
|
$this->breadcrumb('缩略图浏览');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
$this->theme->AppendPlus($this,'masonry');
|
2013-04-16 07:05:48 +00:00
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
2013-04-10 08:47:05 +00:00
|
|
|
?>
|
|
|
|
<div class="row-fluit">
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
|
|
<ul class="thumb unstyled" id="container">
|
|
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
|
|
<li class="items">
|
|
|
|
<h4><a href="/data/<?php echo $md['uuid'];?>"><?= $this->escape($md['title']);?></a></h4>
|
2013-04-16 07:19:19 +00:00
|
|
|
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="thumbnail colorbox">
|
2013-04-10 08:47:05 +00:00
|
|
|
<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="/data/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>查看</a></span>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(function(){
|
|
|
|
$('#container').masonry({
|
|
|
|
// options
|
|
|
|
itemSelector : '.items',
|
|
|
|
//columnWidth : 240
|
|
|
|
});
|
2013-04-16 07:19:19 +00:00
|
|
|
$(".colorbox").colorbox({photo:"true"});
|
2013-04-10 08:47:05 +00:00
|
|
|
});
|
|
|
|
|
2012-03-28 14:04:00 +00:00
|
|
|
</script>
|