update to bootstrap 5.2.3 continued

This commit is contained in:
Joey Kimsey
2024-12-10 09:00:49 -05:00
parent f3f323d30f
commit a0726e6578
23 changed files with 584 additions and 345 deletions

View File

@ -60,15 +60,15 @@ class TheTempusProject extends Bedrock {
public $info_footer_links = [
[
'text' => 'FAQs',
'url' => '{ROOT_URL}home/terms',
'url' => '{ROOT_URL}home/faq',
],
[
'text' => 'About',
'url' => '{ROOT_URL}home/terms',
'url' => '{ROOT_URL}home/about',
],
[
'text' => 'Privacy Policy',
'url' => '{ROOT_URL}home/terms',
'url' => '{ROOT_URL}home/privacy',
],
[
'text' => 'Terms of Service',
@ -478,6 +478,13 @@ class TheTempusProject extends Bedrock {
'enabled' => true,
'example' => '{LOGGEDIN}Only visible to users who are logged-in{LOGGEDIN}',
];
$this->filters[] = [
'name' => 'notloggedin',
'find' => '#{NOTLOGGEDIN}(.*?){/NOTLOGGEDIN}#is',
'replace' => ( self::$isLoggedIn ? '' : '$1' ),
'enabled' => true,
'example' => '{NOTLOGGEDIN}Only visible to users who are logged-in{NOTLOGGEDIN}',
];
$this->filters[] = [
'name' => 'dtc',
'find' => '#{DTC(.*?)}(.*?){/DTC}#is',
@ -510,8 +517,8 @@ class TheTempusProject extends Bedrock {
public function load( $url = '' ) {
$routes = new RoutesModel;
if (empty($url)) {
$url = trim(Input::get('url'), '/');
if ( empty( $url ) ) {
$url = trim( Input::get( 'url' ), '/' );
$url = str_ireplace( '.php', '', $url );
}
$route = $routes->findByOriginalUrl($url);