init
This commit is contained in:
41
app/mobile/view/include/banner.phtml
Executable file
41
app/mobile/view/include/banner.phtml
Executable file
@@ -0,0 +1,41 @@
|
||||
<!-- 轮播 s -->
|
||||
<?php
|
||||
$bigbanners = getBannerList(101, 6);
|
||||
if ($bigbanners):
|
||||
?>
|
||||
<div class="banner clearfix">
|
||||
<ul class="banner_list">
|
||||
<?php
|
||||
foreach ($bigbanners as $banner):
|
||||
$style='top';
|
||||
|
||||
if($banner['style']==3) {
|
||||
$style='right';
|
||||
}
|
||||
elseif($banner['style']==2){
|
||||
$style='left';
|
||||
}
|
||||
elseif($banner['style']==4){
|
||||
$style='bottom';
|
||||
}
|
||||
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $banner['url']; ?>" target="_blank">
|
||||
<img src="<?php echo getImage($banner['picture']); ?>">
|
||||
</a>
|
||||
<div class="sition_banner text_center ban-p ">
|
||||
<?php if($banner['description']): ?>
|
||||
<p class=" f_weight_500 ban-h2 text_white wow fadeInUp" data-wow-delay="0.5s"><?php echo $banner['name']; ?></p>
|
||||
<p class=" f_weight_100 text_white ban-t wow fadeInUp" data-wow-delay="0.5s"><?php echo $banner['description']; ?></p>
|
||||
<p class="f_weight_100 " >
|
||||
<div class="btn-more wow fadeInUp" data-wow-delay="0.5s">了解更多 </div>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!-- 轮播 e -->
|
||||
Reference in New Issue
Block a user