+
{* Global messages *}
{if isset($MAINTENANCE_ENABLED)}
@@ -119,4 +119,9 @@
{$MAINTENANCE_ENABLED}
{/if}
+ {if isset($MUST_VALIDATE_ACCOUNT)}
+
+ {$MUST_VALIDATE_ACCOUNT}
+
+ {/if}
\ No newline at end of file
diff --git a/upload/custom/templates/Bootstrap3/privacy.tpl b/upload/custom/templates/Bootstrap3/privacy.tpl
new file mode 100644
index 0000000..251b8d5
--- /dev/null
+++ b/upload/custom/templates/Bootstrap3/privacy.tpl
@@ -0,0 +1,14 @@
+{include file='navbar.tpl'}
+
+
+
+
+
{$PRIVACY_POLICY}
+
+
{$POLICY}
+
+
+
+
+
+{include file='footer.tpl'}
\ No newline at end of file
diff --git a/upload/custom/templates/Bootstrap3/profile.tpl b/upload/custom/templates/Bootstrap3/profile.tpl
index 342ca0c..7e776ab 100644
--- a/upload/custom/templates/Bootstrap3/profile.tpl
+++ b/upload/custom/templates/Bootstrap3/profile.tpl
@@ -93,7 +93,7 @@
diff --git a/upload/custom/templates/Bootstrap3/template.php b/upload/custom/templates/Bootstrap3/template.php
index 44285a5..c81c498 100644
--- a/upload/custom/templates/Bootstrap3/template.php
+++ b/upload/custom/templates/Bootstrap3/template.php
@@ -2,15 +2,17 @@
/*
* Made by Samerton
* https://github.com/NamelessMC/Nameless/
- * NamelessMC version 2.0.0-pr3
+ * NamelessMC version 2.0.0-pr4
*
* License: MIT
*
* Bootstrap 3 template
*/
-$template_version = 'v2.0.0-pr3'; // Version number of template
-$nl_template_version = '2.0.0-pr3'; // Nameless version template is designed for
+$template_version = 'v2.0.0-pr4'; // Version number of template
+$nl_template_version = '2.0.0-pr4'; // Nameless version template is designed for
+
+$route = rtrim($_GET['route'], '/');
$cache->setCache('bs3_template');
if($cache->isCached('bootswatch')){
@@ -43,22 +45,21 @@
(defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/custom/templates/Bootstrap3/js/bootstrap.min.js'
);
- if(defined('PAGE') && PAGE == 'cc_messaging'){
+ if($route == '/user/messaging'){
$js_sources[] = (defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/custom/templates/Bootstrap3/js/bootstrap3-typeahead.min.js';
}
// Page load time
- $page_load = microtime(true) - $start;
- if(isset($page_loading) && $page_loading == '1'){
- $js = '
+ if(isset($page_loading) && $page_loading == '1') {
+ $page_load_js = '
';
- } else $js = '';
+ }
// Popovers
- $js.= '
+ $js = '
';
+ } else {
+ if(defined('COOKIE_NOTICE')){
+ $js .= '';
+ }
}
// Registration page/login page checkbox
- if(defined('PAGE') && (PAGE == 'login' || PAGE == 'register' || PAGE == 'complete_signup')){
+ if($route == '/login' || $route == '/register' || $route == '/complete_signup'){
$js .= '