setTheme('locationtech'); parent::__construct($App); $this->setBaseUrl('https://www.locationtech.org'); $image_path = $this->getThemeUrl('solstice') . 'public/images/locationtech/'; // LocationTech logos $this->setAttributes('img_logo_default', $image_path . 'logo.png', 'src'); $this->setAttributes('img_logo_default', 'Locationtech.org logo', 'alt'); $this->setAttributes('img_logo_mobile', $image_path . 'logo.png', 'src'); $this->setAttributes('img_logo_mobile', 'Locationtech.org logo', 'alt'); // Set default options $this->setDisplayMore(FALSE); // Set toolbar attributes $this->setAttributes('toolbar-container-wrapper', 'toolbar-contrast'); // Set header attributes $this->setAttributes('header-container', 'no-border'); $this->setAttributes('header-wrapper', 'page-header-logo-bordered'); $this->setAttributes('header-left', 'hidden-xs col-sm-8'); $this->setAttributes('header-right', 'hidden-xs col-md-6 col-sm-8 pull-right'); // Set attributes for main-menu $this->setAttributes('main-menu-wrapper', 'col-sm-24'); $this->setAttributes('main-menu-ul-navbar', 'navbar-right'); // Set attributes for footer $this->setAttributes('footer1', 'col-xs-offset-1 col-xs-11 col-sm-7 col-md-4 col-md-offset-0 hidden-print'); $this->setAttributes('footer2', 'col-xs-offset-1 col-xs-11 col-sm-7 col-md-4 col-md-offset-0 hidden-print'); $this->setAttributes('footer3', 'col-xs-offset-1 col-xs-11 col-sm-7 col-md-4 col-md-offset-0 hidden-print'); $this->setAttributes('footer4','col-xs-24 col-md-11 footer-other-working-groups col-md-offset-1 hidden-print'); } /** * Hook for making changes to $App when using setApp() * * @param App $App */ public function _hookSetApp($App) { $App->setGoogleAnalyticsTrackingCode('UA-910670-10'); } /** * Set $Breadcrumb * * @param Breadcrumb $Breadcrumb */ public function setBreadcrumb($Breadcrumb = NULL) { if (!$Breadcrumb instanceof Breadcrumb) { $App = $this->_getApp(); require_once ($App->getBasePath() . '/system/breadcrumbs.class.php'); $Breadcrumb = new Breadcrumb(); } $Breadcrumb->insertCrumbAt('1', 'Eclipse Working Groups', 'https://www.eclipse.org/org/workinggroups', NULL); $Breadcrumb->insertCrumbAt('2', 'Locationtech', 'https://www.locationtech.org', NULL); $this->Breadcrumb = $Breadcrumb; } /** * Get default variables for CFA * * @return array */ protected function _getCfaButtonDefault() { $default['class'] = 'btn btn-huge btn-warning'; $default['href'] = 'https://locationtech.org/mailman/listinfo/location-iwg'; $default['text'] = ' Getting Started'; return $default; } /** * Get main-menu html output * * @return string */ public function getMenu() { $Menu = $this->_getMenu(); $main_menu = $Menu->getMenuArray(); $variables = array(); $DefaultMenu = new Menu(); $default_menu_flag = FALSE; if ($DefaultMenu->getMenuArray() == $main_menu) { $App = $this->_getApp(); ob_start(); include($App->getBasePath() . '/themes/' . $this->getTheme() . '/_menu_links.php'); return ob_get_clean(); } // Main-menu foreach ($main_menu as $item) { $menu_li_classes = ""; $caption = $item->getText(); $items[] = '' . $caption . ''; } return implode($items, ''); } /** * Get $ession_variables * * @param string $id * * @return string */ public function getSessionVariables($id = "") { $Session = $this->_getSession(); if ($id == "my_account_link" && !$Session->isLoggedIn()) { return ' Log in'; } return parent::getSessionVariables($id); } /** * Get Html of Footer Region 1 */ public function getFooterRegion1() { return <<LocationTech EOHTML; } /** * Get Html of Footer Region 2 */ public function getFooterRegion2() { return <<Legal EOHTML; } /** * Get Html of Footer Region 3 */ public function getFooterRegion3() { return <<Useful Links EOHTML; } /** * Get Html of Footer Region 4 */ public function getFooterRegion4() { return << {$this->getLogo('default', TRUE)}
EOHTML; } /** * Get Html of Footer Region 5 */ public function getFooterRegion5() { return <<
EOHTML; } }