From 6f725d0d70f74274b7519d96d759195998e3d4ed Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:03:11 +0300 Subject: [PATCH] photoindex implementation --- app/Controllers/ProfileController.php | 5 ++ app/Core/Routes.php | 3 +- ngallery-example.yaml | 5 ++ static/img/scale1.png | Bin 0 -> 3784 bytes static/js/act.js | 3 +- views/pages/Admin/Photo.php | 2 +- views/pages/Profile/LK/Index.php | 15 ++++- views/pages/Profile/LK/PhotoIndexHistory.php | 63 +++++++++++++++++++ 8 files changed, 92 insertions(+), 4 deletions(-) create mode 100644 static/img/scale1.png create mode 100644 views/pages/Profile/LK/PhotoIndexHistory.php diff --git a/app/Controllers/ProfileController.php b/app/Controllers/ProfileController.php index 91eb4c5..cc5183e 100644 --- a/app/Controllers/ProfileController.php +++ b/app/Controllers/ProfileController.php @@ -17,6 +17,11 @@ class ProfileController { Page::set('Profile/Index'); } + public static function photoindexhistory() + { + Page::set('Profile/LK/PhotoIndexHistory'); + + } public static function upload() { Page::set('Profile/UploadPhoto'); diff --git a/app/Core/Routes.php b/app/Core/Routes.php index e2a0c4b..37128f5 100644 --- a/app/Core/Routes.php +++ b/app/Core/Routes.php @@ -42,7 +42,8 @@ class Routes Router::get('/lk/upload', 'ProfileController@upload'); Router::get('/lk/history', 'ProfileController@lkhistory'); Router::get('/lk/profile', 'ProfileController@lkprofile'); - + Router::get('/lk/pday', 'ProfileController@photoindexhistory'); + Router::get('/fav_authors', 'MainController@favauthors'); Router::get('/search', 'SearchController@i'); diff --git a/ngallery-example.yaml b/ngallery-example.yaml index b3c1d4a..9c95862 100644 --- a/ngallery-example.yaml +++ b/ngallery-example.yaml @@ -47,6 +47,11 @@ ngallery: upload: allow: true photo: + uploadindex: + enabled: false + default: 5 + acceptvalue: 1 + declinevalue: 2 upload: allow: true premoderation: true diff --git a/static/img/scale1.png b/static/img/scale1.png new file mode 100644 index 0000000000000000000000000000000000000000..61dce7fc58aa8b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?RAFqGh&W`nsi2Ta1Sc zo>D}Qucr5+Kbe8cR z&%_l+ugw0wAjQ4^3@i8Cmdcd)(3U|5mST?TkxF5jlkPiTPgZiN>*r}1GIk93p!2Pd zS=#xc^H%3}`f`M_>b3rNguA1#86LLTGpnqSzPP0O?N^cPs~2laE?c<2oni}j*J2iL zE-+6YH(FDtyq|tKIsIJCf@2AQMg4@ijc&_|j7|15y?>vXb>qfQ#OBVfsb0^#oYv5r z0}^g0q6W`fADS$XUTHTzV-GOnpCmqf*U+$qcCdHbPk3cr^I4t~?o>Q)@p>vLEo;>a z?tELjx^2L;%6NC~H;s11JsbSv%Bv&^$u4_m%1$)f)?O=TwoB^zcs6H<%BFZaS&y3HMZ`&-NSiG%AqQi8S{#Wp17L>xz-oOvOP3QaDyQ@w5+TxD+_dy&|C z?l9dB*VzNzNaPICv$!&u~=AlGa%NFhAsi= z8k zNT{#cGH_V*`mKL}X$*H}PR4cD#xm)Yv^{4J0s6(>XD2ICYiyeur)~BV=g3J-VEpNw zhJZe?*XuXct6Q$-r|Y}s(k(t7Q(acs+Xm-8Ce@4kelxn`R@9Ya7=NpFUIvSj)!lD) a2XI*x!-;&b+(-Str8Cc!dx8Dk*53h|mAYjB literal 0 HcmV?d00001 diff --git a/static/js/act.js b/static/js/act.js index ef3d077..42dcb85 100644 --- a/static/js/act.js +++ b/static/js/act.js @@ -6,7 +6,8 @@ function createModal(id, type, value) { ×

Отредактировать комментарий

-
+
  Ctrl + Enter diff --git a/views/pages/Admin/Photo.php b/views/pages/Admin/Photo.php index ab1bfa4..db0adf7 100644 --- a/views/pages/Admin/Photo.php +++ b/views/pages/Admin/Photo.php @@ -94,7 +94,7 @@ use \App\Models\User;