diff --git a/design/privateheader.php b/design/privateheader.php
index e460f1e..06e0200 100755
--- a/design/privateheader.php
+++ b/design/privateheader.php
@@ -1,124 +1,123 @@
define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
-$HTTPS = true;
$UseTooltipster = !isset(G::$LoggedUser['Tooltipster']) || G::$LoggedUser['Tooltipster'];
?>
- =display_str($PageTitle)?>
-
-
+ =display_str($PageTitle)?>
+
+
-
-
-
-
+
+
+
+
if (isset(G::$LoggedUser['Notify'])) {
- foreach (G::$LoggedUser['Notify'] as $Filter) {
- list($FilterID, $FilterName) = $Filter;
+ foreach (G::$LoggedUser['Notify'] as $Filter) {
+ list($FilterID, $FilterName) = $Filter;
?>
-
+
- }
+ }
}
?>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
if ($UseTooltipster) { ?>
-
+
}
if ($Mobile) { ?>
-
-
+
+
} else {
- if (empty(G::$LoggedUser['StyleURL'])) {
+ if (empty(G::$LoggedUser['StyleURL'])) {
?>
-
+
- } else {
- $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
- if (substr(G::$LoggedUser['StyleURL'], -4) == '.css'
- && empty($StyleURLInfo['query']) && empty($StyleURLInfo['fragment'])
- && ($StyleURLInfo['host'] == SITE_DOMAIN)
- && file_exists(SERVER_ROOT.$StyleURLInfo['path'])) {
- $StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']);
- } else {
- $StyleURL = G::$LoggedUser['StyleURL'];
- }
+ } else {
+ $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
+ if (substr(G::$LoggedUser['StyleURL'], -4) == '.css'
+ && empty($StyleURLInfo['query']) && empty($StyleURLInfo['fragment'])
+ && ($StyleURLInfo['host'] == SITE_DOMAIN)
+ && file_exists(SERVER_ROOT.$StyleURLInfo['path'])) {
+ $StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']);
+ } else {
+ $StyleURL = G::$LoggedUser['StyleURL'];
+ }
?>
-
+
- }
+ }
}
$ExtraCSS = explode(',', $CSSIncludes);
foreach ($ExtraCSS as $CSS) {
- if (trim($CSS) == '') {
- continue;
- }
+ if (trim($CSS) == '') {
+ continue;
+ }
?>
- " />
+ " />
}
?>
-
+
$Scripts = array_merge(array('jquery', 'script_start', 'ajax.class', 'global', 'jquery.autocomplete', 'autocomplete'), explode(',', $JSIncludes));
if ($UseTooltipster) {
- $Scripts[] = 'tooltipster';
+ $Scripts[] = 'tooltipster';
$Scripts[] = 'tooltipster_settings';
}
foreach ($Scripts as $Script) {
- if (trim($Script) == '') {
- continue;
- }
+ if (trim($Script) == '') {
+ continue;
+ }
?>
-
+
}
if ($Mobile) { ?>
-
+
}
@@ -131,281 +130,280 @@ $UseNoty = $NotificationsManager->use_noty();
$NewSubscriptions = false;
$NotificationSpans = array();
foreach ($Notifications as $Type => $Notification) {
- if ($Type === NotificationsManager::SUBSCRIPTIONS) {
- $NewSubscriptions = true;
- }
- if ($UseNoty) {
- $NotificationSpans[] = "$Notification[message]";
- }
+ if ($Type === NotificationsManager::SUBSCRIPTIONS) {
+ $NewSubscriptions = true;
+ }
+ if ($UseNoty) {
+ $NotificationSpans[] = "$Notification[message]";
+ }
}
if ($UseNoty && !empty($NotificationSpans)) {
- NotificationsManagerView::load_js();
+ NotificationsManagerView::load_js();
}
if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) {
- $NewSubscriptions = Subscriptions::has_new_subscriptions();
+ $NewSubscriptions = Subscriptions::has_new_subscriptions();
}
?>
-
-
=SITE_NAME?>
-