2020-04-01 00:46:27 +00:00
|
|
|
<aside>
|
|
|
|
<?php
|
|
|
|
if ($logedin || $tl['mode'] == 'user') {
|
|
|
|
echo "
|
|
|
|
<div class='side_element' style='margin:0px; width:100%;'>
|
2020-04-29 17:29:25 +00:00
|
|
|
<div style='width:100%; height:120px; display:block; background-color:#" . averageColor($info['avatar']) . "; background-size:cover; background-image:url(" . $info['header_static'] . "); ' class='profileheader'></div>
|
2020-04-01 00:46:27 +00:00
|
|
|
<div class='avatar' style='background-color:white; background-image:url(" . $info['avatar'] . "); text-align:center; float:none; display:inline-block; border:3px solid white; margin-top:-50px; border-radius:90px;'></div>
|
|
|
|
<div style='clear:both; margin-top:-15px; padding-bottom:10px;'>" . ($logedin ? "<a href='?mode=account' class='ldr'>" : "") . "<span style='font-weight:bold; font-size:22px;'>
|
2020-04-29 17:29:25 +00:00
|
|
|
" . emojify($info['display_name'], $info['emojis'], 20). "</span>" . ($logedin ? "</a>" : "") . "
|
2020-04-01 00:46:27 +00:00
|
|
|
<br><span>(@" . $info['acct'] . ")</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-13 16:30:51 +00:00
|
|
|
|
2020-04-01 00:46:27 +00:00
|
|
|
<div class='side_element' style='margin-top:20px; margin-left:0px; width:100%;'>
|
|
|
|
<ul>
|
|
|
|
<a href='?mode=federated' class='ldr'><li> Federated</li></a>
|
|
|
|
<a href='?mode=home' class='ldr'><li> Home</li></a>
|
|
|
|
<a href='?mode=local' class='ldr'><li> Local</li></a>
|
|
|
|
<a href='?mode=favourites' class='ldr'><li> Favourites</li></a>
|
|
|
|
<a href='?mode=direct' class='ldr'><li> Direct Messages</li></a>
|
|
|
|
<a href='?page=settings' class='ldr'><li> Settings</li></a>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='side_element' style='margin-top:20px; margin-left:0px; width:100%;'>
|
|
|
|
<ul>";
|
|
|
|
$lists = api_get("/lists");
|
|
|
|
foreach ($lists as $list) {
|
|
|
|
echo "<a href='?list=" . $list['id'] . "' class='ldr'><li> " . $list['title'] . "</li></a>";
|
|
|
|
}
|
|
|
|
echo "</ul>
|
|
|
|
</div>
|
2021-09-08 00:07:04 +00:00
|
|
|
|
|
|
|
<div class='side_element' style='margin-top:20px; margin-left:0px; width:100%;'>
|
|
|
|
<ul>
|
|
|
|
";
|
|
|
|
foreach($user_settings['fhtags'] as $word){
|
|
|
|
if ($word != ""){
|
|
|
|
echo "<a href='?tag=" . $word . "' class='ldr'><li><b>#</b> " . $word . "</li></a>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo "
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-04-01 00:46:27 +00:00
|
|
|
";
|
|
|
|
}
|
|
|
|
if ($logedin) {
|
|
|
|
echo "";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "<div class='side_element'>
|
2020-04-13 16:30:51 +00:00
|
|
|
<div style='width:90%; margin:8px; display:inline-block;'>
|
2020-04-01 00:46:27 +00:00
|
|
|
<span style='font-weight:bold; font-size:20px; clear:both;'>" . $setting['appname'] . "</span><br>
|
|
|
|
<span>" . $setting['description'] . "</span>
|
2020-04-13 16:30:51 +00:00
|
|
|
</div>
|
2020-04-01 00:46:27 +00:00
|
|
|
</div>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</aside>
|