From 2c5f42d4d3e585d6b73bf3baeee2dcf95a02990d Mon Sep 17 00:00:00 2001 From: GeorgNation <55389952+GeorgNation@users.noreply.github.com> Date: Sun, 21 Jul 2024 21:57:34 +0600 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B2=204=20=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D1=8B=D1=85=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Макс у тебя очень крутая MVC система!!!!!!!!!!!! --- app/Controllers/MainController.php | 10 ++----- views/pages/PhotoRules.php | 44 ++++++++++++++++++++++++++++++ views/pages/PublicationRules.php | 44 ++++++++++++++++++++++++++++++ views/pages/Rules.php | 6 ++-- views/pages/VideoRules.php | 44 ++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+), 11 deletions(-) create mode 100644 views/pages/PhotoRules.php create mode 100644 views/pages/PublicationRules.php create mode 100644 views/pages/VideoRules.php diff --git a/app/Controllers/MainController.php b/app/Controllers/MainController.php index 54e603a..5d1bf78 100644 --- a/app/Controllers/MainController.php +++ b/app/Controllers/MainController.php @@ -24,21 +24,15 @@ class MainController } public static function rules() { - $_GLOBAL['rules'] = '/config/rules.html'; - $_GLOBAL['title'] = 'Правила сайта'; Page::set('Rules'); } public static function publicationRules() { - $_GLOBAL['rules'] = '/config/publicationRules.html'; - $_GLOBAL['title'] = 'Правила отбора фотографий'; - Page::set('Rules'); + Page::set('PublicationRules'); } public static function photoRules() { - $_GLOBAL['rules'] = '/config/photoRules.html'; - $_GLOBAL['title'] = 'Правила подписи фотографий'; - Page::set('Rules'); + Page::set('PhotoRules'); } public static function videoRules() { diff --git a/views/pages/PhotoRules.php b/views/pages/PhotoRules.php new file mode 100644 index 0000000..2f40b2d --- /dev/null +++ b/views/pages/PhotoRules.php @@ -0,0 +1,44 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + +
+

Правила подписи фотографий

+ +
+ +
+
+ + + + \ No newline at end of file diff --git a/views/pages/PublicationRules.php b/views/pages/PublicationRules.php new file mode 100644 index 0000000..991018d --- /dev/null +++ b/views/pages/PublicationRules.php @@ -0,0 +1,44 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + +
+

Правила отбора фотографий

+ +
+ +
+
+ + + + \ No newline at end of file diff --git a/views/pages/Rules.php b/views/pages/Rules.php index 6d01ec4..c170dd4 100644 --- a/views/pages/Rules.php +++ b/views/pages/Rules.php @@ -19,12 +19,12 @@ use \App\Models\User;
-

+

Правила сайта

diff --git a/views/pages/VideoRules.php b/views/pages/VideoRules.php new file mode 100644 index 0000000..047ba34 --- /dev/null +++ b/views/pages/VideoRules.php @@ -0,0 +1,44 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + +
+

Правила видеотеки

+ +
+ +
+
+ + + + \ No newline at end of file