2026-06-08 00:46:51 +09:00
|
|
|
<?php
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
/** @var list<array> $govNavItems */
|
|
|
|
|
/** @var int $govActiveParentIdx */
|
|
|
|
|
/** @var string $govActiveChildHref */
|
|
|
|
|
$activeParent = $govNavItems[$govActiveParentIdx] ?? $govNavItems[0] ?? null;
|
|
|
|
|
$sidebarTitle = $activeParent['name'] ?? 'MY MENU';
|
|
|
|
|
$activeChildHref = strtolower(ltrim((string) ($govActiveChildHref ?? ''), '/'));
|
|
|
|
|
?>
|
|
|
|
|
<aside class="sidebar">
|
|
|
|
|
<div class="my-menu-hd" id="portalSidebarTitle"><?= esc($sidebarTitle) ?></div>
|
|
|
|
|
<ul class="my-menu-list" id="portalSidebarList">
|
|
|
|
|
<?php if ($activeParent !== null): ?>
|
|
|
|
|
<?php if (! empty($activeParent['hasChildren'])): ?>
|
|
|
|
|
<?php foreach ($activeParent['children'] as $ci => $child): ?>
|
|
|
|
|
<?php
|
|
|
|
|
$childHref = strtolower(ltrim((string) ($child['href'] ?? ''), '/'));
|
|
|
|
|
$isChildActive = $activeChildHref !== ''
|
|
|
|
|
? ($childHref === $activeChildHref)
|
|
|
|
|
: ($ci === 0);
|
|
|
|
|
?>
|
|
|
|
|
<li>
|
|
|
|
|
<?php if ($child['href'] !== ''): ?>
|
|
|
|
|
<a href="<?= esc($child['url']) ?>" class="<?= $isChildActive ? 'active' : '' ?>">
|
2026-06-08 19:52:53 +09:00
|
|
|
<span class="menu-ico"><?= $isChildActive ? '▸' : '·' ?></span>
|
2026-06-08 00:46:51 +09:00
|
|
|
<?= esc($child['name']) ?>
|
|
|
|
|
</a>
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
<span class="menu-sub" style="opacity:.65;cursor:default;">
|
2026-06-08 19:52:53 +09:00
|
|
|
<span class="menu-ico">·</span><?= esc($child['name']) ?>
|
2026-06-08 00:46:51 +09:00
|
|
|
</span>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php elseif ($activeParent['href'] !== ''): ?>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="<?= esc($activeParent['url']) ?>" class="active">
|
2026-06-08 19:52:53 +09:00
|
|
|
<span class="menu-ico">▸</span><?= esc($activeParent['name']) ?>
|
2026-06-08 00:46:51 +09:00
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="sidebar-blocks">
|
|
|
|
|
<div class="sb-teal">
|
|
|
|
|
<i class="fa-solid fa-mobile-screen"></i>
|
|
|
|
|
모바일 앱(예정)<br/>지정판매소 판매·스캔 연동
|
|
|
|
|
</div>
|
|
|
|
|
<div class="sb-gray">
|
|
|
|
|
<i class="fa-solid fa-repeat"></i> 통합 전환<br/>
|
|
|
|
|
<a href="<?= base_url('admin/select-local-government') ?>" style="color:#fff;text-decoration:underline;">지자체 선택</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="sb-links">
|
|
|
|
|
<a href="<?= base_url('bag/help') ?>">나의 할일</a>
|
2026-06-08 19:04:41 +09:00
|
|
|
<a href="<?= base_url('bag/manual') ?>">사용자 매뉴얼</a>
|
2026-06-08 00:46:51 +09:00
|
|
|
<a href="<?= base_url('bag/help') ?>">FAQ</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</aside>
|