123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <div class="topbar" style='text-align:center; background-color:none;'>
- <div class="topbar" style='height:45px; z-index:99;'>
- <span style='float:left; line-height:45px;padding-left:10px;' class='appname desktop'>
- <a href="./<?php echo ($logedin ? "?mode=home" : ""); ?>" style="font-family: 'patua', serif; font-weight:bold; color:white; font-size:20px; text-decoration:none" ><?php echo $setting['appname']; ?></a>
- </span>
- <?php if ($logedin): ?>
- <span class='mid' style='margin:0 auto; height:100%;'>
- <span class="topbutton" style='position:relative;'>
- <a href='?mode=federated' title='Federated' class='fontello topicon tlicon ldr <?php echo ($tl['mode'] == "federated" ? "tiselected" : "");?>'></a>
- </span>
- <span class="topbutton" style='position:relative;'>
- <a href='?mode=home' title='Home' class='fontello topicon tlicon ldr <?php echo ($tl['mode'] == "home" ? "tiselected" : "");?>'></a>
- </span>
- <span class="topbutton" style='position:relative;'>
- <a href='?mode=local' title='Local' class='fontello topicon tlicon ldr <?php echo ($tl['mode'] == "local" ? "tiselected" : "");?>'></a>
- </span>
- <span class="topbutton" style='position:relative;'>
- <a href='?mode=favourites' title='Favorited' class='fontello topicon tlicon ldr <?php echo ($tl['mode'] == "favourites" ? "tiselected" : "");?>'></a>
- </span>
- <span class="topbutton" style='position:relative;'>
- <a href='?mode=direct' title='Direct Messages' class='fontello topicon tlicon ldr <?php echo ($tl['mode'] == "direct" ? "tiselected" : "");?>'></a>
- </span>
- <span class="topbutton" style='position:relative;'>
- <a href='?mode=bookmarks' title='Bookmarks' class='fontello topicon tlicon ldr <?php echo ($tl['mode'] == "bookmarks" ? "tiselected" : "");?>'></a>
- </span>
- </span>
- <?php endif; ?>
- <span class="fw" style='margin-right:20px; height:100%;'>
- <?php if ($logedin): ?>
- <span class="topbutton mobile" style='position:relative;'>
- <a href="./<?php echo ($logedin ? "?mode=home" : ""); ?>"' class='fontello topicon ldr' style='text-decoration:none; display:inline; font-size:20px;'></a>
- </span>
- <span class="topbutton desktop" style='position:relative;'>
- <div style='position:absolute; left:-200px; display:none; height: 50%; background-color:white; border-radius:10px; padding: 2px; margin-top: 8px;' class="search"><form method='get' style="margin-top:-11px;"><input type='text' name='search' style='margin-left:3px; width:150px' placeholder='Type your search here'><input type='submit' value='' class='fontello'></form></div>
- <a href='?page=search' title='Search Form' class='searchform fontello topicon' onClick='return false'></a>
- </span>
-
-
- <span class="topbutton mobile compose" style='position:relative;'>
- <a href='' onClick='return false;' class='fontello topicon' style='text-decoration:none; display:inline; font-size:20px;'></a>
- </span>
-
- <span class="topbutton ntbutton">
- <a href='?page=notifications' title='Notifications' onClick='return false;' class='badge fontello topicon' style='text-decoration:none; display:inline; font-size:20px;'> <span class='alert' style=''></span> </a>
- <div id='notifications'><div class='container'><?php echo $notif ?></div><span class='nloadmore'>Load More</span></div>
- </span>
-
- <span class="topbutton desktop" id="accountmenu">
- <div class='topicon' style='margin-top: 5px; display:inline !important;'><div style='margin-top: 0px; margin-left: 10px; border-radius:15px; display:block; width:30px; height: 30px; background-size:cover; background-image:url("<?php echo $info['avatar']; ?>");'></div></div>
- <div class='menu' style="width:180px;">
- <ul>
- <?php
- $c = 0;
- foreach ($cookie as $elem){
- if(!isset($elem['acct'])){
- continue;
- }
- echo "<a href='?switchaccount=$c'><li style='text-align:left !important;'>
- <div style='width:100%; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: normal; align-items: normal; align-content: normal; padding:5px;'>
- <div style='width:30px; height:30px; display: block; flex-grow: 0; flex-shrink: 1; flex-basis: auto; align-self: auto; order: 0; border-radius:15px; background-image:url(".$elem['avatar']."); background-size:cover;'></div>
- <div style='padding-left:5px; height:30px; display: block; flex-grow: 0; flex-shrink: 1; flex-basis: auto; align-self: auto; order: 0; line-height:1em; border:0px !important;'>
- <span style='display:block;'>".$elem['acct']."</span>
- <span style='display:block; font-size:12px'>".$elem['instance']."</span>
- </div>
- </div>
- </li></a>";
- $c++;
- }
- ?>
- <li><a class='fontello link' href='./login'> Add account</a></li>
- <li><a class='fontello ldr link' href='?page=settings' onClick='return false'> Settings</a></li>
- <li></li>
- <li><a class='fontello link' href='./logout'> Log Out</a></li>
- </ul>
- </div>
- </span>
-
- <span class="topbutton mobile" id="usermenu">
- <span class='fontello topicon' style='display:inline; font-size:20px;'></span>
- </span>
-
-
-
- <?php else: ?>
- <span class="topbutton" style='position:relative;'>
- <a href='?page=about' class='fontello topicon ldr' style='text-decoration:none; display:inline; font-size:20px;'> </a>
- </span>
-
- <span class="topbutton desktop" style='position:relative;'>
- <a href='?page=fediverse' class='fontello topicon ldr' style='text-decoration:none; display:inline; font-size:20px;'> </a>
- </span>
- <span class="topbutton desktop" style='position:relative;'>
- <a href='?page=privacy' class='fontello topicon ldr' style='text-decoration:none; display:inline; font-size:20px;'> </a>
- </span>
-
- <span class="topbutton" style='position:relative;'>
- <a href='?page=settings' class='fontello topicon ldr' style='text-decoration:none; display:inline; font-size:20px;'> </a>
- </span>
- <span class="topbutton" style='position:relative; width:auto; margin-left:10px;'>
- <a href='./login' style='display:inline:block; padding:3px; border: 1px solid white; font-weight:bold; border-radius:3px; color:white; text-decoration:none; display:inline; font-size:20px;'><span class='fontello' ></span> Login </a>
- </span>
- <?php
- endif; ?>
- <!--
- <a href='?page=notifications' onClick='return false;'><span class="badge disabled">🔔</span></a>
- <a href="./logout" style='color:lightgray; font-weight:bold; font-size:18px;'>Logout</a>
- -->
- </span>
- </div>
- </div>
|