mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-37085 Substitute get_print_section_cm_text() with cm_info functions
This commit is contained in:
parent
f558b291c1
commit
f89c53f679
4 changed files with 61 additions and 38 deletions
|
@ -41,8 +41,8 @@ class block_site_main_menu extends block_list {
|
|||
continue;
|
||||
}
|
||||
|
||||
list($content, $instancename) =
|
||||
get_print_section_cm_text($cm, $course);
|
||||
$content = $cm->get_formatted_content(array('overflowdiv' => true, 'noclean' => true));
|
||||
$instancename = $cm->get_formatted_name();
|
||||
|
||||
if (!($url = $cm->get_url())) {
|
||||
$this->content->items[] = $content;
|
||||
|
@ -111,8 +111,8 @@ class block_site_main_menu extends block_list {
|
|||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->pix_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
$this->content->icons[] = '';
|
||||
}
|
||||
list($content, $instancename) =
|
||||
get_print_section_cm_text($modinfo->cms[$modnumber], $course);
|
||||
$content = $mod->get_formatted_content(array('overflowdiv' => true, 'noclean' => true));
|
||||
$instancename = $mod->get_formatted_name();
|
||||
$linkcss = $mod->visible ? '' : ' class="dimmed" ';
|
||||
|
||||
if (!($url = $mod->get_url())) {
|
||||
|
|
|
@ -43,8 +43,8 @@ class block_social_activities extends block_list {
|
|||
continue;
|
||||
}
|
||||
|
||||
list($content, $instancename) =
|
||||
get_print_section_cm_text($cm, $course);
|
||||
$content = $cm->get_formatted_content(array('overflowdiv' => true, 'noclean' => true));
|
||||
$instancename = $cm->get_formatted_name();
|
||||
|
||||
if (!($url = $cm->get_url())) {
|
||||
$this->content->items[] = $content;
|
||||
|
@ -113,8 +113,8 @@ class block_social_activities extends block_list {
|
|||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->pix_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
$this->content->icons[] = '';
|
||||
}
|
||||
list($content, $instancename) =
|
||||
get_print_section_cm_text($modinfo->cms[$modnumber], $course);
|
||||
$content = $mod->get_formatted_content(array('overflowdiv' => true, 'noclean' => true));
|
||||
$instancename = $mod->get_formatted_name();
|
||||
|
||||
$linkcss = $mod->visible ? '' : ' class="dimmed" ';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue