2018-06-09 16:29:25 +01:00
|
|
|
<?php
|
|
|
|
ini_set('display_errors', 1);
|
|
|
|
error_reporting(E_ALL);
|
2018-07-29 18:54:30 +01:00
|
|
|
include("language.php");
|
2018-06-09 16:29:25 +01:00
|
|
|
?>
|
2018-03-11 11:07:57 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Halcyon</title>
|
|
|
|
<link rel="shortcut icon" href="/assets/images/favicon.ico">
|
|
|
|
<link rel="stylesheet" href="/assets/css/style.css" media="all">
|
2018-07-29 18:54:30 +01:00
|
|
|
<link rel="stylesheet" href="/assets/css/fontawesome.min.css" media="all">
|
2018-07-01 16:07:18 +01:00
|
|
|
<link rel="stylesheet" href="/assets/css/emojipicker.css" media="all">
|
2018-07-29 18:54:30 +01:00
|
|
|
<script src="/assets/js/jquery/jquery.min.js"></script>
|
2018-03-11 11:07:57 +00:00
|
|
|
<script src="/assets/js/halcyon/halcyonFunctions.js"></script>
|
|
|
|
<script src="/assets/js/mastodon.js/mastodon.js"></script><!-- thx @kirschn -->
|
|
|
|
<script src="/assets/js/jquery-cookie/src/jquery.cookie.js"></script>
|
2018-05-22 18:00:08 +01:00
|
|
|
<script src="/assets/js/autosize/autosize.js"></script>
|
2018-03-11 11:07:57 +00:00
|
|
|
<script src="/assets/js/shortcut.js"></script>
|
|
|
|
<script src="/assets/js/replace_emoji.js"></script>
|
2018-07-01 16:07:18 +01:00
|
|
|
<script src="/assets/js/emojipicker/emojidata.js"></script>
|
|
|
|
<script src="/assets/js/emojipicker/emojipicker.js"></script>
|
2018-06-09 16:29:25 +01:00
|
|
|
<script src="/assets/js/halcyon/halcyonTemplates.js"></script>
|
2018-03-11 11:07:57 +00:00
|
|
|
<script src="/assets/js/halcyon/halcyonUI.js"></script>
|
2018-07-29 18:54:30 +01:00
|
|
|
<script src="/assets/js/pomo/pomo.min.js"></script>
|
|
|
|
<script src="/assets/js/twemoji/twemoji.min.js"></script>
|
|
|
|
<script src="/assets/js/clipboard.js/clipboard.min.js"></script>
|
2018-03-11 11:07:57 +00:00
|
|
|
<script>
|
2018-07-29 18:54:30 +01:00
|
|
|
Pomo.domain = 'messages';
|
|
|
|
Pomo.returnStrings = true;
|
|
|
|
Pomo.unescapeStrings = true;
|
|
|
|
var pomo_def = Pomo.load(null,{
|
|
|
|
format:'po',
|
|
|
|
mode:'link',
|
|
|
|
translation_domain:'messages'
|
|
|
|
});
|
2018-06-09 16:29:25 +01:00
|
|
|
if(!localStorage.getItem("current_id") | !localStorage.getItem("current_instance") | !localStorage.getItem("current_authtoken")) {
|
2018-03-11 11:07:57 +00:00
|
|
|
location.href = "/login";
|
2018-06-09 16:29:25 +01:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
if($.cookie("session") === "true") {
|
2018-03-11 11:07:57 +00:00
|
|
|
refreshApp();
|
2018-06-09 16:29:25 +01:00
|
|
|
}
|
|
|
|
else if($.cookie("session") === undefined) {
|
2018-03-11 11:07:57 +00:00
|
|
|
resetApp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header id="header">
|
|
|
|
<div class="header_nav_wrap">
|
|
|
|
<nav class="header_left_box">
|
|
|
|
<ul class="header_nav_list">
|
|
|
|
<li id="header_nav_item_home" class="header_nav_item">
|
|
|
|
<a href="/" id="home_nav">
|
|
|
|
<i class="fa fa-fw fa-home"></i>
|
|
|
|
<span>Home</span>
|
|
|
|
</a>
|
|
|
|
<div class="home_badge nav_badge invisible"></div>
|
|
|
|
</li>
|
|
|
|
<li id="header_nav_item_local" class="header_nav_item local_nav">
|
|
|
|
<a href="/local" id="local_nav">
|
|
|
|
<i class="fa fa-fw fa-users"></i>
|
|
|
|
<span>Local</span>
|
|
|
|
</a>
|
|
|
|
<div class="local_badge nav_badge invisible"></div>
|
|
|
|
</li>
|
|
|
|
<li id="header_nav_item_federated" class="header_nav_item federated_nav">
|
|
|
|
<a href="/federated" id="federated_nav">
|
|
|
|
<i class="fa fa-fw fa-globe"></i>
|
|
|
|
<span>Federated</span>
|
|
|
|
</a>
|
|
|
|
<div class="federated_badge nav_badge invisible"></div>
|
|
|
|
</li>
|
|
|
|
<li id="header_nav_item_notifications" class="header_nav_item notifications_nav">
|
|
|
|
<a href="/notifications" id="notifications_nav">
|
|
|
|
<i class="fa fa-fw fa-bell"></i>
|
|
|
|
<span>Notifications</span>
|
|
|
|
</a>
|
|
|
|
<div class="notification_badge nav_badge invisible"></div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<div class="header_center_box">
|
|
|
|
<h1 class="header_nav_item mastodon_logo logo_box">
|
|
|
|
<a href="/">
|
|
|
|
<img src="/assets/images/mastodon.svg" alt="Halcyon for Mastodon">
|
|
|
|
</a>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<nav class="header_right_box">
|
|
|
|
<ul class="header_nav_list">
|
|
|
|
<li class="header_nav_item serch_form_wrap">
|
|
|
|
<form class="search_form" action="/search" method="GET">
|
|
|
|
<input id="search_form" class="search_form_input" placeholder="Search Mastodon" type="text" name="q" accesskey="/">
|
|
|
|
<span class="search_form_submit">
|
|
|
|
<button type="submit">
|
|
|
|
<i class="fa fa-fw fa-search"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<li class="header_nav_item my_account_wrap">
|
|
|
|
<button class="header_account_avatar">
|
|
|
|
<div class="my_account">
|
2018-07-01 16:07:18 +01:00
|
|
|
<img class="js_current_profile_image">
|
2018-03-11 11:07:57 +00:00
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
<nav class="header_my_account_nav invisible">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a class="js_current_profile_link emoji_poss">
|
|
|
|
<span class="js_current_profile_displayname display_name"></span>
|
|
|
|
<span>View profile</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-06-09 16:29:25 +01:00
|
|
|
<a href="/settings">Settings</a>
|
2018-03-11 11:07:57 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/logout">Log out</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
<li class="header_nav_item toot_button_wrap">
|
|
|
|
<button id="creat_status" class="toot_button" accesskey="n">
|
|
|
|
<div class="toot_button_label">
|
|
|
|
<i class="fa fa-fw fa-pencil-square-o"></i>
|
|
|
|
<span>Toot</span>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2018-05-22 18:00:08 +01:00
|
|
|
</header>
|