<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/adm"><img src="/assets/adm/images/logo.svg"
                class="logo-icon" alt="Hoosk CMS"></a>
    </div>
    <!-- Top Menu Items -->
    <ul class="nav navbar-right top-nav">
        <li>
            <a href="/" target="_blank"><i class="fa fa-home"></i></a>
        </li>
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i>
                crossmap <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li>
                    <a href="/admin/login/logout_proc"><i class="fa fa-fw fa-power-off"></i>
                        Logout</a> </li>
            </ul>
        </li>
    </ul>
    <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav side-nav">
        <li class="dropdown<?php echo $this->uri->segment(2) == 'life' ? ' active':''?>">
                <a href="javascript:;" data-toggle="collapse" data-target=".cm-life-menu"> <i
                        class="fa fa-newspaper-o"></i>
                    <span>라이프관리</span> <b class="caret"></b></a>
                <ul class="collapse cm-life-menu<?php echo $this->uri->segment(2) == 'life' ? ' in':''?>">
                    <li>
                        <a href="/adm/life/category">서브메뉴관리</a>
                    </li>
                    <li>
                        <a href="/adm/life">콘텐츠관리</a>
                    </li>
                </ul>
            </li>
            <li class="dropdown<?php echo $this->uri->segment(2) == 'grace' ? ' active':''?>">
                <a href="javascript:;" data-toggle="collapse" data-target=".cm-grace-menu"> <i
                        class="fa fa-newspaper-o"></i>
                    <span>은혜충전관리</span> <b class="caret"></b></a>
                <ul class="collapse cm-grace-menu<?php echo $this->uri->segment(2) == 'grace' ? ' in':''?>">
                    <li>
                        <a href="/adm/grace/category">서브메뉴관리</a>
                    </li>
                    <li>
                        <a href="/adm/grace">콘텐츠관리</a>
                    </li>
                </ul>
            </li>
            <li class="dropdown<?php echo $this->uri->segment(2) == 'cmtv' ? ' active':''?>">
                <a href="javascript:;" data-toggle="collapse" data-target=".cm-cmtv-menu"> <i
                        class="fa fa-newspaper-o"></i>
                    <span>크로스맵TV관리</span> <b class="caret"></b></a>
                <ul class="collapse cm-cmtv-menu<?php echo $this->uri->segment(2) == 'cmtv' ? ' in':''?>">
                    <li>
                        <a href="/adm/cmtv/category">서브메뉴관리</a>
                    </li>
                    <li>
                        <a href="/adm/cmtv">콘텐츠관리</a>
                    </li>
                </ul>
            </li>
            <li class="<?php echo $this->uri->segment(2) == 'comment' ? 'active':''?>">
                <a href="/adm/comment"> <i class="fa fa-newspaper-o"></i> <span>코멘트 관리</span></a>
            </li>
            <li>
                <a href="/admin/main"> <i class="fa fa-newspaper-o"></i> <span>관리자(구버전)</span></a>
            </li>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
</nav>