From: nfreear Date: Fri, 1 Dec 2006 15:54:46 +0000 (+0000) Subject: Fixes MDL-6838, uses 'inline-list' class (label with ordered list
    not redendered... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=764d1d20dd61b288b8d3c994abf5b2e53c9040a8;p=moodle.git Fixes MDL-6838, uses 'inline-list' class (label with ordered list
      not redendered with numbers) --- diff --git a/blocks/section_links/block_section_links.php b/blocks/section_links/block_section_links.php index 106c00aaa5..cdcdf04e8d 100644 --- a/blocks/section_links/block_section_links.php +++ b/blocks/section_links/block_section_links.php @@ -34,7 +34,7 @@ class block_section_links extends block_base { return $this->content; } - $this->content = New stdClass; + $this->content = new stdClass; $this->content->footer = ''; $this->content->text = ''; @@ -71,7 +71,7 @@ class block_section_links extends block_base { } else { $link = '#section-'; } - $text = ''; + $text = '
        '; for ($i = $inc; $i <= $course->numsections; $i += $inc) { $isvisible = get_field('course_sections', 'visible', 'course', $this->instance->pageid, 'section', $i); if (!$isvisible and !has_capability('moodle/course:update', $context)) { @@ -79,16 +79,17 @@ class block_section_links extends block_base { } $style = ($isvisible) ? '' : ' class="dimmed"'; if ($i == $highlight) { - $text .= "$i "; + $text .= "
      1. $i
      2. \n"; } else { - $text .= "$i "; + $text .= "
      3. $i
      4. \n"; } } + $text .= '
      '; if ($highlight) { $isvisible = get_field('course_sections', 'visible', 'course', $this->instance->pageid, 'section', $highlight); if ($isvisible or has_capability('moodle/course:update', $context)) { $style = ($isvisible) ? '' : ' class="dimmed"'; - $text .= "
      $linktext"; + $text .= "\n$linktext"; } } @@ -98,4 +99,5 @@ class block_section_links extends block_base { return $this->content; } } -?> + +?> \ No newline at end of file