<link href="/css/common/top_navigator.css" media="screen" rel="stylesheet" type="text/css" />
<nav id="header" class="navbar navbar-expand-lg">
    <div class="container-fluid">
        <nav class="nav">
            <span style="float:left;"><?= ICONS['LOGO'] ?></span>
        </nav>
        <ul class="nav justify-content-center">
            <li class="nav-item">
                <a href="<?= MESSENGERS['skype']['url'] ?>"><?= MESSENGERS['skype']['icon'] ?></a>&nbsp;
                <a href="<?= MESSENGERS['discord']['url'] ?>"><?= MESSENGERS['discord']['icon'] ?></a>&nbsp;
                <a href="<?= MESSENGERS['telegram']['url'] ?>"><?= MESSENGERS['telegram']['icon'] ?></a>&nbsp;
                <a href="<?= MESSENGERS['kakaotalk']['url'] ?>"><?= MESSENGERS['kakaotalk']['icon'] ?></a>
                <!-- <form class="d-flex me-20" role="search">
          <input class="form-control" type="search" placeholder="Search" aria-label="Search">
          <button class="btn btn-outline-success" type="submit">Search</button>
        </form> -->
            </li>
        </ul>
        <ul class="nav justify-content-end">
            <li class="cart nav-item">
                <?= anchor('/front/order', ICONS['CART'], ["target" => "_self"]); ?>
            </li>
            <li class="nav-item">
            <li class="nav-item dropdown">
                <?php if ($viewDatas[SESSION_NAMES['ISLOGIN']]): ?>
                    <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                        aria-expanded="false">
                        <?= ICONS['LOGIN'] ?>     <?= $viewDatas['session']->get(SESSION_NAMES['AUTH'])[AUTH_FIELDS['TITLE']] ?>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-end">
                        <li><a class="dropdown-item" href="/front/user/update/<?= $viewDatas['session']->get(SESSION_NAMES['AUTH'])[AUTH_FIELDS['ID']]
                            ?>"><?= ICONS['SETUP'] ?>수정</a></li>
                        <li>
                            <hr class="dropdown-divider">
                        </li>
                        <li><a class="dropdown-item" href="<?= URLS['LOGOUT'] ?>"><?= ICONS['LOGOUT'] ?>Logout</a></li>
                    </ul>
                <?php else: ?><a class="nav-link dropdown-toggle" href="<?= URLS['LOGIN'] ?>"
                        role="button"><?= ICONS['LOGIN'] ?>Login</a><?php endif ?>
            </li>
            </li>
        </ul>
    </div>
</nav>