update to bootstrap 5.2.3 continued

This commit is contained in:
Joey Kimsey
2024-12-10 01:46:00 -05:00
parent b3018de907
commit f3f323d30f
23 changed files with 279 additions and 155 deletions

View File

@ -41,7 +41,8 @@ use TheTempusProject\Models\Routes as RoutesModel;
class TheTempusProject extends Bedrock {
const MAIN_MENU_NAME = 'topNavLeft';
const ADMIN_MENU_NAME = 'adminMenu';
const FOOTER_MENU_NAME = 'footerMenu';
const CONTACT_FOOTER_MENU_NAME = 'contactFooterMenu';
const INFO_FOOTER_MENU_NAME = 'infoFooterMenu';
public static $plugins = [];
public static $activeGroup;
public static $activePerms;
@ -55,7 +56,20 @@ class TheTempusProject extends Bedrock {
public static $isAdmin = false;
public static $isMod = false;
private $initialized = false;
public $footer_links = [
public $contact_footer_links = [];
public $info_footer_links = [
[
'text' => 'FAQs',
'url' => '{ROOT_URL}home/terms',
],
[
'text' => 'About',
'url' => '{ROOT_URL}home/terms',
],
[
'text' => 'Privacy Policy',
'url' => '{ROOT_URL}home/terms',
],
[
'text' => 'Terms of Service',
'url' => '{ROOT_URL}home/terms',
@ -480,8 +494,11 @@ class TheTempusProject extends Bedrock {
}
public function loadLinks() {
foreach ( $this->footer_links as $key => $link ) {
Navigation::addLink( self::FOOTER_MENU_NAME, $link );
foreach ( $this->contact_footer_links as $key => $link ) {
Navigation::addLink( self::CONTACT_FOOTER_MENU_NAME, $link );
}
foreach ( $this->info_footer_links as $key => $link ) {
Navigation::addLink( self::INFO_FOOTER_MENU_NAME, $link );
}
foreach ( $this->main_links as $key => $link ) {
Navigation::addLink( self::MAIN_MENU_NAME, $link );