add colorbox support
This commit is contained in:
parent
0a4254ae1c
commit
b515f8a0e0
|
@ -5,9 +5,11 @@
|
|||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
||||
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
|
||||
$this->breadcrumb('评审元数据');
|
||||
|
@ -20,8 +22,10 @@
|
|||
</h1>
|
||||
<div id="left">
|
||||
<div id="abstract">
|
||||
<p>
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="thumb" />
|
||||
<p>
|
||||
<a class="colorbox" href="/service/bigthumb/id/<?php echo $md['id'];?>" title="<?php echo $md['title'];?>">
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="thumb" />
|
||||
</a>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
|
||||
</p>
|
||||
<p>
|
||||
|
@ -262,7 +266,8 @@ $(document).ready(function() {
|
|||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
$(document).ready(function(){$(".colorbox").colorbox({photo:"true"});});
|
||||
</script>
|
||||
|
||||
<?php else: ?>
|
||||
|
|
Loading…
Reference in New Issue