mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
More Bootstrap fixes
This commit is contained in:
parent
9f4a9dae61
commit
5b96941c49
@ -33,7 +33,7 @@ function __construct($page) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function navbar($links) {
|
function navbar($links) {
|
||||||
echo '<ul class="navbar-nav mr-auto mt-2 mt-lg-0">';
|
echo '<ul class="navbar-nav mr-auto">';
|
||||||
foreach ($links as $page => $title) {
|
foreach ($links as $page => $title) {
|
||||||
$li = "li";
|
$li = "li";
|
||||||
$class = "nav-item";
|
$class = "nav-item";
|
||||||
@ -43,7 +43,7 @@ function navbar($links) {
|
|||||||
$li .= " class=\"$class\"";
|
$li .= " class=\"$class\"";
|
||||||
|
|
||||||
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=\"badge\">";
|
$title .= " <span class=\"badge badge-info\">";
|
||||||
$title .= $this->count[$page];
|
$title .= $this->count[$page];
|
||||||
$title .= "</span>";
|
$title .= "</span>";
|
||||||
}
|
}
|
||||||
@ -78,8 +78,8 @@ $settings = $this->page->settings;
|
|||||||
|
|
||||||
|
|
||||||
<header role="banner">
|
<header role="banner">
|
||||||
<div class="container">
|
<div class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary">
|
||||||
<nav class="navbar navbar-expand-sm navbar-dark bg-primary">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="<?php echo $settings->name_link; ?>">
|
<a class="navbar-brand" href="<?php echo $settings->name_link; ?>">
|
||||||
<?php echo $settings->name; ?>
|
<?php echo $settings->name; ?>
|
||||||
</a>
|
</a>
|
||||||
@ -98,12 +98,14 @@ $settings = $this->page->settings;
|
|||||||
"kicks.php" => $this->page->t("title.kicks"),
|
"kicks.php" => $this->page->t("title.kicks"),
|
||||||
));
|
));
|
||||||
?>
|
?>
|
||||||
<div class="my-2 my-lg-0">
|
<ul class="nav navbar-nav my-2 my-lg-0">
|
||||||
<a href="https://www.spigotmc.org/resources/litebans.3715/" class="navbar-text"
|
<li class="nav-item">
|
||||||
target="_blank">© LiteBans</a>
|
<a href="https://www.spigotmc.org/resources/litebans.3715/" class="nav-link"
|
||||||
</div>
|
target="_blank">© LiteBans</a>
|
||||||
</nav>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -4,6 +4,7 @@ require_once './inc/page.php';
|
|||||||
$page = new Page("index");
|
$page = new Page("index");
|
||||||
$page->print_title();
|
$page->print_title();
|
||||||
?>
|
?>
|
||||||
|
<br><br><br><br>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<div class="litebans-index">
|
<div class="litebans-index">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user