<?php
/*
 * asktheme 관리자 head.php
 */
if (!defined('_GNUBOARD_')) {
    exit;
} // 개별 페이지 접근 불가
include_once(G5_THEME_PATH . '/head.sub.php');
add_stylesheet('<link rel="stylesheet" href=" ' . G5_PLUGIN_URL . '/asktheme/_admin/ask_admin.css">');
?>
<div id="header">
    <div class="row">
        <div class="ask-logo">
            <a href='/' class='ask-logo-link'>
                <span style="font-weight: 600; font-size: 2.5em;"><span style="color: #2871CC">A</span><span style="color:#3B9F17">S</span><span style="color:#3B9F17">K</span><span style="color:#666; font-size: .75em">Theme</span></span>
            </a>
        </div>
        <div class='ask-main-menu'>
            <ul class="ask-default-menu">
                <li class="ask-parent">
                    <a href="<?php echo G5_PLUGIN_URL ?>/asktheme/_admin/" class="ask-parent-link">Theme</a>
                    <ul class="dropdown">
                        <li><a href="http://www.asktheme.net/bbs/content.php?co_id=license&gr_id=theme" target="_blank">라이센스</a></li>
                        <li><a href="http://www.asktheme.net/bbs/board.php?bo_table=theme_download" target="_blank">다운로드</a></li>
                        <li><a href="http://www.asktheme.net/bbs/board.php?bo_table=qna" target="_blank">질문답변</a></li>
                    </ul>
                </li>
                <li class="ask-parent">
                    <a href="<?php echo G5_PLUGIN_URL ?>/asktheme/_admin/plugin/plugin_admin.php" class="ask-parent-link">플러그인관리</a>
                </li>
                <li class="ask-parent">
                    <a href="http://www.asktheme.net/" target="_blank" class="ask-parent-link">도움말</a>
                </li>
                <li class="ask-parent">
                    <a href="#memberbox" class="open-member ask-slide-menu ask-parent-link" data-status="close" data-target="member-box"><i class="fa fa-user"></i></a>
                </li>
            </ul>
            <!-- 테마관리자 모바일 메뉴 -->
            <ul class="ask-mobile-menu ask-mobile-menu-sample">
                <li class="ask-mobile-parent">
                    <a href="/" target="_self" class="ask-mobile-parent-link">HOME</a>
                </li>
                <li class="ask-mobile-parent">
                    <span class="ask-submenu"><i class="fa fa-angle-down"></i></span>
                    <a href="<?php echo G5_PLUGIN_URL ?>/asktheme/_admin/" target="_self" class="ask-mobile-parent-link">THEME</a>
                    <ul class="dropdown">
                        <li><a href="http://www.asktheme.net/bbs/content.php?co_id=license&gr_id=theme" target="_blank">라이센스</a></li>
                        <li><a href="http://www.asktheme.net/bbs/board.php?bo_table=qna" target="_blank">질문답변</a></li>
                    </ul>
                </li>
                <li class="ask-mobile-parent">
                    <a href="<?php echo G5_PLUGIN_URL ?>/asktheme/_admin/plugin/plugin_admin.php" class="ask-mobile-parent-link">플러그인관리</a>
                </li>
                <li class="ask-mobile-parent">
                    <a href="http://www.asktheme.net/" target="_self" class="ask-mobile-parent-link">도움말</a>
                </li>
            </ul>
        </div>
        <a href='#' class='open-mobile-member ask-slide-menu' data-status="close" data-target="member-box"><i class="fa fa-2x fa-user"></i></a>
        <a href='#' class='open-mobile-menu ask-slide-menu' data-status="close" data-target="ask-mobile-menu"><i class="fa fa-2x fa-bars"></i></a>
        <div class='member-box'>
            <?php
            $member_menu = "<ul>";
            if ($is_admin) {
                $member_menu .= "<li><a href='" . G5_ADMIN_URL . "'><i class='fa fa-cog'></i> 관리자</a></li>";
            }
            if ($is_member) {
                $member_menu .= "<li><a href='" . G5_BBS_URL . "/logout.php'>로그아웃</a></li>";
            }
            $member_menu .= "</ul>";
            echo $member_menu;
            ?>
        </div>

    </div>
</div><!--.header-->
<div id="container admin">
    <div class="row">
        <div id="aside" class="small-12 medium-12 large-3 columns">
            <?php
            $sidemenu_path = G5_PLUGIN_PATH . '/asktheme/plugin/' . $plugin['id'] . '/' . $plugin['sidemenu'];
            if ($plugin['sidemenu'] && file_exists($sidemenu_path)) {
                include_once $sidemenu_path;
            }
            ?>
            <div class="alert alert-info">
                asktheme 플러그인은 테마 전용입니다. <br/>
                문의는 <a href="http://www.asktheme.net/bbs/board.php?bo_table=qna" target='_blank'>질문게시판 <i class="fa fa-link"></i></a>을 이용해주세요.
            </div>
        </div>
        <div id="contents" class="small-12 medium-12 large-9 columns ">