✨feature: Use single file for global navigation, include on other pages
This commit is contained in:
16
index.php
16
index.php
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user