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;
- = $_GLOBAL['title'] ?>
+ Правила сайта
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
|