header.php 4.0 KB

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