|
|
@@ -85,7 +85,7 @@
|
|
|
<nav class="navbar">
|
|
|
<div class="container-fluid">
|
|
|
<button type="button" class="navbar-toggler" data-bs-toggle="offcanvas" data-bs-target="#navbarMenu" aria-controls="navbarMenu">
|
|
|
- <span class="navbar-toggler-icon"></span>
|
|
|
+ <i class="fa-solid fa-bars"></i>
|
|
|
</button>
|
|
|
<a href="/" class="navbar-brand" target="_self">
|
|
|
{{ config('app.name') }}
|
|
|
@@ -139,14 +139,14 @@
|
|
|
@if($topMenu)
|
|
|
@php
|
|
|
$buildSubMenu = function ($categories) use (&$buildSubMenu, $subMenu) {
|
|
|
- $html = '<ul>';
|
|
|
+ $html = '<ul class="dropdown-menu">';
|
|
|
foreach ($categories as $cate) {
|
|
|
$meta = $subMenu[$cate->id];
|
|
|
$hasClass = "";
|
|
|
if($meta->hasChildren) {
|
|
|
$hasClass = 'class="has-children"';
|
|
|
}
|
|
|
- $html .= sprintf('<li %s><a href="%s" class="dropdown-item" target="%s" %s>%s</a>', $hasClass, $meta->url, $meta->target, $meta->custom, $meta->name);
|
|
|
+ $html .= sprintf('<li %s><a href="%s" class="dropdown-item" target="%s" %s>%s <small>($d)</small></a>', $hasClass, $meta->url, $meta->target, $meta->custom, $meta->name, $meta->postCount);
|
|
|
$html .= $buildSubMenu($cate->children);
|
|
|
$html .= '</li>';
|
|
|
}
|
|
|
@@ -155,38 +155,54 @@
|
|
|
};
|
|
|
@endphp
|
|
|
@foreach($topMenu[0] as $row)
|
|
|
- <a href="{{ $row->url }}" target="{{ $row->target }}" {{ $row->custom }} class="nav-link @if(!$row->isLeaf) dropdown-toggle @endif"
|
|
|
- @if(!$row->isLeaf) data-bs-toggle="dropdown" role="button" aria-expanded="false" data-bs-offset="10,-5" @endif>
|
|
|
- {{ $row->name }}
|
|
|
- </a>
|
|
|
- @if($row->hasChildren)
|
|
|
- <ul class="dropdown-menu">
|
|
|
- @foreach($row->children as $mn)
|
|
|
- @php $meta = $subMenu[$mn->id]; @endphp
|
|
|
- <li @if($meta->hasChildren) class="has-children" @endif>
|
|
|
- <a href="{{ $meta->url }}" class="dropdown-item" target="{{ $meta->target }}" {{ $meta->custom }}>{{ $meta->name }}</a>
|
|
|
- @if($meta->hasChildren)
|
|
|
- @php echo $buildSubMenu($mn->children) @endphp
|
|
|
- @endif
|
|
|
- </li>
|
|
|
- @endforeach
|
|
|
- </ul>
|
|
|
- @endif
|
|
|
+ <div class="dropdown">
|
|
|
+ <a href="{{ $row->url }}" target="{{ $row->target }}" {{ $row->custom }} class="nav-link @if(!$row->isLeaf) dropdown-toggle @endif"
|
|
|
+ @if(!$row->isLeaf) data-bs-toggle="dropdown" role="button" aria-expanded="false" data-bs-offset="0,-25" @endif>
|
|
|
+ {{ $row->name }} @if($row->board_id) <small>({{ $row->postCount }})</small> @endif
|
|
|
+ </a>
|
|
|
+ @if($row->hasChildren)
|
|
|
+ <ul class="dropdown-menu">
|
|
|
+ @foreach($row->children as $mn)
|
|
|
+ @php $meta = $subMenu[$mn->id]; @endphp
|
|
|
+ <li @if($meta->hasChildren) class="has-children" @endif>
|
|
|
+ <a href="{{ $meta->url }}" class="dropdown-item" target="{{ $meta->target }}" {{ $meta->custom }}>{{ $meta->name }}({{ $meta->postCount }})</a>
|
|
|
+ @if($meta->hasChildren)
|
|
|
+ @php echo $buildSubMenu($mn->children) @endphp
|
|
|
+ @endif
|
|
|
+ </li>
|
|
|
+ @endforeach
|
|
|
+ </ul>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
@endforeach
|
|
|
@endif
|
|
|
</div>
|
|
|
</nav>
|
|
|
- </div>
|
|
|
- <div class="offcanvas-footer">
|
|
|
- <!-- 쿠팡 광고 -->
|
|
|
+
|
|
|
+ <!-- 쿠팡 광고 -->
|
|
|
<div class="ad-coupang">
|
|
|
<iframe src="https://coupa.ng/cdvhzK" width="100%" height="75" frameborder="0" scrolling="no" referrerpolicy="unsafe-url"></iframe>
|
|
|
<iframe src="https://ads-partners.coupang.com/widgets.html?id=637907&template=carousel&trackingCode=AF0305179&subId=&width=100&height=140" width="100%" height="140" frameborder="0" scrolling="no" referrerpolicy="unsafe-url"></iframe>
|
|
|
<small>
|
|
|
- 쿠팡 파트너스의 활동은 공정거래위원회의 심사지침에 따라 추천, 보증인인 파트너스 회원과 당사의 경제적 이해관계에 대하여 공개하여야 합니다.
|
|
|
+ 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
|
|
|
</small>
|
|
|
</div>
|
|
|
<hr/>
|
|
|
+ <table>
|
|
|
+ <caption>방문자 수</caption>
|
|
|
+ <tr>
|
|
|
+ <th>오늘</th>
|
|
|
+ <td>{{ $visitorTodayCount }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>어제</th>
|
|
|
+ <td>{{ $visitorYesterdayCount }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>누적</th>
|
|
|
+ <td>{{ $visitorTotalCount }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
<address>© Copyright 2022 {{ config('company_name') }}</address>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -199,13 +215,15 @@
|
|
|
|
|
|
{{-- 하단 --}}
|
|
|
<footer id="footer">
|
|
|
- <small>
|
|
|
- 영화 내용에 대한 저작권 및 법적 책임은 영화진흥위원회, TMDB에 있습니다.
|
|
|
- </small>
|
|
|
-
|
|
|
- <address>
|
|
|
- © Copyright 2022 {{ config('company_name') }}
|
|
|
- </address>
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="row text-center text-md-start">
|
|
|
+ <div class="col ps-4 pe-4 pb-4">
|
|
|
+ <address>
|
|
|
+ © Copyright 2022 {{ config('company_name') }}
|
|
|
+ </address>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</footer>
|
|
|
|
|
|
@stack('scripts')
|