37 lines
1.5 KiB
PHTML
Executable File
37 lines
1.5 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
$this->headTitle('全部浏览');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
|
$this->nav[] = array('link'=>"/data/browse",'title'=>'全部浏览');
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
?>
|
|
<div class="row-fluid">
|
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
|
<?= $this->partial('data/tools.phtml'); ?>
|
|
</div>
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
<hr />
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
<div class="media well well-small">
|
|
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="pull-left colorbox">
|
|
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
|
|
</a>
|
|
<div class="media-body">
|
|
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
|
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function(){
|
|
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
|
$(".colorbox").colorbox({photo:"true"});
|
|
});
|
|
$('#container').masonry({
|
|
itemSelector : '.items',
|
|
});
|
|
</script>
|