<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Crossmap Admin - <?php echo SITE_NAME; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css" />
    <link href="<?php echo ADMIN_THEME; ?>/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo ADMIN_THEME; ?>/css/sb-admin.css" rel="stylesheet">
    <link href="<?php echo ADMIN_THEME; ?>/css/crossmap-adm.css" rel="stylesheet">
    <link href="<?php echo ADMIN_THEME; ?>/css/jquery.fancybox-1.3.4.css" rel="stylesheet">
    <link href="<?php echo ADMIN_THEME; ?>/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tag-editor/1.0.20/jquery.tag-editor.min.css" />
    <script src="<?php echo ADMIN_THEME; ?>/js/jquery-1.10.2.min.js"></script>
    <script src="<?php echo ADMIN_THEME; ?>/js/jquery.fancybox-1.3.4.pack.js"></script>
    <script src="<?php echo ADMIN_THEME; ?>/js/jquery-ui-1.9.2.js"></script>
    <script src="<?php echo ADMIN_THEME; ?>/js/jquery.nestable.js"></script>
    <script src="<?php echo ADMIN_THEME; ?>/js/excanvas.min.js"></script>
    <script src="<?php echo ADMIN_THEME; ?>/js/bootstrap.js"></script>
    <script src="<?php echo ADMIN_THEME; ?>/js/base.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tag-editor/1.0.20/jquery.tag-editor.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/caret/1.3.4/jquery.caret.min.js"></script>
</head>

<body>
    <div id="wrapper">
        <!-- 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="<?php echo BASE_URL;?>/admin"><img
                        src="<?php echo ADMIN_THEME; ?>/images/logo.svg" class="logo-icon" alt="Hoosk CMS"></a>
            </div>
            <!-- Top Menu Items -->
            <ul class="nav navbar-right top-nav">
                <li>
                    <a href="<?php echo BASE_URL; ?>" 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>
                        <?php echo $this->session->userdata('userName'); ?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="<?php echo BASE_URL ; ?>/admin/logout"><i class="fa fa-fw fa-power-off"></i>
                                <?php echo $this->lang->line('nav_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="<?php if ($current == "") { echo "active"; } ?>">
                        <a href="<?php echo BASE_URL; ?>/admin"><i class="fa fa-dashboard"></i>
                            <span><?php echo $this->lang->line('nav_dash'); ?></span> </a>
                    </li>
                    <li class="dropdown <?php if ($current == "pages") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#pagesmenu"> <i class="fa fa-file">
                            </i> <span><?php echo $this->lang->line('nav_pages'); ?></span> <i
                                class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="pagesmenu" class="collapse<?php if ($current == "pages") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "pages")&&($this->uri->segment(3)=="")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/pages"><?php echo $this->lang->line('nav_pages_all'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "pages")&&($this->uri->segment(3)=="new")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/pages/new"><?php echo $this->lang->line('nav_pages_new'); ?></a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?php if ($current == "posts") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#postsmenu"> <i
                                class="fa fa-newspaper-o"></i>
                            <span><?php echo $this->lang->line('nav_posts'); ?></span> <b class="caret"></b></a>
                        <ul id="postsmenu" class="collapse<?php if ($current == "posts") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "posts")&&($this->uri->segment(3)=="")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/posts"><?php echo $this->lang->line('nav_posts_all'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "posts")&&($this->uri->segment(3)=="new")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/posts/new"><?php echo $this->lang->line('nav_posts_new'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "posts")&&($this->uri->segment(3)=="categories")&&($this->uri->segment(4)=="")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/posts/categories"><?php echo $this->lang->line('nav_categories_all'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "posts")&&($this->uri->segment(3)=="categories")&&($this->uri->segment(4)=="new")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/posts/categories/new"><?php echo $this->lang->line('nav_categories_new'); ?></a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?php if ($current == "comments") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#commentsmenu"> <i
                                class="fa fa-newspaper-o"></i>
                            <span>Comments</span> <b class="caret"></b></a>
                        <ul id="commentsmenu" class="collapse<?php if ($current == "comments") { echo " in"; } ?>">
                            
                            <li
                                <?php if ($current == "comments") { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/comments">All Comments</a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?php if ($current == "pray") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#praymenu"> <i
                                class="fa fa-newspaper-o"></i>
                            <span>Pray</span> <b class="caret"></b></a>
                        <ul id="praymenu" class="collapse<?php if ($current == "pray") { echo " in"; } ?>">
                            
                            <li
                                <?php if ($current == "pray") { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/pray">All Pray</a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?php if ($current == "users") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#usersmenu"> <i
                                class="fa fa-user"></i>
                            <span><?php echo $this->lang->line('nav_users'); ?></span> <b class="caret"></b></a>
                        <ul id="usersmenu" class="collapse<?php if ($current == "users") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "users")&&($this->uri->segment(3)=="")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/users"><?php echo $this->lang->line('nav_users_all'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "users")&&($this->uri->segment(3)=="new")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/users/new"><?php echo $this->lang->line('nav_users_new'); ?></a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown <?php if ($current == "navigation") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#navigationmenu"> <i
                                class="fa fa-list-alt"></i>
                            <span><?php echo $this->lang->line('nav_navigation'); ?></span> <b class="caret"></b></a>
                        <ul id="navigationmenu" class="collapse<?php if ($current == "navigation") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "navigation")&&($this->uri->segment(3)=="")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/navigation"><?php echo $this->lang->line('nav_navigation_all'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "navigation")&&($this->uri->segment(3)=="new")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/navigation/new"><?php echo $this->lang->line('nav_navigation_new'); ?></a>
                            </li>
                        </ul>
                    </li>

                    <li class="dropdown <?php if ($current == "data") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#datamenu"> <i
                                class="fa fa-cogs"></i>
                            <span>Data<?php echo $this->lang->line('nav_data'); ?></span> <b class="caret"></b></a>
                        <ul id="datamenu" class="collapse<?php if ($current == "data") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "data")&&($this->uri->segment(3)=="chtoday")) { echo ' class="active"'; } ?>>
                                <a href="<?php echo BASE_URL; ?>/admin/data/chtoday">
                                    <span>Chtoday<?php echo $this->lang->line('nav_data_chtoday'); ?></span> </a>
                            </li>
                            <li
                                <?php if (($current == "data")&&($this->uri->segment(3)=="chdaily")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/data/chdaily">Chdaily<?php echo $this->lang->line('nav_data_chdaily'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "data")&&($this->uri->segment(3)=="chdailykr")) { echo ' class="active"'; } ?>>
                                <a href="<?php echo BASE_URL; ?>/admin/data/chdailykr">
                                    <span>Chdaily KR<?php echo $this->lang->line('nav_data_chdailykr'); ?></span> </a> </li>
                        </ul>
                    </li>



                    <li class="dropdown <?php if ($current == "data") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#datamenu"> <i
                                class="fa fa-cogs"></i>
                            <span>Data<?php echo $this->lang->line('nav_data'); ?></span> <b class="caret"></b></a>
                        <ul id="datamenu" class="collapse<?php if ($current == "data") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "data")&&($this->uri->segment(3)=="chtoday")) { echo ' class="active"'; } ?>>
                                <a href="<?php echo BASE_URL; ?>/admin/data/chtoday">
                                    <span>Chtoday<?php echo $this->lang->line('nav_data_chtoday'); ?></span> </a>
                            </li>
                            <li
                                <?php if (($current == "data")&&($this->uri->segment(3)=="chdaily")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/data/chdaily">Chdaily<?php echo $this->lang->line('nav_data_chdaily'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "data")&&($this->uri->segment(3)=="chdailykr")) { echo ' class="active"'; } ?>>
                                <a href="<?php echo BASE_URL; ?>/admin/data/chdailykr">
                                    <span>Chdaily KR<?php echo $this->lang->line('nav_data_chdailykr'); ?></span> </a> </li>
                        </ul>
                    </li>

                    

                    <li class="dropdown <?php if ($current == "settings") { echo "active"; } ?>">
                        <a href="javascript:;" data-toggle="collapse" data-target="#settingsmenu"> <i
                                class="fa fa-cogs"></i>
                            <span><?php echo $this->lang->line('nav_settings'); ?></span> <b class="caret"></b></a>
                        <ul id="settingsmenu" class="collapse<?php if ($current == "settings") { echo " in"; } ?>">
                            <li
                                <?php if (($current == "settings")&&($this->uri->segment(3)=="default")) { echo ' class="active"'; } ?>>
                                <a href="<?php echo BASE_URL; ?>/admin/settings/default">
                                    <span>Default<?php echo $this->lang->line('nav_settings_default'); ?></span> </a>
                            </li>
                            <li
                                <?php if (($current == "settings")&&($this->uri->segment(3)=="roles")) { echo ' class="active"'; } ?>>
                                <a
                                    href="<?php echo BASE_URL; ?>/admin/settings/roles">Roles<?php echo $this->lang->line('nav_settings_roles'); ?></a>
                            </li>
                            <li
                                <?php if (($current == "settings")&&($this->uri->segment(3)=="social")) { echo ' class="active"'; } ?>>
                                <a href="<?php echo BASE_URL; ?>/admin/settings/social">
                                    <span><?php echo $this->lang->line('nav_social'); ?></span> </a> </li>
                        </ul>
                    </li>


                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </nav>

        <div id="page-wrapper">