 <?php
/*
	欢迎使用DM企业建站系统，本系统由www.demososo.com开发。
*/

if(!defined('IN_DEMOSOSO')) {
	exit('this is wrong page,please back to homepage');
}
$arr = dm_dirarr(dirname(__FILE__));
$jtpath = $arr['path'];
$css = $jtpath.'headermobile02.css';
getcssjs($css);

global $websitename;
global $searcherror;
global $searchtext;
?>
<header class="headerwrap stickytopmobi">

                    <div class="container">
                         <div class="header">
                            <div class="logo  ">
                               <?php
                                  
                                 echo '<a href="'.BASEURLPATH.'">';
                                echo '<img src="'.LOGOIMG.'" alt="'.$websitename.'" />';
                                 echo '</a>';
                                
                                 ?>
                               </div>

                                <div class="mobibtn"> </div>
                                 <?php
                                block('prog_lang');
                               // block('prog_user');
                                ?>

                            </div>
                    </div>

                <!-- Menu Mobile
                ============================================= -->
                <nav id="c-menu--slide-right" class="c-menu c-menu--slide-right">
                    <i class="mobiclose fa fa-times" aria-hidden="true"></i>


                   <div class="search-input search-inputmobi jssearchinput">
                   <form  action="<?php echo BASEURL;?>search.php" method="get" accept-charset="UTF-8">
                        <input type="text" name="keywords" data-error="<?php echo $searcherror;?>" value="<?php echo $searchtext;?>" />
                        <input type="hidden" name="lang" value="<?php echo LANGPATH?>" />
                        <button><i class="fa fa-search"></i></button>
                    </form>
                    </div>
                    <div class="menu needsuperfish">
                    <?php
                         require BLOCKROOT.'tpl/menudm.php';
                        ?>
                        </div>


                </nav>

                <div id="slide-overlay" class="slide-overlay"></div>
                <!-- Menu Mobile End -->
            </header>
<script type="text/javascript">
	$(function(){

    $('.mobibtn,.mobiclose,.slide-overlay,.menuonepage a').click(function(){

		   $('.c-menu--slide-right').toggleClass('is-active');
		   $('.slide-overlay').toggleClass('is-active');
	});


});

</script>
