header.php 4.3 KB

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