| @@ 347-380 (lines=34) @@ | ||
| 344 | * |
|
| 345 | * @SuppressWarnings("StaticAccess") |
|
| 346 | */ |
|
| 347 | public function __construct($title, $header = true) |
|
| 348 | { |
|
| 349 | $this->settings = \Settings::getInstance(); |
|
| 350 | parent::__construct($title); |
|
| 351 | $this->setupVars(); |
|
| 352 | $this->addWellKnownJS(JS_JQUERY, false); |
|
| 353 | $this->addWellKnownJS(JS_FLIPSIDE, false); |
|
| 354 | $this->addBootstrap(); |
|
| 355 | $this->header = $header; |
|
| 356 | $this->links = array(); |
|
| 357 | $this->notifications = array(); |
|
| 358 | ||
| 359 | $this->wwwUrl = $this->settings->getGlobalSetting('www_url', 'https://www.burningflipside.com'); |
|
| 360 | ||
| 361 | $this->wikiUrl = $this->settings->getGlobalSetting('wiki_url', 'https://wiki.burningflipside.com'); |
|
| 362 | ||
| 363 | $this->aboutUrl = $this->settings->getGlobalSetting('about_url', $this->wwwUrl.'/about'); |
|
| 364 | $this->aboutMenu = $this->settings->getGlobalSetting('about_menu', array( |
|
| 365 | 'Burning Flipside' => $this->wwwUrl.'/about/event', |
|
| 366 | 'AAR, LLC' => $this->wwwUrl.'/organization/aar', |
|
| 367 | 'Privacy Policy' => $this->wwwUrl.'/about/privacy' |
|
| 368 | )); |
|
| 369 | ||
| 370 | $this->profilesUrl = $this->settings->getGlobalSetting('profiles_url', 'https://profiles.burningflipside.com/'); |
|
| 371 | $this->loginUrl = $this->settings->getGlobalSetting('login_url', $this->profilesUrl.'/login.php'); |
|
| 372 | $this->logoutUrl = $this->settings->getGlobalSetting('logout_url', $this->profilesUrl.'/logout.php'); |
|
| 373 | $this->registerUrl = $this->settings->getGlobalSetting('register_url', $this->profilesUrl.'/register.php'); |
|
| 374 | $this->resetUrl = $this->settings->getGlobalSetting('reset_url', $this->profilesUrl.'/reset.php'); |
|
| 375 | ||
| 376 | $this->secureUrl = $this->settings->getGlobalSetting('secure_url', 'https://secure.burningflipside.com/'); |
|
| 377 | ||
| 378 | $this->user = FlipSession::getUser(); |
|
| 379 | $this->addAllLinks(); |
|
| 380 | } |
|
| 381 | ||
| 382 | /** |
|
| 383 | * Get the external site links for this page |
|
| @@ 337-363 (lines=27) @@ | ||
| 334 | * |
|
| 335 | * @SuppressWarnings("StaticAccess") |
|
| 336 | */ |
|
| 337 | public function __construct($title = '') |
|
| 338 | { |
|
| 339 | $this->settings = \Settings::getInstance(); |
|
| 340 | parent::__construct($title); |
|
| 341 | $this->setupVars(); |
|
| 342 | $this->addWellKnownJS(JS_JQUERY, false); |
|
| 343 | $this->addWellKnownJS(JS_FLIPSIDE, false); |
|
| 344 | $this->addBootstrap(); |
|
| 345 | $this->links = array(); |
|
| 346 | $this->notifications = array(); |
|
| 347 | $this->wwwUrl = $this->settings->getGlobalSetting('www_url', 'https://www.burningflipside.com'); |
|
| 348 | $this->wikiUrl = $this->settings->getGlobalSetting('wiki_url', 'https://wiki.burningflipside.com'); |
|
| 349 | $this->aboutUrl = $this->settings->getGlobalSetting('about_url', $this->wwwUrl.'/about'); |
|
| 350 | $this->aboutMenu = $this->settings->getGlobalSetting('about_menu', array( |
|
| 351 | 'Burning Flipside' => $this->wwwUrl.'/about/event', |
|
| 352 | 'AAR, LLC' => $this->wwwUrl.'/organization/aar', |
|
| 353 | 'Privacy Policy' => $this->wwwUrl.'/about/privacy' |
|
| 354 | )); |
|
| 355 | $this->profilesUrl = $this->settings->getGlobalSetting('profiles_url', 'https://profiles.burningflipside.com/'); |
|
| 356 | $this->loginUrl = $this->settings->getGlobalSetting('login_url', $this->profilesUrl.'/login.php'); |
|
| 357 | $this->logoutUrl = $this->settings->getGlobalSetting('logout_url', $this->profilesUrl.'/logout.php'); |
|
| 358 | $this->registerUrl = $this->settings->getGlobalSetting('register_url', $this->profilesUrl.'/register.php'); |
|
| 359 | $this->resetUrl = $this->settings->getGlobalSetting('reset_url', $this->profilesUrl.'/reset.php'); |
|
| 360 | $this->secureUrl = $this->settings->getGlobalSetting('secure_url', 'https://secure.burningflipside.com/'); |
|
| 361 | $this->user = \FlipSession::getUser(); |
|
| 362 | $this->addAllLinks(); |
|
| 363 | } |
|
| 364 | ||
| 365 | /** |
|
| 366 | * Draw the page |
|