48 lines
1.9 KiB
PHP
48 lines
1.9 KiB
PHP
|
<aside>
|
||
|
<?php
|
||
|
$info = api_get("accounts/verify_credentials");
|
||
|
|
||
|
if ($logedin || $tl['mode'] == 'user') {
|
||
|
echo "
|
||
|
<div class='side_element' style='margin:0px; width:100%;'>
|
||
|
<div style='width:100%; height:120px; display:block; background-color:#" . averageColor($info['avatar']) . "; background-size:cover; background-image:url(" . $info['header_static'] . "); '></div>
|
||
|
<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;'>
|
||
|
" . $info['display_name'] . "</span>" . ($logedin ? "</a>" : "") . "
|
||
|
<br><span>(@" . $info['acct'] . ")</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<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>
|
||
|
";
|
||
|
}
|
||
|
if ($logedin) {
|
||
|
echo "";
|
||
|
}
|
||
|
else {
|
||
|
echo "<div class='side_element'>
|
||
|
<span style='font-weight:bold; font-size:20px; clear:both;'>" . $setting['appname'] . "</span><br>
|
||
|
<span>" . $setting['description'] . "</span>
|
||
|
</div>";
|
||
|
}
|
||
|
?>
|
||
|
</aside>
|