Add APP_NAME constant

Improved issue display
Add component::prepend
Add switches to form html
Updated form html to Bootstrap 5.
Updated navigation html to Bootstrap 5.
This commit is contained in:
Joey Kimsey
2025-01-21 20:46:13 -05:00
parent d9e61d3f8f
commit 61589b35ff
6 changed files with 84 additions and 29 deletions

View File

@ -46,12 +46,14 @@ class Components {
self::$components[ $name ] = $value;
return true;
}
public static function unset( $name ) {
if ( isset( self::$components[ $name ] ) ) {
unset( self::$components[ $name ] );
}
return true;
}
public static function append( $name, $value ) {
if ( ! isset( self::$components[ $name ] ) ) {
return self::set( $name, $value );
@ -60,4 +62,13 @@ class Components {
self::$components[ $name ] = $curr . $value;
return true;
}
public static function prepend( $name, $value ) {
if ( ! isset( self::$components[ $name ] ) ) {
return self::set( $name, $value );
}
$curr = self::$components[ $name ];
self::$components[ $name ] = $value . $curr;
return true;
}
}