Skip to content

Commit 6fdff7e

Browse files
add alerts nav links
1 parent 35365d4 commit 6fdff7e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

components/navbar.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
<nav>
1+
<!--nav>
22
<a href="?page=home" <?php if ($current_page === 'home') echo 'class="active"'; ?>>Home</a>
33
<a href="?page=pricing" <?php if ($current_page === 'pricing') echo 'class="active"'; ?>>Pricing</a>
44
<a href="?page=about" <?php if ($current_page === 'about') echo 'class="active"'; ?>>About</a>
55
<a href="?page=contact" <?php if ($current_page === 'contact') echo 'class="active"'; ?>>Contact</a>
66
<a href="?page=faq" <?php if ($current_page === 'faq') echo 'class="active"'; ?>>FAQ</a>
7+
</nav-->
8+
<nav>
9+
<a href="?page=home&alert_type=info&alert_message=Welcome+home%2C+PHP+hero!" <?php if ($current_page === 'home') echo 'class="active"'; ?>>Home</a>
10+
<a href="?page=pricing&alert_type=success&alert_message=Wow%2C+our+prices+are+awesome!" <?php if ($current_page === 'pricing') echo 'class="active"'; ?>>Pricing</a>
11+
<a href="?page=about&alert_type=info&alert_message=Just+a+few+PHP+files+doing+cool+stuff." <?php if ($current_page === 'about') echo 'class="active"'; ?>>About</a>
12+
<a href="?page=contact&alert_type=warning&alert_message=We+don%27t+bite...+usually." <?php if ($current_page === 'contact') echo 'class="active"'; ?>>Contact</a>
13+
<a href="?page=faq&alert_type=error&alert_message=These+FAQs+are+so+frequent%2C+they+need+a+vacation." <?php if ($current_page === 'faq') echo 'class="active"'; ?>>FAQ</a>
714
</nav>

0 commit comments

Comments
 (0)