diff --git a/history.php b/history.php
index e8320b9..e6077ce 100644
--- a/history.php
+++ b/history.php
@@ -169,6 +169,7 @@ try {
$all = $trim;
}
usort($all, array("History", "cmp_row_date_desc"));
+ $bc = $page->settings->info_badge_classes;
if (!empty($all)) {
$page->table_begin();
@@ -193,7 +194,7 @@ try {
$label_type = $page->type;
$label_name = Info::create($row, $page, $label_type)->name(); //ucfirst($label_type);
- $label = "$label_name";
+ $label = "$label_name";
$page->print_table_rows($row, array(
"type" => $label,
diff --git a/inc/header.php b/inc/header.php
index 08fda44..ce89dbd 100644
--- a/inc/header.php
+++ b/inc/header.php
@@ -43,7 +43,7 @@ function navbar($links) {
$li .= " class=\"$class\"";
if ($this->page->settings->header_show_totals && isset($this->count[$page])) {
- $title .= " ";
+ $title .= ' ';
$title .= $this->count[$page];
$title .= "";
}
@@ -79,7 +79,7 @@ $settings = $this->page->settings;
-
+
name; ?>
diff --git a/inc/settings.php b/inc/settings.php
index 8cdf599..97ba7b5 100644
--- a/inc/settings.php
+++ b/inc/settings.php
@@ -29,6 +29,14 @@ final class Settings {
// $this->name_link = 'https://example.com';
$this->name_link = 'index.php';
+ // Here you can customize colors for the Bootstrap 4 theme that you are using.
+ // Bootstrap 4 themes have four sets of colors: primary, secondary, light and dark.
+ // Navbar classes: navbar-light, navbar-dark, bg-primary, bg-secondary, bg-light, bg-dark
+ // Badge (label) classes: badge, badge-pill, badge-primary, badge-secondary, badge-light, badge-dark
+ $this->navbar_classes = 'navbar-dark bg-primary';
+ $this->badge_classes = 'badge-pill badge-secondary';
+ $this->info_badge_classes = 'badge';
+
// Show server scope column?
$this->show_server_scope = true;
diff --git a/info.php b/info.php
index 26544eb..b5fb7d5 100644
--- a/info.php
+++ b/info.php
@@ -151,6 +151,7 @@ if ($st->execute(array($id))) {
$header = $page->name;
$badges = "";
+ $bc = $page->settings->info_badge_classes;
if (!($info instanceof KickInfo)) {
$active = $page->active($row);
@@ -163,19 +164,19 @@ if ($st->execute(array($id))) {
$idx = "generic.ipmute";
}
if ($idx !== null) {
- $badges .= "" . $page->t($idx) . "";
+ $badges .= "" . $page->t($idx) . "";
}
}
if ($active === true) {
- $badges .= "" . $page->t("generic.active") . "";
+ $badges .= "" . $page->t("generic.active") . "";
if ($permanent) {
- $badges .= "" . $page->t("generic.permanent") . "";
+ $badges .= "" . $page->t("generic.permanent") . "";
}
} else {
if ($page->is_expired($row)) {
- $badges .= "" . $page->t("generic.expired") . "";
+ $badges .= "" . $page->t("generic.expired") . "";
} else {
- $badges .= "" . $page->t("generic.inactive") . "";
+ $badges .= "" . $page->t("generic.inactive") . "";
}
}
}