Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Get current page file name
- $page = basename($_SERVER["PHP_SELF"]);
- ?>
- <?php include "templates/header.php"; ?>
- <?php include "templates/footer.php"; ?>
- <h1>A Library</h1>
- <div id="navigation">
- <ul>
- <li><a href="index.php" <?php if ($page == "index.php") echo 'class="current"' ?>>Products</a></li>
- <li><a href="resume.php" <?php if ($page == "resume.php") echo 'class="current"' ?>>Resume</a></li>
- <li><a href="photography.php" <?php if ($page == "photography.php") echo 'class="current"' ?>>Photography</a></li>
- <li><a href="about.php" <?php if ($page == "about.php") echo 'class="current"' ?>>About</a></li>
- <li><a href="contact.php" <?php if ($page == "contact.php") echo 'class="current"' ?>>Contact</a></li>
- </ul>
- </div>
- </body>
- </html>
- </body>
- </html>
- #navigation ul li a.current {
- background-color: #FFF;
- border-bottom: 1px solid #FFF;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement