is_current_page($this->page[0], "home")) { $this->navigation []= array('title'=>_('Featured'), 'url'=>'courses/home', 'current'=>$this->is_current_page($this->page[0], "home")); $this->navigation []= array('title'=>_('All courses'), 'url'=>'courses/all', 'current'=>$this->is_current_page($this->page[0], "all")); if (is_logged_in()) $this->navigation []= array('title'=>_('My courses'), 'url'=>'courses/my', 'current'=>$this->is_current_page($this->page[0], "my")); } } public function loadRecentFour() { $recent_four = array(); global $Dippler; foreach ($Dippler->backoffice->loadRecentFour() as $recent) { $course = new Course(); $course->load($recent); $recent_four []= $course; } return $recent_four; } public function loadFeatured() { $featured = array(); global $Dippler; foreach ($Dippler->backoffice->loadFeaturedCourses() as $fc) { $course = new Course(); $course->load($fc); $featured []= $course; } return $featured; } } ?>