<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php $general_options = get_option('ashuwp_general');//调用后台总数据?>
<title><?php if ( is_home() ) { ?><?php if($general_options['wpd_title']) {?><?php echo $general_options['wpd_title']; ?><?php }else{?><?php bloginfo('name'); ?><?php } ?><?php } ?>
<?php if ( is_tag() ) { ?><?php single_tag_title(); ?><? $paged = get_query_var('paged'); if ( $paged > 1 ) printf('_ 第 %s 页 ',$paged); ?> - <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_page() ) { ?><?php echo trim(wp_title('',0)); ?><?php if (get_query_var('page')) { echo ' _ 第'; echo get_query_var('page'); echo '页';}?> - <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_category() ) {?><?php $cattitle = get_term_meta($cat,'cattitle',true);if($cattitle){echo $cattitle;}else{single_cat_title();}?><?php echo ' - '; bloginfo('name'); $paged = get_query_var('paged'); if ( $paged > 1 ) printf('_ 第 %s 页 ',$paged);} ?>
<?php if ( is_single() ) { ?><?php $wzseotit = get_post_meta($post->ID,'wzseotit',true);if($wzseotit){echo $wzseotit;}else{echo trim(wp_title('',0));} ?> - <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_author() ) { ?><?php } ?>
<?php if ( is_month() || is_day() ) { ?><?php the_time('Y - F'); ?> - <?php bloginfo('name'); ?><?php } ?>
<?php if (is_search() ) {?>'<?php echo $s; ?>' - <?php bloginfo('name'); ?><?php } ?>
<?php if (is_404() ) {?>'404' - <?php bloginfo('name'); ?><?php } ?>
</title>
<?php if ( is_home() ) { ?>
<meta name='description' content='<?php if($general_options['wpd_des']) {?><?php echo $general_options['wpd_des']; ?><?php }else{?><?php bloginfo('name'); ?><?php } ?>'/>
<meta name='keywords' content='<?php if($general_options['wpd_keys']) {?><?php echo $general_options['wpd_keys']; ?><?php }else{?><?php bloginfo('name'); ?><?php } ?>' />
<?php } ?>
<?php if ( is_single() ) { ?>
<?php $wzseodes = get_post_meta($post->ID,'wzseodes',true);if($wzseodes){?>
<meta name='description' content='<?php echo $wzseodes;?>' />
<?php }else{?>
<meta name='description' content='<?php echo trim(wp_title('',0)); ?>，<?php $des= mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 50,''); echo str_replace(array('\r\n', '\r', '\n'), '', $des);?>' />
<?php } ?><?php } ?>
<?php if ( is_category() ) { ?>
<meta name='description' content='<?php bloginfo('name'); ?><?php single_cat_title(); ?>' />
<meta name='keywords' content='<?php single_cat_title(); ?>' />
<?php } ?>
<link href="<?php bloginfo('template_directory'); ?>/static/css/css.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/static/css/swiper.min.css">
<link rel='stylesheet' href='<?php bloginfo( 'stylesheet_url' ); ?>'>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/admin/js/jquery.js" ></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/static/js/banner.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/static/js/swiper.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/static/js/js.js"></script>
</head>
<body>
<div class="top">
  <div class="width1100">
    <div class="hello">欢迎来到<?php bloginfo('name'); ?>官方网站！</div>
    <div class="tright"> <a href="<?php echo $general_options['contactus']; ?>">联系我们</a>  <a href="<?php echo $general_options['abouturl']; ?>">关于我们</a> <a href="<?php echo get_option('home'); ?>/">返回首页</a> </div>
  </div>
</div>
<div class="clear"></div>
<div class="head">
  <div class="logo"> <a href="<?php echo get_option('home'); ?>/">
    <h1><?php bloginfo('name'); ?></h1>
    </a> </div>
  <div class="nav">
    <div class="intel"> <span><?php echo $general_options['tellphone']; ?></span> <img src="<?php bloginfo('template_directory'); ?>/static/picture/intel.png" alt=""> </div>
    <div class="clear"></div>
    <?php wp_nav_menu( array( 'theme_location' =>'topmenu','container' => '','menu_class' => 'topnav','menu_id' => 'topmeau','depth' => 1, ) ); ?>
  </div>
</div>
<div class="clear"></div>


<div class="ibanner">
  <div class="ibanr">
    <div class="img">
      <ul>
 
  	<?php	
  $bannerarr = $general_options['banner'];
  if(is_array($bannerarr)){?>
 
 <?php for($i=0;$i<count($bannerarr);$i++){?>
  
  <li style="background:url(<?php echo $bannerarr[$i+1][image]; ?>);"></li>
  
   <?php }}else{?>
  
        <li style="background:url(<?php bloginfo('template_directory'); ?>/static/images/1-1pfzz3131a.jpg);"></li>
<li style="background:url(<?php bloginfo('template_directory'); ?>/static/images/1-1pfzz25g93.jpg);"></li>
<li style="background:url(<?php bloginfo('template_directory'); ?>/static/images/1-1pfzz23un.jpg);"></li>
<?php }?>
      
      </ul>
    </div>
  </div>
</div>
<div class="clear"></div>