index.php
2.39 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(Lib_Utils_StringHelper::substr_full_en($title,60));?></p>
<p class="time" style="font-style:italic"><?php $en = array('01'=>'January','02'=>'February','03'=>'March','04'=>'April','05'=>'May','06'=>'June','07'=>'July','08'=>'August','09'=>'September','10'=>'October','11'=>'November','12'=>'December');$m=date('m', $fragment['publishTime']);echo $en[$m]?> <?php ECHO $m=date('d,Y', $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>>','next_class' => 'next','prev_label' => 'PREV<<','prev_class' => 'prev','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();?>