<?php

if (!defined('_GNUBOARD_')) exit;



// 최고관리자만 출력

if ($member['mb_id'] === $config['cf_admin']) {

?>

<style>

body:has(.fullmenu-active) .aquick_admin {

  display: none;

}



.aquick_admin {

  position: fixed;

  top: 0;

  right: 0;

  z-index: 9999999;

}



.aquick_admin .btn-open {

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  width: 4rem;

  height: 4rem;

  background: var(--black);

  color: var(--white);

}



.aquick_admin .menu-list {

  display: none;

  position: absolute;

  top: 0;

  right: 0;

  z-index: 1;

}



.aquick_admin .menu-list.active {

  display: block;

}



.aquick_admin .item {

  height: 10rem;

  width: 80px;

  border: 1px #ececec solid;

  margin-top: -1px;

}



.aquick_admin .item.black {

  background: #000 !important;

  height: 10.1rem;

  border:0px

}



.aquick_admin .primary {

  background: #4075bd;

}



.aquick_admin .primary-alpha {

  background: #6fa0b3;

}



.aquick_admin .secondary {

  background: #1a937d;

}



.aquick_admin .gray {

  background: #9aabbe;

}



.aquick_admin .btn-close {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  width: 100%;

  height: 100%;

  color: var(--white);

  background: transparent;

  border: none;

}



.aquick_admin .item {

  background: #fff;

}



.aquick_admin .item .btn-close span {

  margin-top: 0;

}



.aquick_admin .item a {

  display: flex;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  width: 100%;

  height: 100%;

  text-align: center;

  font-size: 14px;

  line-height: 1.5;

}



.aquick_admin .item span {

  display: block;

  margin-top: 0.4rem;

}



@media (max-width: 992px) {

  .aquick_admin {

    display: none;

  }

}

</style>

<div class="aquick_admin" id="hkMg93rgI8">

<div class="contents-container">

  <button type="button" class="btn-open ff-ico ti-gear">

    <span class="blind">퀵 메뉴 열기</span>

  </button>

  <ul class="menu-list">

    <li class="item black">

      <button type="button" class="btn-close ff-ico ti-x-sm">

        <span>닫기</span>

      </button>

    </li>

    <li class="item">

      <a href="<?php echo G5_URL ?>/adm/" target="_blank">

        <img src="https://temha.io/medias/icons/iconsax-outline/user-tick.svg" alt="영업점 조회">

        <span>관리자</span>

      </a>

    </li>

    <li class="item">

      <a href="<?php echo G5_URL ?>/temha_auto_page.php" target="_blank">

        <img src="https://temha.io/medias/icons/iconsax-outline/additem.svg" alt="보안센터">

        <span>페이지 <br>자동생성</span>

      </a>

    </li>

  </ul>

</div>

</div>

<script>

    (function() {

  $(function() {

    $(".aquick_admin[id=\'hkMg93rgI8\']").each(function() {

      const $block = $(this);

      $block.find(".btn-open").click(function() {

        $block.find(".menu-list").addClass("active");

      });

      $block.find(".btn-close").click(function() {

        $block.find(".menu-list").removeClass("active");

      });

    });

  });

})();

</script>

<?php

}

?>