<header id="header">
    <div class="header">
        <div class="top_header">
            <div class="container">
                <div class="row">
                    <button class="nav-toggle" data-toggle=".nav-wrap"><img src="https://crossmap.christiandaily.co.kr/renew2/img/ic-menu.png"></button>
                    <h1><a href="/"><img src="https://crossmap.christiandaily.co.kr/renew2/img/logo.svg" alt="크로스맵" style="width:63.797px; height:18px"></a><span class="ir_pm">크로스맵</span></h1>
                    <ul class="loginbox">
                        <?php if ($this->session->userdata('C_Member_Id')) {?>
                        <li class="login"><a href="/web/mypage/bookmark">내 정보</a></li>
                        <li class="member"><a href="/web/member/logout_proc">로그아웃</a></li><?php } else {?> <li class="login"><a href="/web/user/login">로그인</a></li>
                        <li class="member"><a href="/web/user/register">회원가입</a></li><?php }?>
                    </ul>
                </div>
            </div>
        </div>
        <div class="header_menu">
            <div class="container">
                <div class="row">
                    <nav class="nav">
                        <div class="swiper-containermenu2">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide"><a href="/">크맵 홈</a></div>
                                <div class="swiper-slide<?php echo $this->uri->segment(2) == 'news' ? ' current' : ''?>"><a href="/web/news">뉴스</a></div>
                                <div class="swiper-slide<?php echo $this->uri->segment(1) == 'grace' ? ' current' : ''?>"><a href="/grace">은혜충전</a></div>
                                <div class="swiper-slide<?php echo $this->uri->segment(1) == 'cmtv' ? ' current' : ''?>"><a href="/cmtv">크맵TV</a></div>
                                <div class="swiper-slide<?php echo $this->uri->segment(2) == 'prayer' ? ' current' : ''?>"><a href="/web/prayer">기도공감</a></div>
                                <div class="swiper-slide<?php echo $this->uri->segment(1) == 'reference' ? ' current' : ''?>"><a href="/reference">자료실</a></div>
                            </div>
                        </div>
                    </nav>
                    <div class="srch_btn">
                        <a href="#"><i class="fa fa-search" aria-hidden="true"></i></a>
                    </div>
                </div>
            </div>
        </div>

        <?php $this->load->view($this->uri->segment(1). '/menu')?>

        <div class="search">
            <div class="container">
                <button class="btn-close" data-remove=".search"><img src="https://crossmap.christiandaily.co.kr/renew2/img/ic-close.gif" alt=""></button>
                <form class="site-head-search" action="/web/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>
</header>