index.php
2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php $this->_extends('layout/default_layout');?>
<?php $this->_block('main');?>
<h2 class="show-title">#YO'HOOD SHOW#</h2>
<div class="show-wrap clearfix">
<div class="main-layout clearfix">
<?php foreach($this->view->fragments as $fragment):
$title = Lib_Utils_StringHelper::substr_cn(Lib_Utils_StringHelper::stripTags($fragment['content']), 70);
?>
<div class="layout-item tiled">
<div class="image-box">
<a href="javascript:;">
<img fid="<?php echo $fragment['fid'];?>" src="<?php echo preg_replace('/_\.(\w+)/i','', $fragment['image']);?>?imageMogr2/thumbnail/309x309/strip/quality/80"
alt="" data-original="<?php echo preg_replace('/_\.(\w+)/i','', $fragment['image']);?>?imageMogr2/thumbnail/480x480/strip/quality/80">
</a>
<?php foreach($fragment['labelList'] as $label):?>
<a class="pic-tip" href="javascript:;" x="<?php echo $label['x']?>" y="<?php echo $label['y']?>" style="display: none;">
<?php echo Lib_Helper_Emoji::convert_view($label['brandName'].$label['categoryName']);?>
</a>
<?php endforeach;?>
</div>
<div class="content">
<p><?php echo Lib_Helper_Emoji::convert_view($title);?></p>
<p class="time"><?php echo date('Y.m.d', $fragment['publishTime'])?></p>
</div>
</div>
<?php endforeach;?>
</div>
<div id="pageContent" style="text-align: center;" class="pagination">
<?php $this->_component('Common_Pagination',array(
'pagination' => $this->view->pagination,'next_label' => '>>','prev_label' => '<<','current_class' => 'current',
'page_class'=>'pagination-inner', 'id'=>'img_page'
));?>
</div>
</div>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
seajs.use('yohood',function(yohood)
{
yohood.show();
});
</script>
<?php $this->_endblock();?>