{{-- Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. See the LICENCE file in the repository root for full licence text. --}} @php $currentRoute = app('route-section')->getCurrent(); $currentSection = $currentRoute['section']; $currentAction = $currentRoute['action']; $currentUser = Auth::user(); $legacyScoreMode = App\Libraries\Search\ScoreSearchParams::showLegacyForUser($currentUser) === true; $titleTree = []; if (isset($titleOverride)) { $titleTree[] = $titleOverride; } else { if (isset($titlePrepend)) { $titleTree[] = $titlePrepend; } $titleTree[] = page_title(); } $title = ''; foreach ($titleTree as $i => $titlePart) { $title .= e($titlePart); if ($i + 1 === count($titleTree)) { // Titles ending with phrase containing "osu!" like "osu!store" don't need the suffix. if (strpos($titlePart, 'osu!') === false) { $title .= ' | osu!'; } } else { $title .= ' ยท '; } } $defaultHue = section_to_hue_map($currentSection); $currentHue ??= $defaultHue; $navLinks ??= nav_links(); $currentLocaleMeta ??= current_locale_meta(); @endphp @include("layout.metadata") {!! $title !!}
@if ($currentUser !== null && $currentUser->isRestricted()) @include('objects._notification_banner', [ 'type' => 'alert', 'title' => osu_trans('users.restricted_banner.title'), 'message' => osu_trans('users.restricted_banner.message', [ 'link' => link_to( osu_url('user.restriction'), osu_trans('users.restricted_banner.message_link') ), ]), ]) @endif @if (!isset($blank)) @include("layout.header")
@stack('notification_banners')
@endif
@yield('content')
@if (!isset($blank)) @include("layout.gallery_window") @include("layout.footer") @endif
{{-- Components: - lib/utils/estimate-min-lines.ts (main) - less/bem/estimate-min-lines.less (styling) - views/master.blade.php (placeholder) --}}
@include("layout._global_variables") @include('layout._loading_overlay') @include('layout.popup-container') @yield("script")