Proyectos de Subversion Moodle

Rev

Rev 901 | Rev 913 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 901 Rev 912
Línea 2913... Línea 2913...
2913
 
2913
 
2914
 
2914
 
2915
        $course_navigation = new \theme_universe_child\output\custom_drawer($prevlink->url, $nextlink->url, $menu, $this->substr_cesa_navigation_course_menu_name($currentmod->name, 10), false, $isACoursePage,  $COURSE->summary, $progreso);
2915
        $course_navigation = new \theme_universe_child\output\custom_drawer($prevlink->url, $nextlink->url, $menu, $this->substr_cesa_navigation_course_menu_name($currentmod->name, 10), false, $isACoursePage,  $COURSE->summary, $progreso);
-
 
2916
        return $course_navigation->export_for_template($OUTPUT);
-
 
2917
    }
-
 
2918
 
-
 
2919
    function universe_child_course_drawer(): string
-
 
2920
    {
-
 
2921
        global $PAGE;
-
 
2922
 
-
 
2923
        // If the course index is explicitly set and if it should be hidden.
-
 
2924
        if ($PAGE->get_show_course_index() === false) {
-
 
2925
            return '';
-
 
2926
        }
-
 
2927
 
-
 
2928
        // Only add course index on non-site course pages.
-
 
2929
        if (!$PAGE->course || $PAGE->course->id == SITEID) {
-
 
2930
            return '';
-
 
2931
        }
-
 
2932
 
-
 
2933
        // Show course index to users can access the course only.
-
 
2934
        if (!can_access_course($PAGE->course, null, '', true)) {
-
 
2935
            return '';
-
 
2936
        }
-
 
2937
 
-
 
2938
        $format = course_get_format($PAGE->course);
-
 
2939
        $renderer = $format->get_renderer($PAGE);
-
 
2940
        if (method_exists($renderer, 'course_index_drawer')) {
-
 
2941
            return $this->render_from_template('theme_universe_child/courseindex/drawer', []);
-
 
2942
        }
-
 
2943
 
2916
        return $course_navigation->export_for_template($OUTPUT);
2944
        return '';