From 2517f33542c4f0474ea6195c18253553b5091224 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Mon, 8 Jul 2024 20:10:00 +0300 Subject: [PATCH] add footer --- ngallery-example.yaml | 4 ++ views/components/Footer.php | 12 +++++ views/pages/Login.php | 4 +- views/pages/Main.php | 4 +- views/pages/Photo.php | 3 ++ views/pages/Profile/Index.php | 3 ++ views/pages/Profile/LK/History.php | 4 +- views/pages/Profile/LK/Index.php | 2 + views/pages/Profile/LK/Profile.php | 4 +- views/pages/Profile/UploadPhoto.php | 76 +++++------------------------ views/pages/Register.php | 4 +- 11 files changed, 50 insertions(+), 70 deletions(-) create mode 100644 views/components/Footer.php diff --git a/ngallery-example.yaml b/ngallery-example.yaml index 262f682..abf37a8 100644 --- a/ngallery-example.yaml +++ b/ngallery-example.yaml @@ -30,6 +30,10 @@ ngallery: img: proxy: true percent: 50 + registration: + prohibited_usernames: '' + access: + public: true photo: upload: allow: true diff --git a/views/components/Footer.php b/views/components/Footer.php new file mode 100644 index 0000000..b4c28ea --- /dev/null +++ b/views/components/Footer.php @@ -0,0 +1,12 @@ + + + +

Aloha, Hawaii! | PHP | MySQL

+ Главная     Личный кабинет     Правила     О сервере
+ + + + + \ No newline at end of file diff --git a/views/pages/Login.php b/views/pages/Login.php index 636dbe9..5e51468 100644 --- a/views/pages/Login.php +++ b/views/pages/Login.php @@ -86,7 +86,9 @@ if (Auth::userid() > 0) { - + + + diff --git a/views/pages/Main.php b/views/pages/Main.php index 74349f6..1b9835b 100644 --- a/views/pages/Main.php +++ b/views/pages/Main.php @@ -173,7 +173,9 @@ use App\Models\{User, Vote, Comment}; - + + + diff --git a/views/pages/Photo.php b/views/pages/Photo.php index 6719bb6..5eff349 100644 --- a/views/pages/Photo.php +++ b/views/pages/Photo.php @@ -288,6 +288,9 @@ marker.bindPopup("Выбранная точка").openPopup(); + + + -
+ content('premoderation') === true) { + echo '
Поздравляем, ' . $user->i('username') . '!
Администрацией ' . NGALLERY['root']['title'] . ' была одобрена возможность прямой загрузки фотографий для Вас.
Вы можете моментально загрузить любую фотографию, минуя премодерацию. Enjoy!
'; + } + } + ?> @@ -659,7 +603,7 @@ $user = new User(Auth::userid()); - + @@ -894,7 +838,9 @@ $user = new User(Auth::userid());
- + + +