<?php

declare(strict_types=1);

require_once dirname(__DIR__, 2) . '/includes/fate_template.php';
require fate_template_theme_partial('head.php');
?>
<body class="fate-body fate-body--masseur-weekly">
<header class="topbar">
    <div class="topbar-inner">
        <a class="brand" href="./"><?= htmlspecialchars($fateBrand['title_main'], ENT_QUOTES, 'UTF-8') ?> <span><?= htmlspecialchars($fateBrand['title_sub'], ENT_QUOTES, 'UTF-8') ?></span></a>
        <nav>
            <a href="./">探索列表</a>
            <a href="masseur_weekly.php" class="is-active" aria-current="page">週推榜</a>
            <?php if (!empty($fateBlogNavVisible)): ?>
                <a href="blog.php"><?= htmlspecialchars($fateBlogNavLabel, ENT_QUOTES, 'UTF-8') ?></a>
            <?php endif; ?>
            <?php if (!empty($fateForumNavVisible)): ?>
                <a href="forum/">討論區</a>
            <?php endif; ?>
            <?php if ($fatePublicMember !== null): ?>
                <a href="member_profile.php">我的帳號</a>
                <a href="logout.php">登出</a>
            <?php else: ?>
                <a href="login.php?next=<?= rawurlencode('masseur_weekly.php') ?>">登入</a>
                <a href="register.php?next=<?= rawurlencode('masseur_weekly.php') ?>">註冊</a>
            <?php endif; ?>
            <?php if (!empty($fateAdminNavVisible)): ?>
                <a href="admin/">管理後台</a>
            <?php endif; ?>
        </nav>
    </div>
</header>
<div class="layout-shell layout-shell--masseur-weekly">
    <div class="layout layout--home layout--masseur-weekly">
        <div class="layout-main">
            <?php require __DIR__ . '/partials/masseur_weekly_main.inc.php'; ?>
        </div>
        <?php
        $sidebarWeeklyListingTab = $listingFilter;
        require fate_template_theme_partial('sidebar.php');
        ?>
    </div>
</div>
<?php require __DIR__ . '/partials/footer.php'; ?>
</body>
