header.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Site header view.
  4. *
  5. * To be included from all views.
  6. *
  7. * @category View
  8. */
  9. ?>
  10. <header>
  11. <div id='logo'>
  12. <img id='logo_img' src='<?=URL::IMG["LOGO"]?>sw.png' alt=''/>
  13. <h1 id='logo_text'>
  14. <span class='large'>D</span>
  15. <span class='small'>ata</span>
  16. <span class='large'>B</span>
  17. <span class='small'>ase</span>
  18. </h1>
  19. </div>
  20. <?php
  21. if ($_SESSION['session'] == true){
  22. ?>
  23. <nav id='menu'>
  24. <a href='/<?=$UID?>/'>
  25. Home
  26. </a>
  27. <a href='/<?=$UID?>/catalog/'>
  28. Catalog
  29. </a>
  30. <a href='/<?=$UID?>/monsters/'>
  31. Monsters
  32. </a>
  33. <a href='/<?=$UID?>/runes/'>
  34. Runes
  35. </a>
  36. <a href='/<?=$UID?>/fusion/'>
  37. Fusion
  38. </a>
  39. <a href='/<?=$UID?>/guild/'>
  40. Guild
  41. </a>
  42. <a href='/<?=$UID?>/runs/'>
  43. Runs
  44. </a>
  45. <a href='/<?=$UID?>/teams/'>
  46. Teams
  47. </a>
  48. <a href='/<?=$UID?>/report/'>
  49. Reports
  50. </a>
  51. </nav>
  52. <nav id='profile'>
  53. <a href='/<?=$UID?>/profile/'>
  54. <?=$_SESSION['name']?>
  55. </a>
  56. </nav>
  57. <?php
  58. }
  59. ?>
  60. </header>