 <?php include( TEMPLATEPATH . '/wap/header.php' ); ?>
  <div class="content content_new"> 
    <!--幻灯片图片开始-->
    <div class="banner">
      <div class="swiper-container">
        <div class="swiper-wrapper"> 
		
		<?php $general_options = get_option('ashuwp_general');//调用后台总数据?>

 <?php	
  $bannerarr = $general_options['banner'];
  if(is_array($bannerarr)){?>
  
  <?php for($i=0;$i<count($bannerarr);$i++){?>
  <div class="swiper-slide"><img src="<?php echo $bannerarr[$i+1]['image']; ?>"></div>
  <?php }}else{?>
  
  <div class="swiper-slide"><img src="<?php bloginfo('template_directory'); ?>/wap/static/picture/1-1pfzz3131a.jpg"></div>
<div class="swiper-slide"><img src="<?php bloginfo('template_directory'); ?>/wap/static/picture/1-1pfzz25g93.jpg"></div>
<div class="swiper-slide"><img src="<?php bloginfo('template_directory'); ?>/wap/static/picture/1-1pfzz23un.jpg"></div>
  
  <?php }?>
		
		
 </div>
        <div class="swiper-pagination"></div>
      </div>
    </div>
    <!--幻灯片图片结束--> 
    
    <!--首页导航开始-->
    <div class="nav_new">
      <ul class="wapnavul">
        <?php if(function_exists('wp_nav_menu')) wp_nav_menu(array('theme_location' =>'topmenu','container' => false, 'items_wrap' => '%3$s','depth' => 1 )); ?>
        
      </ul>
      <div class="c"></div>
    </div>
    <!--首页导航结束--> 
	
	
	
	
	<?php $general_options = get_option('ashuwp_general');//调用后台总数据?>
<?php 

	$catid01=$general_options['catid01'];//新闻资讯
	$catid02=$general_options['catid02'];//产品展示
	$catid03=$general_options['catid03'];//运输线路
?> 
    
    <!--热销服装开始--> 
    <div class="common_title">
      <h2><i></i><br>
        产品展示</h2>
      <span></span></div>
    <div class="index_show">
      <ul>
          <?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid02.'' . $mcatID. '&caller_get_posts=1&showposts=4'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a  href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php if ( has_post_thumbnail() ) { ?><?php $post_ID=$post->ID;$post_thumbnail_id = get_post_thumbnail_id( $post_ID );$post_thumbnail_src = wp_get_attachment_image_src($post_thumbnail_id,'Full');?><img src="<?php echo $post_thumbnail_src[0]; ?>" alt="<?php the_title(); ?>" /><?php }else {?><img src="<?php echo get_first_image(); ?>" alt="<?php the_title(); ?>" /><?php }?><span> <?php the_title(); ?> </span></a></li>
<?php endwhile;?>
<?php endif; wp_reset_query(); ?>
        <div class="clear"></div>
      </ul>
    </div>
    <div class="more_i"><a href="<?php echo get_category_link( $catid02 );?>" title="点击查看更多">点击查看更多</a></div> 
    <!--热销服装结束--> 
    
    <!--服装展厅开始--> 
    
    <div class="common_title">
      <h2><i></i><br>
        运输线路</h2>
      <span></span></div>
    <div class="index_show">
      <ul>
	  
	  <?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid03.'' . $mcatID. '&caller_get_posts=1&showposts=4'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a  href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php if ( has_post_thumbnail() ) { ?><?php $post_ID=$post->ID;$post_thumbnail_id = get_post_thumbnail_id( $post_ID );$post_thumbnail_src = wp_get_attachment_image_src($post_thumbnail_id,'Full');?><img src="<?php echo $post_thumbnail_src[0]; ?>" alt="<?php the_title(); ?>" /><?php }else {?><img src="<?php echo get_first_image(); ?>" alt="<?php the_title(); ?>" /><?php }?><span> <?php the_title(); ?> </span></a></li>
<?php endwhile;?>
<?php endif; wp_reset_query(); ?>
        

        <div class="clear"></div>
      </ul>
    </div>
    <div class="more_i"><a href="<?php echo get_category_link( $catid03 );?>" title="点击查看更多">点击查看更多</a></div> 
    <!--服装展厅结束--> 
    
    <!--公司动态开始--> 
    
    <div class="common_title">
      <h2><i></i><br>
        新闻资讯</h2>
      <span></span></div>
    <div class="case_i_c">
      <ul>
	  
	    <?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid01.'' . $mcatID. '&caller_get_posts=1&showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
        <li> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
		<?php if ( has_post_thumbnail() ) { ?><?php $post_ID=$post->ID;$post_thumbnail_id = get_post_thumbnail_id( $post_ID );$post_thumbnail_src = wp_get_attachment_image_src($post_thumbnail_id,'Full');?><img src="<?php echo $post_thumbnail_src[0]; ?>" alt="<?php the_title(); ?>" width="15%" /><?php }else {?><img src="<?php echo get_first_image(); ?>" alt="<?php the_title(); ?>" width="15%" /><?php }?>
          <h2 ><?php the_title(); ?></h2>
          <span><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 80,'……'); ?></span><i class="cricle1"></i><i class="cricle2"></i><i class="cricle3"></i><i class="cricle4"></i></a></li>
<?php endwhile;?>
<?php endif; wp_reset_query(); ?>
      </ul>
    </div>
    <div class="more_i"><a href="<?php echo get_category_link( $catid01 );?>" title="点击查看更多">点击查看更多</a></div> 
    <!--公司动态结束--> 
    
    <!--联系方式开始-->
    <div class="hotline"> <a href="tel:<?php echo $general_options['tellphone']; ?>" class="tel_number"><?php echo $general_options['tellphone']; ?></a><br>
      地址：<?php echo $general_options['dizhi']; ?><br>
      邮箱：<?php echo $general_options['email']; ?></div>
    <!--联系方式结束-->
    <div class="cbtn-top"><a href="javascript:;"><img src="<?php bloginfo('template_directory'); ?>/wap/static/picture/gotop.png"></a></div>
    <div class="beian">技术支持：<a href="https://aiwangxue.com/" target="_blank">Wordpress模板阁</a></div>
  </div>
 <?php include( TEMPLATEPATH . '/wap/footer.php' ); ?>