2013-04-11 09:22:39 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->data);
|
|
|
|
$this->headTitle('分类浏览');
|
|
|
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
|
|
|
$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('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
|
|
|
|
$this->breadcrumb('分类浏览:'.$this->codename);
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="span2">
|
|
|
|
<?= $this->partial('heihe/navi.phtml'); ?>
|
|
|
|
</div>
|
2013-04-16 08:20:54 +00:00
|
|
|
<div class="span10">
|
|
|
|
<div><?= $this->breadcrumb() ?> </div>
|
2013-04-11 09:22:39 +00:00
|
|
|
<div>
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<?php foreach($this->category as $cg) : ?>
|
|
|
|
<li <?php if($cg['code']== $this->code) echo 'class="active"' ?>>
|
|
|
|
<a href='/heihe/category/code/<?php echo $cg['code']; ?>'>
|
|
|
|
<?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?>
|
|
|
|
<span class="note">(<?php echo $cg['count']; ?>)</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (!empty($this->metadata)) : ?>
|
|
|
|
<div class="md-list">
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
|
|
<hr />
|
|
|
|
<div class="md-list">
|
|
|
|
<ol start="<?php echo $this->offset; ?>">
|
|
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
|
|
<li><a href="/heihe/view/uuid/<?php echo $md['uuid']; ?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"><?php echo $md['title']; ?></a></li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div>
|
2011-10-21 08:52:32 +00:00
|
|
|
</div>
|