- These are the external account links etc. on your profile, shouldn't need any additional explanation for this one.
+
diff --git a/_sakura/templates/yuuno/settings/ranks.tpl b/_sakura/templates/yuuno/settings/ranks.tpl
index 636742a..e69de29 100644
--- a/_sakura/templates/yuuno/settings/ranks.tpl
+++ b/_sakura/templates/yuuno/settings/ranks.tpl
@@ -1,17 +0,0 @@
-{% include 'global/header.tpl' %}
-
-{% include 'global/footer.tpl' %}
diff --git a/_sakura/templates/yuuno/settings/regkeys.tpl b/_sakura/templates/yuuno/settings/regkeys.tpl
index 8cb7959..e69de29 100644
--- a/_sakura/templates/yuuno/settings/regkeys.tpl
+++ b/_sakura/templates/yuuno/settings/regkeys.tpl
@@ -1,17 +0,0 @@
-{% include 'global/header.tpl' %}
-
-
- {% include 'elements/settingsNav.tpl' %}
-
-
-
- {{ page.title }}
-
-
- Sometimes we activate the registration key system which means that users can only register using your "referer" keys, this means we can keep unwanted people from registering. Each user can generate 5 of these keys, bans and deactivates render these keys useless.
-
-
-
-
-
-{% include 'global/footer.tpl' %}
diff --git a/_sakura/templates/yuuno/settings/sessions.tpl b/_sakura/templates/yuuno/settings/sessions.tpl
index 278f163..e69de29 100644
--- a/_sakura/templates/yuuno/settings/sessions.tpl
+++ b/_sakura/templates/yuuno/settings/sessions.tpl
@@ -1,19 +0,0 @@
-{% include 'global/header.tpl' %}
-
-
- {% include 'elements/settingsNav.tpl' %}
-
-
-
- {{ page.title }}
-
-
- Session keys are a way of identifying yourself with the system without keeping your password in memory.
- If someone finds one of your session keys they could possibly compromise your account, if you see any sessions here that shouldn't be here hit the Kill button to kill the selected session.
- If you get logged out after clicking one you've most likely killed your current session, to make it easier to avoid this from happening your current session is highlighted.
-
-
-
-
-
-{% include 'global/footer.tpl' %}
diff --git a/_sakura/templates/yuuno/settings/username.tpl b/_sakura/templates/yuuno/settings/username.tpl
index 6d90489..e69de29 100644
--- a/_sakura/templates/yuuno/settings/username.tpl
+++ b/_sakura/templates/yuuno/settings/username.tpl
@@ -1,18 +0,0 @@
-{% include 'global/header.tpl' %}
-
-{% include 'global/footer.tpl' %}
diff --git a/_sakura/templates/yuuno/settings/userpage.tpl b/_sakura/templates/yuuno/settings/userpage.tpl
index a84d881..58815d3 100644
--- a/_sakura/templates/yuuno/settings/userpage.tpl
+++ b/_sakura/templates/yuuno/settings/userpage.tpl
@@ -1,43 +1,26 @@
-{% include 'global/header.tpl' %}
-
-
- {% include 'elements/settingsNav.tpl' %}
-
-
-
- {{ page.title }}
-
-
-
The custom text that is displayed on your profile.
-
-
- {#
- {% if preview %}
-
- {{ preview|raw }}
-
-
- {% endif %}
-
- #}
-
Redoing this bc garbage.
-
-
+{#
+{% if preview %}
+
+ {{ preview|raw }}
-{% include 'global/footer.tpl' %}
+
+{% endif %}
+
+#}
+
Redoing this bc garbage.
diff --git a/_sakura/templates/yuuno/settings/usertitle.tpl b/_sakura/templates/yuuno/settings/usertitle.tpl
index e0715e0..e69de29 100644
--- a/_sakura/templates/yuuno/settings/usertitle.tpl
+++ b/_sakura/templates/yuuno/settings/usertitle.tpl
@@ -1,17 +0,0 @@
-{% include 'global/header.tpl' %}
-
-
- {% include 'elements/settingsNav.tpl' %}
-
-
-
- {{ page.title }}
-
-
- That little piece of text displayed under your username on your profile.
-
-
-
-
-
-{% include 'global/footer.tpl' %}
diff --git a/main/settings.php b/main/settings.php
index 5befd32..85d7250 100644
--- a/main/settings.php
+++ b/main/settings.php
@@ -567,33 +567,35 @@ if(Users::checkLogin()) {
// Settings page list
$pages = [
- 'home' => ['General', 'Home'],
- 'profile' => ['General', 'Edit Profile'],
- 'groups' => ['General', 'Groups'],
- 'friendlisting' => ['Friends', 'List'],
- 'friendrequests' => ['Friends', 'Requests'],
- 'notifications' => ['Notifications', 'History'],
- 'avatar' => ['Aesthetics', 'Avatar'],
- 'background' => ['Aesthetics', 'Background'],
- 'userpage' => ['Aesthetics', 'Userpage'],
- 'email' => ['Account', 'E-mail Address'],
- 'username' => ['Account', 'Username'],
- 'usertitle' => ['Account', 'User Title'],
- 'password' => ['Account', 'Password'],
- 'ranks' => ['Account', 'Ranks'],
- 'sessions' => ['Danger zone', 'Sessions'],
- 'regkeys' => ['Danger zone', 'Registration Keys'],
- 'deactivate' => ['Danger zone', 'Deactivate Account'],
- 'notfound' => ['Settings', '404']
+ 'home' => ['General', 'Home', ['Welcome to the Settings Panel. From here you can monitor, view and update your profile and preferences.']],
+ 'profile' => ['General', 'Edit Profile', ['These are the external account links etc. on your profile, shouldn\'t need any additional explanation for this one.']],
+ 'groups' => ['General', 'Groups', []],
+ 'friendlisting' => ['Friends', 'List', ['Manage your friends.']],
+ 'friendrequests' => ['Friends', 'Requests', ['Handle friend requests.']],
+ 'notifications' => ['Notifications', 'History', ['This is the history of notifications that have been sent to you.']],
+ 'avatar' => ['Aesthetics', 'Avatar', ['Your avatar which is displayed all over the site and on your profile.', 'Maximum image size is {{ avatar.max_width }}x{{ avatar.max_height }}, minimum image size is {{ avatar.min_width }}x{{ avatar.min_height }}, maximum file size is {{ avatar.max_size_view }}.']],
+ 'background' => ['Aesthetics', 'Background', ['The background that is displayed on your profile.', 'Maximum image size is {{ background.max_width }}x{{ background.max_height }}, minimum image size is {{ background.min_width }}x{{ background.min_height }}, maximum file size is {{ background.max_size_view }}.']],
+ 'userpage' => ['Aesthetics', 'Userpage', ['The custom text that is displayed on your profile.', '
Click here if you don\'t know how to markdown!']],
+ 'email' => ['Account', 'E-mail Address', ['You e-mail address is used for password recovery and stuff like that, we won\'t spam you ;).']],
+ 'username' => ['Account', 'Username', ['Probably the biggest part of your identity on a site.', '
You can only change this once every 30 days so choose wisely.']],
+ 'usertitle' => ['Account', 'User Title', ['That little piece of text displayed under your username on your profile.']],
+ 'password' => ['Account', 'Password', ['Used to authenticate with the site and certain related services.']],
+ 'ranks' => ['Account', 'Ranks', ['Manage what ranks you\'re in and what is set as your main rank. Your main rank is highlighted. You get the permissions of all of the ranks you\'re in combined.']],
+ 'sessions' => ['Danger zone', 'Sessions', ['Session keys are a way of identifying yourself with the system without keeping your password in memory.', 'If someone finds one of your session keys they could possibly compromise your account, if you see any sessions here that shouldn\'t be here hit the Kill button to kill the selected session.', 'If you get logged out after clicking one you\'ve most likely killed your current session, to make it easier to avoid this from happening your current session is highlighted.']],
+ 'regkeys' => ['Danger zone', 'Registration Keys', ['Sometimes we activate the registration key system which means that users can only register using your "referer" keys, this means we can keep unwanted people from registering.', 'Each user can generate 5 of these keys, bans and deactivates render these keys useless.']],
+ 'deactivate' => ['Danger zone', 'Deactivate Account', ['You can deactivate your account here if you want to leave :(.']],
+ 'notfound' => ['Settings', '404', ['This is an error.']]
];
// Current settings page
$currentPage = isset($_GET['mode']) ? (array_key_exists($_GET['mode'], $pages) ? $_GET['mode'] : 'notfound') : 'home';
// Render data
+ $renderData['current'] = $currentPage;
$renderData['page'] = [
'title' => $pages[$currentPage][0] .' / '. $pages[$currentPage][1],
- 'currentPage' => isset($_GET['page']) && ($_GET['page'] - 1) >= 0 ? $_GET['page'] - 1 : 0
+ 'currentPage' => isset($_GET['page']) && ($_GET['page'] - 1) >= 0 ? $_GET['page'] - 1 : 0,
+ 'description' => $pages[$currentPage][2]
];
// Section specific
@@ -651,7 +653,7 @@ if(Users::checkLogin()) {
}
// Print page contents
- print Templates::render('settings/'. $currentPage .'.tpl', $renderData);
+ print Templates::render('main/settings.tpl', $renderData);
} else {