bigthumb viewer
This commit is contained in:
parent
70a237d338
commit
905622102d
|
@ -9,6 +9,7 @@ $this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('<a href="/data/tag">关键词浏览</a>');
|
$this->breadcrumb('<a href="/data/tag">关键词浏览</a>');
|
||||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
?>
|
?>
|
||||||
<div id='row-fluid'>
|
<div id='row-fluid'>
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
|
@ -20,7 +21,11 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
<hr />
|
<hr />
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->metadata as $md) : ?>
|
||||||
<div class="mditem">
|
<div class="mditem">
|
||||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
<div class="thumb">
|
||||||
|
<a href="javascript:void(0);" class="gallery" rel="/service/bigthumb/uuid/<?= $md['uuid'] ?>">
|
||||||
|
<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><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -51,3 +56,11 @@ foreach($this->keywords as $cg) :
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset></div>
|
</fieldset></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<script>
|
||||||
|
$('a.gallery').bind('click',function(){
|
||||||
|
$.colorbox({
|
||||||
|
photo:$(this).attr('rel'),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue