themes lib MDL-24895 Multiple fixes to better handle overflow.
authorSam Hemelryk <sam@moodle.com>
Fri, 5 Nov 2010 02:53:47 +0000 (02:53 +0000)
committerSam Hemelryk <sam@moodle.com>
Fri, 5 Nov 2010 02:53:47 +0000 (02:53 +0000)
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.

125 files changed:
admin/report/spamcleaner/index.php
backup/util/ui/renderer.php
blocks/course_summary/block_course_summary.php
blocks/glossary_random/block_glossary_random.php
blocks/html/block_html.php
blocks/html/styles.css [new file with mode: 0644]
blocks/rss_client/block_rss_client.php
blocks/site_main_menu/block_site_main_menu.php
blocks/social_activities/block_social_activities.php
blog/locallib.php
cohort/index.php
comment/index.php
comment/lib.php
comment/locallib.php
course/category.php
course/format/topics/format.php
course/format/weeks/format.php
course/info.php
course/lib.php
course/report/outline/index.php
grade/edit/tree/grade.php
grade/lib.php
grade/report/grader/index.php
grade/report/user/index.php
grade/report/user/lib.php
grade/report/user/styles.css
group/members.php
group/overview.php
help.php
index.php
lib/adminlib.php
lib/pagelib.php
lib/tablelib.php
lib/weblib.php
mnet/service/enrol/course.php
mod/assignment/styles.css
mod/assignment/type/online/all.php
mod/assignment/type/online/assignment.class.php
mod/assignment/type/online/file.php
mod/assignment/type/upload/assignment.class.php
mod/assignment/type/upload/notes.php
mod/data/index.php
mod/feedback/complete.php
mod/feedback/complete_guest.php
mod/feedback/item/label/lib.php
mod/feedback/view.php
mod/forum/lib.php
mod/forum/styles.css
mod/glossary/lib.php
mod/glossary/locallib.php
mod/lesson/locallib.php
mod/lesson/pagetypes/multichoice.php
mod/lesson/report.php
mod/page/view.php
mod/quiz/report.php
mod/quiz/report/overview/report.php
mod/quiz/report/statistics/report.php
mod/quiz/styles.css
mod/wiki/edit.php
mod/wiki/locallib.php
mod/wiki/pagelib.php
mod/wiki/renderer.php
mod/workshop/assessment.php
mod/workshop/exassessment.php
mod/workshop/exsubmission.php
mod/workshop/renderer.php
mod/workshop/submission.php
mod/workshop/view.php
notes/lib.php
question/editlib.php
tag/locallib.php
theme/anomaly/config.php
theme/anomaly/layout/report.php [new file with mode: 0644]
theme/arialist/config.php
theme/arialist/layout/report.php [new file with mode: 0644]
theme/arialist/style/core.css
theme/arialist/style/pagelayout.css
theme/base/config.php
theme/base/layout/report.php [new file with mode: 0644]
theme/base/style/core.css
theme/base/style/pagelayout.css
theme/binarius/config.php
theme/binarius/layout/report.php [new file with mode: 0644]
theme/binarius/style/pagelayout.css
theme/boxxie/style/core.css
theme/brick/config.php
theme/brick/style/core.css
theme/brick/style/pagelayout.css
theme/canvas/config.php
theme/canvas/layout/general.php
theme/canvas/layout/report.php [new file with mode: 0644]
theme/canvas/style/pagelayout.css
theme/formal_white/config.php
theme/formal_white/layout/report.php [new file with mode: 0644]
theme/formal_white/lib.php
theme/formal_white/style/general.css
theme/formal_white/style/settings.css
theme/formfactor/style/mods.css
theme/fusion/config.php
theme/fusion/style/pagelayout.css
theme/leatherbound/config.php
theme/leatherbound/layout/general.php
theme/leatherbound/layout/report.php [new file with mode: 0644]
theme/leatherbound/style/core.css
theme/magazine/config.php
theme/magazine/style/colors.css
theme/magazine/style/core.css
theme/magazine/style/layout.css
theme/nonzero/config.php
theme/nonzero/style/pagelayout.css
theme/overlay/config.php
theme/serenity/style/core.css
theme/sky_high/config.php
theme/sky_high/layout/report.php [new file with mode: 0644]
theme/sky_high/style/core.css
theme/sky_high/style/pagelayout.css
theme/splash/config.php
theme/splash/layout/report.php [new file with mode: 0644]
theme/splash/style/sl.css
theme/standard/style/css3.css
theme/standard/style/modules.css
user/index.php
user/profile.php
user/profile/field/textarea/field.class.php
user/view.php

index fc9c8d3..eeb2f05 100755 (executable)
@@ -267,7 +267,7 @@ function print_user_entry($user, $keywords, $count) {
             $user->descriptionformat = FORMAT_MOODLE;
         }
 
-        $html .= '<td align="left">'.format_text($user->description, $user->descriptionformat).'</td>';
+        $html .= '<td align="left">'.format_text($user->description, $user->descriptionformat, array('overflowdiv'=>true)).'</td>';
         $html .= '<td width="100px" align="center">';
         $html .= '<button onclick="M.report_spamcleaner.del_user(this,'.$user->id.')">'.get_string('deleteuser', 'admin').'</button><br />';
         $html .= '<button onclick="M.report_spamcleaner.ignore_user(this,'.$user->id.')">'.get_string('ignore', 'admin').'</button>';
index 058ed79..413e2ca 100644 (file)
@@ -587,7 +587,7 @@ class core_backup_renderer extends plugin_renderer_base {
             $row->cells = array(
                 html_writer::empty_tag('input', array('type'=>'radio', 'name'=>'targetid', 'value'=>$category->id)),
                 $category->name,
-                format_text($category->description, $category->descriptionformat)
+                format_text($category->description, $category->descriptionformat, array('overflowdiv'=>true))
             );
             $table->data[] = $row;
         }
index 52424c6..7905822 100644 (file)
@@ -25,6 +25,7 @@ class block_course_summary extends block_base {
         $this->content = new stdClass();
         $options = new stdClass();
         $options->noclean = true;    // Don't clean Javascripts etc
+        $options->overflowdiv = true;
         $context = get_context_instance(CONTEXT_COURSE, $this->page->course->id);
         $this->page->course->summary = file_rewrite_pluginfile_urls($this->page->course->summary, 'pluginfile.php', $context->id, 'course', 'summary', NULL);
         $this->content->text = format_text($this->page->course->summary, $this->page->course->summaryformat, $options);
index 2bfcce0..9e1eaa8 100644 (file)
@@ -84,6 +84,7 @@ class block_glossary_random extends block_base {
 
                 $options = new stdClass();
                 $options->trusted = $entry->definitiontrust;
+                $options->overflowdiv = true;
                 $text .= format_text($entry->definition, $entry->definitionformat, $options);
 
                 $this->config->nexttime = usergetmidnight(time()) + DAYSECS * $this->config->refresh;
index 1248a2f..de484a5 100755 (executable)
@@ -46,12 +46,11 @@ class block_html extends block_base {
             return $this->content;
         }
 
+        $filteropt = new stdClass;
+        $filteropt->overflowdiv = true;
         if ($this->content_is_trusted()) {
             // fancy html allowed only on course, category and system blocks.
-            $filteropt = new stdClass;
             $filteropt->noclean = true;
-        } else {
-            $filteropt = null;
         }
 
         $this->content = new stdClass;
diff --git a/blocks/html/styles.css b/blocks/html/styles.css
new file mode 100644 (file)
index 0000000..de90b14
--- /dev/null
@@ -0,0 +1,2 @@
+.block.block_html .content {padding:0;}
+.block.block_html .content .no-overflow {padding:4px;}
\ No newline at end of file
index d732409..01b06de 100644 (file)
         }
 
 
-        $r.='<ul class="list">'."\n";
+        $r.='<ul class="list no-overflow">'."\n";
 
         $feeditems = $feed->get_items(0, $maxentries);
         foreach($feeditems as $item){
index 3e6b993..3e139ac 100644 (file)
@@ -34,13 +34,14 @@ class block_site_main_menu extends block_list {
 /// extra fast view mode
         if (!$isediting) {
             if (!empty($modinfo->sections[0])) {
+                $options = array('overflowdiv'=>true);
                 foreach($modinfo->sections[0] as $cmid) {
                     $cm = $modinfo->cms[$cmid];
                     if (!$cm->uservisible) {
                         continue;
                     }
                     if ($cm->modname == 'label') {
-                        $this->content->items[] = format_text($cm->extra, FORMAT_HTML);
+                        $this->content->items[] = format_text($cm->extra, FORMAT_HTML, $options);
                         $this->content->icons[] = '';
                     } else {
                         $linkcss = $cm->visible ? '' : ' class="dimmed" ';
@@ -85,6 +86,7 @@ class block_site_main_menu extends block_list {
 
         if (!empty($section->sequence)) {
             $sectionmods = explode(',', $section->sequence);
+            $options = array('overflowdiv'=>true);
             foreach ($sectionmods as $modnumber) {
                 if (empty($mods[$modnumber])) {
                     continue;
@@ -127,7 +129,7 @@ class block_site_main_menu extends block_list {
                     }
 
                     if ($mod->modname == 'label') {
-                        $this->content->items[] = format_text($extra, FORMAT_HTML).$editbuttons;
+                        $this->content->items[] = format_text($extra, FORMAT_HTML,$options).$editbuttons;
                         $this->content->icons[] = '';
                     } else {
                         //Accessibility: incidental image - should be empty Alt text
index 3c3dc92..bcf7d7b 100644 (file)
@@ -36,13 +36,14 @@ class block_social_activities extends block_list {
 /// extra fast view mode
         if (!$isediting) {
             if (!empty($modinfo->sections[0])) {
+                $options = array('overflowdiv'=>true);
                 foreach($modinfo->sections[0] as $cmid) {
                     $cm = $modinfo->cms[$cmid];
                     if (!$cm->uservisible) {
                         continue;
                     }
                     if ($cm->modname == 'label') {
-                        $this->content->items[] = format_text($cm->extra, FORMAT_HTML);
+                        $this->content->items[] = format_text($cm->extra, FORMAT_HTML, $options);
                         $this->content->icons[] = '';
                     } else {
                         $linkcss = $cm->visible ? '' : ' class="dimmed" ';
@@ -94,6 +95,7 @@ class block_social_activities extends block_list {
 
         if (!empty($section) && !empty($section->sequence)) {
             $sectionmods = explode(',', $section->sequence);
+            $options = array('overflowdiv'=>true);
             foreach ($sectionmods as $modnumber) {
                 if (empty($mods[$modnumber])) {
                     continue;
@@ -136,7 +138,7 @@ class block_social_activities extends block_list {
                     }
 
                     if ($mod->modname == 'label') {
-                        $this->content->items[] = format_text($extra, FORMAT_HTML).$editbuttons;
+                        $this->content->items[] = format_text($extra, FORMAT_HTML, $options).$editbuttons;
                         $this->content->icons[] = '';
                     } else {
                         //Accessibility: incidental image - should be empty Alt text
index a7fcf4b..e28cee9 100644 (file)
@@ -114,7 +114,8 @@ class blog_entry {
         }
         $this->summary = file_rewrite_pluginfile_urls($this->summary, 'pluginfile.php', SYSCONTEXTID, 'blog', 'post', $this->id);
 
-        $template['body'] = format_text($this->summary, $this->summaryformat).$cmttext;
+        $options = array('overflowdiv'=>true);
+        $template['body'] = format_text($this->summary, $this->summaryformat, $options).$cmttext;
         $template['title'] = format_string($this->subject);
         $template['userid'] = $user->id;
         $template['author'] = fullname($user);
index 4f1bd2e..ba656e0 100644 (file)
@@ -54,7 +54,7 @@ if (!$manager) {
 $strcohorts = get_string('cohorts', 'cohort');
 
 if ($category) {
-    $PAGE->set_pagelayout('admin');
+    $PAGE->set_pagelayout('report');
     $PAGE->set_context($context);
     $PAGE->set_url('/cohort/index.php', array('contextid'=>$context->id));
     $PAGE->set_title($strcohorts);
@@ -62,7 +62,7 @@ if ($category) {
     $PAGE->navbar->add($category->name, new moodle_url('/course/index.php', array('categoryedit'=>'1')));
     $PAGE->navbar->add($strcohorts);
 } else {
-    admin_externalpage_setup('cohorts');
+    admin_externalpage_setup('cohorts', '', null, '', array('pagelayout'=>'report'));
 }
 
 echo $OUTPUT->header();
index db6a55a..38acc30 100644 (file)
@@ -23,7 +23,7 @@ require_once($CFG->libdir.'/adminlib.php');
 require_once('locallib.php');
 
 require_login();
-admin_externalpage_setup('comments');
+admin_externalpage_setup('comments', '', null, '', array('pagelayout'=>'report'));
 
 $context = get_context_instance(CONTEXT_SYSTEM);
 require_capability('moodle/comment:delete', $context);
index 5763145..d8bbc49 100644 (file)
@@ -413,6 +413,7 @@ EOD;
 
         $comments = array();
         $candelete = has_capability('moodle/comment:delete', $this->context);
+        $formatoptions = array('overflowdiv' => true);
         $rs = $DB->get_recordset_sql($sql, $params, $start, $CFG->commentsperpage);
         foreach ($rs as $u) {
             $c = new stdClass();
@@ -424,7 +425,7 @@ EOD;
             $c->profileurl = $url->out();
             $c->fullname = fullname($u);
             $c->time = userdate($c->timecreated, get_string('strftimerecent', 'langconfig'));
-            $c->content = format_text($c->content, $c->format);
+            $c->content = format_text($c->content, $c->format, $formatoptions);
 
             $c->avatar = $OUTPUT->user_picture($u, array('size'=>18));
             if (($USER->id == $u->id) || !empty($candelete)) {
@@ -513,7 +514,7 @@ EOD;
             $newcmt->fullname = fullname($USER);
             $url = new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$this->courseid));
             $newcmt->profileurl = $url->out();
-            $newcmt->content = format_text($newcmt->content, $format);
+            $newcmt->content = format_text($newcmt->content, $format, array('overflowdiv'=>true));
             $newcmt->avatar = $OUTPUT->user_picture($USER, array('size'=>16));
             return $newcmt;
         } else {
index 8a035c2..41ab728 100644 (file)
@@ -47,11 +47,12 @@ class comment_manager {
             WHERE u.id=c.userid ORDER BY c.timecreated ASC";
 
         $comments = array();
+        $formatoptions = array('overflowdiv' => true);
         if ($records = $DB->get_records_sql($sql, array(), $start, $this->perpage)) {
             foreach ($records as $item) {
                 $item->fullname = fullname($item);
                 $item->time = userdate($item->timecreated);
-                $item->content = format_text($item->content);
+                $item->content = format_text($item->content, FORMAT_MOODLE, $formatoptions);
                 $comments[] = $item;
                 unset($item->firstname);
                 unset($item->lastname);
index b03500d..288a3b6 100644 (file)
         $options = new stdClass;
         $options->noclean = true;
         $options->para = false;
+        $options->overflowdiv = true;
         if (!isset($category->descriptionformat)) {
             $category->descriptionformat = FORMAT_MOODLE;
         }
index 564e3e9..f324a99 100644 (file)
@@ -107,6 +107,7 @@ if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing())
     $summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
     $summaryformatoptions = new stdClass();
     $summaryformatoptions->noclean = true;
+    $summaryformatoptions->overflowdiv = true;
     echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
 
     if ($PAGE->user_is_editing() && has_capability('moodle/course:update', $coursecontext)) {
@@ -229,6 +230,7 @@ while ($section <= $course->numsections) {
                 $summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
                 $summaryformatoptions = new stdClass();
                 $summaryformatoptions->noclean = true;
+                $summaryformatoptions->overflowdiv = true;
                 echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
             } else {
                echo '&nbsp;';
index 5aa0c2f..090549a 100644 (file)
@@ -99,8 +99,9 @@ defined('MOODLE_INTERNAL') || die();
 
         $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
         $summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
-        $summaryformatoptions = new stdClass();
+        $summaryformatoptions = new stdClass;
         $summaryformatoptions->noclean = true;
+        $summaryformatoptions->overflowdiv = true;
         echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
 
         if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
@@ -230,8 +231,9 @@ defined('MOODLE_INTERNAL') || die();
                 echo '<div class="summary">';
                 $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
                 $summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
-                $summaryformatoptions = new stdClass();
+                $summaryformatoptions = new stdClass;
                 $summaryformatoptions->noclean = true;
+                $summaryformatoptions->overflowdiv = true;
                 echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
 
                 if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
index 3156134..b25e801 100644 (file)
@@ -54,7 +54,7 @@
     echo $OUTPUT->box_start('generalbox info');
 
     $course->summary = file_rewrite_pluginfile_urls($course->summary, 'pluginfile.php', $context->id, 'course', 'summary', NULL);
-    echo format_text($course->summary, $course->summaryformat, NULL, $course->id);
+    echo format_text($course->summary, $course->summaryformat, array('overflowdiv'=>true), $course->id);
 
     if (!empty($CFG->coursecontact)) {
         $coursecontactroles = explode(',', $CFG->coursecontact);
index 97526f0..428492f 100644 (file)
@@ -1272,6 +1272,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
 
     $labelformatoptions = new stdClass();
     $labelformatoptions->noclean = true;
+    $labelformatoptions->overflowdiv = true;
 
 /// Casting $course->modinfo to string prevents one notice when the field is null
     $modinfo = get_fast_modinfo($course);
@@ -2322,6 +2323,7 @@ function print_course($course, $highlightterms = '') {
     $options = NULL;
     $options->noclean = true;
     $options->para = false;
+    $options->overflowdiv = true;
     if (!isset($course->summaryformat)) {
         $course->summaryformat = FORMAT_MOODLE;
     }
@@ -2468,6 +2470,7 @@ function print_remote_course($course, $width="100%") {
     $options = NULL;
     $options->noclean = true;
     $options->para = false;
+    $options->overflowdiv = true;
     echo format_text($course->summary, $course->summaryformat, $options);
     echo '</div>';
     echo '</div>';
index 4db31c3..6b1073e 100644 (file)
@@ -12,7 +12,7 @@
     }
 
     $PAGE->set_url('/course/report/outline/index.php', array('id'=>$id));
-    $PAGE->set_pagelayout('admin');
+    $PAGE->set_pagelayout('report');
 
     require_login($course);
     $context = get_context_instance(CONTEXT_COURSE, $course->id);
@@ -47,6 +47,7 @@
 
     $outlinetable = new html_table();
     $outlinetable->attributes['class'] = 'generaltable boxaligncenter';
+    $outlinetable->attributes['style'] = 'width:2000px;';
     $outlinetable->cellpadding = 5;
     $outlinetable->id = 'outlinetable';
     $outlinetable->head = array($stractivity, $strviews);
index 39bd8bd..9216dee 100644 (file)
@@ -41,6 +41,7 @@ if (!$course = $DB->get_record('course', array('id' => $courseid))) {
     print_error('nocourseid');
 }
 
+$PAGE->set_pagelayout('incourse');
 require_login($course);
 $context = get_context_instance(CONTEXT_COURSE, $course->id);
 if (!has_capability('moodle/grade:manage', $context)) {
index 7c19bcb..bc2a810 100644 (file)
@@ -628,7 +628,11 @@ function print_grade_page_head($courseid, $active_type, $active_plugin=null,
         $title = $PAGE->course->fullname.': ' . $stractive_plugin;
     }
 
-    $PAGE->set_pagelayout('admin');
+    if ($active_type == 'report') {
+        $PAGE->set_pagelayout('report');
+    } else {
+        $PAGE->set_pagelayout('admin');
+    }
     $PAGE->set_title(get_string('grades') . ': ' . $stractive_type);
     $PAGE->set_heading($title);
     if ($buttons instanceof single_button) {
index 9837dea..3a35fd8 100644 (file)
@@ -106,13 +106,15 @@ if (!empty($target) && !empty($action) && confirm_sesskey()) {
 
 $reportname = get_string('pluginname', 'gradereport_grader');
 
+/// Print header
+print_grade_page_head($COURSE->id, 'report', 'grader', $reportname, false, $buttons);
+
 //Initialise the grader report object that produces the table
 //the class grade_report_grader_ajax was removed as part of MDL-21562
 $report = new grade_report_grader($courseid, $gpr, $context, $page, $sortitemid);
 
 // make sure separate group does not prevent view
 if ($report->currentgroup == -2) {
-    print_grade_page_head($COURSE->id, 'report', 'grader', $reportname, false, $buttons);
     echo $OUTPUT->heading(get_string("notingroup"));
     echo $OUTPUT->footer();
     exit;
@@ -136,9 +138,6 @@ $report->load_users();
 $numusers = $report->get_numusers();
 $report->load_final_grades();
 
-/// Print header
-print_grade_page_head($COURSE->id, 'report', 'grader', $reportname, false, $buttons);
-
 echo $report->group_selector;
 echo '<div class="clearer"></div>';
 // echo $report->get_toggles_html();
index 3452a6a..b2030eb 100644 (file)
@@ -30,6 +30,7 @@ if (!$course = $DB->get_record('course', array('id' => $courseid))) {
     print_error('nocourseid');
 }
 require_login($course);
+$PAGE->set_pagelayout('report');
 
 $context = get_context_instance(CONTEXT_COURSE, $course->id);
 require_capability('gradereport/user:view', $context);
@@ -148,6 +149,4 @@ if (has_capability('moodle/grade:viewall', $context)) { //Teachers will see all
     }
 }
 
-echo $OUTPUT->footer();
-
-
+echo $OUTPUT->footer();
\ No newline at end of file
index b8e0da3..71aac49 100644 (file)
@@ -324,7 +324,7 @@ class grade_report_user extends grade_report {
 
                 } else {
                     $data['feedback']['class'] = $class.' feedbacktext';
-                    $data['feedback']['content'] = format_text($grade_grade->feedback, $grade_grade->feedbackformat);
+                    $data['feedback']['content'] = format_text($grade_grade->feedback, $grade_grade->feedbackformat, array('overflowdiv'=>true));
                 }
 
                 /// Range
index 3a44289..d11d9d9 100644 (file)
@@ -1,36 +1,37 @@
-.path-grade-report-user table.user-grade .datesubmitted {font-size: 0.7em;}
-.path-grade-report-user table.user-grade .courseitem,
-.path-grade-report-user table.user-grade .categoryitem {font-weight: bold;}
-.path-grade-report-user table.user-grade td.cell {padding-left: 5px;padding-right: 5px;}
+.path-grade-report-user .user-grade .datesubmitted {font-size: 0.7em;}
+.path-grade-report-user .user-grade .courseitem,
+.path-grade-report-user .user-grade .categoryitem {font-weight: bold;}
+.path-grade-report-user .user-grade td.cell {padding-left: 5px;padding-right: 5px;}
 #graded_users_selector {float: right;text-align: right;}
 
 /* this must be last if we want to override other category and course item colors */
-.path-grade-report-user table.user-grade .hidden,
-.path-grade-report-user table.user-grade .hidden a {color:#aaaaaa;}
-table.user-grade {border: 1px solid black;margin: auto;padding: 0.25em;font-size: 0.8em;}
-table.user-grade td {margin: 1px;padding: 0.25em;}
-table.user-grade thead {border-bottom: 3px double black;}
-table.user-grade thead th {padding: 0.25em 0.75em;}
-table.user-grade td.oddd1 {background-color: #f3dfd0;}
-table.user-grade td.oddd2 {background-color: #d0dbf3;}
-table.user-grade td.oddd3 {background-color: #d0f3d6;}
-table.user-grade td.oddd4 {background-color: #f0f0aa;}
-table.user-grade td.evend2 {background-color: #b0bbd3;}
-table.user-grade td.evend3 {background-color: #b0dfb6;}
-table.user-grade td.evend4 {background-color: #cac8be;}
-table.user-grade td.b1t,
-table.user-grade td.b2t {border-top: 2px solid black;}
-table.user-grade td.b1r,
-table.user-grade td.b2r {border-right: 2px solid black;}
-table.user-grade td.b1b,
-table.user-grade td.b2b {border-bottom: 2px solid black;}
-table.user-grade td.b1l,
-table.user-grade td.b2l {border-left: 2px solid black;}
-table.user-grade td.baggt,
-table.user-grade td.baggb {font-style: italic;font-weight: bold;}
-table.user-grade td.baggt {border-top: 3px double black;}
-table.user-grade td.baggb {border-bottom: 3px double black;}
-table.user-grade td.item {border-left: 1px solid gray;border-right: 1px solid gray;}
-table.user-grade td.excluded {background-color: #666;}
-table.user-grade td.hidden {color: #aaa;}
-table.user-grade td {min-width: 0.5em;vertical-align: top;}
\ No newline at end of file
+.path-grade-report-user .user-grade .hidden,
+.path-grade-report-user .user-grade .hidden a {color:#aaaaaa;}
+.user-grade {border: 1px solid black;margin: auto;padding: 0.25em;font-size: 0.8em;}
+.user-grade td {margin: 1px;padding: 0.25em;min-width: 2em;vertical-align: top;}
+.user-grade thead {border-bottom: 3px double black;}
+.user-grade thead th {padding: 0.25em 0.75em;}
+.user-grade td.oddd1 {background-color: #f3dfd0;}
+.user-grade td.oddd2 {background-color: #d0dbf3;}
+.user-grade td.oddd3 {background-color: #d0f3d6;}
+.user-grade td.oddd4 {background-color: #f0f0aa;}
+.user-grade td.evend2 {background-color: #b0bbd3;}
+.user-grade td.evend3 {background-color: #b0dfb6;}
+.user-grade td.evend4 {background-color: #cac8be;}
+.user-grade td.b1t,
+.user-grade td.b2t {border-top: 2px solid black;}
+.user-grade td.b1r,
+.user-grade td.b2r {border-right: 2px solid black;}
+.user-grade td.b1b,
+.user-grade td.b2b {border-bottom: 2px solid black;}
+.user-grade td.b1l,
+.user-grade td.b2l {border-left: 2px solid black;}
+.user-grade td.baggt,
+.user-grade td.baggb {font-style: italic;font-weight: bold;}
+.user-grade td.baggt {border-top: 3px double black;}
+.user-grade td.baggb {border-bottom: 3px double black;}
+.user-grade td.item {border-left: 1px solid gray;border-right: 1px solid gray;}
+.user-grade td.excluded {background-color: #666;}
+.user-grade td.hidden {color: #aaa;}
+.user-grade td.feedbacktext {max-width:600px;padding:0;}
+.pagelayout-report .user-grade .feedbacktext .no-overflow {overflow:auto;padding:0.25em;}
\ No newline at end of file
index 0a59e08..c871c79 100644 (file)
@@ -97,7 +97,9 @@ $group->description = file_rewrite_pluginfile_urls($group->description, 'pluginf
 if (!isset($group->descriptionformat)) {
     $group->descriptionformat = FORMAT_MOODLE;
 }
-$contentcell->text = format_text($group->description, $group->descriptionformat);
+$options = new stdClass;
+$options->overflowdiv = true;
+$contentcell->text = format_text($group->description, $group->descriptionformat, $options);
 $groupinfotable->data[] = new html_table_row(array($picturecell, $contentcell));
 echo html_writer::table($groupinfotable);
 
index 58a0ca7..449ef14 100644 (file)
@@ -162,6 +162,7 @@ foreach ($members as $gpgid=>$groupdata) {
         $description = file_rewrite_pluginfile_urls($groups[$gpid]->description, 'pluginfile.php', $context->id, 'group', 'description', $gpid);
         $options = new stdClass;
         $options->noclean = true;
+        $options->overflowdiv = true;
         $jsdescription = trim(format_text($description, $groups[$gpid]->descriptionformat, $options));
         if (empty($jsdescription)) {
             $line[] = $name;
@@ -187,6 +188,7 @@ foreach ($members as $gpgid=>$groupdata) {
         $description = file_rewrite_pluginfile_urls($groupings[$gpgid]->description, 'pluginfile.php', $context->id, 'grouping', 'description', $gpgid);
         $options = new stdClass;
         $options->noclean = true;
+        $options->overflowdiv = true;
         echo $OUTPUT->box(format_text($description, $groupings[$gpgid]->descriptionformat, $options), 'generalbox boxwidthnarrow boxaligncenter');
     }
     echo html_writer::table($table);
index 17141ba..2659812 100644 (file)
--- a/help.php
+++ b/help.php
@@ -65,6 +65,7 @@ if ($sm->string_exists($identifier.'_help', $component)) {
     $options->filter = false;
     $options->para = true;
     $options->newlines = false;
+    $options->overflowdiv = !$ajax;
 
     echo $OUTPUT->heading(format_string(get_string($identifier, $component)), 1, 'helpheading');
     // Should be simple wiki only MDL-21695
index dafc1ae..f871c9f 100644 (file)
--- a/index.php
+++ b/index.php
             $summarytext = file_rewrite_pluginfile_urls($section->summary, 'pluginfile.php', $context->id, 'course', 'section', $section->id);
             $summaryformatoptions = new stdClass();
             $summaryformatoptions->noclean = true;
+            $summaryformatoptions->overflowdiv = true;
 
             echo format_text($summarytext, $section->summaryformat, $summaryformatoptions);
 
index b8f2c4f..e762c5e 100644 (file)
@@ -5526,8 +5526,10 @@ class admin_setting_manageportfolio extends admin_setting {
  *      added to the turn blocks editing on/off form, so this page reloads correctly.
  * @param string $actualurl if the actual page being viewed is not the normal one for this
  *      page (e.g. admin/roles/allowassin.php, instead of admin/roles/manage.php, you can pass the alternate URL here.
+ * @param array $options Additional options that can be specified for page setup.
+ *      pagelayout - This option can be used to set a specific pagelyaout, admin is default.
  */
-function admin_externalpage_setup($section, $extrabutton = '', array $extraurlparams = null, $actualurl = '') {
+function admin_externalpage_setup($section, $extrabutton = '', array $extraurlparams = null, $actualurl = '', array $options = array()) {
     global $CFG, $PAGE, $USER, $SITE, $OUTPUT;
 
     $PAGE->set_context(null); // hack - set context to something, by default to system context
@@ -5549,7 +5551,10 @@ function admin_externalpage_setup($section, $extrabutton = '', array $extraurlpa
         die;
     }
 
-    if ($section === 'upgradesettings') {
+    if (!empty($options['pagelayout'])) {
+        // A specific page layout has been requested.
+        $PAGE->set_pagelayout($options['pagelayout']);
+    } else if ($section === 'upgradesettings') {
         $PAGE->set_pagelayout('maintenance');
     } else {
         $PAGE->set_pagelayout('admin');
index bd1ff1f..519be0a 100644 (file)
@@ -838,6 +838,9 @@ class moodle_page {
      * in the standard theme.
      */
     public function set_pagelayout($pagelayout) {
+        if (!empty($this->_wherethemewasinitialised) && $pagelayout != $this->_pagelayout) {
+            debugging('Page layout has already been set and cannot be changed.', DEBUG_DEVELOPER);
+        }
         $this->_pagelayout = $pagelayout;
     }
 
@@ -1203,11 +1206,6 @@ class moodle_page {
     public function initialise_theme_and_output() {
         global $OUTPUT, $PAGE, $SITE;
 
-        // If you have lost all blocks on a page and cannot work out why
-        // try uncommenting this this debugging line and seeing what you get.
-        // Chances are the theme and output are being initialised prematurely.
-        // debugging('Initialising theme and output with layout '.$this->_pagelayout, DEBUG_DEVELOPER);
-
         if (!empty($this->_wherethemewasinitialised)) {
             return;
         }
index 9195efb..975b418 100644 (file)
@@ -1187,7 +1187,7 @@ class flexible_table {
         $this->wrap_html_start();
         // Start of main data table
 
-        echo html_writer::start_tag('div', array('class'=>'flexible-wrap'));
+        echo html_writer::start_tag('div', array('class'=>'no-overflow'));
         echo '<table'.$this->make_attributes_string($this->attributes).'>';
 
     }
index cdf51a6..b2f322a 100644 (file)
@@ -940,6 +940,19 @@ function format_text_menu() {
  * This function should mainly be used for long strings like posts,
  * answers, glossary items etc. For short strings @see format_string().
  *
+ * <pre>
+ * Options:
+ *      trusted     :   If true the string won't be cleaned. Default false required noclean=true.
+ *      noclean     :   If true the string won't be cleaned. Default false required trusted=true.
+ *      nocache     :   If true the strign will not be cached and will be formatted every call. Default false.
+ *      filter      :   If true the string will be run through applicable filters as well. Default true.
+ *      para        :   If true then the returned string will be wrapped in div tags. Default true.
+ *      newlines    :   If true then lines newline breaks will be converted to HTML newline breaks. Default true.
+ *      context     :   The context that will be used for filtering.
+ *      overflowdiv :   If set to true the formatted text will be encased in a div
+ *                      with the class no-overflow before being returned. Default false.
+ * </pre>
+ *
  * @todo Finish documenting this function
  *
  * @staticvar array $croncache
@@ -983,6 +996,9 @@ function format_text($text, $format = FORMAT_MOODLE, $options = NULL, $courseid_
     if (!isset($options['newlines'])) {
         $options['newlines'] = true;
     }
+    if (!isset($options['overflowdiv'])) {
+        $options['overflowdiv'] = false;
+    }
 
     // Calculate best context
     if (empty($CFG->version) or $CFG->version < 2010072800 or during_initial_install()) {
@@ -1092,6 +1108,10 @@ function format_text($text, $format = FORMAT_MOODLE, $options = NULL, $courseid_
                 'relies on it. Please seek out and destroy that filter code.', DEBUG_DEVELOPER);
     }
 
+    if (!empty($options['overflowdiv'])) {
+        $text = html_writer::tag('div', $text, array('class'=>'no-overflow'));
+    }
+
     if (empty($options['nocache']) and !empty($CFG->cachetext)) {
         if (CLI_SCRIPT) {
             // special static cron cache - no need to store it in db if its not already there
@@ -1367,7 +1387,7 @@ function format_module_intro($module, $activity, $cmid, $filter=true) {
     global $CFG;
     require_once("$CFG->libdir/filelib.php");
     $context = get_context_instance(CONTEXT_MODULE, $cmid);
-    $options = (object)array('noclean'=>true, 'para'=>false, 'filter'=>$filter, 'context'=>$context);
+    $options = array('noclean'=>true, 'para'=>false, 'filter'=>$filter, 'context'=>$context, 'overflowdiv'=>true);
     $intro = file_rewrite_pluginfile_urls($activity->intro, 'pluginfile.php', $context->id, 'mod_'.$module, 'intro', null);
     return trim(format_text($intro, $activity->introformat, $options, null));
 }
index 0de8463..6ba05c7 100644 (file)
@@ -67,6 +67,7 @@ if (!empty($course->summary)) {
     $options->para    = false;
     $options->filter  = false;
     $options->noclean = false;
+    $options->overflowdiv = true;
     print_collapsible_region_start('remotecourse summary', 'remotecourse-summary', get_string('coursesummary'), false, true);
     echo format_text($course->summary, $course->summaryformat, $options,  $course->id);
     print_collapsible_region_end();
index 2e36c92..3d94898 100644 (file)
@@ -10,8 +10,6 @@
 .path-mod-assignment .feedback .from {float: left;}
 .path-mod-assignment .files img {margin-right: 4px;}
 .path-mod-assignment .files a {white-space:nowrap;}
-.path-mod-assignment .flexible-wrap {width:100%;overflow:auto;}
-.path-mod-assignment .flexible-wrap > .flexible {margin:0;}
 .path-mod-assignment .late {color: red;}
 
 /** Styles for submissions.php **/
index d2861be..b746dac 100644 (file)
@@ -133,7 +133,7 @@ foreach ($views as $view) {
     //submission part
     echo $OUTPUT->container_start('generalbox submission');
     echo '<div class="submissiondate">'.$view->submissiondate.'</div>';
-    echo "<p>$view->submissiontext</p>\n";
+    echo "<p class='no-overflow'>$view->submissiontext</p>\n";
     echo "<p>$view->editlink</p>\n";
     echo $OUTPUT->container_end();
 
index 8a22549..e66ac4d 100644 (file)
@@ -100,7 +100,7 @@ class assignment_online extends assignment_base {
                 echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter', 'online');
                 if ($submission && has_capability('mod/assignment:exportownsubmission', $this->context)) {
                     $text = file_rewrite_pluginfile_urls($submission->data1, 'pluginfile.php', $this->context->id, 'mod_assignment', $this->filearea, $submission->id);
-                    echo format_text($text, $submission->data2);
+                    echo format_text($text, $submission->data2, array('overflowdiv'=>true));
                     if ($CFG->enableportfolios) {
                         require_once($CFG->libdir . '/portfoliolib.php');
                         $button = new portfolio_add_button();
@@ -233,7 +233,7 @@ class assignment_online extends assignment_base {
         $wordcount .= '</p>';
 
         $text = file_rewrite_pluginfile_urls($submission->data1, 'pluginfile.php', $this->context->id, 'mod_assignment', $this->filearea, $submission->id);
-        return $wordcount . format_text($text, $submission->data2);
+        return $wordcount . format_text($text, $submission->data2, array('overflowdiv'=>true));
 
 
         }
index 368f20c..c7164f2 100644 (file)
@@ -60,7 +60,7 @@ if ($submission = $assignmentinstance->get_submission($user->id)) {
     echo $OUTPUT->box_end();
 
     $text = file_rewrite_pluginfile_urls($submission->data1, 'pluginfile.php', $context->id, 'mod_assignment', $assignmentinstance->filearea, $submission->id);
-    echo $OUTPUT->box(format_text($text, $submission->data2), 'generalbox boxaligncenter boxwidthwide');
+    echo $OUTPUT->box(format_text($text, $submission->data2, array('overflowdiv'=>true)), 'generalbox boxaligncenter boxwidthwide');
     echo $OUTPUT->close_window_button();
     echo $OUTPUT->footer();
 } else {
index 367af5e..448fea3 100644 (file)
@@ -211,7 +211,7 @@ class assignment_upload extends assignment_base {
 
         if ($submission = $this->get_submission($USER->id)
           and !empty($submission->data1)) {
-            echo $OUTPUT->box(format_text($submission->data1, FORMAT_HTML), 'generalbox boxaligncenter boxwidthwide');
+            echo $OUTPUT->box(format_text($submission->data1, FORMAT_HTML, array('overflowdiv'=>true)), 'generalbox boxaligncenter boxwidthwide');
         } else {
             echo $OUTPUT->box(get_string('notesempty', 'assignment'), 'generalbox boxaligncenter');
         }
index 2695982..17b5760 100644 (file)
@@ -53,7 +53,7 @@ if ($submission = $assignmentinstance->get_submission($user->id)
     $PAGE->set_title(fullname($user,true).': '.$assignment->name);
     echo $OUTPUT->header();
     echo $OUTPUT->heading(get_string('notes', 'assignment').' - '.fullname($user,true));
-    echo $OUTPUT->box(format_text($submission->data1, FORMAT_HTML), 'generalbox boxaligncenter boxwidthwide');
+    echo $OUTPUT->box(format_text($submission->data1, FORMAT_HTML, array('overflowdiv'=>true)), 'generalbox boxaligncenter boxwidthwide');
     if ($mode != 'single') {
         echo $OUTPUT->close_window_button();
     } else {
index 2109246..ba0c179 100755 (executable)
@@ -141,6 +141,6 @@ foreach ($datas as $data) {
 }
 
 echo "<br />";
-echo html_writer::table($table);
+echo html_writer::tag('div', html_writer::table($table), array('class'=>'no-overflow'));
 echo $OUTPUT->footer();
 
index 0de24fb..a325e9e 100644 (file)
         if(isset($savereturn) && $savereturn == 'saved') {
             if($feedback->page_after_submit) {
                 echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
-                echo format_text($feedback->page_after_submit);
+                echo format_text($feedback->page_after_submit, $feedback->page_after_submitformat, array('overflowdiv'=>true));
                 echo $OUTPUT->box_end();
             } else {
                 echo '<p align="center"><b><font color="green">'.get_string('entries_saved','feedback').'</font></b></p>';
index 6000f1e..a25946d 100644 (file)
         if(isset($savereturn) && $savereturn == 'saved') {
             if($feedback->page_after_submit) {
                 echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
-                echo format_text($feedback->page_after_submit);
+                echo format_text($feedback->page_after_submit, $feedback->page_after_submitformat, array('overflowdiv'=>true));
                 echo $OUTPUT->box_end();
             } else {
                 echo '<p align="center"><b><font color="green">'.get_string('entries_saved','feedback').'</font></b></p>';
index fb88cf2..5f446b9 100644 (file)
@@ -129,7 +129,7 @@ class feedback_item_label extends feedback_item_base {
         $item->presentationtrust = 1;
 
         $output = file_rewrite_pluginfile_urls($item->presentation, 'pluginfile.php', $context->id, 'mod_feedback', $filearea, $item->id);
-        echo format_text($output, FORMAT_HTML);
+        echo format_text($output, FORMAT_HTML, array('overflowdiv'=>true));
     }
 
     /**
index 0b73791..ac4fc9d 100644 (file)
@@ -168,7 +168,7 @@ echo $OUTPUT->box_end();
 if(has_capability('mod/feedback:edititems', $context)) {
     echo $OUTPUT->heading(get_string("page_after_submit", "feedback"), 4);
     echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
-    echo format_text($feedback->page_after_submit);
+    echo format_text($feedback->page_after_submit, $feedback->page_after_submitformat, array('overflowdiv'=>true));
     echo $OUTPUT->box_end();
 }
 
index 2425b45..5831720 100644 (file)
@@ -3121,13 +3121,11 @@ function forum_make_mail_post($course, $cm, $forum, $discussion, $post, $userfro
  * @return void
  */
 function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=false, $reply=false, $link=false,
-                          $footer="", $highlight="", $post_read=null, $dummyifcantsee=true, $istracked=null) {
-
+                          $footer="", $highlight="", $postisread=null, $dummyifcantsee=true, $istracked=null, $return=false) {
     global $USER, $CFG, $OUTPUT;
 
-    static $stredit, $strdelete, $strreply, $strparent, $strprune;
-    static $strpruneheading, $displaymode;
-    static $strmarkread, $strmarkunread;
+    // String cache
+    static $str;
 
     $modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
 
@@ -3137,7 +3135,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
 
     // caching
     if (!isset($cm->cache)) {
-        $cm->cache = new stdClass();
+        $cm->cache = new stdClass;
     }
 
     if (!isset($cm->cache->caps)) {
@@ -3157,103 +3155,72 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
         $cm->uservisible = coursemodule_visible_for_user($cm);
     }
 
+    if ($istracked && is_null($postisread)) {
+        $postisread = forum_tp_is_post_read($USER->id, $post);
+    }
+
     if (!forum_user_can_see_post($forum, $discussion, $post, NULL, $cm)) {
+        $output = '';
         if (!$dummyifcantsee) {
+            if ($return) {
+                return $output;
+            }
+            echo $output;
             return;
         }
-        echo '<a id="p'.$post->id.'"></a>';
-        echo '<table cellspacing="0" class="forumpost">';
-        echo '<tr class="header"><td class="picture left">';
-        //        print_user_picture($post->userid, $courseid, $post->picture);
-        echo '</td>';
+        $output .= html_writer::tag('a', '', array('id'=>'p'.$post->id));
+        $output .= html_writer::start_tag('div', array('class'=>'forumpost clearfix '.$forumpostclass));
+        $output .= html_writer::start_tag('div', array('class'=>'row header'));
+        $output .= html_writer::tag('div', '', array('class'=>'left picture')); // Picture
         if ($post->parent) {
-            echo '<td class="topic">';
+            $output .= html_writer::start_tag('div', array('class'=>'topic'));
         } else {
-            echo '<td class="topic starter">';
+            $output .= html_writer::start_tag('div', array('class'=>'topic starter'));
         }
-        echo '<div class="subject">'.get_string('forumsubjecthidden','forum').'</div>';
-        echo '<div class="author">';
-        print_string('forumauthorhidden','forum');
-        echo '</div></td></tr>';
+        $output .= html_writer::tag('div', get_string('forumsubjecthidden','forum'), array('class'=>'subject')); // Subject
+        $output .= html_writer::tag('div', get_string('forumauthorhidden','forum'), array('class'=>'author')); // author
+        $output .= html_writer::end_tag('div'); // row
+        $output .= html_writer::start_tag('div', array('class'=>'row'));
+        $output .= html_writer::tag('div', '&nbsp;', array('class'=>'left side')); // Groups
+        $output .= html_writer::tag('div', get_string('forumbodyhidden','forum'), array('class'=>'content')); // Content
+        $output .= html_writer::end_tag('div'); // row
+        $output .= html_writer::end_tag('div'); // forumpost
 
-        echo '<tr><td class="left side">';
-        echo '&nbsp;';
-
-        // Actual content
-
-        echo '</td><td class="content">'."\n";
-        echo get_string('forumbodyhidden','forum');
-        echo '</td></tr></table>';
+        if ($return) {
+            return $output;
+        }
+        echo $output;
         return;
     }
 
-    if (empty($stredit)) {
-        $stredit         = get_string('edit', 'forum');
-        $strdelete       = get_string('delete', 'forum');
-        $strreply        = get_string('reply', 'forum');
-        $strparent       = get_string('parent', 'forum');
-        $strpruneheading = get_string('pruneheading', 'forum');
-        $strprune        = get_string('prune', 'forum');
-        $displaymode     = get_user_preferences('forum_displaymode', $CFG->forum_displaymode);
-        $strmarkread     = get_string('markread', 'forum');
-        $strmarkunread   = get_string('markunread', 'forum');
-
-    }
-
-    $read_style = '';
-    // ignore trackign status if not tracked or tracked param missing
-    if ($istracked) {
-        if (is_null($post_read)) {
-            debugging('fetching post_read info');
-            $post_read = forum_tp_is_post_read($USER->id, $post);
-        }
-
-        if ($post_read) {
-            $read_style = ' read';
-        } else {
-            $read_style = ' unread';
-            echo '<a name="unread"></a>';
-        }
+    if (empty($str)) {
+        $str = new stdClass;
+        $str->edit         = get_string('edit', 'forum');
+        $str->delete       = get_string('delete', 'forum');
+        $str->reply        = get_string('reply', 'forum');
+        $str->parent       = get_string('parent', 'forum');
+        $str->pruneheading = get_string('pruneheading', 'forum');
+        $str->prune        = get_string('prune', 'forum');
+        $str->displaymode     = get_user_preferences('forum_displaymode', $CFG->forum_displaymode);
+        $str->markread     = get_string('markread', 'forum');
+        $str->markunread   = get_string('markunread', 'forum');
     }
 
-    echo '<a id="p'.$post->id.'"></a>';
-    echo '<table cellspacing="0" class="forumpost'.$read_style.'">';
+    $discussionlink = new moodle_url('/mod/forum/discuss.php', array('d'=>$post->discussion));
 
-    // Picture
-    $postuser = new stdClass();
+    // Build an object that represents the posting user
+    $postuser = new stdClass;
     $postuser->id        = $post->userid;
     $postuser->firstname = $post->firstname;
     $postuser->lastname  = $post->lastname;
     $postuser->imagealt  = $post->imagealt;
     $postuser->picture   = $post->picture;
     $postuser->email     = $post->email;
+    // Some handy things for later on
+    $postuser->fullname    = fullname($postuser, $cm->cache->caps['moodle/site:viewfullnames']);
+    $postuser->profilelink = new moodle_url('/user/view.php', array('id'=>$post->userid, 'course'=>$course->id));
 
-    echo '<tr class="header"><td class="picture left">';
-    echo $OUTPUT->user_picture($postuser, array('courseid'=>$course->id));
-    echo '</td>';
-
-    if ($post->parent) {
-        echo '<td class="topic">';
-    } else {
-        echo '<td class="topic starter">';
-    }
-
-    if (!empty($post->subjectnoformat)) {
-        echo '<div class="subject">'.$post->subject.'</div>';
-    } else {
-        echo '<div class="subject">'.format_string($post->subject).'</div>';
-    }
-
-    echo '<div class="author">';
-    $fullname = fullname($postuser, $cm->cache->caps['moodle/site:viewfullnames']);
-    $by = new stdClass();
-    $by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.
-                $post->userid.'&amp;course='.$course->id.'">'.$fullname.'</a>';
-    $by->date = userdate($post->modified);
-    print_string('bynameondate', 'forum', $by);
-    echo '</div></td></tr>';
-
-    echo '<tr><td class="left side">';
+    // Prepare the groups the posting user belongs to
     if (isset($cm->cache->usersgroups)) {
         $groups = array();
         if (isset($cm->cache->usersgroups[$post->userid])) {
@@ -3265,117 +3232,67 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
         $groups = groups_get_all_groups($course->id, $post->userid, $cm->groupingid);
     }
 
-    if ($groups) {
-        print_group_picture($groups, $course->id, false, false, true);
-    } else {
-        echo '&nbsp;';
-    }
-
-// Actual content
-
-    echo '</td><td class="content">'."\n";
-
+    // Prepare the attachements for the post, files then images
     list($attachments, $attachedimages) = forum_print_attachments($post, $cm, 'separateimages');
+    
+    // Determine if we need to shorten this post
+    $shortenpost = ($link && (strlen(strip_tags($post->message)) > $CFG->forum_longpost));
 
-    if ($attachments !== '') {
-        echo '<div class="attachments">';
-        echo $attachments;
-        echo '</div>';
-    }
-
-    $options = new stdClass();
-    $options->para    = false;
-    $options->trusted = $post->messagetrust;
-    $options->context = $modcontext;
-    if ($link and (strlen(strip_tags($post->message)) > $CFG->forum_longpost)) {
-        // Print shortened version
-        echo format_text(forum_shorten_post($post->message), $post->messageformat, $options, $course->id);
-        $numwords = count_words(strip_tags($post->message));
-        echo '<div class="posting shortenedpost"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
-        echo get_string('readtherest', 'forum');
-        echo '</a> ('.get_string('numwords', '', $numwords).')...</div>';
-    } else {
-        // Print whole message
-        echo '<div class="posting fullpost">';
-        if ($highlight) {
-            echo highlight($highlight, format_text($post->message, $post->messageformat, $options, $course->id));
-        } else {
-            echo format_text($post->message, $post->messageformat, $options, $course->id);
-        }
-        echo '</div>';
-        echo $attachedimages;
-    }
-
-
-// Commands
 
+    // Prepare an array of commands
     $commands = array();
 
-    if ($istracked) {
-        // SPECIAL CASE: The front page can display a news item post to non-logged in users.
-        // Don't display the mark read / unread controls in this case.
-        if ($CFG->forum_usermarksread and isloggedin()) {
-            if ($post_read) {
-                $mcmd = '&amp;mark=unread&amp;postid='.$post->id;
-                $mtxt = $strmarkunread;
-            } else {
-                $mcmd = '&amp;mark=read&amp;postid='.$post->id;
-                $mtxt = $strmarkread;
-            }
-            if ($displaymode == FORUM_MODE_THREADED) {
-                $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
-                              $post->discussion.'&amp;parent='.$post->id.$mcmd.'">'.$mtxt.'</a>';
-            } else {
-                $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
-                              $post->discussion.$mcmd.'#p'.$post->id.'">'.$mtxt.'</a>';
-            }
+    // SPECIAL CASE: The front page can display a news item post to non-logged in users.
+    // Don't display the mark read / unread controls in this case.
+    if ($istracked && $CFG->forum_usermarksread && isloggedin()) {
+        $url = new moodle_url($discussionlink, array('postid'=>$post->id, 'mark'=>'unread'));
+        $text = $str->markunread;
+        if (!$postisread) {
+            $url->param('mark', 'read');
+            $text = $str->markread;
+        }
+        if ($str->displaymode == FORUM_MODE_THREADED) {
+            $url->param('parent', $post->parent);
+        } else {
+            $url->set_anchor('p'.$post->id);
         }
+        $commands[] = array('url'=>$url, 'text'=>$text);
     }
 
-    if ($post->parent) {  // Zoom in to the parent specifically
-        if ($displaymode == FORUM_MODE_THREADED) {
-            $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
-                      $post->discussion.'&amp;parent='.$post->parent.'">'.$strparent.'</a>';
+    // Zoom in to the parent specifically
+    if ($post->parent) {  
+        $url = new moodle_url($discussionlink);
+        if ($str->displaymode == FORUM_MODE_THREADED) {
+            $url->param('parent', $post->parent);
         } else {
-            $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
-                      $post->discussion.'#p'.$post->parent.'">'.$strparent.'</a>';
+            $url->set_anchor('p'.$post->id);
         }
+        $commands[] = array('url'=>$url, 'text'=>$str->parent);
     }
 
-    $age = time() - $post->created;
     // Hack for allow to edit news posts those are not displayed yet until they are displayed
-    if (!$post->parent and $forum->type == 'news' and $discussion->timestart > time()) {
+    $age = time() - $post->created;
+    if (!$post->parent && $forum->type == 'news' && $discussion->timestart > time()) {
         $age = 0;
     }
-    $editanypost = $cm->cache->caps['mod/forum:editanypost'];
-
-    if ($ownpost or $editanypost) {
-        if (($age < $CFG->maxeditingtime) or $editanypost) {
-            $commands[] =  '<a href="'.$CFG->wwwroot.'/mod/forum/post.php?edit='.$post->id.'">'.$stredit.'</a>';
-        }
+    if (($ownpost && $age < $CFG->maxeditingtime) || $cm->cache->caps['mod/forum:editanypost']) {
+        $commands[] = array('url'=>new moodle_url('/mod/forum/post.php', array('edit'=>$post->id)), 'text'=>$str->edit);
     }
 
-    if ($cm->cache->caps['mod/forum:splitdiscussions']
-                && $post->parent && $forum->type != 'single') {
-
-        $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/post.php?prune='.$post->id.
-                      '" title="'.$strpruneheading.'">'.$strprune.'</a>';
+    if ($cm->cache->caps['mod/forum:splitdiscussions'] && $post->parent && $forum->type != 'single') {
+        $commands[] = array('url'=>new moodle_url('/mod/forum/post.php', array('prune'=>$post->id)), 'text'=>$str->prune, 'title'=>$str->pruneheading);
     }
 
-    if (($ownpost and $age < $CFG->maxeditingtime
-                and $cm->cache->caps['mod/forum:deleteownpost'])
-                or $cm->cache->caps['mod/forum:deleteanypost']) {
-        $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/post.php?delete='.$post->id.'">'.$strdelete.'</a>';
+    if (($ownpost && $age < $CFG->maxeditingtime && $cm->cache->caps['mod/forum:deleteownpost']) || $cm->cache->caps['mod/forum:deleteanypost']) {
+        $commands[] = array('url'=>new moodle_url('/mod/forum/post.php', array('delete'=>$post->id)), 'text'=>$str->delete);
     }
 
     if ($reply) {
-        $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/post.php?reply='.$post->id.'">'.$strreply.'</a>';
+        $commands[] = array('url'=>new moodle_url('/mod/forum/post.php', array('reply'=>$post->id)), 'text'=>$str->reply);
     }
 
     if ($cm->cache->caps['mod/forum:exportpost'] || ($ownpost && $cm->cache->caps['mod/forum:exportownpost'])) {
-        $p = array(
-            'postid' => $post->id,
-        );
+        $p = array('postid' => $post->id);
         require_once($CFG->libdir.'/portfoliolib.php');
         $button = new portfolio_add_button();
         $button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id), '/mod/forum/locallib.php');
@@ -3390,39 +3307,151 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
             $commands[] = $porfoliohtml;
         }
     }
+    // Finished building commands
 
-    echo '<div class="commands">';
-    echo implode(' | ', $commands);
-    echo '</div>';
 
+    // Begin output
+    
+    if ($istracked) {
+        if ($postisread) {
+            $forumpostclass = 'read';
+        } else {
+            $forumpostclass = ' unread';
+            $output .= html_writer::tag('a', '', array('name'=>'unread'));
+        }
+    } else {
+        // ignore trackign status if not tracked or tracked param missing
+        $forumpostclass = '';
+    }
+
+    $topicclass = '';
+    if (empty($post->parent)) {
+        $topicclass = ' firstpost starter';
+    }
+
+    $output  = '';
+    $output .= html_writer::tag('a', '', array('id'=>'p'.$post->id));
+    $output .= html_writer::start_tag('div', array('class'=>'forumpost clearfix '.$forumpostclass.$topicclass));
+    $output .= html_writer::start_tag('div', array('class'=>'row header clearfix'));
+    $output .= html_writer::start_tag('div', array('class'=>'left picture'));
+    $output .= $OUTPUT->user_picture($postuser, array('courseid'=>$course->id));
+    $output .= html_writer::end_tag('div');
+
+    
+    $output .= html_writer::start_tag('div', array('class'=>'topic'.$topicclass));
+
+    $postsubject = $post->subject;
+    if (empty($post->subjectnoformat)) {
+        $postsubject = format_string($postsubject);
+    }
+    $output .= html_writer::tag('div', $postsubject, array('class'=>'subject'));
+    
+    $by = new stdClass();
+    $by->name = html_writer::link($postuser->profilelink, $postuser->fullname);
+    $by->date = userdate($post->modified);
+    $output .= html_writer::tag('div', get_string('bynameondate', 'forum', $by), array('class'=>'author'));
+
+    $output .= html_writer::end_tag('div'); //topic
+    $output .= html_writer::end_tag('div'); //row
 
-// Ratings
+    $output .= html_writer::start_tag('div', array('class'=>'row maincontent clearfix'));
+    $output .= html_writer::start_tag('div', array('class'=>'left'));
+
+    $groupoutput = '';
+    if ($groups) {
+        $groupoutput = print_group_picture($groups, $course->id, false, true, true);
+    }
+    if (empty($groupoutput)) {
+        $groupoutput = '&nbsp;';
+    }
+    $output .= html_writer::tag('div', $groupoutput, array('class'=>'grouppictures'));
+
+    $output .= html_writer::end_tag('div'); //left side
+    $output .= html_writer::start_tag('div', array('class'=>'no-overflow'));
+    $output .= html_writer::start_tag('div', array('class'=>'content'));
+    if (!empty($attachments)) {
+        $output .= html_writer::tag('div', $attachments, array('class'=>'attachments'));
+    }
+
+    $options = new stdClass;
+    $options->para    = false;
+    $options->trusted = $post->messagetrust;
+    $options->context = $modcontext;
+    if ($shortenpost) {
+        // Prepare shortened version
+        $postclass    = 'shortenedpost';
+        $postcontent  = format_text(forum_shorten_post($post->message), $post->messageformat, $options, $course->id);
+        $postcontent .= html_writer::link($discussionlink, get_string('readtherest', 'forum'));
+        $postcontent .= html_writer::tag('span', '('.get_string('numwords', 'moodle', count_words(strip_tags($post->message))).')...', array('class'=>'post-word-count'));
+    } else {
+        // Prepare whole post
+        $postclass    = 'fullpost';
+        $postcontent  = format_text($post->message, $post->messageformat, $options, $course->id);
+        if (!empty($highlight)) {
+            $postcontent = highlight($highlight, $postcontent);
+        }
+        $postcontent .= html_writer::tag('div', $attachedimages, array('class'=>'attachedimages'));
+    }
+    // Output the post content
+    $output .= html_writer::tag('div', $postcontent, array('class'=>'posting '.$postclass));
+    $output .= html_writer::end_tag('div'); // Content
+    $output .= html_writer::end_tag('div'); // Content mask
+    $output .= html_writer::end_tag('div'); // Row
+
+    $output .= html_writer::start_tag('div', array('class'=>'row side'));
+    $output .= html_writer::tag('div','&nbsp;', array('class'=>'left'));
+    $output .= html_writer::start_tag('div', array('class'=>'options clearfix'));
+
+    // Output ratings
     if (!empty($post->rating)) {
-        echo html_writer::tag('div', $OUTPUT->render($post->rating), array('class'=>'forum-post-rating'));
+        $output .= html_writer::tag('div', $OUTPUT->render($post->rating), array('class'=>'forum-post-rating'));
     }
 
-// Link to post if required
+    // Output the commands
+    $commandhtml = array();
+    foreach ($commands as $command) {
+        if (is_array($command)) {
+            $commandhtml[] = html_writer::link($command['url'], $command['text']);
+        } else {
+            $commandhtml[] = $command;
+        }
+    }
+    $output .= html_writer::tag('div', implode(' | ', $commandhtml), array('class'=>'commands'));
 
+    // Output link to post if required
     if ($link) {
-        echo '<div class="link">';
         if ($post->replies == 1) {
             $replystring = get_string('repliesone', 'forum', $post->replies);
         } else {
             $replystring = get_string('repliesmany', 'forum', $post->replies);
         }
-        echo '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">'.
-             get_string('discussthistopic', 'forum').'</a>&nbsp;('.$replystring.')';
-        echo '</div>';
+
+        $output .= html_writer::start_tag('div', array('class'=>'link'));
+        $output .= html_writer::link($discussionlink, get_string('discussthistopic', 'forum'));
+        $output .= '&nbsp;('.$replystring.')';
+        $output .= html_writer::end_tag('div'); // link
     }
 
+    // Output footer if required
     if ($footer) {
-        echo '<div class="footer">'.$footer.'</div>';
+        $output .= html_writer::tag('div', $footer, array('class'=>'footer'));
     }
-    echo '</td></tr></table>'."\n\n";
 
-    if ($istracked && !$CFG->forum_usermarksread && !$post_read) {
+    // Close remaining open divs
+    $output .= html_writer::end_tag('div'); // content
+    $output .= html_writer::end_tag('div'); // row
+    $output .= html_writer::end_tag('div'); // forumpost
+
+    // Mark the forum post as read if required
+    if ($istracked && !$CFG->forum_usermarksread && !$postisread) {
         forum_tp_mark_post_read($USER->id, $post, $forum->id);
     }
+
+    if ($return) {
+        return $output;
+    }
+    echo $output;
+    return;
 }
 
 /**
index 11ce337..b952606 100644 (file)
@@ -1,14 +1,54 @@
-/** General Styles **/
-.forumpost {border-width:1px;border-style:solid;border-collapse:separate;margin-top: 10px;}
-.forumpost .topic {padding: 4px;border-style:solid;border-width: 0px;border-bottom-width: 1px;}
-.forumpost .commands,
-.forumpost .ratings,
-.forumpost .attachments,
-.forumpost .footer,
-.forumpost .link,
+/**
+ * Structure of a forum post
+ * div.forumpost(.read.unread)
+ *     div.header.row
+ *         div.picture.left
+ *         div.topic(.starter)
+ *             div.subject
+ *             div.author
+ *     div.row
+ *         div.side.left
+ *         div.content-mask
+ *             div.content
+ *                 div.attachments
+ *                 div.posting(.shortenedpost|.fullpost)
+ *                     // message
+ *                 div.attachedimages
+ *                     // attachedimages
+ *     div.row
+ *         div.left
+ *         div.options
+ *             div.commands
+ *             div.forum-post-rating
+ *             div.link
+ *             div.footer
+ */
+
+.forumpost {display: block;position:relative;margin:0 0 1em 0;padding:0;border:1px solid #000;max-width:100%;}
+.forumpost .row {width:100%;position:relative;}
+.forumpost .row .left {float:left;width: 43px;overflow:hidden;}
+.forumpost .row .left .grouppictures a {text-align:center;display:block;margin:6px 2px 0 2px;}
+.forumpost .row .left .grouppicture {width:20px;height:20px;}
+.forumpost .row .topic,
+.forumpost .row .content-mask,
+.forumpost .row .options {margin-left:43px;}
+.forumpost .picture img {margin:4px;}
+.forumpost .options .commands,
+.forumpost .content .attachments,
+.forumpost .options .footer,
+.forumpost .options .link {text-align:right;}
+.forumpost .options .forum-post-rating {float:left;}
+.forumpost .content .posting {overflow:auto;max-width:100%;}
+.forumpost .content .attachedimages img {max-width:100%;}
+
+.dir-rtl .forumpost .row .topic,
+.dir-rtl .forumpost .row .content-mask,
+.dir-rtl .forumpost .row .options {margin-right:43px;margin-left:0;}
+.dir-rtl .forumpost .row .left {float:right;}
+.dir-rtl.path-mod-forum .indent {margin-right:30px;margin-left:0;}
+
 .path-mod-forum .forumolddiscuss,
 #page-mod-forum-search .c0 {text-align:right;}
-.forumpost .left {width: 35px;vertical-align: top;}
 .path-mod-forum .indent {margin-left: 30px;}
 .path-mod-forum .forumheaderlist {width: 100%;border-width:1px;border-style:solid;border-collapse:separate;margin-top: 10px;}
 .path-mod-forum .forumheaderlist td {border-width:1px 0px 0px 1px;border-style:solid;}
@@ -39,7 +79,6 @@
 #page-mod-forum-view .groupmenu {float: left;text-align:left;white-space: nowrap;}
 #page-mod-forum-index .subscription,
 #page-mod-forum-view .subscription {float: right;text-align:right;white-space: nowrap;margin: 5px 0;}
-#page-mod-forum-view.forumtype-blog  table.forumpost {width:100%;}
 
 /** Styles for search.php */
 #page-mod-forum-search .introcontent {padding: 15px;font-weight:bold;}
@@ -48,6 +87,4 @@
 #page-mod-forum-view .unread img {margin-left: 5px;}
 
 /** Unknown Styles ??? */
-#user-view .forumpost,
-.course .forumpost {width: 100%;}
 #email .unsubscribelink {margin-top:20px;}
index bcecc06..6799d9a 100644 (file)
@@ -845,7 +845,8 @@ function glossary_print_entry_default ($entry, $glossary, $cm) {
     $options = new stdClass();
     $options->para = false;
     $options->trusted = $entry->definitiontrust;
-    $options->context = $context; 
+    $options->context = $context;
+    $options->overflowdiv = true;
     $definition = format_text($definition, $entry->definitionformat, $options);
     echo ($definition);
     echo '<br /><br />';
@@ -873,22 +874,19 @@ function  glossary_print_entry_concept($entry, $return=false) {
 
 /**
  *
- * @global object
- * @global array
+ * @global moodle_database DB
  * @param object $entry
  * @param object $glossary
  * @param object $cm
  */
 function glossary_print_entry_definition($entry, $glossary, $cm) {
-    global $DB;
+    global $DB, $GLOSSARY_EXCLUDECONCEPTS;
 
     $definition = $entry->definition;
 
-    global $GLOSSARY_EXCLUDECONCEPTS;
-
     //Calculate all the strings to be no-linked
     //First, the concept
-    $GLOSSARY_EXCLUDECONCEPTS=array($entry->concept);
+    $GLOSSARY_EXCLUDECONCEPTS = array($entry->concept);
     //Now the aliases
     if ( $aliases = $DB->get_records('glossary_alias', array('entryid'=>$entry->id))) {
         foreach ($aliases as $alias) {
@@ -902,7 +900,8 @@ function glossary_print_entry_definition($entry, $glossary, $cm) {
     $options = new stdClass();
     $options->para = false;
     $options->trusted = $entry->definitiontrust;
-    $options->context = $context; 
+    $options->context = $context;
+    $options->overflowdiv = true;
     $text = format_text($definition, $entry->definitionformat, $options);
 
     // Stop excluding concepts from autolinking
index bdd76c3..7391081 100644 (file)
@@ -391,6 +391,7 @@ class glossary_entry_portfolio_caller extends portfolio_module_caller_base {
 
         $entry->definition = portfolio_rewrite_pluginfile_urls($entry->definition, $context->id, 'mod_glossary', 'entry', $entry->id, $format);
 
+        $options->overflowdiv = true;
         $output .= format_text($entry->definition, $entry->definitionformat, $options);
         if (isset($entry->footer)) {
             $output .= $entry->footer;
index 57ba309..35b8982 100644 (file)
@@ -2020,6 +2020,7 @@ abstract class lesson_page extends lesson_base {
                     $options = new stdClass;
                     $options->noclean = true;
                     $options->para = true;
+                    $options->overflowdiv = true;
                     $result->feedback = $OUTPUT->box(format_text($this->get_contents(), $this->properties->contentsformat, $options), 'generalbox boxaligncenter');
                     $result->feedback .= '<div class="correctanswer generalbox"><em>'.get_string("youranswer", "lesson").'</em> : '.$result->studentanswer; // already in clean html
                     $result->feedback .= $OUTPUT->box($result->response, $class); // already conerted to HTML
index c411247..9829ad0 100644 (file)
@@ -361,6 +361,7 @@ class lesson_page_type_multichoice extends lesson_page {
         $answers = $this->get_used_answers();
         $formattextdefoptions = new stdClass;
         $formattextdefoptions->para = false;  //I'll use it widely in this page
+
         foreach ($answers as $answer) {
             if ($this->properties->qoption) {
                 if ($useranswer == NULL) {
index 34eeb3a..23d7322 100644 (file)
@@ -384,6 +384,7 @@ if ($action === 'delete') {
 
     $formattextdefoptions = new stdClass;
     $formattextdefoptions->para = false;  //I'll use it widely in this page
+    $formattextdefoptions->overflowdiv = true;
 
     $userid = optional_param('userid', NULL, PARAM_INT); // if empty, then will display the general detailed view
     $try    = optional_param('try', NULL, PARAM_INT);
@@ -442,6 +443,7 @@ if ($action === 'delete') {
 
         $options = new stdClass;
         $options->noclean = true;
+        $options->overflowdiv = true;
         $answerpage->contents = format_text($page->contents, $page->contentsformat, $options);
 
         $answerpage->qtype = $qtypes[$page->qtype].$page->option_description_string();
index 8b888dd..6cc4e2c 100644 (file)
@@ -91,7 +91,7 @@ if (!empty($options['printintro'])) {
 }
 
 $content = file_rewrite_pluginfile_urls($page->content, 'pluginfile.php', $context->id, 'mod_page', 'content', $page->revision);
-$formatoptions = (object)array('noclean'=>true);
+$formatoptions = array('noclean'=>true, 'overflowdiv'=>true);
 $content = format_text($content, $page->contentformat, $formatoptions, $course->id);
 echo $OUTPUT->box($content, "generalbox center clearfix");
 
index 33ff1c5..710a462 100644 (file)
@@ -44,6 +44,7 @@
 
     require_login($course, false, $cm);
     $context = get_context_instance(CONTEXT_MODULE, $cm->id);
+    $PAGE->set_pagelayout('report');
 
     $reportlist = quiz_report_list($context);
     if (count($reportlist)==0){
index f3a4064..5d858ad 100644 (file)
@@ -402,14 +402,14 @@ class quiz_overview_report extends quiz_default_report {
                      $imageurl = "{$CFG->wwwroot}/mod/quiz/report/overview/overviewgraph.php?id={$quiz->id}&amp;groupid=$currentgroup";
                      $graphname = get_string('overviewreportgraphgroup', 'quiz_overview', groups_get_group_name($currentgroup));
                      echo $OUTPUT->heading($graphname);
-                     echo '<div class="graph flexible-wrap"><img src="'.$imageurl.'" alt="'.$graphname.'" /></div>';
+                     echo '<div class="graph"><img src="'.$imageurl.'" alt="'.$graphname.'" /></div>';
                 }
             }
             if ($DB->record_exists('quiz_grades', array('quiz'=> $quiz->id))) {
                  $graphname = get_string('overviewreportgraph', 'quiz_overview');
                  $imageurl = $CFG->wwwroot.'/mod/quiz/report/overview/overviewgraph.php?id='.$quiz->id;
                  echo $OUTPUT->heading($graphname);
-                 echo '<div class="graph flexible-wrap"><img src="'.$imageurl.'" alt="'.$graphname.'" /></div>';
+                 echo '<div class="graph"><img src="'.$imageurl.'" alt="'.$graphname.'" /></div>';
             }
         }
         return true;
index b9fdf11..2ff7d64 100644 (file)
@@ -230,7 +230,7 @@ class quiz_statistics_report extends quiz_default_report {
             echo $OUTPUT->heading(get_string('questioninformation', 'quiz_statistics'));
             echo html_writer::table($questioninfotable);
 
-            echo $OUTPUT->box(format_text($question->questiontext, $question->questiontextformat).$actions, 'boxaligncenter generalbox boxwidthnormal mdl-align');
+            echo $OUTPUT->box(format_text($question->questiontext, $question->questiontextformat, array('overflowdiv'=>true)).$actions, 'boxaligncenter generalbox boxwidthnormal mdl-align');
 
             echo $OUTPUT->heading(get_string('questionstatistics', 'quiz_statistics'));
             echo html_writer::table($questionstatstable);
@@ -356,7 +356,7 @@ class quiz_statistics_report extends quiz_default_report {
         $quizinformationtable = new html_table();
         $quizinformationtable->align = array('center', 'center');
         $quizinformationtable->width = '60%';
-        $quizinformationtable->class = 'generaltable titlesleft';
+        $quizinformationtable->attributes['class'] = 'generaltable titlesleft boxaligncenter';
         $quizinformationtable->data = array();
         $quizinformationtable->data[] = array(get_string('quizname', 'quiz_statistics'), $quiz->name);
         $quizinformationtable->data[] = array(get_string('coursename', 'quiz_statistics'), $course->fullname);
index 5f0cba7..47933ff 100644 (file)
@@ -1,4 +1,3 @@
-.path-mod-quiz #tablecontainer .flexible-wrap {overflow:auto;}
 .path-mod-quiz .graph.flexible-wrap {text-align:center;overflow:auto;}
 
 #page-mod-quiz-comment #manualgradingform,
index 2fd6d8a..67c9f24 100644 (file)
@@ -45,6 +45,10 @@ $version = optional_param('version', -1, PARAM_INT);
 $attachments = optional_param('attachments', 0, PARAM_INT);
 $deleteuploads = optional_param('deleteuploads', 0, PARAM_RAW);
 
+if (is_array($newcontent)) {
+    $newcontent = $newcontent['text'];
+}
+
 if (!$page = wiki_get_page($pageid)) {
     print_error('incorrectpageid', 'wiki');
 }
index 399dc1a..cbb8442 100644 (file)
@@ -1190,7 +1190,7 @@ function wiki_print_page_content($page, $context, $subwikiid) {
         }
     }
     $html = file_rewrite_pluginfile_urls($page->cachedcontent, 'pluginfile.php', $context->id, 'mod_wiki', 'attachments', $subwikiid);
-    $html = format_text($html);
+    $html = format_text($html, FORMAT_MOODLE, array('overflowdiv'=>true));
     echo $OUTPUT->box($html);
 
     if (!empty($CFG->usetags)) {
index fe0a4b6..720d11a 100644 (file)
@@ -589,7 +589,7 @@ class page_wiki_edit extends page_wiki {
             file_save_draft_area_files($this->attachments, $context->id, 'mod_wiki', 'attachments', $this->subwiki->id);
             return null;
             //return wiki_process_attachments($this->attachments, $this->deleteuploads, $context->id, 'mod_wiki', 'attachments', $this->subwiki->id);
-            }
+        }
     }
 }
 
@@ -694,7 +694,7 @@ class page_wiki_comments extends page_wiki {
                 $t->data[] = $row3;
             }
 
-            echo html_writer::table($t);
+            echo html_writer::tag('div', html_writer::table($t), array('class'=>'no-overflow'));
 
         }
     }
@@ -1035,7 +1035,7 @@ class page_wiki_preview extends page_wiki_edit {
             $parseroutput = wiki_parse_content($data->contentformat, $data->newcontent_editor['text'], $options);
             $this->set_newcontent($data->newcontent_editor['text']);
             echo $OUTPUT->notification(get_string('previewwarning', 'wiki'), 'notifyproblem wiki_info');
-            $content = format_text($parseroutput['parsed_text'], FORMAT_HTML);
+            $content = format_text($parseroutput['parsed_text'], FORMAT_HTML, array('overflowdiv'=>true));
             echo $OUTPUT->box($content, 'generalbox wiki_previewbox');
             $content = $this->newcontent;
         }
@@ -2080,7 +2080,7 @@ class page_wiki_viewversion extends page_wiki {
             print_container($heading, false, 'mdl-align wiki_modifieduser wiki_headingtime');
             $options = array('swid' => $this->subwiki->id, 'pretty_print' => true, 'pageid' => $this->page->id);
             $parseroutput = wiki_parse_content($pageversion->contentformat, $pageversion->content, $options);
-            $content = print_container(format_text($parseroutput['parsed_text'], FORMAT_HTML), false, '', '', true);
+            $content = print_container(format_text($parseroutput['parsed_text'], FORMAT_HTML, array('overflowdiv'=>true)), false, '', '', true);
             echo $OUTPUT->box($content, 'generalbox wiki_contentbox');
 
         } else {
index 5f7fac9..1460ea5 100644 (file)
@@ -67,6 +67,7 @@ class mod_wiki_renderer extends plugin_renderer_base {
             $table->colclasses = array('wikisearchresults');
             $html .= html_writer::table($table);
         }
+        $html = html_writer::tag('div', $html, array('class'=>'no-overflow'));
         return $this->output->container($html);
     }
 
index ea2a270..e747b2c 100644 (file)
@@ -178,7 +178,7 @@ if (trim($workshop->instructreviewers)) {
     $instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id,
         'mod_workshop', 'instructreviewers', 0, workshop::instruction_editors_options($PAGE->context));
     print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'));
-    echo $output->box(format_text($instructions, $workshop->instructreviewersformat), array('generalbox', 'instructions'));
+    echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
     print_collapsible_region_end();
 }
 
index 63abd3f..aee2e41 100644 (file)
@@ -115,7 +115,7 @@ if (trim($workshop->instructreviewers)) {
     $instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id,
         'mod_workshop', 'instructreviewers', 0, workshop::instruction_editors_options($PAGE->context));
     print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'));
-    echo $output->box(format_text($instructions, $workshop->instructreviewersformat), array('generalbox', 'instructions'));
+    echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
     print_collapsible_region_end();
 }
 
index 8ad3cc1..70870e8 100644 (file)
@@ -179,7 +179,7 @@ if (trim($workshop->instructauthors)) {
     $instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id,
         'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
     print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
-    echo $output->box(format_text($instructions, $workshop->instructauthorsformat), array('generalbox', 'instructions'));
+    echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
     print_collapsible_region_end();
 }
 
index 9a282e8..1b1333e 100644 (file)
@@ -124,7 +124,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
 
         $o .= $this->output->container_end(); // end of header
 
-        $content = format_text($submission->content, $submission->contentformat);
+        $content = format_text($submission->content, $submission->contentformat, array('overflowdiv'=>true));
         $content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
                                                         'mod_workshop', 'submission_content', $submission->id);
         $o .= $this->output->container($content, 'content');
@@ -215,7 +215,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
         $o .= $this->output->heading(format_string($example->title), 3, 'title');
         $o .= $this->output->container_end(); // end of header
 
-        $content = format_text($example->content, $example->contentformat);
+        $content = format_text($example->content, $example->contentformat, array('overflowdiv'=>true));
         $content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
                                                         'mod_workshop', 'submission_content', $example->id);
         $o .= $this->output->container($content, 'content');
index 51f7314..a0766e6 100644 (file)
@@ -223,7 +223,7 @@ if (trim($workshop->instructauthors)) {
     $instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id,
         'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
     print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
-    echo $output->box(format_text($instructions, $workshop->instructauthorsformat), array('generalbox', 'instructions'));
+    echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
     print_collapsible_region_end();
 }
 
index 97aee6c..1eefa0b 100644 (file)
@@ -100,7 +100,7 @@ case workshop::PHASE_SUBMISSION:
         $instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id,
             'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
         print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
-        echo $output->box(format_text($instructions, $workshop->instructauthorsformat), array('generalbox', 'instructions'));
+        echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
         print_collapsible_region_end();
     }
 
@@ -241,7 +241,7 @@ case workshop::PHASE_ASSESSMENT:
         $instructions = file_rewrite_pluginfile_urls($workshop->instructreviewers, 'pluginfile.php', $PAGE->context->id,
             'mod_workshop', 'instructreviewers', 0, workshop::instruction_editors_options($PAGE->context));
         print_collapsible_region_start('', 'workshop-viewlet-instructreviewers', get_string('instructreviewers', 'workshop'));
-        echo $output->box(format_text($instructions, $workshop->instructreviewersformat), array('generalbox', 'instructions'));
+        echo $output->box(format_text($instructions, $workshop->instructreviewersformat, array('overflowdiv'=>true)), array('generalbox', 'instructions'));
         print_collapsible_region_end();
     }
 
index 18fd077..51df239 100644 (file)
@@ -196,7 +196,7 @@ function note_print($note, $detail = NOTES_SHOW_FULL) {
     // print note content
     if ($detail & NOTES_SHOW_BODY) {
         echo '<div class="content">';
-        echo format_text($note->content, $note->format);
+        echo format_text($note->content, $note->format, array('overflowdiv'=>true));
         echo '</div>';
     }
 
index b754ee5..ba51bbb 100644 (file)
@@ -1159,6 +1159,7 @@ class question_bank_view {
     protected function print_category_info($category) {
         $formatoptions = new stdClass;
         $formatoptions->noclean = true;
+        $formatoptions->overflowdiv = true;
         echo '<div class="boxaligncenter">';
         echo format_text($category->info, FORMAT_MOODLE, $formatoptions, $this->course->id);
         echo "</div>\n";
index 6df476a..74c788e 100644 (file)
@@ -116,6 +116,7 @@ function tag_print_description_box($tag_object, $return=false) {
     if (!empty($tag_object->description)) {
         $options = new stdClass();
         $options->para = false;
+        $options->overflowdiv = true;
         $tag_object->description = file_rewrite_pluginfile_urls($tag_object->description, 'pluginfile.php', get_context_instance(CONTEXT_SYSTEM)->id, 'tag', 'description', $tag_object->id);
         $output .= format_text($tag_object->description, $tag_object->descriptionformat, $options);
     }
index c97be59..ac2f64c 100644 (file)
@@ -121,6 +121,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
     ),
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre'
+    ),
 );
 
 $THEME->rendererfactory = 'theme_overridden_renderer_factory';
diff --git a/theme/anomaly/layout/report.php b/theme/anomaly/layout/report.php
new file mode 100644 (file)
index 0000000..686a996
--- /dev/null
@@ -0,0 +1,80 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
+$showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
+
+
+$bodyclasses = array();
+if (!$showsidepre) {
+    $bodyclasses[] = 'content-only';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page">
+<?php if ($hasheading || $hasnavbar) { ?>
+    <div id="page-header">
+        <?php if ($hasheading) { ?>
+        <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
+        <div class="headermenu"><?php
+            echo $OUTPUT->login_info();
+            if (!empty($PAGE->layout_options['langmenu'])) {
+                echo $OUTPUT->lang_menu();
+            }
+            echo $PAGE->headingmenu
+        ?></div><?php } ?>
+        <?php if ($hasnavbar) { ?>
+            <div class="navbar clearfix">
+                <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                <div class="navbutton"><?php echo $PAGE->button; ?></div>
+            </div>
+        <?php } ?>
+    </div>
+<?php } ?>
+<!-- END OF HEADER -->
+
+    <div id="page-content" class="clearfix">
+        <div id="report-main-content">
+            <div class="region-content">
+                <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+            </div>
+        </div>
+        <?php if ($hassidepre) { ?>
+        <div id="report-region-wrap">
+            <div id="report-region-pre" class="block-region">
+                <div class="region-content">
+                    <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+                </div>
+            </div>
+        </div>
+        <?php } ?>
+    </div>
+
+<!-- START OF FOOTER -->
+    <?php if ($hasfooter) { ?>
+    <div id="page-footer" class="clearfix">
+        <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+        <?php
+        echo $OUTPUT->login_info();
+        echo $OUTPUT->home_link();
+        echo $OUTPUT->standard_footer_html();
+        ?>
+        <div class="rounded-corner bottom-left"></div>
+        <div class="rounded-corner bottom-right"></div>
+    </div>
+    <?php } ?>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index 9b7e5a0..818985e 100644 (file)
@@ -167,6 +167,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
     ),
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-post'),
+        'defaultregion' => 'side-post',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
diff --git a/theme/arialist/layout/report.php b/theme/arialist/layout/report.php
new file mode 100644 (file)
index 0000000..2ddb330
--- /dev/null
@@ -0,0 +1,119 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
+$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
+
+$custommenu = $OUTPUT->custom_menu();
+$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+
+$bodyclasses = array();
+if ($showsidepost) {
+    $bodyclasses[] = 'side-post-only';
+} else if (!$showsidepost) {
+    $bodyclasses[] = 'content-only';
+}
+if ($hascustommenu) {
+    $bodyclasses[] = 'has-custom-menu';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<?php if ($hascustommenu) { ?>
+<div id="custommenu"><?php echo $custommenu; ?></div>
+<?php } ?>
+
+<div id="page">
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+       <div id="wrapper" class="clearfix">
+
+<!-- START OF HEADER -->
+
+            <div id="page-header" class="inside">
+                <div id="page-header-wrapper" class="wrapper clearfix">
+                    <?php if ($hasheading) { ?>
+                        <div id="header-left">
+                            <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1>
+                        </div>
+                        <div class="headermenu"><?php
+                            echo $OUTPUT->login_info();
+                                if (!empty($PAGE->layout_options['langmenu'])) {
+                                    echo $OUTPUT->lang_menu();
+                                }
+                            echo $PAGE->headingmenu ?>
+                        </div>
+                    <?php } ?>
+                </div>
+            </div>
+            <?php if ($hasnavbar) { ?>
+                <div class="navbar">
+                    <div class="wrapper clearfix">
+                        <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                        <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+                    </div>
+                </div>
+            <?php } ?>
+
+<!-- END OF HEADER -->
+
+    <?php } ?>
+
+
+<!-- START OF CONTENT -->
+
+            <div id="page-content-wrapper" class="wrapper clearfix">
+                <div id="page-content" class="clearfix">
+                    <div id="report-main-content">
+                        <div class="region-content">
+                            <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+                        </div>
+                    </div>
+                    <?php if ($hassidepost) { ?>
+                    <div id="report-region-wrap">
+                        <div id="report-region-pre" class="block-region">
+                            <div class="region-content">
+                                <?php echo $OUTPUT->blocks_for_region('side-post') ?>
+                            </div>
+                        </div>
+                    </div>
+                    <?php } ?>
+                </div>
+            </div>
+
+        </div>
+
+<!-- END OF CONTENT -->
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+        </div>
+    <?php } ?>
+
+<!-- START OF FOOTER -->
+
+        <?php if ($hasfooter) { ?>
+            <div id="page-footer" class="wrapper">
+                <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+                <?php
+                    echo $OUTPUT->login_info();
+                    echo $OUTPUT->home_link();
+                    echo $OUTPUT->standard_footer_html();
+                ?>
+            </div>
+        <?php } ?>
+
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index a084b9f..003c958 100644 (file)
@@ -168,7 +168,7 @@ h2.headingblock {
 .forumpost .topic {
     background: #eee;
     border-width: 0;
-    padding: 0 10px 0;
+    padding: 4px 10px 4px;
 }
 
 .forumpost .subject {
@@ -180,10 +180,14 @@ h2.headingblock {
     font-style: italic;
 }
 
-.forumpost .content {
+.forumpost .no-overflow {
     border-width: 0 1px 10px;
     border-style: solid;
     border-color: #aaa #eee #eee;
+    margin: 0 1px 1px 1px;
+}
+
+.forumpost .content .posting {
     padding: 5px 10px 10px;
 }
 
index f0090fe..5c8249c 100644 (file)
 /*********************************************************************************************
 
-       left column: 250px
-       right column: 250px
-       padding left/right column: 10px
-       padding center column: 30px
+    left column: 250px
+    right column: 250px
+    padding left/right column: 10px
+    padding center column: 30px
 
 **********************************************************************************************/
 
 body {
-       margin: auto 0px;
-       width: auto;
+    margin: auto 0px;
+    width: auto;
 }
 
 #page {
-       width: 100%;
-       overflow: hidden;
+    width: 100%;
+    overflow: hidden;
 }
 
 #page-header {
-       float: left;
-       width: 100%;
+    float: left;
+    width: 100%;
 }
 
 #page-content {
-       clear: both;
-       float: left;
-       overflow: hidden;
-       position: relative;
-       width: 100%;
+    clear: both;
+    float: left;
+    overflow: hidden;
+    position: relative;
+    width: 100%;
 }
 
 #page-content #region-main-box {
-       float: left;
-       margin-left: 0;
-       position: relative;
-       width: 200%;
-       right: 100%;
+    float: left;
+    margin-left: 0;
+    position: relative;
+    width: 200%;
+    right: 100%;
 }
 
-#page-content #region-main-box #region-post-box {
-       float: left;
-       width: 100%;
+#page-content #region-post-box {
+    float: left;
+    width: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap {
-       float: left;
-       width: 50%;
+#page-content #region-main-wrap {
+    float: left;
+    width: 50%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       overflow: hidden;
-       position: relative;
-       left: 100%;
+#page-content #region-main {
+    overflow: hidden;
+    position: relative;
+    left: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-post {
-       float: right;
-       position: relative;
+#page-content #region-post {
+    float: right;
+    position: relative;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
-       overflow: hidden;
-       padding: 20px 30px 20px 0;
+#page-content #region-main .region-content {
+    overflow: hidden;
+    padding: 20px 30px 20px 0;
 }
 
-#page-content #region-main-box #region-post-box #region-post .region-content {
-       overflow: hidden;
-       padding: 20px 0 20px 10px;
+#page-content #region-post .region-content {
+    overflow: hidden;
+    padding: 20px 0 20px 10px;
 }
 
 #page-footer {
-       clear: both;
-       float: left;
-       width: 100%;
+    clear: both;
+    float: left;
+    width: 100%;
 }
 
 
-.has_dock.side-post-only .page-middle #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 200px;
+.has_dock.side-post-only .page-middle #region-main {
+    margin-left: 200px;
 }
 
 /** No blocks whatsoever **/
-
 .content-only #page-content #region-main-box {
-       margin-left: 0px;
+    margin-left: 0px;
+}
+
+.content-only #page-content #region-post-box {
+    margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box {
-       margin-left: 0px;
+.content-only #page-content #region-main {
+    margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 0px;
+.content-only #page-content #region-pre {
+    width: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-pre {
-       width: 0px;
+.content-only #page-content #region-post {
+    width: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-post {
-       width: 0px;
-}
\ No newline at end of file
+/** Report layout **/
+.pagelayout-report #page {width:auto;position:relative;overflow:visible;}
+.pagelayout-report #page-header {float:none;}
+.pagelayout-report #page-content {float:none;overflow:visible;width:auto;}
+.pagelayout-report #report-main-content {float:left;width:100%;}
+.pagelayout-report #report-main-content .region-content {margin-left:210px;margin-top:20px;}
+.pagelayout-report #report-main-content .region-content table {background-color:#FFF;}
+.pagelayout-report #report-region-wrap {width:0;float:right;position:relative;left:-100%;}
+.pagelayout-report #report-region-pre {width:200px;margin-top:20px;}
+.pagelayout-report #page-footer {float:none;}
+.pagelayout-report #page-content .region-content {overflow:visible;}
+.pagelayout-report.content-only #report-main-content .region-content {margin-left:0;}
+
+/** Correct for right to left languages **/
+.dir-rtl.pagelayout-report #report-main-content .region-content {margin-left:0;margin-right:200px;}
+.dir-rtl.pagelayout-report #report-region-wrap {left:0;}
+
+/** Stabalise IE6 behaviour on the report layout **/
+.ie6.pagelayout-report #report-main-content,
+.ie7.pagelayout-report #report-main-content {float:none;width:auto;}
+.ie6.pagelayout-report #report-region-wrap,
+.ie7.pagelayout-report #report-region-wrap {float:none;width:200px;left:auto;position:absolute;top:0;}
+.ie6.pagelayout-report #report-region-pre,
+.ie6.pagelayout-report #report-region-pre .block
+.ie7.pagelayout-report #report-region-pre,
+.ie7.pagelayout-report #report-region-pre .block {width:100%;}
\ No newline at end of file
index c1d77a6..712561f 100644 (file)
@@ -152,6 +152,12 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
     ),
+    // The pagelayout used for reports
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre',
+    ),
 );
 
 // We don't want the base theme to be shown on the theme selection screen, by setting
diff --git a/theme/base/layout/report.php b/theme/base/layout/report.php
new file mode 100644 (file)
index 0000000..7b2196f
--- /dev/null
@@ -0,0 +1,89 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
+$haslogininfo = (empty($PAGE->layout_options['nologininfo']));
+
+$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
+
+$custommenu = $OUTPUT->custom_menu();
+$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+
+$bodyclasses = array();
+if (!$showsidepre) {
+    $bodyclasses[] = 'content-only';
+}
+if ($hascustommenu) {
+    $bodyclasses[] = 'has_custom_menu';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+<div id="page">
+<?php if ($hasheading || $hasnavbar) { ?>
+    <div id="page-header">
+        <?php if ($hasheading) { ?>
+        <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
+        <div class="headermenu"><?php
+            if ($haslogininfo) {
+                echo $OUTPUT->login_info();
+            }
+            if (!empty($PAGE->layout_options['langmenu'])) {
+                echo $OUTPUT->lang_menu();
+            }
+            echo $PAGE->headingmenu
+        ?></div><?php } ?>
+        <?php if ($hascustommenu) { ?>
+        <div id="custommenu"><?php echo $custommenu; ?></div>
+        <?php } ?>
+        <?php if ($hasnavbar) { ?>
+            <div class="navbar clearfix">
+                <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+            </div>
+        <?php } ?>
+    </div>
+<?php } ?>
+<!-- END OF HEADER -->
+
+    <div id="page-content" class="clearfix">
+        <div id="report-main-content">
+            <div class="region-content">
+                <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+            </div>
+        </div>
+        <?php if ($hassidepre) { ?>
+        <div id="report-region-wrap">
+            <div id="report-region-pre" class="block-region">
+                <div class="region-content">
+                    <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+                </div>
+            </div>
+        </div>
+        <?php } ?>
+    </div>
+
+<!-- START OF FOOTER -->
+    <?php if ($hasfooter) { ?>
+    <div id="page-footer" class="clearfix">
+        <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+        <?php
+        echo $OUTPUT->login_info();
+        echo $OUTPUT->home_link();
+        echo $OUTPUT->standard_footer_html();
+        ?>
+    </div>
+    <?php } ?>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index bfbacba..1cbd854 100644 (file)
@@ -98,6 +98,11 @@ form.popupform,
 form.popupform div {display: inline;}
 .arrow_button input {overflow:hidden;}
 
+.no-overflow {overflow:auto;}
+.pagelayout-report .no-overflow {overflow:visible;}
+.no-overflow > .generaltable {margin-bottom:0;}
+.ie6 .no-overflow {width:100%;}
+
 /** IE6 float + background bug solution **/
 .ie6 li.section {line-height:1.2em;width:100%;}
 
@@ -649,10 +654,12 @@ body.tag .managelink {padding: 5px;}
 
 .restore-course-search .rcs-results {width:70%;min-width:400px;border:1px solid #ddd;margin:5px 0;}
 .restore-course-search .rcs-results table {width:100%;margin:0;border-width:0;}
+.restore-course-search .rcs-results table .no-overflow {max-width:600px;}
 .restore-course-search .rcs-results .paging {text-align:left;margin:0;background-color:#eee;padding:3px;}
 
 .restore-course-category .rcs-results {width:70%;min-width:400px;border:1px solid #ddd;margin:5px 0;}
 .restore-course-category .rcs-results table {width:100%;margin:0;border-width:0;}
+.restore-course-category .rcs-results table .no-overflow {max-width:600px;}
 .restore-course-category .rcs-results .paging {text-align:left;margin:0;background-color:#eee;padding:3px;}
 
 .corelightbox {background-color:#CCC;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;}
index 69bb168..bedb4c6 100644 (file)
@@ -32,37 +32,62 @@ body {margin:auto 0px;width:auto;}
 #page-header {float:left;width:100%;}
 #page-content {clear:both;float:left;overflow:hidden;position:relative;width:100%;min-width:900px;}
 #page-content #region-main-box {float:left;left:200px;position:relative;width:200%;}
-#page-content #region-main-box #region-post-box {float:left;left:50%;margin-left:-400px;position:relative;width:100%;}
-#page-content #region-main-box #region-post-box #region-main-wrap {float:right;position:relative;right:100%;width:50%;}
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-right:0px;margin-left:400px;overflow:hidden;}
-#page-content #region-main-box #region-post-box #region-pre {float:left;left:200px;overflow:hidden;position:relative;width:200px;margin-left:-50%;}
-#page-content #region-main-box #region-post-box #region-post {float:left;left:0px;overflow:hidden;position:relative;width:200px;}
-#page-content #region-main-box .region-content {overflow:hidden;padding:10px;}
+#page-content #region-post-box {float:left;left:50%;margin-left:-400px;position:relative;width:100%;}
+#page-content #region-main-wrap {float:right;position:relative;right:100%;width:50%;}
+#page-content #region-main {margin-right:0px;margin-left:400px;overflow:hidden;}
+#page-content #region-pre {float:left;left:200px;overflow:hidden;position:relative;width:200px;margin-left:-50%;}
+#page-content #region-post {float:left;left:0px;overflow:hidden;position:relative;width:200px;}
+#page-content .region-content {overflow:hidden;padding:10px;}
 #page-footer {clear:both;float:left;width:100%;}
 
 /** Only side pre **/
-.side-pre-only #page-content #region-main-box #region-post-box {margin-left:-200px;}
-.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:200px;}
-.side-pre-only #page-content #region-main-box #region-post-box #region-pre {left:0px;}
-.side-pre-only #page-content #region-main-box #region-post-box #region-post {width:0px;}
+.side-pre-only #page-content #region-post-box {margin-left:-200px;}
+.side-pre-only #page-content #region-main {margin-left:200px;}
+.side-pre-only #page-content #region-pre {left:0px;}
+.side-pre-only #page-content #region-post {width:0px;}
 
 /** Only side post **/
 .side-post-only #page-content #region-main-box {left:0px;}
-.side-post-only #page-content #region-main-box #region-post-box {margin-left:-200px;}
-.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:200px;}
-.side-post-only #page-content #region-main-box #region-post-box #region-pre {width:0px;}
-.has_dock.side-post-only .page-middle #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:200px;}
+.side-post-only #page-content #region-post-box {margin-left:-200px;}
+.side-post-only #page-content #region-main {margin-left:200px;}
+.side-post-only #page-content #region-pre {width:0px;}
+.has_dock.side-post-only .page-middle #region-main {margin-left:200px;}
 
 /** No blocks whatsoever **/
 .content-only #page-content {min-width:0;}
 .content-only #page-content #region-main-box {left:0px;}
-.content-only #page-content #region-main-box #region-post-box {margin-left:0px;}
-.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:0px;}
-.content-only #page-content #region-main-box #region-post-box #region-pre {left:0;width:0px;}
-.content-only #page-content #region-main-box #region-post-box #region-post {width:0;}
+.content-only #page-content #region-post-box {margin-left:0px;}
+.content-only #page-content #region-main {margin-left:0px;}
+.content-only #page-content #region-pre {left:0;width:0px;}
+.content-only #page-content #region-post {width:0;}
 
 /** Stabalise some IE6 behaviour **/
 .ie6 #region-pre .region-content,
 .ie6 #region-post .region-content {padding:0 !important;width:100%;float:none;}
 .ie6 #region-pre .region-content .block,
-.ie6 #region-post .region-content .block {width:auto;padding:0;margin:10px;}
\ No newline at end of file
+.ie6 #region-post .region-content .block {width:auto;padding:0;margin:10px;}
+
+/** Report layout **/
+.pagelayout-report #page {width:auto;position:relative;}
+.pagelayout-report #page-header {float:none;}
+.pagelayout-report #page-content {float:none;overflow:visible;width:auto;}
+.pagelayout-report #report-main-content {float:left;width:100%;}
+.pagelayout-report #report-main-content .region-content {margin-left:200px;}
+.pagelayout-report #report-main-content .region-content table {background-color:#FFF;}
+.pagelayout-report #report-region-wrap {width:0;float:right;position:relative;left:-100%;}
+.pagelayout-report #report-region-pre {width:200px;}
+.pagelayout-report #page-footer {float:none;}
+.pagelayout-report #page-content .region-content {overflow:visible;}
+
+/** Correct for content only **/
+.pagelayout-report.content-only #report-main-content .region-content {margin-left:0;}
+
+/** Correct for right to left languages **/
+.dir-rtl.pagelayout-report #report-main-content .region-content {margin-left:0;margin-right:200px;}
+.dir-rtl.pagelayout-report #report-region-wrap {left:0;}
+
+/** Stabalise IE6 behaviour on the report layout **/
+.ie6.pagelayout-report #report-main-content {float:none;width:auto;}
+.ie6.pagelayout-report #report-region-wrap {float:none;width:200px;left:auto;position:absolute;top:0;}
+.ie6.pagelayout-report #report-region-pre,
+.ie6.pagelayout-report #report-region-pre .block {width:100%;}
index 27fc3f6..59808d3 100644 (file)
@@ -166,6 +166,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
     ),
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-post'),
+        'defaultregion' => 'side-post',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
diff --git a/theme/binarius/layout/report.php b/theme/binarius/layout/report.php
new file mode 100644 (file)
index 0000000..a67f792
--- /dev/null
@@ -0,0 +1,118 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
+$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
+
+$custommenu = $OUTPUT->custom_menu();
+$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+
+$bodyclasses = array();
+if ($showsidepost) {
+    $bodyclasses[] = 'side-post-only';
+} else if (!$showsidepost) {
+    $bodyclasses[] = 'content-only';
+}
+
+if ($hascustommenu) {
+    $bodyclasses[] = 'has-custom-menu';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page">
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+           <div id="wrapper" class="clearfix">
+
+<!-- START OF HEADER -->
+
+            <div id="page-header" class="inside">
+                <div id="page-header-wrapper" class="wrapper clearfix">
+
+                    <?php if ($hasheading) { ?>
+                        <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
+                        <div class="headermenu"><?php
+                            echo $OUTPUT->login_info();
+                                if (!empty($PAGE->layout_options['langmenu'])) {
+                                    echo $OUTPUT->lang_menu();
+                                }
+                            echo $PAGE->headingmenu ?>
+                        </div>
+                    <?php } ?>
+                    <?php if ($hascustommenu) { ?>
+                    <div id="custommenu"><?php echo $custommenu; ?></div>
+                    <?php } ?>
+                </div>
+            </div>
+
+            <?php if ($hasnavbar) { ?>
+                <div class="navbar">
+                    <div class="wrapper clearfix">
+                        <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                        <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+                    </div>
+                </div>
+            <?php } ?>
+
+<!-- END OF HEADER -->
+
+    <?php } ?>
+
+
+<!-- START OF CONTENT -->
+
+        <div id="page-content-wrapper" class="wrapper clearfix">
+            <div id="page-content" class="clearfix">
+                <div id="report-main-content">
+                    <div class="region-content">
+                        <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+                    </div>
+                </div>
+                <?php if ($hassidepost) { ?>
+                <div id="report-region-wrap">
+                    <div id="report-region-pre" class="block-region">
+                        <div class="region-content">
+                            <?php echo $OUTPUT->blocks_for_region('side-post') ?>
+                        </div>
+                    </div>
+                </div>
+                <?php } ?>
+            </div>
+        </div>
+
+<!-- END OF CONTENT -->
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+    <div class="myclear"></div>
+        </div>
+    <?php } ?>
+
+<!-- START OF FOOTER -->
+
+        <?php if ($hasfooter) { ?>
+            <div id="page-footer" class="wrapper">
+                <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+                <?php
+                    echo $OUTPUT->login_info();
+                    echo $OUTPUT->home_link();
+                    echo $OUTPUT->standard_footer_html();
+                ?>
+            </div>
+        <?php } ?>
+
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index b232bfa..bde162c 100644 (file)
 /*********************************************************************************************
 
-       left column: 250px
-       right column: 250px
-       padding left/right column: 10px
-       padding center column: 30px
+    left column: 250px
+    right column: 250px
+    padding left/right column: 10px
+    padding center column: 30px
 
 **********************************************************************************************/
 
 body {
-       margin: auto 0px;
-       width: auto;
+    margin: auto 0px;
+    width: auto;
 }
 
 #page {
-       width: 100%;
-       overflow: hidden;
+    width: 100%;
+    overflow: hidden;
 }
 
 #page-header {
-       float: left;
-       width: 100%;
+    float: left;
+    width: 100%;
 }
 
 #page-content {
-       clear: both;
-       float: left;
-       overflow: hidden;
-       position: relative;
-       width: 100%;
+    clear: both;
+    float: left;
+    overflow: hidden;
+    position: relative;
+    width: 100%;
 }
 
 #page-content #region-main-box {
-       float: left;
-       margin-left: 0;
-       position: relative;
-       width: 200%;
-       right: 100%;
+    float: left;
+    margin-left: 0;
+    position: relative;
+    width: 200%;
+    right: 100%;
 }
 
 #page-content #region-main-box #region-post-box {
-       float: left;
-       margin-left: -250px;
-       width: 100%;
+    float: left;
+    margin-left: -250px;
+    width: 100%;
 }
 
 #page-content #region-main-box #region-post-box #region-main-wrap {
-       float: left;
-       width: 50%;
+    float: left;
+    width: 50%;
 }
 
 #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       overflow: hidden;
-       position: relative;
-       margin-left: 250px;
-       left: 100%;
+    overflow: hidden;
+    position: relative;
+    margin-left: 250px;
+    left: 100%;
 }
 
 #page-content #region-main-box #region-post-box #region-pre {
-       float: right;
-       position: relative;
-       left: 250px;
-       width: 250px;
+    float: right;
+    position: relative;
+    left: 250px;
+    width: 250px;
 }
 
 #page-content #region-main-box #region-post-box #region-post {
-       float: right;
-       position: relative;
-       left: 250px;
-       width: 250px;
+    float: right;
+    position: relative;
+    left: 250px;
+    width: 250px;
 }
 
 #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
-       overflow: hidden;
-       padding: 10px 20px 20px 10px;
+    overflow: hidden;
+    padding: 10px 20px 20px 10px;
 }
 
 #page-content #region-main-box #region-post-box #region-pre .region-content,
 #page-content #region-main-box #region-post-box #region-post .region-content {
-       overflow: hidden;
-       padding: 10px 0 20px 10px;
+    overflow: hidden;
+    padding: 10px 0 20px 10px;
 }
 
 #page-footer {
-       clear: both;
-       float: left;
-       width: 100%;
+    clear: both;
+    float: left;
+    width: 100%;
 }
 
 
 .has_dock.side-post-only .page-middle #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 200px;
+    margin-left: 200px;
 }
 
 /** No blocks whatsoever **/
 
 .content-only #page-content #region-main-box {
-       margin-left: 0px;
+    margin-left: 0px;
 }
 
 .content-only #page-content #region-main-box #region-post-box {
-       margin-left: 0px;
+    margin-left: 0px;
 }
 
 .content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 0px;
+    margin-left: 0px;
 }
 
 .content-only #page-content #region-main-box #region-post-box #region-pre {
-       width: 0px;
+    width: 0px;
 }
 
 .content-only #page-content #region-main-box #region-post-box #region-post {
-       width: 0px;
-}
\ No newline at end of file
+    width: 0px;
+}
+
+
+/** Report layout **/
+.pagelayout-report {border-top:1px solid #555555;}
+.pagelayout-report #page {width:auto;position:relative;overflow:visible;}
+.pagelayout-report #page-header {float:none;}
+.pagelayout-report #page-content {float:none;overflow:visible;width:auto;}
+.pagelayout-report #report-main-content {float:left;width:100%;}
+.pagelayout-report #report-main-content .region-content {margin-left:210px;margin-top:20px;}
+.pagelayout-report #report-main-content .region-content table {background-color:#FFF;}
+.pagelayout-report #report-region-wrap {width:0;float:right;position:relative;left:-100%;}
+.pagelayout-report #report-region-pre {width:200px;margin-top:20px;}
+.pagelayout-report #page-footer {float:none;}
+.pagelayout-report #page-content .region-content {overflow:visible;}
+.pagelayout-report.content-only #report-main-content .region-content {margin-left:0;}
+
+/** Correct for right to left languages **/
+.dir-rtl.pagelayout-report #report-main-content .region-content {margin-left:0;margin-right:200px;}
+.dir-rtl.pagelayout-report #report-region-wrap {left:0;}
+
+/** Stabalise IE6 behaviour on the report layout **/
+.ie6.pagelayout-report #report-main-content,
+.ie7.pagelayout-report #report-main-content {float:none;width:auto;}
+.ie6.pagelayout-report #report-region-wrap,
+.ie7.pagelayout-report #report-region-wrap {float:none;width:200px;left:auto;position:absolute;top:0;}
+.ie6.pagelayout-report #report-region-pre,
+.ie6.pagelayout-report #report-region-pre .block
+.ie7.pagelayout-report #report-region-pre,
+.ie7.pagelayout-report #report-region-pre .block {width:100%;}
\ No newline at end of file
index 0da356c..4a4180d 100644 (file)
@@ -645,15 +645,14 @@ h2.headingblock {
     text-decoration: none;
 }
 
-.forumpost .content {
-    border-width: 1px ;
-    border-color: #a0c278;
-    border-style: solid;
-    padding: 5px 10px;
+.forumpost .no-overflow,
+.forumpost .options {
+    border: 1px solid #a0c278;
 }
 
-.forumpost .commands {
-    padding: 10px 0;
+.forumpost .options,
+.forumpost .content .posting {
+    padding: 5px 10px;
 }
 
 .forumaddnew,
index 946067e..2d465cd 100644 (file)
@@ -38,8 +38,8 @@ $THEME->name = 'brick';
 
 
 $THEME->parents = array(
-       'canvas',
-       'base',
+    'canvas',
+    'base',
 );
 
 /////////////////////////////////////////////////////
@@ -54,11 +54,10 @@ $THEME->parents = array(
 
 
 $THEME->sheets = array(
-'pagelayout',
-       'core',
-       'colors',
-       'css3',
-       
+    'pagelayout',
+    'core',
+    'colors',
+    'css3',
 );
 
 ////////////////////////////////////////////////////
@@ -67,12 +66,12 @@ $THEME->sheets = array(
 ////////////////////////////////////////////////////
 
 $THEME->parents_exclude_sheets = array(
-               'base'=>array(
-                       'pagelayout', 
-               ),
-               'canvas'=>array(
-                       'pagelayout',
-               ),
+    'base'=>array(
+        'pagelayout',
+    ),
+    'canvas'=>array(
+        'pagelayout',
+    ),
 );
 
 
@@ -158,11 +157,16 @@ $THEME->layouts = array(
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
     'embedded' => array(
-       'theme' => 'canvas',
+        'theme' => 'canvas',
         'file' => 'embedded.php',
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
+    'report' => array(
+        'file' => 'general.php',
+        'regions' => array('side-post'),
+        'defaultregion' => 'side-post',
+    ),
     
 );
 
@@ -175,7 +179,7 @@ $THEME->layouts = array(
 // specific page.
 ///////////////////////////////////////////////////////////////
 
-//$THEME->csspostprocess = 'arialist_process_css';     
+//$THEME->csspostprocess = 'arialist_process_css';
 ////////////////////////////////////////////////////
 // Allows the user to provide the name of a function 
 // that all CSS should be passed to before being 
@@ -189,7 +193,7 @@ $THEME->layouts = array(
 // media player for the filters
 ////////////////////////////////////////////////////
 
-// $THEME->javascripts 
+// $THEME->javascripts
 
 ////////////////////////////////////////////////////
 // An array containing the names of JavaScript files
@@ -203,20 +207,20 @@ $THEME->layouts = array(
 // As above but will be included in the page footer.
 ////////////////////////////////////////////////////
 
-//$THEME->larrow       = '&lang;';
+//$THEME->larrow    = '&lang;';
 
 ////////////////////////////////////////////////////
 // Overrides the left arrow image used throughout 
 // Moodle
 ////////////////////////////////////////////////////
 
-//$THEME->rarrow       = '&rang;';
+//$THEME->rarrow    = '&rang;';
 
 ////////////////////////////////////////////////////
 // Overrides the right arrow image used throughout Moodle
 ////////////////////////////////////////////////////
 
-// $THEME->layouts     
+// $THEME->layouts
 
 ////////////////////////////////////////////////////
 // An array setting the layouts for the theme
@@ -229,7 +233,7 @@ $THEME->layouts = array(
 // the themes parents
 ////////////////////////////////////////////////////
 
-// $THEME->parents_exclude_sheets      
+// $THEME->parents_exclude_sheets
 
 ////////////////////////////////////////////////////
 // An array of stylesheets not to inherit from the
@@ -253,7 +257,7 @@ $THEME->layouts = array(
 // $THEME->resource_mp3player_colors
 
 ////////////////////////////////////////////////////
-// Controls the colours for the MP3 player     
+// Controls the colours for the MP3 player
 ////////////////////////////////////////////////////
 $THEME->csspostprocess = 'brick_process_css';
  //$THEME->rendererfactory = 'theme_overridden_renderer_factory';
index 75e50b3..b01544d 100644 (file)
 ---------------------------*/
 
 html, body {
-       background: #eee;
+    background: #eee;
 }
 
 #mypagewrapper {
-       width: 100%;
-       border-top: 1px solid #fff;
+    width: 100%;
+    border-top: 1px solid #fff;
 }
 
 #page {
-       margin-top: 15px;
-       width: 90%;
-       min-width: 960px;
-       margin-left: auto;
-       margin-right: auto;
-       clear: both;
-       border: 1px solid #dadada;
-       background: #fff;
+    margin-top: 15px;
+    width: 90%;
+    min-width: 960px;
+    margin-left: auto;
+    margin-right: auto;
+    clear: both;
+    border: 1px solid #dadada;
+    background: #fff;
 }
 
 #wrapper {
-       padding: 20px;
-       padding-left: 20px;
-       padding-right: 17px;
+    padding: 20px;
+    padding-left: 20px;
+    padding-right: 17px;
 }
 
 #wrapper.notathome {
-       padding-top: 15px;
+    padding-top: 15px;
 }
 .content-only #wrapper {
-       padding-right: 0px;
+    padding-right: 0px;
 }
 
 /* Header
 ----------------------------*/
 
 #headerwrap {
-       width: 100%;
-       top: 0px;
-       height: 140px;
+    width: 100%;
+    top: 0px;
+    height: 140px;
 }
 
 #header {
-       width: 90%;
-       min-width: 960px;
-       margin-left: auto;
-       margin-right: auto;
+    width: 90%;
+    min-width: 960px;
+    margin-left: auto;
+    margin-right: auto;
 }
 
 #logo {
-       background-position: 0% 40%;
-       width: 300px;
-       height: 70px;
-       float: left;
+    background-position: 0% 40%;
+    width: 300px;
+    height: 70px;
+    float: left;
 }
 #nologo {
-       width: 590px;
-       height: 70px;
-       float: left;
-       margin-left: 6px;
-       overflow: hidden;
+    width: 590px;
+    height: 70px;
+    float: left;
+    margin-left: 6px;
+    overflow: hidden;
 }
 #nologo a, #nologo {
-       font-family: Georgia, Palatino, serif;
-       line-height: 70px;
-       font-size: 28px;
-       font-weight: 600;
-       letter-spacing: -1px;
+    font-family: Georgia, Palatino, serif;
+    line-height: 70px;
+    font-size: 28px;
+    font-weight: 600;
+    letter-spacing: -1px;
 }
 #loggedinas {
-       min-width: 300px;
-       height: 65px;
-       float: right;
-       text-align: right;
-       line-height: 65px;
-       font-size: 10px;
+    min-width: 300px;
+    height: 65px;
+    float: right;
+    text-align: right;
+    line-height: 65px;
+    font-size: 10px;
 }
 
 #loginas a {
-       color: #fff;
+    color: #fff;
 }
 
 #headerbottom {
-       clear: both;
+    clear: both;
 }
 
 #headingtitle {
-       float: right;
-       width: 280px;
-       padding-right: 5px;
-       text-align: right;
-       height: 70px;
-       overflow: hidden;
-       background: url([[pix:theme|youare]]) no-repeat;
-       background-position: 95% 110%;
-       position: relative;
-       bottom: -2px;
+    float: right;
+    width: 280px;
+    padding-right: 5px;
+    text-align: right;
+    height: 70px;
+    overflow: hidden;
+    background: url([[pix:theme|youare]]) no-repeat;
+    background-position: 95% 110%;
+    position: relative;
+    bottom: -2px;
 }
 
 #headingtitle h1 {
-       line-height: 67px;
-       font-weight: 200;
-       font-size: 13px;
-       text-transform: uppercase;
-       color: #fff;
+    line-height: 67px;
+    font-weight: 200;
+    font-size: 13px;
+    text-transform: uppercase;
+    color: #fff;
 }
 /* end Header
 ----------------------------*/
 
 #region-post2 .region-content div.navbutton {
-       display: inline-block !important;
-       width: 100%;
-       float: none;
-       margin-bottom: 5px;
-       margin-top: 5px;
-       clear: both;
+    display: inline-block !important;
+    width: 100%;
+    float: none;
+    margin-bottom: 5px;
+    margin-top: 5px;
+    clear: both;
 }
 
 body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea {
-       font-family: Georgia, Palatino, serif;
-       line-height: 1.5;
-       color: #333;
+    font-family: Georgia, Palatino, serif;
+    line-height: 1.5;
+    color: #333;
 }
 
 h1, h2, h3, h4 {
-       font-family: Georgia, Times, "Times New Roman", serif !important;
+    font-family: Georgia, Times, "Times New Roman", serif !important;
 }
 
 h2,h3,h4,h5,h6 {
-       color: #999;
-       font-weight: normal;
+    color: #999;
+    font-weight: normal;
 }
 
 blockquote {
-       border-left: 1px solid #eee;
-       padding-left: 15px;
-       color: #666;
+    border-left: 1px solid #eee;
+    padding-left: 15px;
+    color: #666;
 }
 
 .mform fieldset {
-       border-color: #eee;
+    border-color: #eee;
 }
 
 .mform fieldset legend {
-       color: #555;
-       font-weight: normal;
-       font-size: 1.2em;
-       border: 1px solid #eee;
-       padding: 2px 5px;
-       background: #fff;
+    color: #555;
+    font-weight: normal;
+    font-size: 1.2em;
+    border: 1px solid #eee;
+    padding: 2px 5px;
+    background: #fff;
 }
 
 
 div.navbar {
-       border-bottom: 1px solid #eee;
-       border-top: 1px solid #eee;
-       background: #fafafa url([[pix:theme|block]]) no-repeat;
-       background-position: 100% 0%;
-       font-size: 0.85em;
-       font-style: italic;
-       font-weight: 200;
-       padding:0 10px;
-       margin-bottom: 7px;
+    border-bottom: 1px solid #eee;
+    border-top: 1px solid #eee;
+    background: #fafafa url([[pix:theme|block]]) no-repeat;
+    background-position: 100% 0%;
+    font-size: 0.85em;
+    font-style: italic;
+    font-weight: 200;
+    padding:0 10px;
+    margin-bottom: 7px;
 }
 
 div.breadcrumb li {
-       line-height: 30px;
-       font-family: Georgia, serif;
+    line-height: 30px;
+    font-family: Georgia, serif;
 }
 
 .breadcrumb li img {
-       vertical-align: middle;
+    vertical-align: middle;
 }
 
 /** breadcrumb image replacement **/
 
 div.navbar span.arrow.sep {
-       font-size: 1px;
-       color: #fafafa;
-       background: url([[pix:theme|crumber]]) no-repeat;
-       background-position: 50% 25%;
-       display: inline-block;
-       width: 16px;
-       height: 30px;
+    font-size: 1px;
+    color: #fafafa;
+    background: url([[pix:theme|crumber]]) no-repeat;
+    background-position: 50% 25%;
+    display: inline-block;
+    width: 16px;
+    height: 30px;
 }
 
 .navbutton {
-       float: none;
-       width: 100%;
-       padding: 5px 0 15px;
-       text-align: center;
+    float: none;
+    width: 100%;
+    padding: 5px 0 15px;
+    text-align: center;
 }
 
 /* Blocks
 ----------------------------*/
 
 .block {
-       border: none;
+    border: none;
 }
 
 div.block {
-       padding: 2px;
-       border: 1px solid #dadada;
-       margin-left: -10px;
+    padding: 2px;
+    border: 1px solid #dadada;
+    margin-left: -10px;
 }
 
 #region-main div.block {
-       margin-left: 0px;
-       background-image: none;
+    margin-left: 0px;
+    background-image: none;
 }
 
 .block div.header {
-       min-height: 33px;
-       padding-top: 3px;
-       padding-left: 3px;
+    min-height: 33px;
+    padding-top: 3px;
+    padding-left: 3px;
 }
 
 div.block.hidden div.header {
-       border-bottom: none;
+    border-bottom: none;
 }
 
 .block .header h2 {
-       font-size: 13px;
-       font-weight: 200;
-       text-transform: uppercase;
+    font-size: 13px;
+    font-weight: 200;
+    text-transform: uppercase;
 }
 
 .block div.content {
-       background: #fff;
-       border: 1px solid #dadada;
-       border-top: none;
-       padding: 4px;
+    background: #fff;
+    border: 1px solid #dadada;
+    border-top: none;
+    padding: 4px;
 }
 
 .block div.content h1, .block div.content h2.main, .block div.content h3.main {
-       font-size: 13px;
-       background-image: none;
+    font-size: 13px;
+    background-image: none;
 }
 
 .block_calendar_month table.minicalendar.calendartable td,.block_calendar_month table.minicalendar.calendartable th {
-       border: none !important;
+    border: none !important;
 }
 
 .block_calendar_month table.minicalendar {
-       margin-bottom: 0px !important;
+    margin-bottom: 0px !important;
 }
 
 .block_calendar_month table.minicalendar.calendartable th abbr {
-       border: none !important;
-       text-decoration: none;
+    border: none !important;
+    text-decoration: none;
 }
 
 
 /** main headings **/
 
 .generalbox h2,h3.sectionname, h2.headingblock,h2.main,h3.main, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2 {
-       font-weight: 600;
-       letter-spacing: -1px;
-       line-height: 1.3em;
-       font-size: 28px;
-       border-bottom: 0px solid #eee;
-       padding-bottom: 2px;
-       background: url([[pix:theme|mainbar]]) repeat-x;
-       background-position: 0% 100%;
+    font-weight: 600;
+    letter-spacing: -1px;
+    line-height: 1.3em;
+    font-size: 28px;
+    border-bottom: 0px solid #eee;
+    padding-bottom: 2px;
+    background: url([[pix:theme|mainbar]]) repeat-x;
+    background-position: 0% 100%;
 }
 
 .generalbox h2, #page-course-info h2.main, h3.sectionname, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2, div.hd h3.main {
-       font-size: 22px;
-       background: none;
+    font-size: 22px;
+    background: none;
 }
 
 
@@ -280,259 +280,264 @@ div.block.hidden div.header {
 ----------------------------*/
 
 .coursebox {
-       border-color: #eee;
+    border-color: #eee;
 }
 
 .coursebox .info {
-       width: 35%;
+    width: 35%;
 }
 
 .coursebox .info .name {
-       margin-bottom: 0;
+    margin-bottom: 0;
 }
 
 .coursebox .info .teachers {
-       font-size: 0.9em;
-       color: #888;
+    font-size: 0.9em;
+    color: #888;
 }
 
 .coursebox .summary {
-       width: 63%;
+    width: 63%;
 }
 
 .course-content .section.main {
-       border-bottom: 1px solid #eee;
+    border-bottom: 1px solid #eee;
 }
 
 .course-content .section.main .content {
-       padding: 5px 5px 10px;
+    padding: 5px 5px 10px;
 }
 
 .course-content .weeks .section.main .content {
-       margin-left: 0;
+    margin-left: 0;
 }
 
 .course-content .weeks .section.main .left {
-       display: none;
+    display: none;
 }
 
 .course-content .section.main.current {
-       background: #fffcdc;
+    background: #fffcdc;
 }
 
 .course-content .weeks .section.main h3.weekdates {
-       color: #999;
+    color: #999;
 }
 
 .course-content .current .left,
 .course-content .current h3.weekdates {
-       color: #92310c !important;
+    color: #92310c !important;
 }
 
 span.completionprogress {
-       font-size: 11px;
-       color: #666666;
+    font-size: 11px;
+    color: #666666;
 }
 
 /* Forum 
 --------------------------*/
 
 .forumpost .topic {
-       background: #eee url([[pix:theme|block]]) no-repeat;
-       background-position: 100% 0%;
-       border-width: 0;
-       border: 1px solid #dadada;
-       padding: 0 10px 0;
+    background: #eee url([[pix:theme|block]]) no-repeat;
+    background-position: 100% 0%;
+    border-width: 0;
+    border: 1px solid #dadada;
+    padding: 0 10px 0;
 }
 
 .forumpost .subject {
-       font-size: 1.45em;
-       font-family: Georgia, serif;
+    font-size: 1.45em;
+    font-family: Georgia, serif;
 }
 
 .forumpost .author {
-       font-size: 0.9em;
-       font-style: italic;
+    font-size: 0.9em;
+    font-style: italic;
 }
 
 td.picture.left img {
-       background: #fafafa;
-       padding: 4px;
-       padding-bottom: 9px;
-       border: 1px solid #dadada;
+    background: #fafafa;
+    padding: 4px;
+    padding-bottom: 9px;
+    border: 1px solid #dadada;
 }
 
-.forumpost .content {
-       border-width: 0 1px 1px;
-       border-style: solid;
-       border-color: #aaa #dadada #dadada;
-       padding: 5px 10px 10px;
+.forumpost .options,
+.forumpost .no-overflow {
+    border-width: 0 1px 1px;
+    border-style: solid;
+    border-color: #aaa #dadada #dadada;
+}
+
+.forumpost .options,
+.forumpost .content .posting {
+    padding: 5px 10px 10px;
 }
 
 /* Footer 
 ----------------------------*/
 
 #page-footer .helplink {
-       margin: 1em 0;
+    margin: 1em 0;
 }
 
 /* Dock */
 
 body.has_dock {
-       margin: 0px;
+    margin: 0px;
 }
 
 .has_dock #page, .has_dock #header {
-       margin-left: 5%;
+    margin-left: 5%;
 }
 
 #dock {
-       left: 5%;
-       top: 107px;
-       margin-left: -29px;
-       border-width: 0;
-       background-color: transparent;
-       position: absolute;
+    left: 5%;
+    top: 107px;
+    margin-left: -29px;
+    border-width: 0;
+    background-color: transparent;
+    position: absolute;
 }
 
 #dock .controls {
-       bottom: auto;
-       -webkit-border-bottom-left-radius: 3px;
-       -moz-border-radius-bottomleft: 3px;
-       border-bottom-left-radius: 3px;
+    bottom: auto;
+    -webkit-border-bottom-left-radius: 3px;
+    -moz-border-radius-bottomleft: 3px;
+    border-bottom-left-radius: 3px;
 }
 
 #dock .dockeditem_container {
-       position: relative;
+    position: relative;
 }
 
 #dock .dockeditem.firstdockitem {
-       margin-top: 50px;
-       border-top: 1px solid #dadada;
-       -webkit-border-top-left-radius: 3px;
-       -moz-border-radius-topleft: 3px;
-       border-top-left-radius: 3px;
+    margin-top: 50px;
+    border-top: 1px solid #dadada;
+    -webkit-border-top-left-radius: 3px;
+    -moz-border-radius-topleft: 3px;
+    border-top-left-radius: 3px;
 }
 
 #dock .dockeditem {
-       background-color: #fff;
-       padding: 2px;
-       padding-right: 0px;
-       border-left: 1px solid #dadada;
-       border-right: 0px solid #fafafa;
-       border-top: 1px solid #fafafa;
+    background-color: #fff;
+    padding: 2px;
+    padding-right: 0px;
+    border-left: 1px solid #dadada;
+    border-right: 0px solid #fafafa;
+    border-top: 1px solid #fafafa;
 }
 
 #dock .dockedtitle {
-       border-width: 0;
+    border-width: 0;
 }
 
 #dock .dockedtitle h2 {
-       margin: 0;
-       padding: 10px 3px;
+    margin: 0;
+    padding: 10px 3px;
 }
 
 #dock .dockedtitle.activeitem {
-       color: #fff !important;
-       width: 35px;
-       -webkit-border-top-left-radius: 3px;
-       -moz-border-radius-topleft: 3px;
-       border-top-left-radius: 3px;
-       -webkit-border-bottom-left-radius: 3px;
-       -moz-border-radius-bottomleft: 3px;
-       border-bottom-left-radius: 3px;
+    color: #fff !important;
+    width: 35px;
+    -webkit-border-top-left-radius: 3px;
+    -moz-border-radius-topleft: 3px;
+    border-top-left-radius: 3px;
+    -webkit-border-bottom-left-radius: 3px;
+    -moz-border-radius-bottomleft: 3px;
+    border-bottom-left-radius: 3px;
 }
 
 #dock .dockedtitle.activeitem h2 {
-       color: #fff !important;
+    color: #fff !important;
 }
 
 #dockeditempanel {
-       margin-left: 0px;
+    margin-left: 0px;
 }
 
 #dockeditempanel .dockeditempanel_content {
-       background-color: #fff;
-       margin: 0 3px;
-       position: relative;
-       min-height: 100px;
-       -webkit-border-radius: 3px;
-       -webkit-border-top-left-radius: 0;
-       -moz-border-radius: 3px;
-       -moz-border-radius-topleft: 0;
-       border-radius: 3px;
-       border-top-left-radius: 0;
+    background-color: #fff;
+    margin: 0 3px;
+    position: relative;
+    min-height: 100px;
+    -webkit-border-radius: 3px;
+    -webkit-border-top-left-radius: 0;
+    -moz-border-radius: 3px;
+    -moz-border-radius-topleft: 0;
+    border-radius: 3px;
+    border-top-left-radius: 0;
 }
 
 #dockeditempanel .dockeditempanel_hd {
-       border-width: 0;
-       padding: 2px;
+    border-width: 0;
+    padding: 2px;
 }
 
 #dockeditempanel .dockeditempanel_hd h2 {
-       font-size: 0.9em;
-       color: #fff;
+    font-size: 0.9em;
+    color: #fff;
 }
 
 /** yui menu styles **/
 
 #menustuff {
-       width: 600px;
-       float: left;
-       clear: left;
-       height: 65px;
+    width: 600px;
+    float: left;
+    clear: left;
+    height: 65px;
 }
 
 #custommenu {
-       border: none !important;
+    border: none !important;
 }
 
 div.yui3-menu-content {
-       border: none !important;
+    border: none !important;
 }
 
 .yui3-menu-content li a {
-       font-size: 14px;
-       font-family: Georgia, serif !important;
-       font-weight: 200;
-       text-transform: lowercase;
-       line-height: 70px;
-       cursor: pointer;
-       border-right: none !important;
-       border-top: none !important;
-       border-bottom: none !important;
+    font-size: 14px;
+    font-family: Georgia, serif !important;
+    font-weight: 200;
+    text-transform: lowercase;
+    line-height: 70px;
+    cursor: pointer;
+    border-right: none !important;
+    border-top: none !important;
+    border-bottom: none !important;
 }
 
 .yui3-menu-content li a:hover {
-       text-decoration: underline;
+    text-decoration: underline;
 }
 
 div.custom_menu_submenu li a {
-       line-height: 30px;
-       text-shadow: none !important;
+    line-height: 30px;
+    text-shadow: none !important;
 }
 
 div.yui3-menu.custom_menu_submenu {
-       background: url([[pix:theme|youare]]) no-repeat;
-       background-position: 30px 10px;
-       top: 120px !important;
-       border: none;
-       min-width: 100px;
-       z-index: 99998;
+    background: url([[pix:theme|youare]]) no-repeat;
+    background-position: 30px 10px;
+    top: 120px !important;
+    border: none;
+    min-width: 100px;
+    z-index: 99998;
 }
 
 div.yui3-menu.custom_menu_submenu div.yui3-menu-content {
-       margin-top: 22px;
-       border: 1px solid #dadada !important;
-       border-top: none !important;
+    margin-top: 22px;
+    border: 1px solid #dadada !important;
+    border-top: none !important;
 }
 
 /** below style to move sub subs to the left to keep from going off the page **/
 
 div.yui3-menu.custom_menu_submenu div.yui3-menu-content div.yui3-menu.custom_menu_submenu div.yui3-menu-content {
-       background-image: none !important;
-       min-width: 200px;
-       position: relative;
-       margin-top: -50px;
-       border-top: 1px solid #dadada !important;
+    background-image: none !important;
+    min-width: 200px;
+    position: relative;
+    margin-top: -50px;
+    border-top: 1px solid #dadada !important;
 }
\ No newline at end of file
index 35de309..349d869 100644 (file)
@@ -38,33 +38,33 @@ body {
        right: 100%;
 }
 
-#page-content #region-main-box #region-post-box {
+#page-content #region-post-box {
        float: left;
        width: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap {
+#page-content #region-main-wrap {
        float: left;
        width: 50%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+#page-content #region-main {
        overflow: hidden;
        position: relative;
        left: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-post {
+#page-content #region-post {
        float: right;
        position: relative;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
+#page-content #region-main .region-content {
        overflow: hidden;
        padding: 0px 30px 20px 0;
 }
 
-#page-content #region-main-box #region-post-box #region-post .region-content {
+#page-content #region-post .region-content {
        overflow: hidden;
        padding: 0px 0 20px 10px;
 }
@@ -86,31 +86,34 @@ body {
        margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box {
+.content-only #page-content #region-post-box {
        margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+.content-only #page-content #region-main {
        margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-pre {
+.content-only #page-content #region-pre {
        width: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-post {
+.content-only #page-content #region-post {
        width: 0px;
 }
 
-#page-content #region-main-box #region-post-box {
+#page-content #region-post-box {
        margin-left: -250px;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+#page-content #region-main {
        margin-left: 250px;
 }
 
-#page-content #region-main-box #region-post-box #region-post {
+#page-content #region-post {
        left: 250px;
        width: 250px;
 }
+
+.pagelayout-report #page-content #region-main {overflow:auto;}
+.pagelayout-report #page-content #region-main .region-content {overflow:visible;}
\ No newline at end of file
index e375fd9..19951f1 100644 (file)
@@ -41,7 +41,7 @@ $THEME->name = 'canvas';
 ////////////////////////////////////////////////////
 
 $THEME->parents = array(
-               'base',
+    'base',
 );
 
 /////////////////////////////////////////////////////
@@ -55,16 +55,16 @@ $THEME->parents = array(
 ////////////////////////////////////////////////////
 
 $THEME->sheets = array(
-               'pagelayout',
-               'text',
-               'core',
-               'course',
-               'mods',
-               'blocks',
-               'tabs',
-               'admin',
-               'tables',
-               'popups',
+    'pagelayout',
+    'text',
+    'core',
+    'course',
+    'mods',
+    'blocks',
+    'tabs',
+    'admin',
+    'tables',
+    'popups',
 );
 
 ////////////////////////////////////////////////////
@@ -73,10 +73,10 @@ $THEME->sheets = array(
 ////////////////////////////////////////////////////
 
 $THEME->parents_exclude_sheets = array(
-               'base'=>array(
-                               'navigation',
-                               'browser',
-               ),
+    'base'=>array(
+        'navigation',
+        'browser',
+    ),
 );
 
 ////////////////////////////////////////////////////
@@ -168,6 +168,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre',
+    )
 );
 
 /////////////////////////////////////////////////////////
index c5e7725..532cc2e 100644 (file)
@@ -26,29 +26,29 @@ echo $OUTPUT->doctype() ?>
 <?php echo $OUTPUT->standard_top_of_body_html() ?>
 
 <div id="page">
-       
+
 <!-- START OF HEADER -->
 
-       <?php if ($hasheading || $hasnavbar) { ?>
-       <div id="wrapper" class="clearfix">
-       
-           <div id="page-header">
-                       <div id="page-header-wrapper" class="clearfix">
-                           <?php if ($hasheading) { ?>
-                   <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
-                       <div class="headermenu">
-                       <?php 
-                               echo $OUTPUT->login_info();
-                                       if (!empty($PAGE->layout_options['langmenu'])) {
-                                       echo $OUTPUT->lang_menu();
-                               }
-                                   echo $PAGE->headingmenu;
-                       ?>
-                       </div>
-                       <?php } ?>
-               </div>
-           </div>
-           
+    <?php if ($hasheading || $hasnavbar) { ?>
+    <div id="wrapper" class="clearfix">
+
+        <div id="page-header">
+            <div id="page-header-wrapper" class="clearfix">
+                   <?php if ($hasheading) { ?>
+                <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
+                <div class="headermenu">
+                    <?php
+                        echo $OUTPUT->login_info();
+                           if (!empty($PAGE->layout_options['langmenu'])) {
+                               echo $OUTPUT->lang_menu();
+                           }
+                           echo $PAGE->headingmenu;
+                    ?>
+                </div>
+                <?php } ?>
+            </div>
+        </div>
+
         <?php if ($hasnavbar) { ?>
             <div class="navbar clearfix">
                 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
@@ -62,57 +62,57 @@ echo $OUTPUT->doctype() ?>
 
 <!-- START OF CONTENT -->
 
-               <div id="page-content-wrapper" class="clearfix">
-               <div id="page-content">
-                       <div id="region-main-box">
-                       <div id="region-post-box">
+        <div id="page-content-wrapper" class="clearfix">
+            <div id="page-content">
+                <div id="region-main-box">
+                    <div id="region-post-box">
             
-                               <div id="region-main-wrap">
-                               <div id="region-main">
-                                       <div class="region-content">
-                                       <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
-                                       </div>
-                                   </div>
-                           </div>
+                        <div id="region-main-wrap">
+                            <div id="region-main">
+                                <div class="region-content">
+                                    <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+                                </div>
+                            </div>
+                        </div>
                 
-                               <?php if ($hassidepre) { ?>
-                           <div id="region-pre">
-                                   <div class="region-content">
-                                   <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
-                               </div>
-                           </div>
-                       <?php } ?>
+                        <?php if ($hassidepre) { ?>
+                        <div id="region-pre">
+                            <div class="region-content">
+                                <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+                            </div>
+                        </div>
+                        <?php } ?>
                 
-                           <?php if ($hassidepost) { ?>
-                       <div id="region-post">
-                               <div class="region-content">
-                               <?php echo $OUTPUT->blocks_for_region('side-post') ?>
-                               </div>
-                           </div>
-                       <?php } ?>
+                        <?php if ($hassidepost) { ?>
+                        <div id="region-post">
+                            <div class="region-content">
+                                <?php echo $OUTPUT->blocks_for_region('side-post') ?>
+                            </div>
+                        </div>
+                        <?php } ?>
                 
-                       </div>
-                       </div>
-               </div>
-           </div>
+                    </div>
+                </div>
+            </div>
+        </div>
 
 <!-- END OF CONTENT -->
 
 <!-- START OF FOOTER -->
 
-           <?php if ($hasfooter) { ?>
-       <div id="page-footer" class="clearfix">
-               <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
-               <?php
-                   echo $OUTPUT->login_info();
-                       echo $OUTPUT->home_link();
-                       echo $OUTPUT->standard_footer_html();
-               ?>
-           </div>
-       <?php } ?>
-       
-       <?php if ($hasheading || $hasnavbar) { ?>
-       </div> <!-- END #wrapper -->
+        <?php if ($hasfooter) { ?>
+        <div id="page-footer" class="clearfix">
+            <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+            <?php
+                echo $OUTPUT->login_info();
+                echo $OUTPUT->home_link();
+                echo $OUTPUT->standard_footer_html();
+            ?>
+        </div>
+        <?php } ?>
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+        </div> <!-- END #wrapper -->
     <?php } ?>
 
 </div> <!-- END #page -->
diff --git a/theme/canvas/layout/report.php b/theme/canvas/layout/report.php
new file mode 100644 (file)
index 0000000..49d6789
--- /dev/null
@@ -0,0 +1,109 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
+$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
+
+$bodyclasses = array();
+if ($hassidepre && !$hassidepost) {
+    $bodyclasses[] = 'side-pre-only';
+} else if ($hassidepost && !$hassidepre) {
+    $bodyclasses[] = 'side-post-only';
+} else if (!$hassidepost && !$hassidepre) {
+    $bodyclasses[] = 'content-only';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page">
+
+<!-- START OF HEADER -->
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+    <div id="wrapper" class="clearfix">
+
+        <div id="page-header">
+            <div id="page-header-wrapper" class="clearfix">
+                   <?php if ($hasheading) { ?>
+                <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
+                <div class="headermenu">
+                    <?php
+                        echo $OUTPUT->login_info();
+                           if (!empty($PAGE->layout_options['langmenu'])) {
+                               echo $OUTPUT->lang_menu();
+                           }
+                           echo $PAGE->headingmenu;
+                    ?>
+                </div>
+                <?php } ?>
+            </div>
+        </div>
+
+        <?php if ($hasnavbar) { ?>
+            <div class="navbar clearfix">
+                <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+            </div>
+        <?php } ?>
+
+<?php } ?>
+
+<!-- END OF HEADER -->
+
+<!-- START OF CONTENT -->
+
+        
+            <div id="page-content-wrapper" class="clearfix">
+                <div id="page-content">
+                    <div id="report-main-content">
+                        <div class="region-content">
+                            <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+                        </div>
+                    </div>
+                    <?php if ($hassidepre) { ?>
+                    <div id="report-region-wrap">
+                        <div id="report-region-pre" class="block-region">
+                            <div class="region-content">
+                                <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+                            </div>
+                        </div>
+                    </div>
+                    <?php } ?>
+                </div>
+            </div>
+        </div>
+
+<!-- END OF CONTENT -->
+
+<!-- START OF FOOTER -->
+
+        <?php if ($hasfooter) { ?>
+        <div id="page-footer" class="clearfix">
+            <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+            <?php
+                echo $OUTPUT->login_info();
+                echo $OUTPUT->home_link();
+                echo $OUTPUT->standard_footer_html();
+            ?>
+        </div>
+        <?php } ?>
+
+    <?php if ($hasheading || $hasnavbar) { ?>
+        </div> <!-- END #wrapper -->
+    <?php } ?>
+
+</div> <!-- END #page -->
+
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index 46a69ee..b3c811c 100644 (file)
@@ -1,21 +1,19 @@
 #page-content #region-main-box {
-       left: 210px;
-/
-
-* Width of left sideblock */
+    left: 210px;
+/* Width of left sideblock */
 }
 
-#page-content #region-main-box #region-post-box {
-       margin-left: -420px;
-       
+#page-content #region-post-box {
+    margin-left: -420px;
+
 
 /* Twice width of left sideblock */
   padding-top: 5px;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 420px;
-       
+#page-content #region-main {
+    margin-left: 420px;
+
 
 /* Twice width of left sideblock */
   padding: 0 15px;
@@ -24,9 +22,9 @@
 /* Padding around middle column */
 }
 
-#page-content #region-main-box #region-post-box #region-pre {
-       left: 210px;
-       
+#page-content #region-pre {
+    left: 210px;
+
 
 /* Width of left sideblock */
   width: 210px;
 /* Width of left sideblock */
 }
 
-#page-content #region-main-box #region-post-box #region-post {
-       width: 210px;
-/
-
-* Width of right sideblock */
+#page-content #region-post {
+    width: 210px;
+/* Width of right sideblock */
 }
 
 #page-content #region-main-box .region-content {
-       padding: 0;
+    padding: 0;
 }
 
 /** Only side pre **/
 
 .side-pre-only #page-content #region-main-box #region-post-box {
-       margin-left: -210px;
+    margin-left: -210px;
 }
 
 .side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 210px;
+    margin-left: 210px;
 }
 
 /** Only side post **/
 
 .side-post-only #page-content #region-main-box #region-post-box {
-       margin-left: -210px;
+    margin-left: -210px;
 }
 
 .side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 210px;
+    margin-left: 210px;
 }
 
 .has_dock.side-post-only .page-middle #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 210px;
+    margin-left: 210px;
 }
\ No newline at end of file
index ddc8f0a..02d00c2 100644 (file)
@@ -156,6 +156,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
     ),
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre'
+    ),
 );
 
 $THEME->rendererfactory = 'theme_overridden_renderer_factory';
diff --git a/theme/formal_white/layout/report.php b/theme/formal_white/layout/report.php
new file mode 100644 (file)
index 0000000..ca1a082
--- /dev/null
@@ -0,0 +1,127 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
+$hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT));
+
+$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
+$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
+
+$custommenu = $OUTPUT->custom_menu();
+$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+
+$bodyclasses = array();
+if ($showsidepre && !$showsidepost) {
+    $bodyclasses[] = 'side-pre-only';
+} else if ($showsidepost && !$showsidepre) {
+    $bodyclasses[] = 'side-post-only';
+} else if (!$showsidepost && !$showsidepre) {
+    $bodyclasses[] = 'content-only';
+}
+if ($hascustommenu) {
+    $bodyclasses[] = 'has_custom_menu';
+}
+
+if (!empty($PAGE->theme->settings->logo)) {
+    $logourl = $PAGE->theme->settings->logo;
+} else {
+    $logourl = $OUTPUT->pix_url('logo', 'theme');
+}
+
+if (!empty($PAGE->theme->settings->footnote)) {
+    $footnote = $PAGE->theme->settings->footnote;
+} else {
+    $footnote = '<!-- There was no custom footnote set -->';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+<div id="page">
+    <div id="page2">
+        <div id="headerleft" class="headerleft"><div>&nbsp;</div></div>
+        <div id="bodyleft" class="bodyleft">
+            <div id="bodyright" class="bodyright">
+                <div id="header-i3" class="i3">
+                <?php  if ($hasheading || $hasnavbar) {  // This is what gets printed on the home page only
+                ?>
+                    <div id="header-home" class="clearfix">
+                        <div id="headerenvelop">
+
+                            <!-- //echo '<h1 class="logo headermain">'.$PAGE->heading.'</h1>'; -->
+                            <?php echo '<div id="logo"><img class="sitelogo" src="'.$logourl.'" alt="Custom logo here" /></div>';
+                            echo '<div class="headermenu">';
+                                echo $OUTPUT->login_info();
+                                if (!empty($PAGE->theme->settings->alwayslangmenu)) {
+                                    echo $OUTPUT->lang_menu();
+                                }
+                                echo $PAGE->headingmenu;
+                            echo '</div>'; // closes: <div class="headermenu">
+
+                        echo '</div>'; // closes: <div id="headerenvelop">
+                    echo '</div>'; // closes: <div id="header-home" class="clearfix">
+
+                    if ($hascustommenu) {
+                        echo '<div id="custommenu">'.$custommenu.'</div>';
+                    }
+
+                    //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
+                    if ($hasnavbar) {
+                        echo '<div class="navbar clearfix">';
+                        echo '    <div class="breadcrumb">'.$OUTPUT->navbar().'</div>';
+                        echo '    <div class="navbutton">'.$PAGE->button.'</div>';
+                        echo '</div>';
+                    }
+
+                } ?>
+
+<!-- END OF HEADER -->
+
+                    <div id="page-content" class="clearfix shrinker">
+                        <div id="report-main-content">
+                            <div class="region-content">
+                                <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+                            </div>
+                        </div>
+                        <?php if ($hassidepre) { ?>
+                        <div id="report-region-wrap">
+                            <div id="report-region-pre" class="block-region">
+                                <div class="region-content">
+                                    <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+                                </div>
+                            </div>
+                        </div>
+                        <?php } ?>
+                    </div>
+
+                               </div> <!-- closes: <div id="header-i3" class="i3"> -->
+                       </div> <!-- closes: <div id="bodyright" class="bodyright"> -->
+               </div> <!-- closes: <div id="bodyleft" class="bodyleft"> -->
+        <div id="contentfooter" class="contentfooter"><div>&nbsp;</div></div>
+    </div>  <!-- closes: <div id="page2"> -->
+</div> <!-- closes:<div id="page"> -->
+
+<!-- START OF FOOTER -->
+<?php if ($hasfooter) { ?>
+    <div id="page-footer" class="clearfix">
+        <?php echo $footnote; ?>
+        <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+        <?php
+        echo $OUTPUT->login_info();
+        echo $OUTPUT->home_link();
+        echo $OUTPUT->standard_footer_html();
+        ?>
+    </div>
+<?php } ?>
+
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index d94f6cd..8f5a327 100644 (file)
@@ -64,12 +64,14 @@ function formalwhite_set_backgroundcolor($css, $backgroundcolor) {
 function formalwhite_set_regionwidth($css, $regionwidth) {
     $tag = '[[setting:regionwidth]]';
     $doubletag = '[[setting:regionwidthdouble]]';
+    $tagplus10 = '[[setting:regionwidthplus10]]';
     $replacement = $regionwidth;
     if (is_null($replacement)) {
         $replacement = 200;
     }
     $css = str_replace($tag, $replacement.'px', $css);
     $css = str_replace($doubletag, ($replacement*2).'px', $css);
+    $css = str_replace($tag, ($replacement+10).'px', $css);
     return $css;
 }
 
index 09ff630..bcf2602 100644 (file)
@@ -162,13 +162,16 @@ img.iconhelp {vertical-align:middle;}
 
 /** Forum **/
 .forumheaderlist,
-.forumpost {margin-top:15px;border:1px solid #DDD;border-collapse:separate;}
-.forumpost td {border-width:0px;}
-.forumpost .topic {background-color:#C8C9C7;}
+.forumpost {margin-top:15px;border:1px solid #DDD;background-color:#EEE;}
+.forumpost .header {background-color:#C8C9C7;}
+.forumpost .topic {padding:7px;}
 .forumpost .topic .subject {font-weight:bold;}
 .forumpost .topic .author {font-size:0.8em;}
-.forumpost .left {background-color:#EEE;padding:4px;text-align:center;vertical-align:top;width:35px;}
-.forumpost .content .commands {font-size:0.9em;clear:both;padding-top:0.5em;text-align:right;}
+.forumpost .left {background-color:#EEE;}
+.forumpost .content {background-color:#FFF;border-top:1px solid #333;}
+.forumpost .content .posting {padding:4px;}
+.forumpost .options {background-color:#FFF;}
+.forumpost .options .commands {font-size:0.9em;clear:both;padding:0.5em 5px 5px;text-align:right;}
 .forumpost .content .link {font-size:0.9em;}
 .forumpost .content .footer {font-size:0.9em;padding-top:0.5em;text-align:right;}
 
index 2eab157..c3ea7d1 100644 (file)
@@ -1,13 +1,11 @@
 .block .content {background-color:[[setting:backgroundcolor]];}
-#page-content #region-main-box {left:[[setting:regionwidth]];}
-#page-content #region-main-box #region-post-box {margin-left:-[[setting:regionwidthdouble]];}
-#page-content #region-main-box #region-post-box #region-pre {width:[[setting:regionwidth]];left:[[setting:regionwidth]];}
-#page-content #region-main-box #region-post-box #region-post {width:[[setting:regionwidth]];}
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:[[setting:regionwidthdouble]];}
-.side-pre-only #page-content #region-main-box #region-post-box {margin-left:-[[setting:regionwidth]];}
-.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {margin-left:[[setting:regionwidth]];}
-/* #page {width:[[setting:regionwidth]]%;margin:15px (100-[[setting:regionwidth])/2% 0;} */
-/* #page {min-width: 934px;} */
+#page-content #region-main-box {left:[[setting:regionwidthplus10]];}
+#page-content #region-post-box {margin-left:-[[setting:regionwidthdouble]];}
+#page-content #region-pre {width:[[setting:regionwidth]];left:[[setting:regionwidth]];}
+#page-content #region-post {width:[[setting:regionwidth]];}
+#page-content #region-main {margin-left:[[setting:regionwidthdouble]];}
+.side-pre-only #page-content #region-post-box {margin-left:-[[setting:regionwidth]];}
+.side-pre-only #page-content #region-main {margin-left:[[setting:regionwidth]];}
 
 /** Custom CSS **/
 [[setting:customcss]]
\ No newline at end of file
index c7ecd10..b59cdbe 100644 (file)
@@ -7,10 +7,11 @@
 .path-mod-forum .forumheaderlist th {background: url([[pix:theme|gradient-sb]]) repeat-x 0 0}
 .path-mod-forum .forumheaderlist .r1 td { background:#f5f5f5; }
 
-.forumpost .topic { background:#eee;border-color:#aaa;border-width:0 0 2px 0;padding-left:7px; }
+.forumpost .topic { background:#eee;border-bottom:2px solid #AAA;padding-left:7px; }
 .forumpost .topic .subject { font-size:1.25em; }
 .forumpost .topic .author { font-style:italic;color:#444;font-size:0.95em; }
-.forumpost .content { border-bottom:5px solid #aaa;padding:5px 7px 10px 7px; }
+.forumpost .content .posting { padding:5px 7px 10px 7px; }
+.forumpost .options { border-bottom:5px solid #aaa;}
 
 /* Assignments 
 --------------------------*/
index 8271c2d..4262e77 100644 (file)
@@ -38,8 +38,8 @@ $THEME->name = 'fusion';
 
 
 $THEME->parents = array(
-       'canvas',
-       'base',
+    'canvas',
+    'base',
 );
 
 /////////////////////////////////////////////////////
@@ -54,10 +54,10 @@ $THEME->parents = array(
 
 
 $THEME->sheets = array(
-       'core',
-       'pagelayout',
-       'menus',
-       'settings',
+    'core',
+    'pagelayout',
+    'menus',
+    'settings',
 );
 
 ////////////////////////////////////////////////////
@@ -66,12 +66,12 @@ $THEME->sheets = array(
 ////////////////////////////////////////////////////
 
 $THEME->parents_exclude_sheets = array(
-               'base'=>array(
-                       'pagelayout',
-               ),
-               'canvas'=>array(
-                       'pagelayout',
-               ),
+    'base'=>array(
+        'pagelayout',
+    ),
+    'canvas'=>array(
+        'pagelayout',
+    ),
 );
 
 
@@ -156,7 +156,7 @@ $THEME->layouts = array(
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
     'embedded' => array(
-       'theme' => 'canvas',
+        'theme' => 'canvas',
         'file' => 'embedded.php',
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
@@ -167,7 +167,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
     ),
-
+    'report' => array(
+        'file' => 'general.php',
+        'regions' => array('side-post'),
+        'defaultregion' => 'side-post',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
@@ -208,14 +212,14 @@ $THEME->layouts = array(
 // As above but will be included in the page footer.
 ////////////////////////////////////////////////////
 
-$THEME->larrow = '&lang;';
+$THEME->larrow    = '&lang;';
 
 ////////////////////////////////////////////////////
 // Overrides the left arrow image used throughout
 // Moodle
 ////////////////////////////////////////////////////
 
-$THEME->rarrow = '&rang;';
+$THEME->rarrow    = '&rang;';
 
 ////////////////////////////////////////////////////
 // Overrides the right arrow image used throughout Moodle
index 4f3f223..a64e2d3 100644 (file)
@@ -38,14 +38,14 @@ body {
        width: 100%;
 }
 
-#page-content #region-main-box #region-post-box {
+#page-content #region-post-box {
        float: left;
        right: 72%;
        position: relative;
        width: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+#page-content #region-main {
        float: left;
        overflow: hidden;
        position: relative;
@@ -54,7 +54,7 @@ body {
        width: 72%;
 }
 
-#page-content #region-main-box #region-post-box #region-post {
+#page-content #region-post {
        float: left;
        overflow: hidden;
        position: relative;
@@ -62,12 +62,12 @@ body {
        width: 28%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
+#page-content #region-main .region-content {
        overflow: hidden;
        padding: 50px 15px 20px 0;
 }
 
-#page-content #region-main-box #region-post-box #region-post .region-content {
+#page-content #region-post .region-content {
        overflow: hidden;
        padding: 0 0 0 10px;
 }
@@ -84,19 +84,22 @@ body {
        right: 0%;
 }
 
-.content-only #page-content #region-main-box #region-post-box {
+.content-only #page-content #region-post-box {
        right: 100%;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+.content-only #page-content #region-main {
        left: 100%;
        width: 100%;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-pre {
+.content-only #page-content #region-pre {
        width: 0%;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-post {
+.content-only #page-content #region-post {
        width: 0%;
-}
\ No newline at end of file
+}
+
+.pagelayout-report #page-content #region-main {overflow:auto;}
+.pagelayout-report #page-content #region-main .region-content {overflow:visible;}
\ No newline at end of file
index 9219516..fe39c6c 100644 (file)
@@ -38,8 +38,8 @@ $THEME->name = 'leatherbound';
 
 
 $THEME->parents = array(
-               'canvas',
-               'base',
+    'canvas',
+    'base',
 );
 
 /////////////////////////////////////////////////////
@@ -54,7 +54,7 @@ $THEME->parents = array(
 
 
 $THEME->sheets = array(
-       'core',
+    'core',
 );
 
 ////////////////////////////////////////////////////
@@ -144,7 +144,7 @@ $THEME->layouts = array(
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
     'embedded' => array(
-       'theme' => 'canvas',
+        'theme' => 'canvas',
         'file' => 'embedded.php',
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
@@ -155,7 +155,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
     ),
-
+    'report' => array(
+        'file' => 'report.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
index b6a9fc1..bc6c787 100644 (file)
@@ -29,26 +29,26 @@ echo $OUTPUT->doctype() ?>
 <div id="page">
 <?php if ($hasheading || $hasnavbar) { ?>
     <div id="page-header">
-               <div id="page-header-wrapper" class="wrapper clearfix">
-               <?php if ($hasheading) { ?>
-                   <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1>
-                       <div class="headermenu"><?php
-                       echo $OUTPUT->login_info();
-                               if (!empty($PAGE->layout_options['langmenu'])) {
-                                       echo $OUTPUT->lang_menu();
-                               }
-                           echo $PAGE->headingmenu ?>
-                   </div>
-               <?php } ?>
-           </div>
+        <div id="page-header-wrapper" class="wrapper clearfix">
+            <?php if ($hasheading) { ?>
+                <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1>
+                <div class="headermenu"><?php
+                    echo $OUTPUT->login_info();
+                        if (!empty($PAGE->layout_options['langmenu'])) {
+                            echo $OUTPUT->lang_menu();
+                        }
+                    echo $PAGE->headingmenu ?>
+                </div>
+            <?php } ?>
+        </div>
     </div>
 
         <?php if ($hasnavbar) { ?>
             <div class="navbar">
-               <div class="wrapper clearfix">
-                       <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
-                   <div class="navbutton"> <?php echo $PAGE->button; ?></div>
-               </div>
+                <div class="wrapper clearfix">
+                    <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                    <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+                </div>
             </div>
         <?php } ?>
 
diff --git a/theme/leatherbound/layout/report.php b/theme/leatherbound/layout/report.php
new file mode 100644 (file)
index 0000000..a1866f3
--- /dev/null
@@ -0,0 +1,91 @@
+<?php
+
+$hasheading = ($PAGE->heading);
+$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
+$hasfooter = (empty($PAGE->layout_options['nofooter']));
+$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
+$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
+
+$bodyclasses = array();
+if ($hassidepre && !$hassidepost) {
+    $bodyclasses[] = 'side-pre-only';
+} else if ($hassidepost && !$hassidepre) {
+    $bodyclasses[] = 'side-post-only';
+} else if (!$hassidepost && !$hassidepre) {
+    $bodyclasses[] = 'content-only';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+
+<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page">
+<?php if ($hasheading || $hasnavbar) { ?>
+    <div id="page-header">
+        <div id="page-header-wrapper" class="wrapper clearfix">
+            <?php if ($hasheading) { ?>
+                <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1>
+                <div class="headermenu"><?php
+                    echo $OUTPUT->login_info();
+                        if (!empty($PAGE->layout_options['langmenu'])) {
+                            echo $OUTPUT->lang_menu();
+                        }
+                    echo $PAGE->headingmenu ?>
+                </div>
+            <?php } ?>
+        </div>
+    </div>
+
+        <?php if ($hasnavbar) { ?>
+            <div class="navbar">
+                <div class="wrapper clearfix">
+                    <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+                    <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+                </div>
+            </div>
+        <?php } ?>
+
+<?php } ?>
+<!-- END OF HEADER -->
+
+<div id="page-content-wrapper" class="wrapper clearfix">
+    <div id="page-content">
+        <div id="report-main-content">
+            <div class="region-content">
+                <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+            </div>
+        </div>
+        <?php if ($hassidepre) { ?>
+        <div id="report-region-wrap">
+            <div id="report-region-pre" class="block-region">
+                <div class="region-content">
+                    <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+                </div>
+            </div>
+        </div>
+        <?php } ?>
+    </div>
+</div>
+
+<!-- START OF FOOTER -->
+    <?php if ($hasfooter) { ?>
+    <div id="page-footer" class="wrapper">
+        <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
+        <?php
+        echo $OUTPUT->login_info();
+        echo $OUTPUT->home_link();
+        echo $OUTPUT->standard_footer_html();
+        ?>
+    </div>
+    <?php } ?>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index c029e18..c7a4b44 100644 (file)
 ------------------------*/
 
 body {
-       background: #fff;
-       margin: 0;
-       padding: 0;
-       color: #281f18;
+    background: #fff;
+    margin: 0;
+    padding: 0;
+    color: #281f18;
 }
 
 body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea {
-       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 }
 
 .wrapper {
-       margin: 0 25px;
+    margin: 0 25px;
 }
 
 a:link,a:visited {
-       color: #DA5013;
+    color: #DA5013;
 }
 
 a:hover,a:active {
-       color: #251c17;
+    color: #251c17;
 }
 
 a img {
-       border: none;
+    border: none;
 }
 
 a:active {
-       outline: none;
+    outline: none;
 }
 
 /* Header 
 -----------------------*/
 
 #page-header {
-       float: none;
-       padding: 10px 0 0;
-       background: url([[pix:theme|header]]);
-       border-bottom: 5px solid #DA5013;
-       color: #fff;
+    float: none;
+    padding: 10px 0 0;
+    background: url([[pix:theme|header]]);
+    border-bottom: 5px solid #DA5013;
+    color: #fff;
 }
 
 #page-header h1 {
-       font-size: 2.25em;
-       margin: 30px 0 20px;
+    font-size: 2.25em;
+    margin: 30px 0 20px;
 }
 
 #page-header h1.inside {
-       font-size: 1.8em;
-       margin: 20px 0 10px;
+    font-size: 1.8em;
+    margin: 20px 0 10px;
 }
 
 .headermenu {
-       margin: 0;
-       font-size: 0.9em;
+    margin: 0;
+    font-size: 0.9em;
 }
 
 /* Navbar
 -----------------------*/
 
 .navbar {
-       border-width: 0 0 1px 0;
-       border-color: #ddddd7;
-       background: #f7f6f1;
-       margin: 0;
-       padding: 5px 0;
+    border-width: 0 0 1px 0;
+    border-color: #ddddd7;
+    background: #f7f6f1;
+    margin: 0;
+    padding: 5px 0;
 }
 
 .navbar .navbutton {
-       margin-top: 0;
+    margin-top: 0;
 }
 
 .breadcrumb .sep {
-       font-size: 0.8em;
-       color: #999;
+    font-size: 0.8em;
+    color: #999;
 }
 
 /* Content
 -----------------------*/
 
 #page-content-wrapper {
-       float: none;
-       margin-top: 5px;
+    float: none;
+    margin-top: 5px;
 }
 
 /* Blocks
 -----------------------*/
 
 .block {
-       margin-bottom: 20px;
-       border: none;
+    margin-bottom: 20px;
+    border: none;
 }
 
 .block .header {
-       border-top: 2px solid #da5013;
-       background: #f7f6f1;
-       padding: 4px 5px 5px;
+    border-top: 2px solid #da5013;
+    background: #f7f6f1;
+    padding: 4px 5px 5px;
 }
 
 .block .title h2 {
-       color: #35251B;
-       font-weight: normal;
-       font-size: 1.2em;
-       margin: 0;
+    color: #35251B;
+    font-weight: normal;
+    font-size: 1.2em;
+    margin: 0;
 }
 
 /* Forum
 ------------------------*/
 
 .forumpost .topic {
-       background: #dbd6c7;
-       border-bottom-color: #da5013;
+    background: #dbd6c7;
+    border-bottom:1px solid #da5013;
+    padding:5px 4px 4px;
 }
 
 .forumpost .topic .subject {
-       font-weight: bold;
-       font-size: 1.1em;
+    font-weight: bold;
+    font-size: 1.1em;
 }
 
 .forumpost .topic .author {
-       font-size: 0.9em;
+    font-size: 0.9em;
 }
 
 .forumpost .content {
-       background: #f7f5f1;
-       border-width: 0 1px 1px;
-       border-style: solid;
-       border-color: #d9d8d4;
+    background: #f7f5f1;
+    border-width: 0 1px 1px;
+    border-style: solid;
+    border-color: #d9d8d4;
 }
 
 /* Course
 ---------------------------*/
 
 h2.headingblock {
-       border-width: 0 0 1px 0;
-       padding: 5px 5px 2px;
-       font-weight: normal;
-       font-size: 1.2em;
-       background: #f7f5f1;
-       color: #251c17;
+    border-width: 0 0 1px 0;
+    padding: 5px 5px 2px;
+    font-weight: normal;
+    font-size: 1.2em;
+    background: #f7f5f1;
+    color: #251c17;
 }
 
 .course-content .main {
-       background: #f7f5f1;
-       border: 1px solid #ddd
+    background: #f7f5f1;
+    border: 1px solid #ddd
 }
 
 .course-content .current {
-       background: #da5013;
-       color: #fff;
+    background: #da5013;
+    color: #fff;
 }
 
 .course-content .main .content {
-       background: #fff;
+    background: #fff;
 }
 
 /* Dock
 ---------------------------*/
 
 #dock {
-       background-color: #f7f5f1;
-       border-right-color: #433b30;
+    background-color: #f7f5f1;
+    border-right-color: #433b30;
 }
 
 #dock .dockeditem_container {
-       margin-top: 10px;
+    margin-top: 10px;
 }
 
 #dock .dockeditem {
-       background-color: #fff;
+    background-color: #fff;
 }
 
 #dock .firstdockitem {
-       margin-top: 1em;
+    margin-top: 1em;
 }
 
 #dock .dockeditem .dockedtitle {
-       border-color: #dddddd;
-       border-top-color: #fff;
+    border-color: #dddddd;
+    border-top-color: #fff;
 }
 
 #dock .dockeditem .dockedtitle.activeitem {
-       background: #f7f5f1;
-       border-top-color:#f7f5f1 ;
+    background: #f7f5f1;
+    border-top-color:#f7f5f1 ;
 }
 
 #dock .firstdockitem .dockedtitle {
-       border-top-color: #ddd; 
+    border-top-color: #ddd;
 }
-       
+
 #dock .dockeditem .dockedtitle h2 {
-       margin: 12px 0 12px 7px;
+    margin: 12px 0 12px 7px;
 }
 
 #dockeditempanel .dockeditempanel_content {
-       border-color: #433b30;
+    border-color: #433b30;
 }
 
 #dockeditempanel .dockeditempanel_hd {
-       border-bottom: none;
-       padding: 3px 5px;
-       background: #f7f6f1;
-       text-align: left;
+    border-bottom: none;
+    padding: 3px 5px;
+    background: #f7f6f1;
+    text-align: left;
 }
 
 #dockeditempanel .dockeditempanel_hd h2 {
-       color: #333;
-       text-align: left;
-       font-weight: normal;
-       font-size: 1.25em;
-       padding: 0 2px;
+    color: #333;
+    text-align: left;
+    font-weight: normal;
+    font-size: 1.25em;
+    padding: 0 2px;
 }
 
 #dockeditempanel .dockeditempanel_hd .commands {
-       float: right;
+    float: right;
 }
 /* block expansion code */
 
 .block_js_expansion .block_tree {
-       overflow-x: scroll;
+    overflow-x: scroll;
 }
 
 .block_js_expansion.mouseover .content {
-       width: 200%;
-       z-index: 1000;
-       position: relative;
+    width: 200%;
+    z-index: 1000;
+    position: relative;
 }
 
 .block_js_expansion.mouseover .content .block_tree {
-       width: 100%;
-       background-color: #FAFAFA;
-       padding-bottom: 0px;
+    width: 100%;
+    background-color: #FAFAFA;
+    padding-bottom: 0px;
 }
 
 /** IE stylings */
 
 .ie6 .block .block_tree {
-       width: 160px;
-       overflow-x: scroll;
+    width: 160px;
+    overflow-x: scroll;
 }
 
 .ie6 .block_tree .tree_item {
-       width: 100%;
+    width: 100%;
 }
 
 .ie6 #dock {
-       position: absolute;
+    position: absolute;
 }
 
 .ie6 #dock hr {
-       display: none;
-       margin: 0px;
-       height: 0px;
-       padding: 0px;
+    display: none;
+    margin: 0px;
+    height: 0px;
+    padding: 0px;
 }
 
 .ie6 #dock li p {
-       background-color: inherit;
+    background-color: inherit;
 }
 
 .ie6 #dock .bd.oversized_content .content, .ie7 #dock .bd.oversized_content .content {
-       padding-bottom: 0px;
+    padding-bottom: 0px;
 }
 
 .ie6 .block_js_expansion.mouseover .content, .ie7 .block_js_expansion.mouseover .content {
-       padding-bottom: 2px;
+    padding-bottom: 2px;
 }
 
 .ie6 #dock .bd.oversized_content {
-       width: 100%;
+    width: 100%;
 }
\ No newline at end of file
index 3cd91ae..706cf9f 100644 (file)
@@ -120,7 +120,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
     ),
-
+    'report' => array(
+        'file' => 'general.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
index 15da183..7597e11 100644 (file)
@@ -1,70 +1,70 @@
 /** colors file for magazine theme, contains colors, logo and background image **/
 
 html,body {
-       background: #fff url([[setting:background]]);
+    background: #fff url([[setting:background]]);
 }
 
 html a,body a, html a:visited,body a:visited {
-       color: [[setting:linkcolor]];
+    color: [[setting:linkcolor]];
 }
 
 html a:hover,body a:hover {
-       color: [[setting:linkhover]];
+    color: [[setting:linkhover]];
 }
 
 /** header and dock, default #002f2f and #092323 **/
 
 #header-wrap, #dock {
-       background: [[setting:maincolor]];
-       border-bottom: 1px solid [[setting:maincoloraccent]];
+    background: [[setting:maincolor]];
+    border-bottom: 1px solid [[setting:maincoloraccent]];
 }
 
 /** logo is below **/
 
 div.thetitle {
-       background: url([[setting:logo]]) no-repeat 0% 50%;
+    background: url([[setting:logo]]) no-repeat 0% 50%;
 }
 
 /** block header font color and others default is #002f2f **/
 
 td.category.number, .yui-module.yui-overlay.yui-panel div.hd, #navigation li a:link,#navigation li a:visited, div.tabtree li a span {
-       color: [[setting:maincolor]];
+    color: [[setting:maincolor]];
 }
 
 .title h2, div.dockeditempanel_hd h2, div.dockeditempanel_hd {
-       color: [[setting:blockcolor]];
+    color: [[setting:blockcolor]];
 }
 
 .yui3-menu-content li a {
-       color: [[setting:maincolor]] !important;
+    color: [[setting:maincolor]] !important;
 }
 
 div.dockedtitle {
-       border-bottom: 1px solid [[setting:maincoloraccent]] !important;
-       border-top: 1px solid #333333 !important;
+    border-bottom: 1px solid [[setting:maincoloraccent]] !important;
+    border-top: 1px solid #333333 !important;
 }
 
 /** main headings and forum post subject default color #4e0000 **/
 
 #nologo, #nologo a, .generalbox h2,h3.sectionname, div.tabtree li.selected a span, .forumpost .subject, .blog_entry div.subject a, h2.headingblock,h2.main,h3.main, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2 {
-       color: [[setting:headingcolor]];
+    color: [[setting:headingcolor]];
 }
 
 /** forum post subject background default is #e6e2af **/
 
-.forumpost td.topic {
-       background: [[setting:forumback]] url([[pix:theme|alert-overlay]]) repeat-x;
+.forumpost .topic {
+    background: [[setting:forumback]] url([[pix:theme|alert-overlay]]) repeat-x;
 }
 
 /** table header background color, default is #002f2f **/
 
 td.maincalendar table.calendartable th, table.rolecap .header,.generaltable .header,.forumheaderlist .header,.files .header,.editcourse .header,.logtable .header,#attempts .header,table#categoryquestions th {
-       background: [[setting:maincolor]] !important;
+    background: [[setting:maincolor]] !important;
 }
 
 
 /** dock item hover, default is #4e0000 **/
 
 div.dockeditem_container div.dockeditem:hover {
-       background: [[setting:headingcolor]] url([[pix:theme|mbar]]) repeat-y;
+    background: [[setting:headingcolor]] url([[pix:theme|mbar]]) repeat-y;
 }
\ No newline at end of file
index 653349c..d1940a7 100644 (file)
@@ -1,29 +1,29 @@
 /** body font family and background image **/
 
 html,body {
-       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-       margin: 0;
-       padding: 0;
+    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+    margin: 0;
+    padding: 0;
 }
 
 html a:hover,body a:hover {
-       text-decoration: underline;
+    text-decoration: underline;
 }
 
 /** remove text decoration from some links **/
 
 div.yui3-widget-bd a, .tabtree li a, .block div.content a, .unlist a, .categorybox a, .course_category_tree a, .section a {
-       text-decoration: none;
+    text-decoration: none;
 }
 
 a:active {
-       outline: 0;
+    outline: 0;
 
 /* for browsers that understand */
 }
 
 a:focus {
-       outline: 0;
+    outline: 0;
 
 /* for browsers that understand */
 }
@@ -31,1131 +31,1133 @@ a:focus {
 /**header divs **/
 
 #header-wrap {
-       top: 0;
-       left: 0;
-       width: 100%;
+    top: 0;
+    left: 0;
+    width: 100%;
 }
 
 #header {
-       width: 91%;
-       min-width: 910px;
-       height: 30px;
-       margin: 0 auto;
-       overflow: hidden;
+    width: 91%;
+    min-width: 910px;
+    height: 30px;
+    margin: 0 auto;
+    overflow: hidden;
 }
 
 #headright {
-       float: right;
-       font-size: 10px;
-       font-weight: 200;
-       margin-top: 0;
-       padding-top: 0;
-       min-width: 180px;
-       text-align: right;
-       color: #eeeeee;
-       line-height: 30px;
-       min-width: 400px;
+    float: right;
+    font-size: 10px;
+    font-weight: 200;
+    margin-top: 0;
+    padding-top: 0;
+    min-width: 180px;
+    text-align: right;
+    color: #eeeeee;
+    line-height: 30px;
+    min-width: 400px;
 }
 
 #headright a {
-       color: #fff;
+    color: #fff;
 }
 
 #headright div.langmenu {
-       float: right !important;
-       display: inline !important;
-       padding: 0px 0px 0px 0px !important;
-       line-height: 28px !important;
-       margin: 0px 0px 0px 5px !important;
-       font-size: 9px;
+    float: right !important;
+    display: inline !important;
+    padding: 0px 0px 0px 0px !important;
+    line-height: 28px !important;
+    margin: 0px 0px 0px 5px !important;
+    font-size: 9px;
 }
 
 #headleft {
-       float: left;
-       height: 30px;
-       line-height: 30px;
-       color: #fff;
-       font-size: 12px;
+    float: left;
+    height: 30px;
+    line-height: 30px;
+    color: #fff;
+    font-size: 12px;
 }
 
 /** Logo and menu bar divs and wrap **/
 
 #textcontainer-wrap {
-       top: 0;
-       left: 0;
-       width: 100%;
-       border-top: 1px solid #fff;
+    top: 0;
+    left: 0;
+    width: 100%;
+    border-top: 1px solid #fff;
 }
 
 #textcontainer {
-       clear: both;
-       border: none;
-       width: 92%;
-       min-width: 910px;
-       height: 130px;
-       margin: 0 auto;
-       overflow: hidden;
+    clear: both;
+    border: none;
+    width: 92%;
+    min-width: 910px;
+    height: 130px;
+    margin: 0 auto;
+    overflow: hidden;
 }
 
 div.thetitle {
-       width: 340px;
-       height: 130px;
-       float: left;
+    width: 340px;
+    height: 130px;
+    float: left;
 }
 
 #nologo {
-       width: 337px;
-       float: left;
-       overflow: hidden;
-       padding-left: 3px;
-       margin-top: 40px;
-       }
-       
+    width: 337px;
+    float: left;
+    overflow: hidden;
+    padding-left: 3px;
+    margin-top: 40px;
+    }
+
 #nologo.nomenu {
-       width: 100%;
-}      
+    width: 100%;
+}
 
 #nologo a, #nologo {
-       font-size: 35px;
-       font-style: italic;
-       font-family: Palatino,"Palatino Linotype",Georgia,"Times New Roman",serif;
-       font-weight: 800;
-       letter-spacing: -1px;
-       line-height: 45px;
-       
-       
+    font-size: 35px;
+    font-style: italic;
+    font-family: Palatino,"Palatino Linotype",Georgia,"Times New Roman",serif;
+    font-weight: 800;
+    letter-spacing: -1px;
+    line-height: 45px;
+
+
 }
 #nologo a:hover {
-       text-decoration: none;
+    text-decoration: none;
 }
 div.rightinfo {
-       float: right;
-       min-width: 470px;
-       height: 130px;
-       overflow: hidden;
+    float: right;
+    min-width: 470px;
+    height: 130px;
+    overflow: hidden;
 }
 
 #menucontainer {
-       height: 45px;
-       margin-top: 40px;
+    height: 45px;
+    margin-top: 40px;
 }
 
 
 /** main content wraps **/
 
 #outercontainer {
-       width: 91%;
-       min-width: 910px;
-       margin:0 auto;
-       background-position: 78% 100%;
-       padding: 1%;
-       background: url([[pix:theme|contback]]);
-       border: 1px solid #dadada;
+    width: 91%;
+    min-width: 910px;
+    margin:0 auto;
+    background-position: 78% 100%;
+    padding: 1%;
+    background: url([[pix:theme|contback]]);
+    border: 1px solid #dadada;
 }
 
 #container {
-       width: 100%;
-       margin:0 auto;
-       background: #fff url([[pix:theme|post_grid]]) repeat-y 21% 100%;
-       border: 1px solid #dadada;
+    width: 100%;
+    margin:0 auto;
+    background: #fff url([[pix:theme|post_grid]]) repeat-y 21% 100%;
+    border: 1px solid #dadada;
 }
 
 #innercontainer {
-       background: url([[pix:theme|post_grid]]) repeat-y  79% 100%;
+    background: url([[pix:theme|post_grid]]) repeat-y  79% 100%;
 }
 
 /** remove background image line for post or pre or content only **/
 
 .side-pre-only #innercontainer, .content-only #innercontainer, .content-only #container, .side-post-only #container {
-       background-image: none !important;
+    background-image: none !important;
 }
 
 /** breadcrumb and button holders at top of page content **/
 
 div#jcontrols_button {
-       width: 100%;
-       min-height: 35px;
-       border-top: 1px solid #fff;
-       background: #f9f9f9 url([[pix:theme|hr_grid]]) repeat-x 100% 100%;
+    width: 100%;
+    min-height: 35px;
+    border-top: 1px solid #fff;
+    background: #f9f9f9 url([[pix:theme|hr_grid]]) repeat-x 100% 100%;
 }
 
 div#jcontrols_bottom {
-       width: 100%;
-       height: 35px;
-       background: url([[pix:theme|hr_grid]]) repeat-x 0% 0%;
-       clear: both;
+    width: 100%;
+    height: 35px;
+    background: url([[pix:theme|hr_grid]]) repeat-x 0% 0%;
+    clear: both;
 }
 
 div.jcontrolsleft {
-       min-height: 35px;
-       line-height: 35px;
-       margin-left: 15px;
-       font-weight: 600;
-       font-size: 13px;
-       float: left;
-       min-width: 100px;
+    min-height: 35px;
+    line-height: 35px;
+    margin-left: 15px;
+    font-weight: 600;
+    font-size: 13px;
+    float: left;
+    min-width: 100px;
 }
 
 div.jcontrolsright {
-       float: right;
-       min-width: 100px;
-       min-height: 35px;
-       margin-right: 15px;
+    float: right;
+    min-width: 100px;
+    min-height: 35px;
+    margin-right: 15px;
 }
 
 div.jcontrolsright div.singlebutton, div.jcontrolsright div.forumsearch {
-       margin: 5px 0px 0px;
+    margin: 5px 0px 0px;
 }
 
 /** foot wraps and inner divs **/
 
 #footer {
-       width: 91%;
-       height: 35px;
-       position: relative;
-       margin: 0 auto;
+    width: 91%;
+    height: 35px;
+    position: relative;
+    margin: 0 auto;
 }
 
 #footer-wrap {
-       position: relative;
-       bottom: 0;
-       left: 0;
-       width: 100%;
-       background: none;
-       margin-top: 10px;
-       height: 35px;
+    position: relative;
+    bottom: 0;
+    left: 0;
+    width: 100%;
+    background: none;
+    margin-top: 10px;
+    height: 35px;
 }
 
 .johndocs {
-       float: right;
-       height: 15px;
-       font-size: 8px;
-       margin: 10px 3px 0px 0px;
-       color: #333333;
+    float: right;
+    height: 15px;
+    font-size: 8px;
+    margin: 10px 3px 0px 0px;
+    color: #333333;
 }
 
 .johndocs a, div.johndocsleft a {
-       font-weight: 200;
-       text-decoration: none;
+    font-weight: 200;
+    text-decoration: none;
 }
 
 div.johndocsleft {
-       float: left;
-       height: 15px;
-       margin-top: 10px;
-       width: 300px;
-       color: #333333;
-       font-size: 11px;
+    float: left;
+    height: 15px;
+    margin-top: 10px;
+    width: 300px;
+    color: #333333;
+    font-size: 11px;
 }
 
 /** Some breadcrumb style **/
 
 .breadcrumb ul {
-       line-height: 35px;
+    line-height: 35px;
 }
 
 .breadcrumb li a,.breadcrumb li, .breadcrumb li a:visited {
-       font-weight: 200;
-       text-decoration: none;
-       color: #666666;
-       font-size: 12px;
+    font-weight: 200;
+    text-decoration: none;
+    color: #666666;
+    font-size: 12px;
 }
 
 .breadcrumb li a:hover {
-       text-decoration: underline;
-       color: #333333;
+    text-decoration: underline;
+    color: #333333;
 }
 
 .breadcrumb li img {
-       vertical-align: middle;
+    vertical-align: middle;
 }
 
 /** breadcrumb image replacement **/
 
 div#jcontrols_button span.arrow.sep {
-       font-size: 1px;
-       color: #fafafa;
-       background: url([[pix:theme|breadcrumb_separator_arrow_2_dots]]) no-repeat;
-       background-position: 50% 9px;
-       display: inline-block;
-       width: 16px;
-       line-height: 40px;
+    font-size: 1px;
+    color: #fafafa;
+    background: url([[pix:theme|breadcrumb_separator_arrow_2_dots]]) no-repeat;
+    background-position: 50% 9px;
+    display: inline-block;
+    width: 16px;
+    line-height: 40px;
 }
 
 /** Block styles **/
 
 .block {
-       margin: 0 0 5px 0 !important;
-       padding: 0 0 0 0 !important;
-       border: none !important;
+    margin: 0 0 5px 0 !important;
+    padding: 0 0 0 0 !important;
+    border: none !important;
 }
 
 .block div.header {
-       margin: 0 0 0 !important;
-       padding-top: 0 !important;
-       min-height: 33px;
-       height: auto !important;
-       height: 33px;
-       border-right: 1px solid #dadada;
-       border-top: 1px solid #dfdfdf;
-       border-left: 1px solid #dfdfdf;
-       border-bottom: 1px solid #cccccc;
-       background: #eeeeee url([[pix:theme|bart5]]) repeat-x;
+    margin: 0 0 0 !important;
+    padding-top: 0 !important;
+    min-height: 33px;
+    height: auto !important;
+    height: 33px;
+    border-right: 1px solid #dadada;
+    border-top: 1px solid #dfdfdf;
+    border-left: 1px solid #dfdfdf;
+    border-bottom: 1px solid #cccccc;
+    background: #eeeeee url([[pix:theme|bart5]]) repeat-x;
 }
 
 .block.hidden div.header {
-       border: 1px solid #dadada;
+    border: 1px solid #dadada;
 }
 
 .block.block_with_controls div.header div.commands {
-       text-align: center;
-       border-top: 1px solid #ccc;
-       padding: 2px;
+    text-align: center;
+    border-top: 1px solid #ccc;
+    padding: 2px;
 }
 
 .block.block_with_controls div.header div.commands a img {
-       margin-right: 3px;
+    margin-right: 3px;
 }
 
 .title h2 {
-       padding: 0px 0px 0px 10px;
-       font-size: 16px;
-       text-transform: none;
-       margin: 0 !important;
-       line-height: 32px;
-       font-weight: 800;
+    padding: 0px 0px 0px 10px;
+    font-size: 16px;
+    text-transform: none;
+    margin: 0 !important;
+    line-height: 32px;
+    font-weight: 800;
 }
 
 .block div.block_action input, .block div.block_action img {
-       margin-top: 3px;
-       margin-right: 3px;
-       position: relative;
-       top: 6px;
+    margin-top: 3px;
+    margin-right: 3px;
+    position: relative;
+    top: 6px;
 }
 
 .block div.content {
-       font-size: 12px;
-       font-weight: 200;
-       padding: 10px 15px 15px;
+    font-size: 12px;
+    font-weight: 200;
+    padding: 10px 15px 15px;
 }
 
 /** extra left padding on right side blocks **/
 
 #region-post .block div.content {
-       padding-left: 20px;
+    padding-left: 20px;
 }
 
 /** some specific block styles for calendar block, login block, my profile block, etc. **/
 
 .block_calendar_month table.minicalendar.calendartable td,.block_calendar_month table.minicalendar.calendartable th {
-       border: none !important;
+    border: none !important;
 }
 
 .block_calendar_month table.minicalendar {
-       margin-bottom: 0px !important;
+    margin-bottom: 0px !important;
 }
 
 .block_calendar_month table.minicalendar.calendartable th abbr {
-       border: none !important;
-       text-decoration: none;
+    border: none !important;
+    text-decoration: none;
 }
 
 .block_comments div.content li {
-       list-style-type: none;
+    list-style-type: none;
 }
 
 .block_messages.block div.content .list a {
-       font-size: 10px;
+    font-size: 10px;
 }
 
 .block_login.block div.content div {
-       margin-bottom: 9px;
-       clear: both;
+    margin-bottom: 9px;
+    clear: both;
 }
 
 .block_login.block div.content label {
-       font-size: 11px;
-       display: inline-block;
-       min-width: 50px;
-       margin-right: 3px;
+    font-size: 11px;
+    display: inline-block;
+    min-width: 50px;
+    margin-right: 3px;
 }
 
 .block_myprofile div.content div {
-       font-size: 11px;
+    font-size: 11px;
 }
 
 .block_myprofile div.content div.myprofileitem.picture {
-       width: 105px;
-       float: left;
+    width: 105px;
+    float: left;
 }
 
 .block_myprofile div.myprofileitem.fullname {
-       font-size: 12px;
-       font-weight: 800;
+    font-size: 12px;
+    font-weight: 800;
 }
 
 .block_myprofile div.myprofileitem.edit {
-       clear: both;
-       font-weight: 800;
-       font-size: 12px;
+    clear: both;
+    font-weight: 800;
+    font-size: 12px;
 }
 
 .block_news_items div.content li.post {
-       margin-bottom: 4px;
-       margin-top: 2px;
+    margin-bottom: 4px;
+    margin-top: 2px;
 }
 
 .block_news_items div.content div.head.clearfix {
-       font-size: 11px;
+    font-size: 11px;
 }
 
 .block_news_items div.content div.info {
-       font-weight: 600;
+    font-weight: 600;
 }
 
 /** inner block style for decent display of recent news, etc **/
 
 .block_recent_activity.block_docked div.content h2.main, .block_recent_activity.block_docked div.content h3.main, .side-pre .block div.content h2.main,.side-post .block div.content h2.main,.block div.content h3.main,.block div.content h2 {
-       font-size: 13px;
-       color: #333;
-       font-weight: 800;
-       background: none;
-       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+    font-size: 13px;
+    color: #333;
+    font-weight: 800;
+    background: none;
+    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 }
 
 /** a few styles for the tabs **/
 
 div.tabtree li a span {
-       font-size: 11px;
+    font-size: 11px;
 }
 
 /** yui overlays **/
 
 div.yui3-widget.yui3-overlay.yui3-widget-positioned {
-       border: 1px solid #cccccc;
+    border: 1px solid #cccccc;
 }
 
 div.yui3-overlay-content.yui3-widget-stdmod {
-       border: 1px solid #fff;
-       background: #ffff66 url([[pix:theme|alert-overlay]]) repeat-x;
+    border: 1px solid #fff;
+    background: #ffff66 url([[pix:theme|alert-overlay]]) repeat-x;
 }
 
 div.yui3-widget-bd {
-       border: none;
-       background: none;
+    border: none;
+    background: none;
 }
 
 div.yui3-widget-bd h1.helpheading {
-       font-size: 16px !important;
-       font-weight: 800;
-       margin: 5px 0px 2px 18px;
-       background: url([[pix:theme|information]]) no-repeat 0% 50%;
+    font-size: 16px !important;
+    font-weight: 800;
+    margin: 5px 0px 2px 18px;
+    background: url([[pix:theme|information]]) no-repeat 0% 50%;
 }
 
 .yui-module.yui-overlay.yui-panel div.hd {
-       background: #eeeeee url([[pix:theme|bart5]]) repeat-x 0% 90%;
-       }
+    background: #eeeeee url([[pix:theme|bart5]]) repeat-x 0% 90%;
+    }
 
 /**moodle dropdown css for yui menu **/
 
 #custommenu {
-       font-size: 13px;
-       font-weight: 600;
-       border: none !important;
-       height: 45px;
+    font-size: 13px;
+    font-weight: 600;
+    border: none !important;
+    height: 45px;
 }
 
 div.yui3-menu.yui3-menu-horizontal {
-       background: #fafafa url([[pix:theme|menubarback]]) repeat-x !important;
-       border-bottom: 1px solid #cccccc !important;
-       border-top: 1px solid #dadada !important;
-       border-left: none;
-       border-right: 1px solid #cccccc;
-       float: right;
+    background: #fafafa url([[pix:theme|menubarback]]) repeat-x !important;
+    border-bottom: 1px solid #cccccc !important;
+    border-top: 1px solid #dadada !important;
+    border-left: none;
+    border-right: 1px solid #cccccc;
+    float: right;
 }
 
 div.yui3-menu-content {
-       border: none !important;
+    border: none !important;
 }
 
 .yui3-menu-content li a {
-       font-size: 12px;
-       font-weight: 600;
-       text-transform: lowercase;
-       line-height: 45px;
-       cursor: pointer;
-       border-right: none !important;
-       border-top: none !important;
-       border-bottom: none !important;
+    font-size: 12px;
+    font-weight: 600;
+    text-transform: lowercase;
+    line-height: 45px;
+    cursor: pointer;
+    border-right: none !important;
+    border-top: none !important;
+    border-bottom: none !important;
 }
 
 .yui3-menu-horizontal .yui3-menu-label {
-       padding-left: 16px !important;
-       background: url([[pix:theme|yuiarrows]]) no-repeat 7px 17px !important;
-       }
+    padding-left: 16px !important;
+    background: url([[pix:theme|yuiarrows]]) no-repeat 7px 17px !important;
+    }
 
 .yui3-menu-horizontal .yui3-menu-label-menuvisible {
-       background-position: 5px -23px !important;
+    background-position: 5px -23px !important;
 }
 
 .yui3-menu-content li {
-       border-left: 1px solid #dadada;
-       border-top: none !important;
+    border-left: 1px solid #dadada;
+    border-top: none !important;
 }
 
 .yui3-menu-content li:hover {
-       background: #eee;
+    background: #eee;
 }
 
 div.yui3-menu.custom_menu_submenu {
-       background: url([[pix:theme|yuiarrow]]) no-repeat 40px 0;
-       border: none;
-       min-width: 100px;
-       z-index: 99998;
+    background: url([[pix:theme|yuiarrow]]) no-repeat 40px 0;
+    border: none;
+    min-width: 100px;
+    z-index: 99998;
 }
 
 div.yui3-menu.custom_menu_submenu div.yui3-menu.custom_menu_submenu {
-       background: none !important;
-       min-width: 100px;
+    background: none !important;
+    min-width: 100px;
 }
 
 div.yui3-menu.custom_menu_submenu div.yui3-menu-content {
-       background: #fff;
-       z-index: 99999;
-       min-width: 200px;
-       padding-top: 0 !important;
-       padding-bottom: 0 !important;
-       margin: 20px 0px 0px -40px;
+    background: #fff;
+    z-index: 99999;
+    min-width: 200px;
+    padding-top: 0 !important;
+    padding-bottom: 0 !important;
+    margin: 20px 0px 0px -40px;
 }
 
 /** below style to move sub subs to the left to keep from going off the page **/
 
 div.yui3-menu.custom_menu_submenu div.yui3-menu-content div.yui3-menu.custom_menu_submenu div.yui3-menu-content {
-       margin-left: -400px !important;
-       /** double the width of the menu item **/
-       position: absolute;
-       top: -15px;
+    margin-left: -400px !important;
+    /** double the width of the menu item **/
+    position: absolute;
+    top: -15px;
 }
 
 div.yui3-menu.custom_menu_submenu .yui3-menu-content li {
-       border-left: none;
+    border-left: none;
 }
 
 div.yui3-menu.custom_menu_submenu .yui3-menu-content li a {
-       font-size: 11px;
-       border-bottom: 1px solid #cccccc !important;
-       border-top: 0px solid #fff !important;
-       text-transform: none;
-       background: #eee !important;
-       text-decoration: none !important;
-       text-transform: lowercase;
+    font-size: 11px;
+    border-bottom: 1px solid #cccccc !important;
+    border-top: 0px solid #fff !important;
+    text-transform: none;
+    background: #eee !important;
+    text-decoration: none !important;
+    text-transform: lowercase;
 }
 
 div.yui3-menu.custom_menu_submenu .yui3-menu-content li a:hover {
-       background: #cccccc !important;
-       cursor: pointer;
-       color: black !important;
-       text-decoration: none !important;
+    background: #cccccc !important;
+    cursor: pointer;
+    color: black !important;
+    text-decoration: none !important;
 }
 
 div.yui3-menu.custom_menu_submenu li a.yui3-menu-label {
-       background: #eee url([[pix:theme|yuiarrows]]) no-repeat 7px -72px !important;
+    background: #eee url([[pix:theme|yuiarrows]]) no-repeat 7px -72px !important;
 }
 
 div.yui3-menu.custom_menu_submenu li a.yui3-menu-label:hover {
-       background: #ccc url([[pix:theme|yuiarrows]]) no-repeat !important 7px -72px;
+    background: #ccc url([[pix:theme|yuiarrows]]) no-repeat !important 7px -72px;
 }
 
 /** yui moodle dock bar **/
 
 #dock {
-       padding-top: 0px;
-       width: 30px;
+    padding-top: 0px;
+    width: 30px;
 }
 
 div.dockeditem_container div.dockeditem {
-       background: url([[pix:theme|mbar]]) repeat-y;
-       border: none;
-       color: #fff;
-       font: 100% Constantia, Lucidabright, Lucida, Georgia, serif;
+    background: url([[pix:theme|mbar]]) repeat-y;
+    border: none;
+    color: #fff;
+    font: 100% Constantia, Lucidabright, Lucida, Georgia, serif;
 }
 
 div.dockeditem_container.firstdockitem {
-       border-top: none;
+    border-top: none;
 }
 
 div.dockedtitle {
-       border: none;
-       padding-top: 3px;
-       padding-bottom: 3px;
+    border: none;
+    padding-top: 3px;
+    padding-bottom: 3px;
 }
 
 .dockedtitle h2 {
-       font-weight: 200 !important;
+    font-weight: 200 !important;
 }
 
 div.dockeditempanel_content {
-       border: 1px solid #dadada !important;
-       border-left: none !important;
-       font-size: 90%;
+    border: 1px solid #dadada !important;
+    border-left: none !important;
+    font-size: 90%;
 }
 
 div.dockeditempanel_content a {
-       text-decoration: none;
+    text-decoration: none;
 }
 
 div.dockeditempanel_hd {
-       text-align: left;
-       font-size: 12px;
+    text-align: left;
+    font-size: 12px;
 }
 
 div.dockeditempanel_hd {
-       padding-top: 3px;
-       padding-bottom: 3px;
-       background: #eee;
-       border-bottom: 1px solid #dadada !important;
+    padding-top: 3px;
+    padding-bottom: 3px;
+    background: #eee;
+    border-bottom: 1px solid #dadada !important;
 }
 
 div.dockeditempanel_hd h2 {
-       font-weight: 600;
-       font-size: 12px;
+    font-weight: 600;
+    font-size: 12px;
 }
 
 div.dockeditempanel_bd ul, div.dockeditempanel_bd li {
-       list-style-type: none;
-       padding: 0;
+    list-style-type: none;
+    padding: 0;
 }
 
 div.dockeditempanel_bd {
-       font-weight: 200;
+    font-weight: 200;
 }
 
 #dockeditempanel {
-       margin-left: 1px;
+    margin-left: 1px;
 }
 
 html>
 
 /**/body #dockeditempanel {
-       margin-top: -20px;
+    margin-top: -20px;
 }
 
 #dock div.controls {
-       margin-top: 20px;
-       padding-top: 0px;
-       position: relative;
+    margin-top: 20px;
+    padding-top: 0px;
+    position: relative;
 }
 
 /** main headings **/
 
 .generalbox h2,h3.sectionname, h2.headingblock,h2.main,h3.main, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2 {
-       font-size: 30px;
-       padding-bottom: 2px;
-       margin: 3px 0 2px;
-       border-bottom: none;
-       display: block;
-       font-family: Georgia, serif;
-       font-weight: normal;
-       letter-spacing: -1px;
-       line-height: 1em;
-       background: url([[pix:theme|hr_grid]]) repeat-x 0% 89%
-       }
+    font-size: 30px;
+    padding-bottom: 2px;
+    margin: 3px 0 2px;
+    border-bottom: none;
+    display: block;
+    font-family: Georgia, serif;
+    font-weight: normal;
+    letter-spacing: -1px;
+    line-height: 1em;
+    background: url([[pix:theme|hr_grid]]) repeat-x 0% 89%
+    }
 
 .generalbox h2, #page-course-info h2.main, h3.sectionname, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2, div.hd h3.main {
-       font-size: 22px;
-       background: none;
+    font-size: 22px;
+    background: none;
 }
 
 /** forum post style **/
 
-.forumpost td.content {
-       border: 1px solid #dadada;
-       border-top: none;
-       background: #fff;
-       padding: 1em 1em 1em 1em;
+.forumpost .content {
+    border: 1px solid #dadada;
+    border-top: none;
+    background: #fff;
+    padding: 1em 1em 1em 1em;
 }
 
-.forumpost td.content div.posting {
-       font-size: 90%;
+.forumpost .content div.posting {
+    font-size: 90%;
 }
 
-.forumpost td.topic {
-       border: 1px solid #dadada;
-       padding-top: 0px;
-       padding-bottom: 0px;
+.forumpost .topic {
+    border: 1px solid #dadada;
+    padding-top: 0px;
+    padding-bottom: 0px;
+}
+
+.forumpost .topic div {
+    margin:4px;
 }
 
 .forumpost .subject, .blog_entry div.subject a {
-       font-size: 19px;
+    font-size: 19px;
 }
 
 td.picture {
-       border-right: none !important;
+    border-right: none !important;
 }
 
 td.author {
-       border-left: none !important;
+    border-left: none !important;
 }
 
-table.forumpost {
-       border: none;
+.forumpost {
+    border: none;
 }
 
 .forumpost .commands a {
-       text-decoration: none;
-       font-weight: 200;
+    text-decoration: none;
+    font-weight: 200;
 }
 
-.forumpost td.left {
-       padding: 4px 5px 4px 0;
+.forumpost .left {
+    
 }
 
-.forumpost td.left.picture {
-       background: url([[pix:theme|postline]]) no-repeat 120% 104%;
+.forumpost .left.picture {
+    background-image: url([[pix:theme|postline]]);
+    background-repeat: no-repeat;
+    background-position: 180% 106%;
 }
 
-.forumpost td.left.picture img {
-       border: 1px solid #eee;
-       border-bottom: 1px solid #ccc;
-       border-right: 1px solid #dadada;
-       background: #fff;
-       padding: 4px 4px 9px;
-       margin-top: 0px;
+.forumpost .left.picture img {
+    border: 1px solid #eee;
+    border-bottom: 1px solid #ccc;
+    border-right: 1px solid #dadada;
+    background: #fff;
+    margin: 4px 0 9px;
 }
 
 .forumpost .starter {
-       background-color: #FFF;
+    background-color: #FFF;
 }
 
 .forumpost .author {
-       font-size: 11px !important;
-       color: #666;
-       font-style: italic;
-       font-weight: 200;
+    font-size: 11px !important;
+    color: #666;
+    font-style: italic;
+    font-weight: 200;
 }
 
 .forumpost .author a {
-       font-style: normal;
-       font-weight: 800;
+    font-style: normal;
+    font-weight: 800;
 }
 
 .info .name a {
-       font-weight: bold;
+    font-weight: bold;
 }
 
 .indent {
-       margin-left: 30px;
+    margin-left: 30px;
 }
 
 div.subscribelink {
-       text-align: right;
+    text-align: right;
 }
 
 .subscribelink a {
-       text-decoration: none;
-       font-size: 11px;
+    text-decoration: none;
+    font-size: 11px;
 }
 
 /**tables and fields and foms oh my! **/
 
 .mform fieldset,fieldset.clearfix {
-       border: 1px solid #dadada !important;
-       background: #f9f9f9;
+    border: 1px solid #dadada !important;
+    background: #f9f9f9;
 }
 
 .ftoggler {
-       font-size: 18px;
-       color: #333333;
+    font-size: 18px;
+    color: #333333;
 }
 
 div.notifysuccess {
-       width: 80%;
-       margin: 0 auto;
-       font-size: 15px;
-       color: #008500;
-       border: 3px solid #dadada;
-       text-align: center;
-       background: #fff url([[pix:theme|check]]) no-repeat 2% 50%;
-       padding: 5px;
+    width: 80%;
+    margin: 0 auto;
+    font-size: 15px;
+    color: #008500;
+    border: 3px solid #dadada;
+    text-align: center;
+    background: #fff url([[pix:theme|check]]) no-repeat 2% 50%;
+    padding: 5px;
 }
 
 table a {
-       text-decoration: none;
+    text-decoration: none;
 }
 
 td.maincalendar table.calendartable th, table.rolecap .header,.generaltable .header,.forumheaderlist .header,.files .header,.editcourse .header,.logtable .header,#attempts .header,table#categoryquestions th {
-       font-size: 11px;
-       font-weight: 200;
-       text-decoration: none;
-       color: #fff !important;
-       border-top: 1px #ccc solid !important;
-       padding: 5px;
+    font-size: 11px;
+    font-weight: 200;
+    text-decoration: none;
+    color: #fff !important;
+    border-top: 1px #ccc solid !important;
+    padding: 5px;
 }
 
 table#categoryquestions th a {
-       color: #fff;
+    color: #fff;
 }
 
 .generaltable .header a,.forumheaderlist .header a, th.header.questionnametext a {
-       border: none;
-       color: #fff !important;
-       font-size: 12px;
-       text-decoration: none;
-       padding: 5px;
+    border: none;
+    color: #fff !important;
+    font-size: 12px;
+    text-decoration: none;
+    padding: 5px;
 }
 
 tr.r1 td {
-       background-color: #f9f9f9;
+    background-color: #f9f9f9;
 }
 
 table.rolecap td, table.rolecap th {
-       border-bottom: 1px solid #dadada;
+    border-bottom: 1px solid #dadada;
 }
 
 table.rolecap td.risk {
-       border-left: 1px solid #dadada;
+    border-left: 1px solid #dadada;
 }
 
 /** Coursebox and category box stuff for front page **/
 
 ul.unlist, ul.unlist li, ul.unlist li div, ul.unlist li div ul, ul.unlist li div ul li {
-       list-style-type: none;
-       padding: 0;
-       margin: 0;
+    list-style-type: none;
+    padding: 0;
+    margin: 0;
 }
 
 div.coursebox {
-       padding-bottom: 7px !important;
-       margin-bottom: 7px !important;
-       border-bottom: 1px solid #eee;
+    padding-bottom: 7px !important;
+    margin-bottom: 7px !important;
+    border-bottom: 1px solid #eee;
 }
 
 div.coursebox h3.name {
-       margin-top: 0px;
-       margin-bottom: 0px;
+    margin-top: 0px;
+    margin-bottom: 0px;
 }
 
 div.coursebox h3.name a {
-       font-size: 16px;
-       font-weight: 400;
+    font-size: 16px;
+    font-weight: 400;
 }
 
 .unlist div.summary {
-       font-size: 14px;
-       color: #666666;
-       font-style: italic;
+    font-size: 14px;
+    color: #666666;
+    font-style: italic;
 }
 
 .unlist ul.teachers {
-       display: block;
-       padding-left: 5px !important;
+    display: block;
+    padding-left: 5px !important;
 }
 
 .unlist ul.teachers li {
-       font-size: 10px;
+    font-size: 10px;
 }
 
 .unlist ul.teachers li a {
-       font-size: 11px;
+    font-size: 11px;
 }
 
 div.categorybox {
-       border: none !important;
-       margin-top: 0;
+    border: none !important;
+    margin-top: 0;
 }
 
 td.category.name a {
-       padding-left: 20px;
-       background-image: url([[pix:theme|jcourse]]) no-repeat 0 50%;
-       font-weight: 400;
-       font-size: 16px;
+    padding-left: 20px;
+    background-image: url([[pix:theme|jcourse]]) no-repeat 0 50%;
+    font-weight: 400;
+    font-size: 16px;
 }
 
 #course-index td.category.name a {
-       padding-left: 0px;
-       background-image: none;
+    padding-left: 0px;
+    background-image: none;
 }
 
 table.categorylist td {
-       padding: 0;
+    padding: 0;
 }
 
 div.course_category_tree a {
-       font-size: 16px;
-       font-weight: 400;
-       text-decoration: none;
+    font-size: 16px;
+    font-weight: 400;
+    text-decoration: none;
 }
 
 div.course_category_tree div.category,div.course_category_tree div.category_label,div.course_category_tree div.courses {
-       margin-bottom: 8px;
+    margin-bottom: 8px;
 }
 
 div.course_category_tree div.category.with_children div.category_label {
-       background-position: 0 55% !important;
+    background-position: 0 55% !important;
 }
 
 div.course_category_tree div.course.odd {
-       background: #eee;
+    background: #eee;
 }
 
 div.course_category_tree div.course a {
-       font-size: 14px;
+    font-size: 14px;
 }
 
 div.category.subcategory.with_children {
-       margin-left: 20px;
+    margin-left: 20px;
 }
 
 div.course_category_tree div.controls {
-       font-size: 10px;
-       color: #666;
-       text-transform: uppercase;
+    font-size: 10px;
+    color: #666;
+    text-transform: uppercase;
 }
 
 div.course_category_tree div.controls div {
-       margin-top: 3px;
-       margin-right: 10px;
-       border-bottom: 1px solid #dadada;
+    margin-top: 3px;
+    margin-right: 10px;
+    border-bottom: 1px solid #dadada;
 }
 
 /** inside  of course **/
 
 li.section {
-       border-bottom: 1px solid #dadada;
-       clear: both;
-       min-height: 30px;
+    border-bottom: 1px solid #dadada;
+    clear: both;
+    min-height: 30px;
 }
 
 li#section-0 div.content {
-       margin-top: 0px;
-       padding-top: 0px;
+    margin-top: 0px;
+    padding-top: 0px;
 }
 
 li.current {
-       background: #ffffe3;
+    background: #ffffe3;
 }
 
 li.current div.content {
-       background: #fff;
+    background: #fff;
 }
 
 h3.weekdates {
-       border: 1px solid #ccc;
-       background: #eeeeee url([[pix:theme|bart5]]) repeat-x;
-       width: 170px;
-       font-size: 11px !important;
-       font-weight: 200;
-       text-transform: uppercase;
-       text-align: center;
-       margin: 0px 0px 3px;
-       color: #333333 !important;
-       padding: 3px;
+    border: 1px solid #ccc;
+    background: #eeeeee url([[pix:theme|bart5]]) repeat-x;
+    width: 170px;
+    font-size: 11px !important;
+    font-weight: 200;
+    text-transform: uppercase;
+    text-align: center;
+    margin: 0px 0px 3px;
+    color: #333333 !important;
+    padding: 3px;
 }
 
 .current h3.weekdates {
-       color: black !important;
-       font-weight: 600;
+    color: black !important;
+    font-weight: 600;
 }
 
 div.course-content div.left.side {
-       font-weight: 200;
-       font-size: 20px;
-       font-family: Georgia, serif;
-       color: #666;
+    font-weight: 200;
+    font-size: 20px;
+    font-family: Georgia, serif;
+    color: #666;
 }
 
 span.completionprogress {
-       font-size: 11px;
-       font-weight: 200;
+    font-size: 11px;
+    font-weight: 200;
 }
 
 /**my moodle page style **/
 
 div.assignment.overview {
-       margin-bottom: 5px;
-       padding-bottom: 3px;
-       border-bottom: 1px dashed #dadada;
+    margin-bottom: 5px;
+    padding-bottom: 3px;
+    border-bottom: 1px dashed #dadada;
 }
 
 div.assignment.overview div.name {
-       font-weight: 600;
+    font-weight: 600;
 }
 
 div.assignment.overview div {
-       display: block !important;
-       float: none !important;
-       width: 100% !important;
+    display: block !important;
+    float: none !important;
+    width: 100% !important;
 }
 
 #page-my-index div.coursebox {
-       border-bottom: none;
+    border-bottom: none;
 }
 
 
 /** glossary activity **/
 
 table.glossarycategoryheader h2.main {
-       text-align: center;
-       margin-bottom: 0;
-       margin-top: 0;
+    text-align: center;
+    margin-bottom: 0;
+    margin-top: 0;
 }
 
 table.glossarypost {
-       margin-top: 0;
-       width: 100%;
-       border-bottom: 1px dashed #dadada;
+    margin-top: 0;
+    width: 100%;
+    border-bottom: 1px dashed #dadada;
 }
 
 table.glossarypost td.entry h3 {
-       font-size: 20px;
+    font-size: 20px;
 }
 
 /** a few quick wiki styles **/
 
 #page-mod-wiki-view div.generalbox {
-       padding: 10px;
+    padding: 10px;
 }
 
 #page-mod-wiki-view h2.wiki_headingtitle {
-       font-size: 22px;
-       font-family: Georgia, serif;
-       color: #333333;
-       font-weight: 600;
-       text-align: left;
-       margin-bottom: 3px;
-       margin-top: 2px;
+    font-size: 22px;
+    font-family: Georgia, serif;
+    color: #333333;
+    font-weight: 600;
+    text-align: left;
+    margin-bottom: 3px;
+    margin-top: 2px;
 }
 
 /**HR in content blocks **/
 
 .content hr {
-       height: 1px;
-       color: #dadada;
-       background-color: #dadada !important;
-       border: none;
-       border-style: none;
+    height: 1px;
+    color: #dadada;
+    background-color: #dadada !important;
+    border: none;
+    border-style: none;
 }
 
 /** some MISC styles to clean things up and keep the theme consistant **/
 
 div#intro {
-       border: none;
-       text-align: center;
-       font-size: 14px;
-       color: #333333;
+    border: none;
+    text-align: center;
+    font-size: 14px;
+    color: #333333;
 }
 
 div.que {
-       border: 1px solid #dadada;
+    border: 1px solid #dadada;
 }
 
 div.questionbankwindow.block div.header {
-       background: #eee !important;
+    background: #eee !important;
 }
 
 div.questionbankwindow.block div.header a {
-       color: #333333 !important;
-       font-size: 11px;
+    color: #333333 !important;
+    font-size: 11px;
 }
 
 div.generalbox, div.section {
-       border: 1px solid #dadada;
+    border: 1px solid #dadada;
 }
 
 /** take borders away from some generalboxes here **/
 
 div.generalbox.sitetopic, div.generalbox.authsui,#page-course-info div.generalbox, #page-admin-roles-assign div.generalbox, table.roleassigntable, table.roleassigntable td, #page-blocks-private-edit div.generalbox {
-       border: none;
+    border: none;
 }
 
 div.generalbox.firstpageoptions h3.main {
-       font-size: 16px;
+    font-size: 16px;
 }
 
 div.redirectmessage {
-       width: 60%;
-       margin: 10px auto 0 auto;
-       border: none;
-       font-size: 13px;
-       background: #fff url([[pix:theme|ajax-loader]]) no-repeat 50% 100%;
-       padding: 20px;
+    width: 60%;
+    margin: 10px auto 0 auto;
+    border: none;
+    font-size: 13px;
+    background: #fff url([[pix:theme|ajax-loader]]) no-repeat 50% 100%;
+    padding: 20px;
 }
 
 div.box.errorbox {
-       border: 1px solid #dadada;
-       color: #ff0000;
-       background: #fff url([[pix:theme|error]]) no-repeat 1% 3%;
-       padding: 10px;
+    border: 1px solid #dadada;
+    color: #ff0000;
+    background: #fff url([[pix:theme|error]]) no-repeat 1% 3%;
+    padding: 10px;
 }
 
 div#newmessageoverlay {
-       padding: 10px;
+    padding: 10px;
 }
 
 div#newmessageoverlay a {
-       text-decoration: none;
-       font-size: 11px;
+    text-decoration: none;
+    font-size: 11px;
 }
 
 #page-mod-page-view div.generalbox {
-       border-left: none;
-       border-right: none;
-       border-top: none;
+    border-left: none;
+    border-right: none;
+    border-top: none;
 }
 
-/** fix overflow on quiz results display **/
-
 div#tablecontainer {
-       overflow: auto;
-       margin-bottom: 10px;
+    margin-bottom: 10px;
 }
 
 div.course-content div.availabilityinfo {
-       font-size: 11px;
-       font-style: italic;
-       padding: 2px;
-       border-bottom: 1px dashed #dadada;
-       margin-bottom: 10px;
+    font-size: 11px;
+    font-style: italic;
+    padding: 2px;
+    border-bottom: 1px dashed #dadada;
+    margin-bottom: 10px;
 }
 
 /** login form **/
 
 .twocolumns div.loginpanel {
-       border-right: 1px dashed #dadada !important;
+    border-right: 1px dashed #dadada !important;
 }
 
 div.forgetpass {
-       clear: both;
+    clear: both;
 }
 
 div.loginform {
-       width: 50% !important;
+    width: 50% !important;
 }
 
 div.loginform div.form-input input {
-       width: 90px !important;
+    width: 90px !important;
 }
 
 div.loginform label {
-       line-height: 20px;
+    line-height: 20px;
 }
 
 div.signuppanel {
-       float: right !important;
-       width: 40% !important;
-       margin-left: 0px;
-       padding-left: 0px;
+    float: right !important;
+    width: 40% !important;
+    margin-left: 0px;
+    padding-left: 0px;
 }
 
 div.singlebutton.forumaddnew {
-       text-align: center;
+    text-align: center;
 }
 
 #page-course-info h2.main {
-       line-height: 5px;
-       margin-bottom: 5px;
+    line-height: 5px;
+    margin-bottom: 5px;
 }
 
 #page-course-info div.generalbox ul, #page-course-info div.generalbox li {
-       list-style-type: none;
+    list-style-type: none;
 }
\ No newline at end of file
index f6dc5a1..d938c9b 100644 (file)
        right: 0%;
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box {
+.side-pre-only #page-content #region-post-box {
        right: 77%;
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+.side-pre-only #page-content #region-main {
        left: 100%;
        width: 77%;
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
+.side-pre-only #page-content #region-main .region-content {
        overflow: hidden;
        padding: 20px 10px;
        padding-top: 10px;
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-pre {
+.side-pre-only #page-content #region-pre {
        left: 1%;
        width: 21%;
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-post {
+.side-pre-only #page-content #region-post {
        width: 0%;
 }
 
        right: 23%;
 }
 
-.side-post-only #page-content #region-main-box #region-post-box {
+.side-post-only #page-content #region-post-box {
        right: 76%;
 }
 
-.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+.side-post-only #page-content #region-main {
        left: 100%;
        width: 77%;
 }
 
-.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
+.side-post-only #page-content #region-main .region-content {
        overflow: hidden;
        padding: 20px 10px;
 }
 
-.side-post-only #page-content #region-main-box #region-post-box #region-post {
+.side-post-only #page-content #region-post {
        left: 100%;
        width: 21%;
 }
        right: 0%;
 }
 
-.content-only #page-content #region-main-box #region-post-box {
+.content-only #page-content #region-post-box {
        right: 100%;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
+.content-only #page-content #region-main {
        width: 98%;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-pre {
+.content-only #page-content #region-pre {
        width: 0%;
 }
 
 
 #region-post {
        padding-top: 0px;
-}
\ No newline at end of file
+}
+
+.pagelayout-report #page-content #region-main {overflow:auto;}
+.pagelayout-report #page-content #region-main .region-content {overflow:visible;}
\ No newline at end of file
index 1249bf0..c46e303 100644 (file)
@@ -38,8 +38,8 @@ $THEME->name = 'nonzero';
 
 
 $THEME->parents = array(
-       'canvas',
-       'base',
+    'canvas',
+    'base',
 );
 
 /////////////////////////////////////////////////////
@@ -54,8 +54,8 @@ $THEME->parents = array(
 
 
 $THEME->sheets = array(
-       'core',
-       'pagelayout',
+    'core',
+    'pagelayout',
 );
 
 ////////////////////////////////////////////////////
@@ -64,12 +64,12 @@ $THEME->sheets = array(
 ////////////////////////////////////////////////////
 
 $THEME->parents_exclude_sheets = array(
-               'base'=>array(
-                       'pagelayout',
-               ),
-               'canvas'=>array(
-                       'pagelayout',
-               ),
+    'base'=>array(
+        'pagelayout',
+    ),
+    'canvas'=>array(
+        'pagelayout',
+    ),
 );
 
 
@@ -155,7 +155,7 @@ $THEME->layouts = array(
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
     'embedded' => array(
-       'theme' => 'canvas',
+        'theme' => 'canvas',
         'file' => 'embedded.php',
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
@@ -166,7 +166,11 @@ $THEME->layouts = array(
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
     ),
-
+    'report' => array(
+        'file' => 'general.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
index 60123fa..b01e5ef 100644 (file)
 /** Path: theme pagelayout **/
-
-
-
 body {margin:auto 0px;width:auto;}
 #page {width:100%;overflow:hidden;}
 #page-content {
-       clear: both;
-       overflow: hidden;
-       position: relative;
-       width: 100%;
+    clear: both;
+    overflow: hidden;
+    position: relative;
+    width: 100%;
 }
 
 #page-content #region-main-box {
-       float: left;
-       margin-left: -[[setting:regionpostwidth]];;
-       position: relative;
-       width: 200%;
-       right: 100%;
+    float: left;
+    margin-left: -[[setting:regionpostwidth]];;
+    position: relative;
+    width: 200%;
+    right: 100%;
 }
 
-#page-content #region-main-box #region-post-box {
-       float: left;
-       margin-left: -[[setting:regionprewidth]];;
-       width: 100%;
+#page-content #region-post-box {
+    float: left;
+    margin-left: -[[setting:regionprewidth]];;
+    width: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap {
-       float: left;
-       width: 50%;
+#page-content #region-main-wrap {
+    float: left;
+    width: 50%;
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       overflow: hidden;
-       position: relative;
-       margin-left: [[setting:regionsumwidth]];
-       left: 100%;
+#page-content #region-main {
+    overflow: hidden;
+    position: relative;
+    margin-left: [[setting:regionsumwidth]];
+    left: 100%;
 }
 
-#page-content #region-main-box #region-post-box #region-pre {
-       float: right;
-       position: relative;
-       width: [[setting:regionprewidth]];
-       left: [[setting:regionprewidth]];
+#page-content #region-pre {
+    float: right;
+    position: relative;
+    width: [[setting:regionprewidth]];
+    left: [[setting:regionprewidth]];
 }
 
-#page-content #region-main-box #region-post-box #region-post {
-       float: right;
-       position: relative;
-       left: [[setting:regiondoublepresumwidth]];
-       width: [[setting:regionpostwidth]];
+#page-content #region-post {
+    float: right;
+    position: relative;
+    left: [[setting:regiondoublepresumwidth]];
+    width: [[setting:regionpostwidth]];
 }
 
-#page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
-       overflow: hidden;
-       padding: 20px 20px 20px 0;
+#page-content #region-main .region-content {
+    overflow: hidden;
+    padding: 20px 20px 20px 0;
 }
 
-#page-content #region-main-box #region-post-box #region-pre .region-content,
-#page-content #region-main-box #region-post-box #region-post .region-content {
-       overflow: hidden;
-       padding: 20px 10px;
+#page-content #region-pre .region-content,
+#page-content #region-post .region-content {
+    overflow: hidden;
+    padding: 20px 10px;
 }
 
 #page-footer {
-       clear: both;
-       float: left;
-       width: 100%;
+    clear: both;
+    float: left;
+    width: 100%;
 }
 
 /** Only side pre **/
-
 .side-pre-only #page-content #region-main-box {
-       margin-left: 0px;
+    margin-left: 0px;
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box {
-       margin-left: -[[setting:regionprewidth]];
+.side-pre-only #page-content #region-post-box {
+    margin-left: -[[setting:regionprewidth]];
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: [[setting:regionprewidth]];
+.side-pre-only #page-content #region-main {
+    margin-left: [[setting:regionprewidth]];
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-pre {
-       left: [[setting:regionprewidth]];
-       width: [[setting:regionprewidth]];
+.side-pre-only #page-content #region-pre {
+    left: [[setting:regionprewidth]];
+     width: [[setting:regionprewidth]];
 }
 
-.side-pre-only #page-content #region-main-box #region-post-box #region-post {
-       width: 0%;
+.side-pre-only #page-content #region-post {
+    width: 0%;
 }
 
 /** Only side post **/
-
 .side-post-only #page-content #region-main-box {
-       margin-left: 0px;
-       
+    margin-left: 0px;
+
 }
 
-.side-post-only #page-content #region-main-box #region-post-box {
-       margin-left: -[[setting:regionpostwidth]];
+.side-post-only #page-content #region-post-box {
+    margin-left: -[[setting:regionpostwidth]];
 }
 
-.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: [[setting:regionpostwidth]];
-       
+.side-post-only #page-content #region-main {
+    margin-left: [[setting:regionpostwidth]];
+
 }
 
-.side-post-only #page-content #region-main-box #region-post-box #region-post {
-               left: [[setting:regionpostwidth]];
-               width: [[setting:regionpostwidth]];
+.side-post-only #page-content #region-post {
+    left: [[setting:regionpostwidth]];
+    width: [[setting:regionpostwidth]];
 }
 
 .has_dock.side-post-only .page-middle #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: [[setting:regionprewidth]];
+    margin-left: [[setting:regionprewidth]];
 }
 
 /** No blocks whatsoever **/
-
 .content-only #page-content #region-main-box {
-       margin-left: 0px;
+    margin-left: 0px;
+}
+
+.content-only #page-content #region-post-box {
+    margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box {
-       margin-left: 0px;
+.content-only #page-content #region-main {
+    margin-left: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
-       margin-left: 0px;
+.content-only #page-content #region-pre {
+    width: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-pre {
-       width: 0px;
+.content-only #page-content #region-post {
+    width: 0px;
 }
 
-.content-only #page-content #region-main-box #region-post-box #region-post {
-       width: 0px;
-}
\ No newline at end of file
+.pagelayout-report #page-content #region-main {overflow:auto;}
+.pagelayout-report #page-content #region-main .region-content {overflow:visible;}
\ No newline at end of file
index 3425f8f..686e96c 100644 (file)
@@ -38,8 +38,8 @@ $THEME->name = 'overlay';
 
 
 $THEME->parents = array(
-       'canvas',
-       'base',
+    'canvas',
+    'base',
 );
 
 /////////////////////////////////////////////////////
@@ -54,9 +54,9 @@ $THEME->parents = array(
 
 
 $THEME->sheets = array(
-       'core',
-       'settings',
-       'pagelayout',
+    'core',
+    'settings',
+    'pagelayout',
 );
 
 ////////////////////////////////////////////////////
@@ -65,12 +65,12 @@ $THEME->sheets = array(
 ////////////////////////////////////////////////////
 
 $THEME->parents_exclude_sheets = array(
-               'base'=>array(
-                       'pagelayout', 
-               ),
-               'canvas'=>array(
-                       'pagelayout',
-               ),
+    'base'=>array(
+        'pagelayout',
+    ),
+    'canvas'=>array(
+        'pagelayout',
+    ),
 );
 
 
@@ -156,12 +156,16 @@ $THEME->layouts = array(
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
     'embedded' => array(
-       'theme' => 'canvas',
+        'theme' => 'canvas',
         'file' => 'embedded.php',
         'regions' => array(),
         'options' => array('nofooter'=>true, 'nonavbar'=>true),
     ),
-    
+    'report' => array(
+        'file' => 'general.php',
+        'regions' => array('side-pre'),
+        'defaultregion' => 'side-pre',
+    ),
 );
 
 ///////////////////////////////////////////////////////////////
@@ -174,7 +178,7 @@ $THEME->layouts = array(
 ///////////////////////////////////////////////////////////////
 
 $THEME->csspostprocess = 'overlay_process_css';
-       
+
 ////////////////////////////////////////////////////
 // Allows the user to provide the name of a function 
 // that all CSS should be passed to before being 
@@ -188,7 +192,7 @@ $THEME->csspostprocess = 'overlay_process_css';
 // media player for the filters
 ////////////////////////////////////////////////////
 
-// $THEME->javascripts 
+// $THEME->javascripts
 
 ////////////////////////////////////////////////////
 // An array containing the names of JavaScript files
@@ -196,26 +200,26 @@ $THEME->csspostprocess = 'overlay_process_css';
 // (gets included in the head)
 ////////////////////////////////////////////////////
 
-// $THEME->javascripts_footer  
+// $THEME->javascripts_footer
 
 ////////////////////////////////////////////////////
 // As above but will be included in the page footer.
 ////////////////////////////////////////////////////
 
-// $THEME->larrow      
+// $THEME->larrow
 
 ////////////////////////////////////////////////////
 // Overrides the left arrow image used throughout 
 // Moodle
 ////////////////////////////////////////////////////
 
-// $THEME->rarrow      
+// $THEME->rarrow
 
 ////////////////////////////////////////////////////
 // Overrides the right arrow image used throughout Moodle
 ////////////////////////////////////////////////////
 
-// $THEME->layouts     
+// $THEME->layouts
 
 ////////////////////////////////////////////////////
 // An array setting the layouts for the theme
@@ -228,7 +232,7 @@ $THEME->csspostprocess = 'overlay_process_css';
 // the themes parents
 ////////////////////////////////////////////////////
 
-// $THEME->parents_exclude_sheets      
+// $THEME->parents_exclude_sheets
 
 ////////////////////////////////////////////////////
 // An array of stylesheets not to inherit from the
@@ -252,5 +256,5 @@ $THEME->csspostprocess = 'overlay_process_css';
 // $THEME->resource_mp3player_colors
 
 ////////////////////////////////////////////////////
-// Controls the colours for the MP3 p