header.php 4.9 KB
<?php $get_lang = isset($wp_query->query_vars['prisna_translate_seo_request'])?urldecode($wp_query->query_vars['prisna_translate_seo_request']):''; ?>
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<title><?php wp_title( ' ', true, 'right' );  ?></title>
<link rel="alternate" href="<?php echo home_url(); ?>/" hreflang="en" />
<link rel="apple-touch-icon-precomposed" href="">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link href="<?php bloginfo( 'template_url' ); ?>/style.css" rel="stylesheet">
<link href="<?php bloginfo( 'template_url' ); ?>/theme.css" rel="stylesheet">
<link href="<?php bloginfo( 'template_url' ); ?>/lightbox.css" rel="stylesheet">
<script src="<?php bloginfo( 'template_url' ); ?>/js/jquery.min.js"></script>
<script src="<?php bloginfo( 'template_url' ); ?>/js/common.js"></script>
<script src="<?php bloginfo( 'template_url' ); ?>/js/owl.carousel.js"></script>
<script src="<?php bloginfo( 'template_url' ); ?>/js/lightbox.min.js"></script>
<script src="<?php bloginfo( 'template_url' ); ?>/js/view.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/js/custom_service.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/js/jquery.flexslider-min.js"></script>
<!--[if lt IE 9]>
<script src="<?php bloginfo( 'template_url' ); ?>/js/html5.js"></script>
<![endif]-->
<?php query_posts(array( 'post_type' => '3code','showposts' => 1,'orderby' => 'post_date','order'=> 'DESC') );  while (have_posts()) : the_post();?>
<?php if( get_field('ad_service') ): ?><link type="text/css" rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/custom_service_on.css" />
<?php else: ?><link type="text/css" rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/custom_service_off.css" /><?php endif; ?>
<?php the_field('3code_gw'); ?><?php endwhile; wp_reset_query();  ?>
<link rel="shortcut icon" href="<?php echo home_url(); ?>/favicon.ico" />
<?php wp_head();?>
</head>


<body>
	<section class="container">
    	<header class="head-wrapper">
            <nav class="topbar">
            	<section class="layout">
                    <div class="head-contact">
                    <?php query_posts(array( 'post_type' => 'ad_img','showposts' => 1,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
					<div class="head-phone">Phone: <?php the_field('lianxi_phone_01'); ?></div>
                    <div class="head-email">Email: <?php the_field('lianxi_mail_01'); ?></div>
					<?php endwhile; wp_reset_query();?>
                    </div>
                    <div class="top-rigth">
                    <div class="language"></div>
                        
                    </div>
                 </section>    
               </nav>
            <section class="header">
                <section class="layout">
<div class="logo"><?php query_posts(array( 'post_type' => 'ad_img','showposts' => 1,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
<a href="<?php echo home_url(); ?>/"><img src="<?php $image = get_field('ad_logo');if( !empty($image) ): ?><?php echo $image['url']; ?><?php endif; ?>" alt="<?php wp_title( ' ', true, 'right' );  ?>"></a>
<?php endwhile; wp_reset_query(); ?></div>
                        <section class="head-right">
                        	<a href="<?php echo home_url(); ?>/help/contact-us" class="quote">REQUEST A QUOTE</a>
                            <section class="head-search-bg">
                                <section class="head-search">
<form class="pro-search"  action="<?php bloginfo('home'); ?>" method="get">
        <input class="search-ipt" type="text" value="Enter Keywords... <?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
        <input type="hidden" name="cat" value="490"/>
        <input class="search-btn" type="submit" id="searchsubmit" value="" />
</form>                                </section>
                             </section>  
                            
                            
                        </section>
                       
                        
                </section>
            </section>
            <nav class="nav-bar">
                              <section class="nav-wrap">
                                 <ul class="nav">
                                    <li class="ico-home" ><a href="<?php 
$result='http://cms.goodao.cn/'
 if ($get_lang!='') 	
		  $result = str_replace("http://cms.goodao.cn/","http://cms.goodao.cn/".$get_lang."/",$result);
	  else
		  echo $result;

									?>/">1111</a></li>
<?php 
$menu=str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('menu' => 31, 'echo' => false)) ));

echo $menu
?>
                                 </ul>
                              </section>
                           </nav>
        </header>