Working on sidebar.php to be in navbar, first attempt.
This commit is contained in:
Regular → Executable
+4
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$current = basename($_SERVER['PHP_SELF']);
|
||||
$current = basename($_SERVER['SCRIPT_NAME']);
|
||||
$menu_items = [
|
||||
'index.php' => ['Home', 'logo.png'],
|
||||
'alchemyIngredientPage.php' => ['Alchemy', 'alchemy.png'],
|
||||
@@ -12,6 +12,9 @@ $menu_items = [
|
||||
?>
|
||||
|
||||
<header class="site-header">
|
||||
<button id="sidebar-toggle" class="toggle-btn" aria-label="Toggle Sidebar">
|
||||
☰
|
||||
</button>
|
||||
<nav class="navbar" aria-label="Profession Navigation">
|
||||
<ul class="navbar__list">
|
||||
<?php foreach ($menu_items as $file => $info): ?>
|
||||
|
||||
Reference in New Issue
Block a user