|
|
<?php $this->_extends('layout/default_layout');?>
|
|
|
<?php $this->_block('main');?>
|
|
|
<?php if(!empty($this->view->banners)):?>
|
|
|
<div class="slide-main brand-slide">
|
|
|
<div class="slide-box">
|
|
|
<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'],'0980x0474','fragmentimg');?>" alt=""/>
|
|
|
</a>
|
|
|
</div>
|
|
|
<?php endforeach;?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="slide-navigator">
|
|
|
<div class="dib clearfix">
|
|
|
<?php if (count($this->view->banners)> 0):?>
|
|
|
<?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?>
|
|
|
<?php endif;?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="slide-control">
|
|
|
<a class="slide-prev iconfont" href="javascript:void(0);"></a>
|
|
|
<a class="slide-next iconfont" href="javascript:void(0);"></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="slide-main clearfix">
|
|
|
<div class="slide-box-warp">
|
|
|
<div class="slide-box">
|
|
|
<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'],'1180x0474','fragmentimg');?>" alt=""/>
|
|
|
</a>
|
|
|
</div>
|
|
|
<?php endforeach;?>
|
|
|
</div>
|
|
|
</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->banners) - 1);?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="slide-control">
|
|
|
<a class="slide-prev iconfont" href="javascript:void(0);"></a>
|
|
|
<a class="slide-next iconfont" href="javascript:void(0);"></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-wrap clearfix">
|
|
|
<div class="fluid-list">
|
|
|
<div class="fluid-list-inner main-layout clearfix" id="img_flow">
|
|
|
<?php
|
|
|
$this->_widget('news_list', array('list'=> $this->view->news));
|
|
|
?>
|
|
|
</div>
|
|
|
<div id="pageContent" style="text-align: center;" class="pagination">
|
|
|
<?php $this->_component('Common_Pagination',array(
|
|
|
'pagination' => $this->view->pagination,'next_label' => 'NEXT>>','prev_label' => '<<','current_class' => 'current',
|
|
|
'page_class'=>'pagination-inner', 'id'=>'img_page'
|
|
|
));?>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php endif;?>
|
|
|
<div class="brand-main">
|
|
|
<?php if($this->view->brandTotal):?>
|
...
|
...
|
@@ -48,15 +63,15 @@ |
|
|
<?php $this->_endblock();?>
|
|
|
<?php $this->_block('js');?>
|
|
|
<script type="text/javascript">
|
|
|
seajs.use('yohood',function(yohood){
|
|
|
yohood.brand();
|
|
|
})
|
|
|
// seajs.use('yohood',function(yohood){
|
|
|
// yohood.index();
|
|
|
// yohood.brand();
|
|
|
// })
|
|
|
// seajs.use(['jquery', 'channel'], function($, channel) {
|
|
|
// channel.common();
|
|
|
// channel.brand();
|
|
|
// seajs.use('yohood',function(yohood){
|
|
|
// yohood.index();
|
|
|
// })
|
|
|
seajs.use(['jquery', 'channel'], function($, channel) {
|
|
|
channel.common();
|
|
|
channel.brand();
|
|
|
})
|
|
|
</script>
|
|
|
<?php $this->_endblock();?> |
...
|
...
|
|