Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 80... Línea 80...
80
 
80
 
81
        if ($course->id == SITEID) {
81
        if ($course->id == SITEID) {
82
            $data->title = $output->section_title_without_link($section, $course);
82
            $data->title = $output->section_title_without_link($section, $course);
83
            $data->sitehome = true;
83
            $data->sitehome = true;
84
        } else {
84
        } else {
85
            if (is_null($format->get_sectionid())) {
85
            if (is_null($format->get_sectionid()) || $format->get_sectionid() != $section->id) {
86
                // All sections are displayed.
86
                // All sections are displayed.
87
                if (!$data->editing) {
87
                if (!$data->editing) {
88
                    $data->title = $output->section_title($section, $course);
88
                    $data->title = $output->section_title($section, $course);
89
                } else {
89
                } else {
Línea 112... Línea 112...
112
            $data->url = course_get_url($course, $section->section, ['navigation' => true]);
112
            $data->url = course_get_url($course, $section->section, ['navigation' => true]);
113
        }
113
        }
114
        $data->name = get_section_name($course, $section);
114
        $data->name = get_section_name($course, $section);
115
        $data->selecttext = $format->get_format_string('selectsection', $data->name);
115
        $data->selecttext = $format->get_format_string('selectsection', $data->name);
Línea 116... Línea 116...
116
 
116
 
117
        if (!$format->get_sectionnum()) {
117
        if (!$format->get_sectionnum() && !$section->is_delegated()) {
118
            $data->sectionbulk = true;
118
            $data->sectionbulk = true;
Línea -... Línea 119...
-
 
119
        }
-
 
120
 
-
 
121
        // Delegated sections in main course page need to have h4 tag, h3 otherwise.
119
        }
122
        $data->headinglevel = ($section->get_component_instance() && is_null($format->get_sectionid())) ? 4 : 3;
120
 
123
 
121
        return $data;
124
        return $data;