Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-25928 course: Fixed course info on the combo list to be a popup

  • Loading branch information...
commit 5f9106b7f2d96e25a2b42695ce8e786c13c12061 1 parent 7d2c5cd
@samhemelryk samhemelryk authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 course/renderer.php
View
4 course/renderer.php
@@ -123,6 +123,7 @@ protected function course_category_tree_category(stdClass $category, $depth=1) {
if ($hascourses) {
$content .= html_writer::start_tag('div', array('class'=>'courses'));
$coursecount = 0;
+ $strinfo = new lang_string('info');
foreach ($category->courses as $course) {
$classes = array('course');
$linkclass = 'course_link';
@@ -143,8 +144,9 @@ protected function course_category_tree_category(stdClass $category, $depth=1) {
}
if ($course->summary) {
+ $url = new moodle_url('/course/info.php', array('id' => $course->id));
$image = html_writer::empty_tag('img', array('src'=>$this->output->pix_url('i/info'), 'alt'=>$this->strings->summary));
- $content .= html_writer::link(new moodle_url('/course/info.php', array('id'=>$course->id)), $image, array('title'=>$this->strings->summary));
+ $content .= $this->action_link($url, $image, new popup_action('click', $url, 'courseinfo'), array('title' => $this->strings->summary));
}
$content .= html_writer::end_tag('div');
$content .= html_writer::end_tag('div');
Please sign in to comment.
Something went wrong with that request. Please try again.