<?php if (is_mobile() ): ?>

   <?php include( TEMPLATEPATH . '/wap/index.php' ); ?>

<?php else: ?>


<?php get_header();?>


<?php $general_options = get_option('ashuwp_general');//调用后台总数据?>
<?php 

	$catid01=$general_options['catid01'];//新闻资讯
	$catid02=$general_options['catid02'];//产品展示
	$catid03=$general_options['catid03'];//运输线路
?> 
 
<!--ibanner/-->

<div class="contNav">
  <div class="newfut "> <strong>新闻资讯:</strong>
    <div id="newsfut" class="swiper-container swiper-container-1">
      <div  class="swiper-wrapper swiper-wrapper-1"> 
	  
	  
<?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid01.'' . $mcatID. '&caller_get_posts=1&showposts=7'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" class="swiper-slide"><?php the_title(); ?></a>
<?php endwhile;?>
<?php endif; wp_reset_query(); ?>
 </div>
    </div>
  </div>
  <!--width1000/--> 
</div>
<!--contNav/-->
<div class="clear"></div>
<div class="insale">
  <div class="width1100">
    <div class="catname">
      <div class="width300"> <span class="prostr">PRODUCT</span>
        <div class="xian"></div>
        <span class="proem">产品展示</span>
        <div class="xian"></div>
        <div class="clear"></div>
      </div>
      <div class="desc"><?php echo category_description($catid02); ?></div>
    </div>
    <div class="salelist " id="demos" >
      <div id="indemos">
        <ul id="demos1">
		
		<?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid02.'' . $mcatID. '&caller_get_posts=1&showposts=6'); ?>
<?php while (have_posts()) : the_post(); ?>
          <li class="swiper-slide"> <a href="<?php the_permalink() ?>"> 
<?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(); ?>	  

        </ul>
        <ul id="demos2">
        </ul>
      </div>
    </div>
  </div>
</div>
<div class="clear"></div>
<div class="inline">
  <div class="width1100">
    <div class="catname"> <span class="prostr">TRANSPORT LINE</span> <span class="proem">运输线路</span>
      <div class="desc"><?php $catjs = category_description( $catid03 ); if($catjs !=''){echo $catjs;}else{echo '是一家及货物公路运输、配载、信息服务、仓储中转理货为一体的综合性物流企业。全天候服务优势准时、准点、安全、环保、快捷。';}?></div>
      <a href="<?php echo get_category_link($catid03);?>" class="more">查看更多</a> </div>
    <div class="linelist">
      <ul>
	  <?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid03.'' . $mcatID. '&caller_get_posts=1&showposts=6'); ?>
<?php while (have_posts()) : the_post(); ?>
        <li><a href="<?php the_permalink() ?>"><i></i>
          <div class="desc"><span><?php the_title(); ?></span>
            <p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 16,'……'); ?></p>
          </div>
          </a></li>
		  <?php endwhile;?>
<?php endif; wp_reset_query(); ?>

      </ul>
    </div>
  </div>
</div>
<div class="clear"></div>
<div class="inabout">
  <div class="width1100">
    <div class="inaboutdesc">
      <div class="desc"> <div class="catname"><span>About</span><span>关于我们</span></div>
        <p>  <?php if($general_options['aboutus']) {?>
<?php echo $general_options['aboutus']; ?>
<?php }else{?>广州某某物流有限公司于2008年8月在大连成立,注册资金500万元，是经批准注册成立的国际货运代理企业，有进出口代理报检、报关权及专做贸易窗口代理的国际商贸公司。拥有大连市著名商标中寰物流；2015年6月在大连股权交易市场挂牌，代码为200050；2017年3月通过ISO9001:2015质量管理体系认证。 经过全体员工多年坚持不懈的努力，现已在海运、空运、公路运输、铁路运输、进出口贸易等方面得以全面开拓发展，具体业务包括国际海运进出口的运输、国内及国际空运的进出口运输、国内及国际的铁路运输、集装箱运输、危险品运输、报检、报关、代办运输保险等货运代理服务；承接环黄、渤海、长江沿线各个支线点的内贸集装箱门到门运输服务；提供进出口相关的付汇、收汇、 退税等外贸窗口代理服务。随着各方面业务的逐渐成熟与完善，中寰物流现...<?php } ?></p>
        <a href="<?php echo $general_options['abouturl']; ?>" class="more">更多+</a> </div>
    </div>
  </div>
</div>
<div class="clear"></div>
<div class="innewconcat">
  <div class="width1100"> <div class="innew">
      <div class="innewcat">
        <div class="catname"> <span>News</span> <span>新闻资讯</span> </div>
        <a href="<?php echo get_category_link($catid01);?>" class="more">更多+</a> </div>
      <ul class="innewconlist">
	  
	    <?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid01.'' . $mcatID. '&caller_get_posts=1&showposts=2'); ?>
<?php while (have_posts()) : the_post(); ?>
        <li class="fsecond"> <a href="<?php the_permalink() ?>"> <i><?php echo(1+$cmntCnw++); ?></i>
          <div class="desc"> <span><?php the_title(); ?></span>
            <p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 200,'……'); ?></p>
          </div>
          </a> </li>
  <?php endwhile;?>
<?php endif; wp_reset_query(); ?>

<?php if (have_posts()) : ?>
<?php query_posts('cat='.$catid01.'' . $mcatID. '&caller_get_posts=1&showposts=5&offset=2'); ?>
<?php while (have_posts()) : the_post(); ?>
        
        <li class="last"> <a href="<?php the_permalink() ?>"> <i></i> <span><?php the_title(); ?></span>
          <time><?php the_time('Y-m-d'); ?></time>
          </a> </li>
 <?php endwhile; ?>
<?php endif; wp_reset_query(); ?>

      </ul>
    </div>
    <div class="incontact"> <div class="incontactcat">
        <div class="catname"> <span>CONTACT</span> <span>联系我们</span> </div>
        <a href="<?php echo $general_options['contactus']; ?>" class="more">更多+</a> </div>
      <div class="fimg"><img src="<?php bloginfo('template_directory'); ?>/static/picture/incontact.jpg"></div>
      <span><?php bloginfo('name'); ?></span>
      <ul>
        <li>地址：<?php echo $general_options['dizhi']; ?></li>
        <li>热线：<?php echo $general_options['tellphone']; ?></li>
        <li>手机：<?php echo $general_options['shouji']; ?></li>
      </ul>
    </div>
  </div>
</div>
<?php get_footer();?>

<?php endif ;?>