2020-04-01 00:46:27 +00:00
< 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 >
2020-04-13 16:30:51 +00:00
< div class = 'side_element' style = 'margin-top:20px; margin-left:0px; width:100%; padding-top:10px; padding-bottom:10px; ' >
< form method = 'get' >< input type = 'text' name = 'search' style = 'width:80%' placeholder = 'Type your search here' >< input type = 'submit' value = '' class = 'fontello' ></ form >
</ div >
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 >& #xe83c; Federated</li></a>
< a href = '?mode=home' class = 'ldr' >< li >& #xe816; Home</li></a>
< a href = '?mode=local' class = 'ldr' >< li >& #xf1e0; Local</li></a>
< a href = '?mode=favourites' class = 'ldr' >< li >& #xe804; Favourites</li></a>
< a href = '?mode=direct' class = 'ldr' >< li >& #xf0e0; Direct Messages</li></a>
< a href = '?page=settings' class = 'ldr' >< li >& #xe82d; 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'>
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 >