diff --git a/inc/css/custom.css b/inc/css/custom.css index 1bfda93..a592d47 100644 --- a/inc/css/custom.css +++ b/inc/css/custom.css @@ -6,8 +6,8 @@ /* header */ .litebans-header { - text-align: center; display: block; + text-align: center; } .col-lg-12 { @@ -24,6 +24,7 @@ table tr td { padding-left: 0; padding-right: 0; vertical-align: middle !important; + text-align: center; } /* table links */ @@ -71,8 +72,13 @@ tr.hover { } /* info.php */ +.litebans-info-badges { + width: 0; + display: inline-block; +} + .litebans-label-info { - margin-left: 13px; + margin-left: 15px; font-size: 17px; } diff --git a/inc/page.php b/inc/page.php index 457cceb..5f43d0b 100644 --- a/inc/page.php +++ b/inc/page.php @@ -423,7 +423,7 @@ class Page { echo ""; } - function print_header($container_start = true, $title = null) { + function print_header($container_start = true, $title = null, $class = "modal-header litebans-header") { if ($title === null) { $title = $this->title; } @@ -431,9 +431,9 @@ class Page { echo '
'; } - echo "

$title

"; + echo "

$title

"; if ($container_start) { - echo '
'; + echo '
'; } } diff --git a/info.php b/info.php index e9cfb95..58e8621 100644 --- a/info.php +++ b/info.php @@ -150,6 +150,7 @@ if ($st->execute(array($id))) { $page->print_title(); $header = $page->name; + $badges = ""; if (!($info instanceof KickInfo)) { $active = $page->active($row); @@ -162,19 +163,19 @@ if ($st->execute(array($id))) { $idx = "generic.ipmute"; } if ($idx !== null) { - $header .= "" . $page->t($idx) . ""; + $badges .= "" . $page->t($idx) . ""; } } if ($active === true) { - $header .= "" . $page->t("generic.active") . ""; + $badges .= "" . $page->t("generic.active") . ""; if ($permanent) { - $header .= "" . $page->t("generic.permanent") . ""; + $badges .= "" . $page->t("generic.permanent") . ""; } } else { - $header .= "" . $page->t("generic.inactive") . ""; + $badges .= "" . $page->t("generic.inactive") . ""; } } - $page->print_header(true, $header); + $page->print_header(true, $header . "
$badges
"); $map = $info->basic_info($row, $player_name);