<?php
/*
 * 아웃로그인 스킨 - 로그인중
 */
if (!defined("_GNUBOARD_")) {
    exit;
} // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . G5_THEME_CSS_URL . '/skin/mobile/asktheme.outlogin.css">', 0);
?>
<!-- outlogin -->
<section id="outlogin-after">
    <div class="table-cell">
        <header id="ol_after_hd">
            <h2 class="sound-only">나의 회원정보</h2>
            <strong><?php echo $nick ?>님</strong>
            안녕하세요!

            <?php if ($is_admin == 'super' || $is_auth) { ?>
                <div class="button-group small">
                    <a href="<?php echo G5_ADMIN_URL ?>" class="hollow button" title="관리자"><i class="fa fa-cog"></i></a>
                    <a href='<?php echo G5_PLUGIN_URL ?>/asktheme/_admin/' class="warning hollow button" title="테마관리자"><i class='fa fa-cogs'></i></a>
                </div>
            <?php } ?>
        </header>
    </div>
    <div class="row ol-info">
        <div class="small-3 medium-3 large-3 columns">
            <a href="<?php echo G5_BBS_URL ?>/memo.php">
                <?php
                if ($memo_not_read == 0) {
                    $unread_icon_tag = "-o";
                }
                ?>
                <i class="fa fa-envelope<?php echo $unread_icon_tag ?>" aria-hidden="true"></i> &nbsp;
                <span class="sound-only">안 읽은 </span>쪽지
                <strong><?php echo $memo_not_read ?></strong>
            </a>
        </div>
        <div class="small-5 medium-5 large-5 columns">
            <a href="<?php echo G5_BBS_URL ?>/point.php">
                <i class="fa fa-money" aria-hidden="true"></i> &nbsp;
                포인트
                <strong><?php echo $point ?></strong>
            </a>
        </div>
        <div class="small-4 medium-4 large-4 columns">
            <a href="<?php echo G5_BBS_URL ?>/scrap.php">
                <i class="fa fa-bookmark-o" aria-hidden="true"></i> &nbsp;
                스크랩
            </a>
        </div>
    </div>
    <div class="ol-after-footer row large-collapse small-collapse medium-collapse">
        <div class="small-4 medium-4 large-4 columns"><a href="<?php echo G5_BBS_URL ?>/new.php?mb_id=<?php echo $member['mb_id'] ?>">내최신글</a></div>
        <div class="small-4 medium-4 large-4 columns"><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a></div>
        <div class="small-4 medium-4 large-4 columns"><a href="<?php echo G5_BBS_URL ?>/logout.php" id="ol_after_logout">로그아웃</a></div>
    </div>
</section>

<script>
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
    function member_leave()
    {
        if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
            location.href = "<?php echo G5_BBS_URL ?>/member_confirm.php?url=member_leave.php";
    }
</script>
<!-- // outlogin -->
