1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <div class='mobilemenu mobile'>
- <ul>
- <li class='mobile' style='height:45px !important;'>
- <span style='line-height:45px; class='appname'>
- <a href="./<?php echo ($logedin ? "?mode=home" : ""); ?>" style="font-family: 'patua', serif; font-weight:bold; font-size:20px; text-decoration:none" ><?php echo $setting['appname']; ?></a>
- </span>
- </li>
- <?php if ($logedin): ?>
- <li style='height:40px !important; padding-bottom:10px;' class='account'>
- <div style='z-index:100; width:100%; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: normal; align-items: normal; align-content: '>
- <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(<?php echo $info['avatar']?>); background-size:cover;'></div>
- <div style='height:30px; width:100%; display: block; position:relative; flex-grow: 0; flex-shrink: 1; flex-basis: auto; align-self: auto; order: 0; line-height:1em; border:0px !important;'>
- <div class='fontello' style='position:absolute; right:10px; display:block;'></div>
- <span style='display:block; font-weight:bold;'><?php echo $info['acct']?></span>
- <span style='display:block; font-size:12px'><?php echo $user_settings['instance']?></span>
- </div>
- </div>
- </li>
- <?php
- $c = 0;
- foreach ($cookie as $elem){
- if(!isset($elem['acct'])){
- continue;
- }
- echo "<a href='?switchaccount=$c'><li style='text-align:left !important; height:40px !important' class='switcher mobile'>
- <div style='width:100%; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: normal; align-items: normal; align-content: normal; '>
- <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='height:30px; display: block; lex-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 class='switcher'></li>
- <li><a class='fontello link switcher mobile' href='./login'> Add account</a></li>
- <li class='switcher'></li>
- <li class='mobile' style=''><a class='fontello ldr link' href='?mode=federated' onClick='return false'> Federated</a></li>
- <li class='mobile' style=''><a class='fontello ldr link' href='?mode=home' onClick='return false'> Home</a></li>
- <li class='mobile' style=''><a class='fontello ldr link' href='?mode=local' onClick='return false'> Local</a></li>
- <li class='mobile' style=''><a class='fontello ldr link' href='?mode=favourites' onClick='return false'> Favourited</a></li>
- <li class='mobile' style=''><a class='fontello ldr link' href='?mode=direct' onClick='return false'> Direct</a></li>
- <li class='mobile' style=''><a class='fontello ldr link' href='?mode=bookmarks' onClick='return false'> Bookmarks</a></li>
- <li class='mobile' style=''><a class='fontello searchmobiletoggle link' href='?page=search' onClick='return false;'> Search</a></li>
- <li class='mobile' style=''></li>
- <?php endif; ?>
- <li><a class='fontello ldr link mobile' href='?page=settings' onClick='return false'> Settings</a></li>
- <li><a class='fontello link mobile' href='./logout'> Log Out</a></li>
- </ul>
- </div>
|