detail.php 1.87 KB
<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">&#xe606;</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>