diff --git a/badges/edit.php b/badges/edit.php index 2a12b09a030..1bbc9e8a76f 100644 --- a/badges/edit.php +++ b/badges/edit.php @@ -69,6 +69,7 @@ $PAGE->set_context($context); $PAGE->set_url($currenturl); $PAGE->set_heading($heading); $PAGE->set_title($badge->name); +$PAGE->add_body_class('limitedwidth'); $PAGE->navbar->add($badge->name); $output = $PAGE->get_renderer('core', 'badges'); diff --git a/badges/index.php b/badges/index.php index cdbbc4b0109..7b420ba840b 100644 --- a/badges/index.php +++ b/badges/index.php @@ -73,6 +73,7 @@ if ($course = $DB->get_record('course', array('id' => $courseid))) { $hdr = get_string('managebadges', 'badges'); $returnurl = new moodle_url('/badges/index.php', $urlparams); $PAGE->set_url($returnurl); +$PAGE->add_body_class('limitedwidth'); if ($type == BADGE_TYPE_SITE) { $title = get_string('sitebadges', 'badges'); diff --git a/badges/newbadge.php b/badges/newbadge.php index 16f1fadbdca..b49aff5d113 100644 --- a/badges/newbadge.php +++ b/badges/newbadge.php @@ -41,6 +41,7 @@ if (empty($CFG->badges_allowcoursebadges) && ($type == BADGE_TYPE_COURSE)) { } $title = get_string('create', 'badges'); +$PAGE->add_body_class('limitedwidth'); if (($type == BADGE_TYPE_COURSE) && ($course = $DB->get_record('course', array('id' => $courseid)))) { require_login($course); diff --git a/badges/view.php b/badges/view.php index 7e2c79a76d3..527e904d7f2 100644 --- a/badges/view.php +++ b/badges/view.php @@ -61,6 +61,8 @@ if ($course = $DB->get_record('course', array('id' => $courseid))) { $PAGE->set_url('/badges/view.php', array('type' => $type, 'sort' => $sortby, 'dir' => $sorthow)); } +$PAGE->add_body_class('limitedwidth'); + if ($type == BADGE_TYPE_SITE) { $PAGE->set_context(context_system::instance()); $PAGE->set_pagelayout('admin');