25 lines
1.1 KiB
PHTML
Executable File
25 lines
1.1 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->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
$this->breadcrumb('浏览');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id='tools'>
|
|
<?= $this->partial('data/tools.phtml'); ?>
|
|
</div>
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
<hr />
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
<div class="mditem">
|
|
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
|
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
|
</h2>
|
|
<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>
|
|
<?php endforeach; ?>
|
|
<?php echo $this->page->getNavigation(); ?> |