🐛 Move opening and closing 'main' tags (#132)
* 🐛 Move opening and closing 'main' tags Signed-off-by: Luke Tainton <luke@tainton.uk> * Restyled by php-cs-fixer (#133) Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
This commit was merged in pull request #132.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
</main>
|
||||
<footer class="footer mt-auto py-3">
|
||||
<div class="text-center text-muted">
|
||||
<?php
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
</head>
|
||||
|
||||
<body class="d-flex flex-column h-100">
|
||||
<!-- Begin page content -->
|
||||
<main role="main" class="flex-shrink-0">
|
||||
<header>
|
||||
<!-- Fixed navbar -->
|
||||
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
||||
@@ -32,10 +34,14 @@
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?php if (!is_signed_in()) {echo(' disabled');} ?>" href="/new">New request</a>
|
||||
<a class="nav-link <?php if (!is_signed_in()) {
|
||||
echo(' disabled');
|
||||
} ?>" href="/new">New request</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?php if (!is_signed_in()) {echo(' disabled');} ?>" href="/existing">Existing requests</a>
|
||||
<a class="nav-link <?php if (!is_signed_in()) {
|
||||
echo(' disabled');
|
||||
} ?>" href="/existing">Existing requests</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="mt-2 mt-md-0">
|
||||
|
||||
@@ -10,10 +10,6 @@
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<!-- Begin page content -->
|
||||
<main role="main" class="flex-shrink-0">
|
||||
|
||||
<section>
|
||||
<?php
|
||||
if (isset($alert)) {
|
||||
@@ -37,7 +33,11 @@
|
||||
<h1>Welcome to <?php echo($_ENV['APP_NAME']); ?></h1>
|
||||
<p class="lead text-muted">
|
||||
<?php
|
||||
if ($_ENV['APP_NAME'] == "FHeD") {echo("The Free HelpDesk");} else {echo($_ENV['APP_NAME']);};
|
||||
if ($_ENV['APP_NAME'] == "FHeD") {
|
||||
echo("The Free HelpDesk");
|
||||
} else {
|
||||
echo($_ENV['APP_NAME']);
|
||||
};
|
||||
?>
|
||||
is the one-stop shop for all of your IT-related needs. Let us know how we can help you by opening a request.
|
||||
</p>
|
||||
@@ -80,7 +80,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
<?php
|
||||
}
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,7 +111,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
@@ -118,8 +121,6 @@
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</main>
|
||||
|
||||
<?php
|
||||
require_once __DIR__ . "/../includes/footer.php";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user