mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Better appearance for section add menus in vertical mode.
This commit is contained in:
parent
4b4ca01dae
commit
d33d0cda79
@ -1090,19 +1090,22 @@ function print_section_add_menus($course, $section, $modnames, $vertical=false,
|
||||
$resources['label'] = get_string('resourcetypelabel', 'resource');
|
||||
}
|
||||
|
||||
$output = '';
|
||||
|
||||
$output .= '<div style="text-align: right">';
|
||||
$output = '<div style="text-align: right">';
|
||||
$output .= popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&sesskey=$USER->sesskey&add=",
|
||||
$resources, "ressection$section", "", $straddresource, 'resource/types', $straddresource, true);
|
||||
|
||||
if ($vertical) {
|
||||
$output .= '<br />';
|
||||
$output .= '<div>';
|
||||
}
|
||||
|
||||
$output .= ' ';
|
||||
$output .= popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&sesskey=$USER->sesskey&add=",
|
||||
$modnames, "section$section", "", $straddactivity, 'mods', $straddactivity, true);
|
||||
|
||||
if ($vertical) {
|
||||
$output .= '</div>';
|
||||
}
|
||||
|
||||
$output .= '</div>';
|
||||
|
||||
if ($return) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user