diff --git a/views/components/AdminSidebar.php b/views/components/AdminSidebar.php
index 1c0a61c..9f43b2b 100644
--- a/views/components/AdminSidebar.php
+++ b/views/components/AdminSidebar.php
@@ -1,6 +1,11 @@
0) {
+ $nonr = ''.$nonreviewedimgs.'';
+ }
?>
@@ -27,7 +32,7 @@ use \App\Core\Page;
Фотографии
-
+ =$nonr?>
diff --git a/views/components/Navbar.php b/views/components/Navbar.php
index 34ae6f3..0a987b7 100644
--- a/views/components/Navbar.php
+++ b/views/components/Navbar.php
@@ -66,19 +66,25 @@ if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true)
+
- Войти
- Регистрация
- - =$user->i('username')?>
-
-
- - Общая информация
- i('admin') > 0) {
$nonreviewedimgs = DB::query('SELECT COUNT(*) FROM photos WHERE moderated=0')[0]['COUNT(*)'];
if ($nonreviewedimgs > 0) {
$nonr = ''.$nonreviewedimgs.'';
}
+ }
+ ?>
+ - =$user->i('username')?>=$nonr?>
+