From 21b774a33a5d84f8cde48728c5737227898eb8e1 Mon Sep 17 00:00:00 2001 From: ruan Date: Sun, 8 Jul 2018 11:18:29 +0200 Subject: [PATCH] Make colors configurable for navbar and badges --- history.php | 3 ++- inc/header.php | 4 ++-- inc/settings.php | 8 ++++++++ info.php | 11 ++++++----- 4 files changed, 18 insertions(+), 8 deletions(-) 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;
-