PageRenderTime 58ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/HeaderFooter/header.php

https://github.com/lucasrowe/UNC-Low-Brass-Studio-Website
PHP | 98 lines | 85 code | 13 blank | 0 comment | 20 complexity | 8f02d02d67030535143ce43932c0ca99 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <!-- ===================================================================
  4. DO NOT EDIT FILE
  5. This file is the code for the top of every page except Studio. It shouldn't need
  6. to be changed for any reason other than perhaps changing the Google Analytics ID.
  7. =================================================================== -->
  8. <head>
  9. <title>UNC Low Brass Studio for Trombone, Euphonium, and Tuba</title>
  10. <link rel="stylesheet" type="text/css" href="./style.css" />
  11. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  12. <meta name="keywords"
  13. content="trombone, euphonium, tuba, low brass, low-brass, UNC, tbone, brass chamber music, student" />
  14. <meta name="description"
  15. content="The resource for current and future students studying
  16. trombone, euphonium, or tuba at UNC, the University of North
  17. Carolina Chapel Hill." />
  18. <meta name="author" content="Michael Kris" />
  19. <meta name="copyright" content="January 2012" />
  20. </head>
  21. <body>
  22. <script type="text/javascript">
  23. var _gaq = _gaq || [];
  24. _gaq.push(['_setAccount', 'UA-19162732-1']);
  25. _gaq.push(['_trackPageview']);
  26. (function() {
  27. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  28. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  29. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  30. })();
  31. </script>
  32. <div id="backgroundHome">
  33. <div id="container">
  34. <div id="banner">
  35. </div>
  36. <div id="navcontainer" class="clearfix">
  37. <?php
  38. $pagename = strrchr($_SERVER["REQUEST_URI"], "/");
  39. $pagename = substr($pagename, 1);
  40. ?>
  41. <ul id="navlist">
  42. <!-- Displays links and assigns CSS class to current page link -->
  43. <?php
  44. if ($pagename == "index.php" or $pagename == "")
  45. echo('<li class="active">');
  46. else echo('<li>');
  47. ?>
  48. <a href="index.php">Home</a></li>
  49. <?php
  50. if ($pagename == "events.php")
  51. echo('<li class="active">');
  52. else echo('<li>');
  53. ?>
  54. <a href="events.php">Events</a></li>
  55. <?php
  56. if ($pagename == "biopage.php")
  57. echo('<li class="active">');
  58. else echo('<li>');
  59. ?>
  60. <a href="biopage.php">Faculty Bio</a></li>
  61. <?php
  62. if ($pagename == "resources.php")
  63. echo('<li class="active">');
  64. else echo('<li>');
  65. ?>
  66. <a href="resources.php">Resources</a></li>
  67. <?php
  68. if ($pagename == "audio.php")
  69. echo('<li class="active">');
  70. else echo('<li>');
  71. ?>
  72. <a href="audio.php">Audio</a></li>
  73. <?php
  74. if ($pagename == "studio.php")
  75. echo('<li class="active">');
  76. else echo('<li>');
  77. ?>
  78. <a href="studio.php">Inside the Studio</a></li>
  79. </ul>
  80. </div>