/** * Function loggedOutMenu * * Creates a multi-dimensional array of the user's tools/links * for the menu presented when the user is not logged in. * * * @return array */ function loggedOutMenu() { global $urlServer; $sideMenuGroup = array(); $sideMenuSubGroup = array(); $sideMenuText = array(); $sideMenuLink = array(); $sideMenuImg = array(); $arrMenuType = array(); $arrMenuType['type'] = 'text'; $arrMenuType['text'] = $GLOBALS['langBasicOptions']; $arrMenuType['class'] = 'basic'; array_push($sideMenuSubGroup, $arrMenuType); array_push($sideMenuText, $GLOBALS['langListCourses']); array_push($sideMenuLink, $urlServer . "modules/auth/listfaculte.php"); array_push($sideMenuImg, "arrow.png"); if (get_config('user_registration')) { array_push($sideMenuText, $GLOBALS['langNewUser']); array_push($sideMenuLink, $urlServer . "modules/auth/registration.php"); array_push($sideMenuImg, "arrow.png"); } array_push($sideMenuText, $GLOBALS['langManuals']); array_push($sideMenuLink, $urlServer . "info/manual.php"); array_push($sideMenuImg, "arrow.png"); array_push($sideMenuText, $GLOBALS['langPlatformIdentity']); array_push($sideMenuLink, $urlServer . "info/about.php"); array_push($sideMenuImg, "arrow.png"); array_push($sideMenuText, $GLOBALS['langContact']); array_push($sideMenuLink, $urlServer . "info/contact.php"); array_push($sideMenuImg, "arrow.png"); array_push($sideMenuSubGroup, $sideMenuText); array_push($sideMenuSubGroup, $sideMenuLink); array_push($sideMenuSubGroup, $sideMenuImg); array_push($sideMenuGroup, $sideMenuSubGroup); openCoursesExtra(); return $sideMenuGroup; }
/** * Function loggedOutMenu * * Creates a multi-dimensional array of the user's tools/links * for the menu presented when the user is not logged in. * * * @return array */ function loggedOutMenu() { global $urlServer; $sideMenuGroup = array(); $sideMenuSubGroup = array(); $sideMenuText = array(); $sideMenuLink = array(); $sideMenuImg = array(); $arrMenuType = array(); $arrMenuType['type'] = 'text'; $arrMenuType['text'] = $GLOBALS['langBasicOptions']; $arrMenuType['class'] = 'basic'; array_push($sideMenuSubGroup, $arrMenuType); array_push($sideMenuText, $GLOBALS['langListCourses']); array_push($sideMenuLink, $urlServer . "modules/auth/listfaculte.php"); array_push($sideMenuImg, "fa-graduation-cap"); if (get_config('user_registration')) { array_push($sideMenuText, $GLOBALS['langNewUser']); array_push($sideMenuLink, $urlServer . "modules/auth/registration.php"); array_push($sideMenuImg, "fa-pencil-square-o"); } array_push($sideMenuText, $GLOBALS['langManuals']); array_push($sideMenuLink, $urlServer . "info/manual.php"); array_push($sideMenuImg, "fa-file-video-o"); array_push($sideMenuText, $GLOBALS['langPlatformIdentity']); array_push($sideMenuLink, $urlServer . "info/about.php"); array_push($sideMenuImg, "fa-credit-card"); array_push($sideMenuText, $GLOBALS['langContact']); array_push($sideMenuLink, $urlServer . "info/contact.php"); array_push($sideMenuImg, "fa-phone"); array_push($sideMenuSubGroup, $sideMenuText); array_push($sideMenuSubGroup, $sideMenuLink); array_push($sideMenuSubGroup, $sideMenuImg); array_push($sideMenuGroup, $sideMenuSubGroup); if ($openCoursesSubGroup = openCoursesExtra()) { array_push($sideMenuGroup, $openCoursesSubGroup); } displayExtrasLeft(); return $sideMenuGroup; }