detail.php
1.87 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
<div class="brand-introduction" style="display: block;">
<h2>About <?php echo $this->view->info['name'];?></h2>
<div class="brand-info clearfix">
<div class="pic">
<img src="<?php echo Lib_Images::getImageUrl($this->view->info['logo'], '0147x0097','fragmentimg');?>" alt="">
</div>
<div class="text">
<p>
<?php echo $this->view->info['description'];?>
</p>
<a href="<?php echo $this->view->info['link'];?>" target="_blank">进入品牌店铺</a>
</div>
</div>
<a href="javascript:;" class="brand-close-btn iconfont"></a>
<?php if(!empty($this->view->news)):?>
<div class="related-post">
<h3>相关资讯</h3>
<?php foreach($this->view->news as $val):?>
<div class="post-list main-layout">
<div class="layout-item tiled">
<div class="image-box">
<a href="<?php echo url('news/detail',array('id' => $val['id']))?>" title="<?php echo $val['title']?>" target="_blank">
<img src="<?php echo Lib_Images::getImageUrl($val['thumb'],'0230x0130','fragmentimg', 'thumbnail');?>" alt="">
<?php if(trim($val['tag']) == '视频'):?>
<i class="play-icon"></i>
<?php endif;?>
</a>
</div>
<div class="content">
<h2 <?php echo $val['main_title_type'] == 1 ? 'class="volupia"':'';?>>
<a href="<?php echo url('news/detail',array('id' => $val['id']))?>" target="_blank">
<?php echo Util_StringHelper::substr_cn($val['title'], 46);?>
</a>
</h2>
</div>
</div>
</div>
<?php endforeach;?>
</div>
<?php endif;?>
</div>