Add section/group to non-scrolling part of header.

This commit is contained in:
Retro_Guy 2024-12-03 11:19:06 -07:00
parent e801841038
commit 5bc2c01ab3
2 changed files with 24 additions and 1 deletions

View File

@ -121,7 +121,17 @@ foreach ($menulist as $menu) {
echo '</form>';
echo '</td>';
}
echo '</tr></table>';
echo '</td></tr></table>';
if (preg_match("/thread.php|article.php|article-flat.php/", $_SERVER['REQUEST_URI'])) {
if (isset($_REQUEST["group"])) {
echo '<table class="header_display_group">';
echo '<tr><td>';
echo '<span><a href="/' . $config_name . '">' . $config_name . '</a> / <a href="' . $file_thread . '?group=' . rawurlencode($group) . '" target=' . $frame["content"] . '>' . htmlspecialchars(group_display_name($group)) . '</a>';
echo '</td></tr></table>';
}
}
echo '</div><div class="scroll">';
$config_name = basename(getcwd());

View File

@ -159,6 +159,19 @@
margin-right: auto;
}
.header_display_group {
background: var(--color-light);
padding: none;
border: none;
margin-bottom: 1px;
color: var(--color-text);
font-size: 0.7em;
font-style: italic;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.np_header_links {
color: var(--color-header-link) !important;
}