Permalink
Browse files

MDL-33027 themes: Modified heading to be displayed for section in all…

… themes
  • Loading branch information...
1 parent 4f7f2a8 commit c129f430bb3ed3035ecaa0d47f266b1b54500017 Rajesh Taneja committed May 16, 2012
Showing with 21 additions and 12 deletions.
  1. +12 −6 course/format/renderer.php
  2. +9 −6 theme/base/style/course.css
View
@@ -463,20 +463,19 @@ public function print_single_section_page($course, $sections, $mods, $modnames,
echo $this->end_section_list();
}
+ // Start single-section div
+ echo html_writer::start_tag('div', array('class' => 'single-section'));
+
// Title with section navigation links.
$sectionnavlinks = $this->get_nav_links($course, $sections, $displaysection);
$sectiontitle = '';
- $sectiontitle .= html_writer::start_tag('div', array('class' => 'section-navigation headingblock header'));
+ $sectiontitle .= html_writer::start_tag('div', array('class' => 'section-navigation header headingblock'));
$sectiontitle .= html_writer::tag('span', $sectionnavlinks['previous'], array('class' => 'mdl-left'));
$sectiontitle .= html_writer::tag('span', $sectionnavlinks['next'], array('class' => 'mdl-right'));
- $sectiontitle .= html_writer::tag('div', get_section_name($course, $sections[$displaysection]), array('class' => 'mdl-align'));
+ $sectiontitle .= html_writer::tag('div', get_section_name($course, $sections[$displaysection]), array('class' => 'mdl-align title'));
$sectiontitle .= html_writer::end_tag('div');
echo $sectiontitle;
- // Show completion help icon.
- $completioninfo = new completion_info($course);
- echo $completioninfo->display_help_icon();
-
// Copy activity clipboard..
echo $this->course_activity_clipboard($course, $displaysection);
@@ -486,6 +485,10 @@ public function print_single_section_page($course, $sections, $mods, $modnames,
// The requested section page.
$thissection = $sections[$displaysection];
echo $this->section_header($thissection, $course, true);
+ // Show completion help icon.
+ $completioninfo = new completion_info($course);
+ echo $completioninfo->display_help_icon();
+
print_section($course, $thissection, $mods, $modnamesused, true);
if ($PAGE->user_is_editing()) {
print_section_add_menus($course, $displaysection, $modnames);
@@ -502,6 +505,9 @@ public function print_single_section_page($course, $sections, $mods, $modnames,
$sectionbottomnav .= html_writer::tag('div', $courselink, array('class' => 'mdl-align'));
$sectionbottomnav .= html_writer::end_tag('div');
echo $sectionbottomnav;
+
+ // close single-section div.
+ echo html_writer::end_tag('div');
}
/**
@@ -11,12 +11,14 @@
.course-content .section-summary { border: 1px solid #DDD; margin-top: 5px; list-style: none; }
.course-content .section-summary .section-title { margin: 2px 5px 2px 5px; }
.course-content .section-summary .summarytext { margin: 2px 5px 2px 5px; }
-.course-content .section-navigation { display: block; padding: 0.5em; margin-top: 1em; margin-bottom: -0.5em !important; }
-.course-content .section-navigation .mdl-left { float: left; font-weight: normal; margin-right: 1em; }
-.course-content .section-navigation .mdl-left .larrow { margin-right: 0.1em; }
-.course-content .section-navigation .mdl-right { float: right; font-weight: normal; margin-left: 1em; }
-.course-content .section-navigation .mdl-right .rarrow { margin-left: 0.1em; }
-.course-content .section-navigation .mdl-bottom { font-weight: normal; margin-top: 0; }
+.course-content .single-section { margin-top: 1em; }
+.course-content .single-section .section-navigation { display: block; padding: 0.5em; margin-bottom: -0.5em; }
+.course-content .single-section .section-navigation .title { font-weight: bold; font-size: 108%; }
+.course-content .single-section .section-navigation .mdl-left { font-weight: normal; float: left; margin-right: 1em; }
+.course-content .single-section .section-navigation .mdl-left .larrow { margin-right: 0.1em; }
+.course-content .single-section .section-navigation .mdl-right { font-weight: normal; float: right; margin-left: 1em; }
+.course-content .single-section .section-navigation .mdl-right .rarrow { margin-left: 0.1em; }
+.course-content .single-section .section-navigation .mdl-bottom { margin-top: 0; }
#page-site-index .subscribelink {text-align:right;}
#page-site-index .headingblock {margin-bottom: 9px;}
@@ -29,6 +31,7 @@
.path-course-view .block.drag .header {cursor: move;}
.path-course-view .completionprogress {float:right;}
.path-course-view .completionprogress img.iconhelp {vertical-align:top;}
+.path-course-view .single-section .completionprogress {margin-right: -3.5em; padding-left: 1.5em; padding-right: 0em;}
.path-course-view .section .summary {line-height:normal;}
.path-course-view li.activity {margin-right:20px; position:relative;}

0 comments on commit c129f43

Please sign in to comment.