Clean up some html (to php) and class code in header.php.
This commit is contained in:
parent
33b9da5883
commit
90941226da
|
@ -5,7 +5,7 @@ if (basename(getcwd()) == 'mods') {
|
||||||
$rootdir = "../";
|
$rootdir = "../";
|
||||||
}
|
}
|
||||||
|
|
||||||
include ($rootdir . 'common/config.inc.php');
|
include($rootdir . 'common/config.inc.php');
|
||||||
|
|
||||||
global $OVERRIDES;
|
global $OVERRIDES;
|
||||||
$CONFIG = include $config_file;
|
$CONFIG = include $config_file;
|
||||||
|
@ -17,12 +17,12 @@ echo '<meta charset="utf-8">';
|
||||||
|
|
||||||
// Set tzo if possible
|
// Set tzo if possible
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
if (navigator.cookieEnabled)
|
if (navigator.cookieEnabled)
|
||||||
document.cookie = "tzo="+ (- new Date().getTimezoneOffset())+"; path=/";
|
document.cookie = "tzo=" + (-new Date().getTimezoneOffset()) + "; path=/";
|
||||||
var tzid = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
var tzid = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||||
document.cookie = "tzid=" + tzid + "; path=/";
|
document.cookie = "tzid=" + tzid + "; path=/";
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (isset($_COOKIE['mail_name']) && isset($_COOKIE['pkey'])) {
|
if (isset($_COOKIE['mail_name']) && isset($_COOKIE['pkey'])) {
|
||||||
|
@ -52,18 +52,17 @@ if ((isset($_SESSION['theme'])) && file_exists($rootdir . '/common/themes/' . $d
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</head><body>';
|
echo '</head><body>';
|
||||||
?>
|
|
||||||
|
|
||||||
<table class="np_header_bar_top">
|
echo '<table class="np_header_table_top">';
|
||||||
<tr>
|
echo '<tr class="np_header_bar_top">';
|
||||||
<td class="np_td_header_bar_logo_image"><a href="<?php echo $CONFIG['default_content'];?>"><img
|
echo '<td class="np_td_header_bar_logo_image"><a href="' . $CONFIG['default_content'] . '">';
|
||||||
src="<?php echo $header_image ?>" alt="Rocksolid Light"
|
echo '<img src="' . $header_image . '" alt="Rocksolid Light"';
|
||||||
class="responsive_image"></a></td>
|
echo ' class="responsive_image"></a></td>';
|
||||||
<td class="header_page_title_top">
|
echo '<td class="header_page_title_top">';
|
||||||
<?php echo $CONFIG['rslight_title']; ?>
|
echo $CONFIG['rslight_title'];
|
||||||
</td>
|
echo '</td>';
|
||||||
<td class="header_links_text">
|
echo '<td class="header_links_text">';
|
||||||
<?php
|
|
||||||
if (isset($user) && $user && check_unread_mail() == true) {
|
if (isset($user) && $user && check_unread_mail() == true) {
|
||||||
$unread = true;
|
$unread = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -95,7 +94,7 @@ echo '</a>';
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
|
||||||
include ($config_dir . '/fortunes.conf');
|
include($config_dir . '/fortunes.conf');
|
||||||
|
|
||||||
// If $config_dir/motd.txt is not blank, show it
|
// If $config_dir/motd.txt is not blank, show it
|
||||||
if (file_exists($config_dir . '/motd.txt')) {
|
if (file_exists($config_dir . '/motd.txt')) {
|
||||||
|
|
|
@ -259,11 +259,19 @@
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.np_header_bar_top {
|
.np_header_table_top {
|
||||||
background: var(--color-header-background);
|
background: var(--color-header-background);
|
||||||
padding: 0px;
|
padding-top: 0px;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
color: black;
|
color: black;
|
||||||
|
width: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.np_header_bar_top {
|
||||||
|
background: var(--color-header-background);
|
||||||
|
padding-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
font-size: 0.5em;
|
font-size: 0.5em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
Loading…
Reference in New Issue