This commit is contained in:
Joey Kimsey
2025-02-06 02:36:10 -05:00
parent d7ba0dbac0
commit fb6928b8af
6 changed files with 11 additions and 10 deletions

View File

@ -4,7 +4,7 @@
* *
* This houses all of the form checking functions for this plugin. * This houses all of the form checking functions for this plugin.
* *
* @package TP Notifications * @package TP Status-Updates
* @version 5.0.1 * @version 5.0.1
* @author Joey Kimsey <Joey@thetempusproject.com> * @author Joey Kimsey <Joey@thetempusproject.com>
* @link https://TheTempusProject.com * @link https://TheTempusProject.com

View File

@ -31,7 +31,7 @@
<div class="d-flex flex-column p-md-3 text-bg-dark"> <div class="d-flex flex-column p-md-3 text-bg-dark">
<div class="collapse d-md-block" id="mainMenu"> <div class="collapse d-md-block" id="mainMenu">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none justify-content-center"> <a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none justify-content-center">
<img src="{ROOT_URL}{LOGO}" class="bi me-2" width="40" height="32" role="img" aria-label="{SITENAME} Logo"> <img src="{ROOT_URL}{LOGO}" class="bi me-2" height="48" role="img" aria-label="{SITENAME} Logo">
</a> </a>
<div class="border-top border-bottom border-white mt-4 mb-2 pt-3 pb-5"> <div class="border-top border-bottom border-white mt-4 mb-2 pt-3 pb-5">
{ADMIN} {ADMIN}
@ -79,7 +79,7 @@
<div class="d-md-block collapse" id="footerMenu"> <div class="d-md-block collapse" id="footerMenu">
<div class="d-flex justify-content-between align-items-center py-2 my-2"> <div class="d-flex justify-content-between align-items-center py-2 my-2">
<a href="/" class="text-decoration-none lh-1 d-flex align-items-center px-md-5 mx-md-5"> <a href="/" class="text-decoration-none lh-1 d-flex align-items-center px-md-5 mx-md-5">
<img src="{ROOT_URL}{LOGO}" class="bi me-2" width="40" height="32" alt="Joey Kimsey Logo"> <img src="{ROOT_URL}images/logo.png" class="bi me-2" width="40" height="32" alt="Joey Kimsey Logo">
</a> </a>
<div class="material-switch d-flex align-items-center"> <div class="material-switch d-flex align-items-center">
<input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle" class="form-check-input"> <input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle" class="form-check-input">

View File

@ -73,7 +73,7 @@ class DefaultLoader extends Loader {
size: 200, size: 200,
margin: 10, margin: 10,
roundBlockSizeMode: RoundBlockSizeMode::Margin, roundBlockSizeMode: RoundBlockSizeMode::Margin,
logoPath: APP_ROOT_DIRECTORY . DIRECTORY_SEPARATOR . Config::getValue( 'main/logo' ), logoPath: APP_ROOT_DIRECTORY . DIRECTORY_SEPARATOR . 'images/logo.png',
logoResizeToWidth: 30, logoResizeToWidth: 30,
logoPunchoutBackground: true, logoPunchoutBackground: true,
labelText: Config::getValue( 'main/name' ), labelText: Config::getValue( 'main/name' ),
@ -83,7 +83,7 @@ class DefaultLoader extends Loader {
$result = $builder->build(); $result = $builder->build();
$result->saveToFile( $folder . $filename ); $result->saveToFile( $folder . $filename );
} }
Components::set( 'QR_CODE','<img src="{ROOT_URL}images/qr-codes/' . $filename . '" alt="QR Code" class="img-fluid mb-2">' ); Components::set( 'QR_CODE','<img src="/images/qr-codes/' . $filename . '" alt="QR Code" class="img-fluid mb-2">' );
} else { } else {
Components::setIfNull( 'QR_CODE', '' ); Components::setIfNull( 'QR_CODE', '' );
} }

View File

@ -5,6 +5,9 @@
<a href="/" class="text-decoration-none lh-1"> <a href="/" class="text-decoration-none lh-1">
<img src="/images/logo.png" class="bi me-2" width="40" height="32" alt="Joey Kimsey Logo"> <img src="/images/logo.png" class="bi me-2" width="40" height="32" alt="Joey Kimsey Logo">
</a> </a>
<div class="d-flex align-items-center">
{SHARE_IMAGE}
</div>
<div class="material-switch"> <div class="material-switch">
<input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle" class="form-check-input"> <input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle" class="form-check-input">
<label for="dark-mode-toggle" class="label-default"></label> <label for="dark-mode-toggle" class="label-default"></label>

View File

@ -1,5 +1,4 @@
<div class="col-12 col-sm-6 col-md-3 col-lg-2 mb-3 text-center"> <div class="col-12 col-sm-6 col-md-3 col-lg-2 mb-3 text-center">
{SHARE_IMAGE}
<h5>Dark Mode</h5> <h5>Dark Mode</h5>
<div class="material-switch px-4 mt-2"> <div class="material-switch px-4 mt-2">
<input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle" class="form-check-input"> <input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle" class="form-check-input">

View File

@ -1,9 +1,8 @@
<div class="text-center mb-3"> <div class="d-flex justify-content-center">
<h5 class="mb-3">Share</h5> <div class="px-4">
<div class="px-4 mt-2">
<!-- Share Button (visible only on medium+ screens) --> <!-- Share Button (visible only on medium+ screens) -->
<button type="button" class="btn btn-outline-primary" <button type="button" class="btn btn-outline-primary"
data-bs-toggle="popover" data-bs-html="true" title="Share" data-bs-toggle="popover" data-bs-html="true" title="Share" data-bs-placement="top"
data-bs-content=' data-bs-content='
{QR_CODE} {QR_CODE}
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">