1: <?php
2: include_once(SphpBase::sphp_settings()->comp_uikit_path . "/bundle/menu/BootstrapFooterMenu.php");
3: class FooterMenuUi extends BootstrapFooterMenu{
4: public function onstart() {
5: //$this->setNavMenuCss("nav col-md-4 justify-content-end");
6: // just remove to empty for use root menu as same as in header
7: $this->setRootMenu("footer");
8: $this->sphp_api->addMenu("Home2", "","fa fa-home","footer");
9: $this->sphp_api->addMenu("Home", "","fa fa-home","Home2");
10: $this->sphp_api->addMenuLink("Home", SphpBase::sphp_settings()->base_path,"fa fa-home","Home");
11: $this->sphp_api->addMenuLink("Contact Us", getEventURL('page','contacts','index'),"fa fa-fw fa-clock-o","Home");
12:
13: if(SphpBase::page()->getAuthenticateType() == "GUEST"){
14: $this->sphp_api->addMenuLink("Login", getGateURL("signin"),"","Home");
15: include_once("plugin/cmenu.php");
16: }else{
17: $this->sphp_api->addMenuLink("Dashboard",getGateURL('mebhome'),"fa fa-home","Home");
18: $this->sphp_api->addMenuLink("Logout", getEventURL("logout","","signin"),"","Home");
19: include_once("plugin/cmenu.php");
20: }
21:
22:
23: include_once("plugin/cmenu.php");
24:
25: }
26: }
27: