mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Simplify navbar()
This commit is contained in:
parent
8f607940fe
commit
d56b589494
@ -24,6 +24,7 @@ function navbar($links) {
|
|||||||
}
|
}
|
||||||
$li .= " class=\"$class\"";
|
$li .= " class=\"$class\"";
|
||||||
|
|
||||||
|
$title = $this->page->t("title.$title");
|
||||||
if ($this->page->settings->header_show_totals && isset($this->count[$page])) {
|
if ($this->page->settings->header_show_totals && isset($this->count[$page])) {
|
||||||
$title .= ' <span class="' . $this->page->settings->badge_classes . '">';
|
$title .= ' <span class="' . $this->page->settings->badge_classes . '">';
|
||||||
$title .= $this->count[$page];
|
$title .= $this->count[$page];
|
||||||
@ -111,11 +112,11 @@ if ($page->settings->header_show_totals) {
|
|||||||
<div class="collapse navbar-collapse" id="litebans-navbar">
|
<div class="collapse navbar-collapse" id="litebans-navbar">
|
||||||
<?php
|
<?php
|
||||||
$this->navbar(array(
|
$this->navbar(array(
|
||||||
"index.php" => $this->page->t("title.index"),
|
"index.php" => "index",
|
||||||
"bans.php" => $this->page->t("title.bans"),
|
"bans.php" => "bans",
|
||||||
"mutes.php" => $this->page->t("title.mutes"),
|
"mutes.php" => "mutes",
|
||||||
"warnings.php" => $this->page->t("title.warnings"),
|
"warnings.php" => "warnings",
|
||||||
"kicks.php" => $this->page->t("title.kicks"),
|
"kicks.php" => "kicks",
|
||||||
));
|
));
|
||||||
?>
|
?>
|
||||||
<ul class="nav navbar-nav my-2 my-lg-0">
|
<ul class="nav navbar-nav my-2 my-lg-0">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user