header.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. ini_set('display_errors', 1);
  3. error_reporting(E_ALL);
  4. ?>
  5. <!DOCTYPE HTML>
  6. <html lang="en">
  7. <head>
  8. <meta charset="utf-8">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <title>Halcyon</title>
  12. <link rel="shortcut icon" href="/assets/images/favicon.ico">
  13. <link rel="stylesheet" href="/assets/css/style.css" media="all">
  14. <link rel="stylesheet" href="//cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" media="all">
  15. <script src="//yastatic.net/jquery/3.2.1/jquery.min.js"></script>
  16. <script src="/assets/js/halcyon/halcyonFunctions.js"></script>
  17. <script src="/assets/js/mastodon.js/mastodon.js"></script><!-- thx @kirschn -->
  18. <script src="/assets/js/jquery-cookie/src/jquery.cookie.js"></script>
  19. <script src="/assets/js/autosize/autosize.js"></script>
  20. <script src="/assets/js/shortcut.js"></script>
  21. <script src="/assets/js/replace_emoji.js"></script>
  22. <script src="/assets/js/halcyon/halcyonTemplates.js"></script>
  23. <script src="/assets/js/halcyon/halcyonUI.js"></script>
  24. <script src="//cdn.staticfile.org/twemoji/2.2.5/twemoji.min.js"></script>
  25. <script>
  26. if(!localStorage.getItem("current_id") | !localStorage.getItem("current_instance") | !localStorage.getItem("current_authtoken")) {
  27. location.href = "/login";
  28. }
  29. else {
  30. if($.cookie("session") === "true") {
  31. refreshApp();
  32. }
  33. else if($.cookie("session") === undefined) {
  34. resetApp();
  35. }
  36. }
  37. </script>
  38. </head>
  39. <body>
  40. <header id="header">
  41. <div class="header_nav_wrap">
  42. <nav class="header_left_box">
  43. <ul class="header_nav_list">
  44. <li id="header_nav_item_home" class="header_nav_item">
  45. <a href="/" id="home_nav">
  46. <i class="fa fa-fw fa-home"></i>
  47. <span>Home</span>
  48. </a>
  49. <div class="home_badge nav_badge invisible"></div>
  50. </li>
  51. <li id="header_nav_item_local" class="header_nav_item local_nav">
  52. <a href="/local" id="local_nav">
  53. <i class="fa fa-fw fa-users"></i>
  54. <span>Local</span>
  55. </a>
  56. <div class="local_badge nav_badge invisible"></div>
  57. </li>
  58. <li id="header_nav_item_federated" class="header_nav_item federated_nav">
  59. <a href="/federated" id="federated_nav">
  60. <i class="fa fa-fw fa-globe"></i>
  61. <span>Federated</span>
  62. </a>
  63. <div class="federated_badge nav_badge invisible"></div>
  64. </li>
  65. <li id="header_nav_item_notifications" class="header_nav_item notifications_nav">
  66. <a href="/notifications" id="notifications_nav">
  67. <i class="fa fa-fw fa-bell"></i>
  68. <span>Notifications</span>
  69. </a>
  70. <div class="notification_badge nav_badge invisible"></div>
  71. </li>
  72. </ul>
  73. </nav>
  74. <div class="header_center_box">
  75. <h1 class="header_nav_item mastodon_logo logo_box">
  76. <a href="/">
  77. <img src="/assets/images/mastodon.svg" alt="Halcyon for Mastodon">
  78. </a>
  79. </h1>
  80. </div>
  81. <nav class="header_right_box">
  82. <ul class="header_nav_list">
  83. <li class="header_nav_item serch_form_wrap">
  84. <form class="search_form" action="/search" method="GET">
  85. <input id="search_form" class="search_form_input" placeholder="Search Mastodon" type="text" name="q" accesskey="/">
  86. <span class="search_form_submit">
  87. <button type="submit">
  88. <i class="fa fa-fw fa-search"></i>
  89. </button>
  90. </span>
  91. </form>
  92. </li>
  93. <li class="header_nav_item my_account_wrap">
  94. <button class="header_account_avatar">
  95. <div class="my_account">
  96. <img class="js_current_profile_image" />
  97. </div>
  98. </button>
  99. <nav class="header_my_account_nav invisible">
  100. <ul>
  101. <li>
  102. <a class="js_current_profile_link emoji_poss">
  103. <span class="js_current_profile_displayname display_name"></span>
  104. <span>View profile</span>
  105. </a>
  106. </li>
  107. </ul>
  108. <ul>
  109. <li>
  110. <a href="/settings">Settings</a>
  111. </li>
  112. <li>
  113. <a href="/logout">Log out</a>
  114. </li>
  115. </ul>
  116. </nav>
  117. </li>
  118. <li class="header_nav_item toot_button_wrap">
  119. <button id="creat_status" class="toot_button" accesskey="n">
  120. <div class="toot_button_label">
  121. <i class="fa fa-fw fa-pencil-square-o"></i>
  122. <span>Toot</span>
  123. </div>
  124. </button>
  125. </li>
  126. </ul>
  127. </nav>
  128. </div>
  129. </header>