<?php

# session
$SES_MEMBER_ID              = $this->session->userdata('C_Member_Id');
$SES_MEMBER_NAME            = $this->session->userdata('C_Member_Name');
$SES_MEMBER_NICNAME         = $this->session->userdata('C_Member_Nicname');
$SES_MEMBER_PROFILE         = $this->session->userdata('C_Member_Profile');
$SES_MEMBER_GROUPNAME       = $this->session->userdata('C_Member_Group_Name');
$SES_MEMBER_INTRO           = $this->session->userdata('C_Member_Intro');
$SES_MEMBER_EMAIL           = $this->session->userdata('C_Member_Email');
if($SES_MEMBER_NICNAME == '')   $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
if($SES_MEMBER_PROFILE==''){
	$SES_MEMBER_PROFILE = '/img/web/life_profile.png';
}
$method =  $this->uri->segment(3);
?>

<header class="site-head--inner">
   <div class="logoline">
    <div class="container">
      <button class="nav-toggle" data-toggle=".nav-wrap"><img src="/renew2/img/ic-menu.png"></button>
      <div class="logo"><a href="/"><img src="/renew2/img/logo.svg" alt="크로스맵" style="width:63.797px; height:18px"></a></div>
      <div class="login">
        <?if($SES_MEMBER_ID=='') {?>
              <a onclick="go_loging()" href="javascript:void(0);">로그인</a>
              <a href="/web/user/register">회원가입</a>
        <?} else {?>
          <a href="/web/mypage/bookmark">내 정보</a>
          <a href="/web/member/logout_proc">로그아웃</a>
        <?}?>
      </div>
    </div>
   </div>
  </div>
  <!--Desktop Nav-->
  <div class="navline">
    <div class="container">
      <nav class="section-nav">
        <h1 <?php if((isset($menu_home)==TRUE && $menu_home>0) || (isset($menu_list)==TRUE && $menu_list>0)|| (isset($menu_article)==TRUE && $menu_article>0)) echo 'class="current"'; ?>><a href="/web/maptoon">웹툰</a></h1>
        <ul>
          <li <?php if(isset($menu_ongoing)==TRUE && $menu_ongoing>0) echo 'class="current"'; ?>><a href="/web/maptoon/ongoing">연재웹툰</a></li>
          <li <?php if(isset($menu_completed)==TRUE && $menu_completed>0) echo 'class="current"'; ?>><a href="/web/maptoon/completed">완결웹툰</a></li>
        </ul>
      </nav>
        <button class="search-toggle" data-add=".search"><img src="/renew2/img/ic-search.png"></button>
        <!-- Search Over -->
        <div class="search">
          <div class="container">
            <button class="btn-close" data-remove=".search"><img src="/renew2/img/ic-close.gif"></button>
            <form action="/web/search/" class="site-head-search" method="get">
              <input type="text" name="search_keyword" id="site-head-search" placeholder="검색어를 입력하세요">
              <button type="submit"><i class="fa fa-search"></i></button>
            </form>
         </div>
        </div> 
    </div>
  </div>
</header>

<!-- <script>
function go_loging(e){
  e.preventDefault();
  location.href="/web/user/login?url="+encodeURIComponent(document.URL);
}
</script> -->
