function slide_presentation_lesson(Lesson $lesson, $name) { global $tr; $manageCourse = new CourseManager(); $c = $manageCourse->getById($lesson->getCourseId()); return "<div class='sp-presentation-content'>\r\n <div>\r\n <h4><strong>" . $tr->__("Author") . "</strong>: " . $name . "</h4>\r\n <h4><strong>" . $tr->__("Course") . "</strong>: " . $c->getName() . "</h4>\r\n <h4><strong>" . $tr->__("Duration") . "</strong>: " . $lesson->getDuration() . " min</h4>\r\n </div>\r\n <h2>" . $lesson->getName() . "</h2>\r\n\r\n </div>"; }