. /** * local_olimp_reports file description here. * * @package local_olimp_reports * @copyright 2022 alex sidorov * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Display the list Teachers in the course menu. * * @param settings_navigation $navigation The settings navigation object * @param stdClass $course The course * @param context $context Course context */ function local_olimp_reports_extend_navigation_course($navigation, $course, $context) { global $PAGE; if(($context->contextlevel === 50) && has_capability('gradereport/grader:view', $context)){ $certificatenode = $navigation->add(get_string('pluginname', 'local_olimp_reports'), null, navigation_node::TYPE_CONTAINER, null, 'tool_certificate'); $url = new moodle_url('/local/olimp_reports/reports_cert_and_dip.php', ['courseid' => $course->id]); $certificatenode->add(get_string('reports_olimp', 'local_olimp_reports'), $url, navigation_node::TYPE_SETTING, null, 'local_olimp_reports'); } }