How do I add a certificate to a course?

Re: How do I add a certificate to a course?

by Perry Way -
Number of replies: 0
Seems like this issue is with Boost theme and all that inherit from Boost. Hmm...

I had to copy some code from earlier Moodle (3.8.1) release into /lib/navigationlib.php to put those menu items back again.

This was the code block I had to add:

        if ($this->page->user_allowed_editing()) {
            // Add the turn on/off settings
            if ($this->page->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) {
                // We are on the course page, retain the current page params e.g. section.
                $baseurl = clone($this->page->url);
                $baseurl->param('sesskey', sesskey());
            } else {
                // Edit on the main course page.
                $baseurl = new moodle_url('/course/view.php', array('id'=>$course->id, 'return'=>$this->page->url->out_as_local_url(false), 'sesskey'=>sesskey()));
            }
            $editurl = clone($baseurl);
            if ($this->page->user_is_editing()) {
                $editurl->param('edit', 'off');
                $editstring = get_string('turneditingoff');
            } else {
                $editurl->param('edit', 'on');
                $editstring = get_string('turneditingon');
            }
            $coursenode->add($editstring, $editurl, self::TYPE_SETTING, null, 'turneditingonoff', new pix_icon('i/edit', ''));
        }



I had to add it directly above the place in function protected function load_course_settings($forceopen = false) where this bit of code begins:

        if ($adminoptions->editcompletion) {
            // Add the course completion settings link
            $url = new moodle_url('/course/completion.php', array('id' => $course->id));
            $coursenode->add(get_string('coursecompletion', 'completion'), $url, self::TYPE_SETTING, null, null,
                             new pix_icon('i/settings', ''));
        }

Once I did that, the menu items appeared again. I'm very uncertain now what is going on with Moodle development. My understanding was we are supposed to inherit all themes going forward from the Boost theme. Maybe I read that wrong? I prepared over a year for this day, and we just upgraded to Moodle 3.9.6+ this last weekend and prior to that everything was working. I also made a post about this here before I found this thread:

https://moodle.org/mod/forum/discuss.php?d=421443