mirror of
https://github.com/itflow-org/itflow
synced 2026-09-23 07:01:16 +00:00
Use built in sticky footer css class for The ITFlow footer in admin
This commit is contained in:
@@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
|
||||||
if (basename(dirname($_SERVER['REQUEST_URI'])) === 'admin') { ?>
|
|
||||||
<p class="text-end fw-light">ITFlow <?= APP_VERSION ?> · <a target="_blank" href="https://docs.itflow.org">Docs</a> · <a target="_blank" href="https://forum.itflow.org">Forum</a> · <a target="_blank" href="https://services.itflow.org">Services</a></p>
|
|
||||||
<br>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
<?php
|
||||||
if (basename(dirname($_SERVER['REQUEST_URI'])) === 'guest') { ?>
|
if (basename(dirname($_SERVER['REQUEST_URI'])) === 'guest') { ?>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
@@ -21,6 +16,22 @@ if (basename(dirname($_SERVER['REQUEST_URI'])) === 'guest') { ?>
|
|||||||
</div><!-- /.container-fluid -->
|
</div><!-- /.container-fluid -->
|
||||||
</div> <!-- /.app-content -->
|
</div> <!-- /.app-content -->
|
||||||
</main> <!-- /.app-main -->
|
</main> <!-- /.app-main -->
|
||||||
|
|
||||||
|
<?php /* AdminLTE 4's .app-wrapper is a three row grid - header, main, footer -
|
||||||
|
and the footer row is already reserved (grid-template-rows:
|
||||||
|
min-content 1fr min-content). Sitting in that row is what pins this to
|
||||||
|
the bottom: the 1fr main row absorbs the leftover height, so on a short
|
||||||
|
page the bar lands on the bottom edge of the viewport instead of
|
||||||
|
floating directly under the content.
|
||||||
|
|
||||||
|
It has to be a direct child of .app-wrapper - inside .app-main it is
|
||||||
|
just content again. */ ?>
|
||||||
|
<?php if (basename(dirname($_SERVER['REQUEST_URI'])) === 'admin') { ?>
|
||||||
|
<footer class="app-footer py-2 d-flex align-items-center">
|
||||||
|
<div class="w-100 text-end fw-light">ITFlow <?= APP_VERSION ?> · <a target="_blank" href="https://docs.itflow.org">Docs</a> · <a target="_blank" href="https://forum.itflow.org">Forum</a> · <a target="_blank" href="https://services.itflow.org">Services</a></div>
|
||||||
|
</footer>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</div> <!-- /.app-wrapper -->
|
</div> <!-- /.app-wrapper -->
|
||||||
|
|
||||||
<!-- Set the browser window title to the clients name -->
|
<!-- Set the browser window title to the clients name -->
|
||||||
|
|||||||
Reference in New Issue
Block a user