indexmobile.php
2.21 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_mobile');?>
<?php $this->_block('main');?>
<h2 class="main-title show-title">#YO'HOOD SHOW#</h2>
<div class="show-wrap clearfix">
<div class="main-layout clearfix">
<?php foreach($this->view->fragments as $fragment):?>
<div class="layout-item tiled">
<div class="image-box">
<a href="javascript:;">
<img data-original="<?php echo str_replace('_','_-0320x0320-primary', $fragment['image']);?>"
src="<?php echo preg_replace('/_\.(\w+)/i','', $fragment['image']);?>?imageMogr2/thumbnail/320x320/strip/quality/80" alt="">
</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_Utils_StringHelper::stripTags($fragment['content']);?></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' => 'NEXT <span class="iconfont"></span>',
'prev_label' => '<span class="iconfont"></span> PREV','next_class'=>'next',
'is_mobile' => true,'prev_class'=>'iconfont','prev_class'=>'iconfont',
'page_class'=>'pagination-inner clearfix', 'id'=>'img_page'
));?>
</div>
</div>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
seajs.use('mobile',function(mobile){
mobile.show();
})
</script>
<?php $this->_endblock();?>