mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 08:30:59 +03:00
Update Navbar.php
This commit is contained in:
parent
5688dc07b7
commit
428f47142a
1 changed files with 7 additions and 2 deletions
|
@ -18,6 +18,11 @@ if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true)
|
|||
} else {
|
||||
$title = 'NativeGallery';
|
||||
}
|
||||
|
||||
$noncheckedimgs = DB::query('SELECT COUNT(*) FROM followers_notifications WHERE checked=0 AND follower_id=:id', array(':id'=>Auth::userid()))[0]['COUNT(*)'];
|
||||
if ($noncheckedimgs > 0) {
|
||||
$nonrw = '<span class="mm-notify notify-count">'.$noncheckedimgs.'</span>';
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
@ -39,12 +44,12 @@ if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true)
|
|||
</div>
|
||||
</li>
|
||||
<li><a href="/comments.php" class="mm-item"><span class="mm-label">Комментарии</span></a></li>
|
||||
<li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">Обновления</span></a>
|
||||
<li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">Обновления</span><?=$nonrw?></a>
|
||||
<div>
|
||||
<ul class="mm-level-2">
|
||||
<li><a href="/update.php?time=24" class="mm-item"><span class="mm-label">Новые фотографии</span></a></li>
|
||||
<li><a href="/feed.php" class="mm-item"><span class="mm-label">Лента обновлений</span></a></li>
|
||||
<li><a href="/fav_authors" class="mm-item"><span class="mm-label">Фотографии избранных авторов</span></a></li>
|
||||
<li><a href="/fav_authors" class="mm-item"><span class="mm-label">Фотографии избранных авторов</span><?=$nonrw?></a></li>
|
||||
<li><a href="/update.php" class="mm-item"><span class="mm-label">Архив обновлений по датам</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue