34 lines
1.2 KiB
PHTML
34 lines
1.2 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
|
$this->nav[] = array('link'=>"/data/visual",'title'=>'可视化数据列表');
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
?>
|
|
<?php if (!empty($this->paginator)) : ?>
|
|
<div id='metacontent'>
|
|
<?php echo $this->paginator; ?>
|
|
<hr />
|
|
<?php foreach($this->paginator as $md) : ?>
|
|
<div class="mditem">
|
|
<div class="thumb">
|
|
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox">
|
|
<img src="/service/thumb/id/<?php echo $md['id'];?>" />
|
|
</a>
|
|
</div>
|
|
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h2>
|
|
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php echo $this->paginator; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
|
$(".colorbox").colorbox({photo:"true"});
|
|
});
|
|
</script>
|