feature: Use single file for global navigation, include on other pages

This commit is contained in:
Keith Solomon
2026-02-10 08:29:45 -06:00
parent a49b98f73b
commit f94b4dda95
6 changed files with 53 additions and 57 deletions

View File

@@ -237,18 +237,12 @@ try {
</div>
</body>
</html>
<?php exit; ?>
<?php endif; ?>
<?php
exit;
endif;
<div class="mb-6">
<a href="buy-ships.php" class="text-blue-400 hover:underline">Buy Ships</a>
<span class="mx-2">|</span>
<a href="mining-fleet.php" class="text-blue-400 hover:underline">Mining Fleet</a>
<span class="mx-2">|</span>
<a href="config.php" class="text-blue-400 hover:underline">Configuration</a>
</div>
require __DIR__ . '/main-menu.php';
<?php
$msg = '';
$class = '';
@@ -267,7 +261,7 @@ try {
</div>
<?php endif; ?>
<h1 class="text-3xl font-bold mb-6 underline decoration-gray-300 w-full">Spacetraders Agent and Ships</h1>
<h1 class="text-3xl font-bold mb-6 underline decoration-gray-300 w-full"><a href="index.php" class="">Spacetraders - Dashboard</a></h1>
<h2 class="text-2xl font-bold mb-2">
Agent: <?php echo htmlspecialchars( ucfirst( strtolower( $agent['symbol'] ) ) ); ?><br>