Proyectos de Subversion Moodle

Rev

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

Rev 1315 Rev 1325
Línea 1828... Línea 1828...
1828
     * Build the guest access hint HTML code.
1828
     * Build the guest access hint HTML code.
1829
     *
1829
     *
1830
     * @param int $courseid The course ID.
1830
     * @param int $courseid The course ID.
1831
     * @return string.
1831
     * @return string.
1832
     */
1832
     */
1833
    public function theme_universe_get_course_guest_access_hint($courseid)
1833
    public function theme_universe_child_get_course_guest_access_hint($courseid)
1834
    {
1834
    {
1835
        global $CFG;
1835
        global $CFG;
1836
        require_once($CFG->dirroot . '/enrol/self/lib.php');
1836
        require_once($CFG->dirroot . '/enrol/self/lib.php');
Línea 1837... Línea 1837...
1837
 
1837
 
Línea 1844... Línea 1844...
1844
            }
1844
            }
1845
            $plugin = $plugins[$instance->enrol];
1845
            $plugin = $plugins[$instance->enrol];
1846
            if ($plugin->show_enrolme_link($instance)) {
1846
            if ($plugin->show_enrolme_link($instance)) {
1847
                $html = html_writer::tag('div', get_string(
1847
                $html = html_writer::tag('div', get_string(
1848
                    'showhintcourseguestaccesssettinglink',
1848
                    'showhintcourseguestaccesssettinglink',
1849
                    'theme_universe',
1849
                    'theme_universe_child',
1850
                    array('url' => $CFG->wwwroot . '/enrol/index.php?id=' . $courseid)
1850
                    array('url' => $CFG->wwwroot . '/enrol/index.php?id=' . $courseid)
1851
                ));
1851
                ));
1852
                break;
1852
                break;
1853
            }
1853
            }
1854
        }
1854
        }
Línea 2880... Línea 2880...
2880
 
2880
 
2881
        $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);
2881
        $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);
2882
        return $course_navigation->export_for_template($OUTPUT);
2882
        return $course_navigation->export_for_template($OUTPUT);
Línea -... Línea 2883...
-
 
2883
    }
-
 
2884
 
2883
    }
2885
 
2884
 
2886
 
2885
    function universe_child_course_drawer(): string
2887
    function universe_child_course_drawer(): string
Línea 2886... Línea 2888...
2886
    {
2888
    {