From 099bc1b2c5fa6e49e12eb021aa85d89325fe6209 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:53:43 +0300 Subject: [PATCH] =?UTF-8?q?add=20=D0=A4=D0=BE=D1=82=D0=BE=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D1=84=D0=B8=D0=B8=20=D0=B8=D0=B7=D0=B1=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controllers/MainController.php | 5 +++ app/Core/Routes.php | 2 + views/components/Navbar.php | 1 + views/pages/FavAuthors.php | 62 ++++++++++++++++++++++++++++++ views/pages/Profile/Index.php | 4 +- 5 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 views/pages/FavAuthors.php diff --git a/app/Controllers/MainController.php b/app/Controllers/MainController.php index f7daa7c..3796fa0 100644 --- a/app/Controllers/MainController.php +++ b/app/Controllers/MainController.php @@ -36,6 +36,11 @@ class MainController { Page::set('Top30'); + } + public static function favauthors() + { + Page::set('FavAuthors'); + } public static function logout() diff --git a/app/Core/Routes.php b/app/Core/Routes.php index 7d49b49..5f662a3 100644 --- a/app/Core/Routes.php +++ b/app/Core/Routes.php @@ -33,6 +33,8 @@ class Routes Router::get('/lk/history', 'ProfileController@lkhistory'); Router::get('/lk/profile', 'ProfileController@lkprofile'); + Router::get('/fav_authors', 'MainController@favauthors'); + Router::get('/search', 'SearchController@i'); Router::post('/api/upload', 'ApiController@upload'); diff --git a/views/components/Navbar.php b/views/components/Navbar.php index 0a987b7..ea48585 100644 --- a/views/components/Navbar.php +++ b/views/components/Navbar.php @@ -40,6 +40,7 @@ if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true)
diff --git a/views/pages/FavAuthors.php b/views/pages/FavAuthors.php new file mode 100644 index 0000000..06b0ac2 --- /dev/null +++ b/views/pages/FavAuthors.php @@ -0,0 +1,62 @@ + + + + + + + + + + + + + +
+ Фотографии избранных авторов+ Auth::userid())); + foreach ($followimgs as $f) { + $author = new User($p['user_id']); + $p = new Photo($f['photo_id']); + echo '
+ ';
+ }
+ ?>
+
+
+
+
+
|
+ ||