From f3f323d30f77b102c19966b29d08ede4557c882b Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Tue, 10 Dec 2024 01:46:00 -0500 Subject: [PATCH] update to bootstrap 5.2.3 continued --- app/classes/plugin.php | 11 +- app/css/main.css | 120 +++++++++++++++++- app/plugins/blog/plugin.php | 2 +- app/plugins/bugreport/plugin.php | 2 +- app/plugins/feedback/plugin.php | 2 +- app/plugins/messages/plugin.php | 3 +- .../views/nav/recentMessagesDropdown.html | 13 +- app/plugins/notifications/plugin.php | 2 +- .../nav/recentNotificationsDropdown.html | 12 +- app/plugins/subscribe/plugin.php | 6 +- app/plugins/subscribe/views/footer/right.html | 29 ++--- app/resources/plugin.php | 9 +- app/templates/default/default.inc.php | 12 +- app/templates/default/default.tpl | 48 +++---- app/views/footer/center.html | 15 +-- app/views/footer/container.html | 40 ++---- app/views/footer/copy.html | 1 + app/views/footer/left.html | 11 +- app/views/footer/right.html | 19 +-- app/views/footer/social.html | 27 ++++ app/views/nav/main.html | 6 +- app/views/nav/statusLoggedIn.html | 19 ++- bin/tempus_project.php | 25 +++- 23 files changed, 279 insertions(+), 155 deletions(-) create mode 100644 app/views/footer/copy.html create mode 100644 app/views/footer/social.html diff --git a/app/classes/plugin.php b/app/classes/plugin.php index 8fed33e..76b1c67 100644 --- a/app/classes/plugin.php +++ b/app/classes/plugin.php @@ -335,9 +335,14 @@ class Plugin { } public function loadFooterNav() { - if ( !empty( $this->footer_links ) ) { - foreach( $this->footer_links as $key => $link ) { - Navigation::addLink( App::FOOTER_MENU_NAME, $link ); + if ( !empty( $this->contact_footer_links ) ) { + foreach( $this->contact_footer_links as $key => $link ) { + Navigation::addLink( App::CONTACT_FOOTER_MENU_NAME, $link ); + } + } + if ( !empty( $this->info_footer_links ) ) { + foreach( $this->info_footer_links as $key => $link ) { + Navigation::addLink( App::INFO_FOOTER_MENU_NAME, $link ); } } } diff --git a/app/css/main.css b/app/css/main.css index b048703..593bf0a 100644 --- a/app/css/main.css +++ b/app/css/main.css @@ -13,16 +13,10 @@ html { position: relative; min-height: 100%; } -body { - margin-top: 100px; -} pre { white-space: pre-wrap; } @media ( min-width: 768px ) { - body { - margin-top: 75px; - } .main { padding-right: 40px; padding-left: 40px; @@ -578,4 +572,118 @@ ul.alert-dropdown { .material-switch > input[type="checkbox"]:checked + label::after { background: inherit; left: 20px; +} + +body { + background-image: linear-gradient(180deg, #eee, #fff 100px, #fff); +} +@media (min-width: 768px) { + .bd-placeholder-img-lg { + font-size: 3.5rem; + } +} +.pricing-header { + max-width: 700px; +} +.pricing-container { + max-width: 960px; +} +.bd-placeholder-img { + font-size: 1.125rem; + text-anchor: middle; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.b-example-vr { + flex-shrink: 0; + width: 1.5rem; + height: 100vh; +} +.bi { + vertical-align: -.125em; + fill: currentColor; +} +.form-control-dark { + border-color: var(--bs-gray); +} +.form-control-dark:focus { + border-color: #fff; + box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .25); +} +.text-small { + font-size: 85%; +} +.dropdown-toggle { + outline: 0; +} +.b-example-divider { + height: 3rem; + background-color: rgba(0, 0, 0, .1); + border: solid rgba(0, 0, 0, .15); + border-width: 1px 0; + box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); +} +.b-example-vr { + flex-shrink: 0; + width: 1.5rem; + height: 100vh; +} +.nav-scroller { + position: relative; + z-index: 2; + height: 2.75rem; + overflow-y: hidden; +} +.nav-scroller .nav { + display: flex; + flex-wrap: nowrap; + padding-bottom: 1rem; + margin-top: -1px; + overflow-x: auto; + text-align: center; + white-space: nowrap; + -webkit-overflow-scrolling: touch; +} +.b-example-vr { + flex-shrink: 0; + width: 1.5rem; + height: 100vh; +} +.feature-icon { + width: 4rem; + height: 4rem; + border-radius: .75rem; +} +.icon-link > .bi { + margin-top: .125rem; + margin-left: .125rem; + fill: currentcolor; + transition: transform .25s ease-in-out; +} +.icon-link:hover > .bi { + transform: translate(.25rem); +} +.icon-square { + width: 3rem; + height: 3rem; + border-radius: .75rem; +} +.text-shadow-1 { + text-shadow: 0 .125rem .25rem rgba(0, 0, 0, .25); +} +.text-shadow-2 { + text-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25); +} +.text-shadow-3 { + text-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25); +} +.card-cover { + background-repeat: no-repeat; + background-position: center center; + background-size: cover; +} +.feature-icon-small { + width: 3rem; + height: 3rem; } \ No newline at end of file diff --git a/app/plugins/blog/plugin.php b/app/plugins/blog/plugin.php index dd90d1b..de83c57 100644 --- a/app/plugins/blog/plugin.php +++ b/app/plugins/blog/plugin.php @@ -32,7 +32,7 @@ class Blog extends Plugin { 'url' => '{ROOT_URL}admin/blog', ], ]; - public $footer_links = [ + public $info_footer_links = [ [ 'text' => 'Blog', 'url' => '{ROOT_URL}blog/index', diff --git a/app/plugins/bugreport/plugin.php b/app/plugins/bugreport/plugin.php index 3ac70ea..0ed29b0 100644 --- a/app/plugins/bugreport/plugin.php +++ b/app/plugins/bugreport/plugin.php @@ -49,7 +49,7 @@ class Bugreport extends Plugin { 'default' => false, ], ]; - public $footer_links = [ + public $contact_footer_links = [ [ 'text' => 'Bug Report', 'url' => '{ROOT_URL}bugreport', diff --git a/app/plugins/feedback/plugin.php b/app/plugins/feedback/plugin.php index cd4e3c7..bde7ba4 100644 --- a/app/plugins/feedback/plugin.php +++ b/app/plugins/feedback/plugin.php @@ -45,7 +45,7 @@ class Feedback extends Plugin { 'default' => false, ], ]; - public $footer_links = [ + public $contact_footer_links = [ [ 'text' => 'Feedback', 'url' => '{ROOT_URL}feedback', diff --git a/app/plugins/messages/plugin.php b/app/plugins/messages/plugin.php index 15b17d7..13624ef 100644 --- a/app/plugins/messages/plugin.php +++ b/app/plugins/messages/plugin.php @@ -48,9 +48,8 @@ class Messages extends Plugin { } else { Components::set( 'RECENT_MESSAGES', '' ); } - App::$topNavRight .= '{RECENT_MESSAGES}'; - App::$topNavRightDropdown .= '
  • Inbox {MBADGE}
  • '; + App::$topNavRightDropdown .= '
  • Inbox {MBADGE}
  • '; self::$loaded = true; } parent::__construct(); diff --git a/app/plugins/messages/views/nav/recentMessagesDropdown.html b/app/plugins/messages/views/nav/recentMessagesDropdown.html index 7cd7f31..f353853 100644 --- a/app/plugins/messages/views/nav/recentMessagesDropdown.html +++ b/app/plugins/messages/views/nav/recentMessagesDropdown.html @@ -1,15 +1,14 @@ -
  • Notifications {NBADGE}
  • '; + App::$topNavRightDropdown .= '
  • Notifications {NBADGE}
  • '; self::$loaded = true; } } diff --git a/app/plugins/notifications/views/nav/recentNotificationsDropdown.html b/app/plugins/notifications/views/nav/recentNotificationsDropdown.html index 507d892..c630da2 100644 --- a/app/plugins/notifications/views/nav/recentNotificationsDropdown.html +++ b/app/plugins/notifications/views/nav/recentNotificationsDropdown.html @@ -1,14 +1,14 @@ -