Authored by whb

h5详情页

... ... @@ -9,8 +9,9 @@
<div class="slide-wrap clearfix">
<?php foreach($this->view->banners as $banner):?>
<div class="box">
<a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>">
<img src="<?php echo Lib_Images::getImageUrl($banner['res'],'0360x0174','fragmentimg');?>" alt=""/></a>
<a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>">
<img src="<?php echo Lib_Images::getImageUrl($banner['res'],'0320x0155','fragmentimg');?>" alt=""/>
</a>
</div>
<?php endforeach;?>
</div>
... ...
... ... @@ -4,6 +4,24 @@
<h2 class="title"><?php echo $this->view->info['title']?></h2>
<h3 class="subtitle"><?php echo date('m月d日 H:i', $this->view->info['create_time'])?></h3>
</div>
<div class="slide-main">
<div class="slide-box">
<div class="slide-wrap clearfix">
<?php foreach($this->view->info['pics'] as $pic):?>
<div class="box">
<a href="javascript:;">
<img src="<?php echo Lib_Images::getImageUrl($pic, '0320x0155','fragmentimg');?>" alt="" style="width:320px;height:155px;"/>
</a>
</div>
<?php endforeach;?>
</div>
</div>
<div class="slide-navigator">
<div class="dib clearfix">
<?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->info['pics']) - 1);?>
</div>
</div>
</div>
<div class="detail-article">
<?php
preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yoho\.cn\/res\/yohood\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4)\"@", $this->view->info['content'], $videoMatches);
... ...