$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>';
$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;
}
$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);
$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;
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;
--- /dev/null
+.block.block_html .content {padding:0;}
+.block.block_html .content .no-overflow {padding:4px;}
\ No newline at end of file
}
- $r.='<ul class="list">'."\n";
+ $r.='<ul class="list no-overflow">'."\n";
$feeditems = $feed->get_items(0, $maxentries);
foreach($feeditems as $item){
/// 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" ';
if (!empty($section->sequence)) {
$sectionmods = explode(',', $section->sequence);
+ $options = array('overflowdiv'=>true);
foreach ($sectionmods as $modnumber) {
if (empty($mods[$modnumber])) {
continue;
}
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
/// 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" ';
if (!empty($section) && !empty($section->sequence)) {
$sectionmods = explode(',', $section->sequence);
+ $options = array('overflowdiv'=>true);
foreach ($sectionmods as $modnumber) {
if (empty($mods[$modnumber])) {
continue;
}
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
}
$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);
$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);
$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();
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);
$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();
$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)) {
$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 {
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);
$options = new stdClass;
$options->noclean = true;
$options->para = false;
+ $options->overflowdiv = true;
if (!isset($category->descriptionformat)) {
$category->descriptionformat = FORMAT_MOODLE;
}
$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)) {
$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 ' ';
$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))) {
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))) {
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);
$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);
$options = NULL;
$options->noclean = true;
$options->para = false;
+ $options->overflowdiv = true;
if (!isset($course->summaryformat)) {
$course->summaryformat = FORMAT_MOODLE;
}
$options = NULL;
$options->noclean = true;
$options->para = false;
+ $options->overflowdiv = true;
echo format_text($course->summary, $course->summaryformat, $options);
echo '</div>';
echo '</div>';
}
$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);
$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);
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)) {
$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) {
$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;
$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();
print_error('nocourseid');
}
require_login($course);
+$PAGE->set_pagelayout('report');
$context = get_context_instance(CONTEXT_COURSE, $course->id);
require_capability('gradereport/user:view', $context);
}
}
-echo $OUTPUT->footer();
-
-
+echo $OUTPUT->footer();
\ No newline at end of file
} 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
-.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
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);
$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;
$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);
$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
$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);
* 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
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');
* 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;
}
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;
}
$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).'>';
}
* 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
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()) {
'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
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));
}
$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();
.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 **/
//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();
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();
$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));
}
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 {
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');
}
$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 {
}
echo "<br />";
-echo html_writer::table($table);
+echo html_writer::tag('div', html_writer::table($table), array('class'=>'no-overflow'));
echo $OUTPUT->footer();
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>';
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>';
$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));
}
/**
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();
}
* @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);
// caching
if (!isset($cm->cache)) {
- $cm->cache = new stdClass();
+ $cm->cache = new stdClass;
}
if (!isset($cm->cache->caps)) {
$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', ' ', 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 ' ';
-
- // 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.'&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])) {
$groups = groups_get_all_groups($course->id, $post->userid, $cm->groupingid);
}
- if ($groups) {
- print_group_picture($groups, $course->id, false, false, true);
- } else {
- echo ' ';
- }
-
-// 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 = '&mark=unread&postid='.$post->id;
- $mtxt = $strmarkunread;
- } else {
- $mcmd = '&mark=read&postid='.$post->id;
- $mtxt = $strmarkread;
- }
- if ($displaymode == FORUM_MODE_THREADED) {
- $commands[] = '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.
- $post->discussion.'&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.'&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');
$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 = ' ';
+ }
+ $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',' ', 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> ('.$replystring.')';
- echo '</div>';
+
+ $output .= html_writer::start_tag('div', array('class'=>'link'));
+ $output .= html_writer::link($discussionlink, get_string('discussthistopic', 'forum'));
+ $output .= ' ('.$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;
}
/**
-/** 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;}
#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;}
#page-mod-forum-view .unread img {margin-left: 5px;}
/** Unknown Styles ??? */
-#user-view .forumpost,
-.course .forumpost {width: 100%;}
#email .unsubscribelink {margin-top:20px;}
$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 />';
/**
*
- * @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) {
$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
$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;
$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
$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) {
$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);
$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();
}
$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");
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){
$imageurl = "{$CFG->wwwroot}/mod/quiz/report/overview/overviewgraph.php?id={$quiz->id}&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;
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);
$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);
-.path-mod-quiz #tablecontainer .flexible-wrap {overflow:auto;}
.path-mod-quiz .graph.flexible-wrap {text-align:center;overflow:auto;}
#page-mod-quiz-comment #manualgradingform,
$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');
}
}
}
$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)) {
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);
- }
+ }
}
}
$t->data[] = $row3;
}
- echo html_writer::table($t);
+ echo html_writer::tag('div', html_writer::table($t), array('class'=>'no-overflow'));
}
}
$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;
}
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 {
$table->colclasses = array('wikisearchresults');
$html .= html_writer::table($table);
}
+ $html = html_writer::tag('div', $html, array('class'=>'no-overflow'));
return $this->output->container($html);
}
$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();
}
$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();
}
$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();
}
$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');
$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');
$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();
}
$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();
}
$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();
}
// 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>';
}
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";
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);
}
'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';
--- /dev/null
+<?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
'regions' => array(),
'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
),
+ 'report' => array(
+ 'file' => 'report.php',
+ 'regions' => array('side-post'),
+ 'defaultregion' => 'side-post',
+ ),
);
///////////////////////////////////////////////////////////////
--- /dev/null
+<?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
.forumpost .topic {
background: #eee;
border-width: 0;
- padding: 0 10px 0;
+ padding: 4px 10px 4px;
}
.forumpost .subject {
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;
}
/*********************************************************************************************
- 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
'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
--- /dev/null
+<?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
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%;}
.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;}
#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%;}
'regions' => array(),
'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
),
+ 'report' => array(
+ 'file' => 'report.php',
+ 'regions' => array('side-post'),
+ 'defaultregion' => 'side-post',
+ ),
);
///////////////////////////////////////////////////////////////
--- /dev/null
+<?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
/*********************************************************************************************
- 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
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,
$THEME->parents = array(
- 'canvas',
- 'base',
+ 'canvas',
+ 'base',
);
/////////////////////////////////////////////////////
$THEME->sheets = array(
-'pagelayout',
- 'core',
- 'colors',
- 'css3',
-
+ 'pagelayout',
+ 'core',
+ 'colors',
+ 'css3',
);
////////////////////////////////////////////////////
////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
- 'base'=>array(
- 'pagelayout',
- ),
- 'canvas'=>array(
- 'pagelayout',
- ),
+ 'base'=>array(
+ 'pagelayout',
+ ),
+ 'canvas'=>array(
+ 'pagelayout',
+ ),
);
'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',
+ ),
);
// 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
// media player for the filters
////////////////////////////////////////////////////
-// $THEME->javascripts
+// $THEME->javascripts
////////////////////////////////////////////////////
// An array containing the names of JavaScript files
// 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
// the themes parents
////////////////////////////////////////////////////
-// $THEME->parents_exclude_sheets
+// $THEME->parents_exclude_sheets
////////////////////////////////////////////////////
// An array of stylesheets not to inherit from the
// $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';
---------------------------*/
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;
}
----------------------------*/
.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
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;
}
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
////////////////////////////////////////////////////
$THEME->parents = array(
- 'base',
+ 'base',
);
/////////////////////////////////////////////////////
////////////////////////////////////////////////////
$THEME->sheets = array(
- 'pagelayout',
- 'text',
- 'core',
- 'course',
- 'mods',
- 'blocks',
- 'tabs',
- 'admin',
- 'tables',
- 'popups',
+ 'pagelayout',
+ 'text',
+ 'core',
+ 'course',
+ 'mods',
+ 'blocks',
+ 'tabs',
+ 'admin',
+ 'tables',
+ 'popups',
);
////////////////////////////////////////////////////
////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
- 'base'=>array(
- 'navigation',
- 'browser',
- ),
+ 'base'=>array(
+ 'navigation',
+ 'browser',
+ ),
);
////////////////////////////////////////////////////
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
+ 'report' => array(
+ 'file' => 'report.php',
+ 'regions' => array('side-pre'),
+ 'defaultregion' => 'side-pre',
+ )
);
/////////////////////////////////////////////////////////
<?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>
<!-- 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 -->
--- /dev/null
+<?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
#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;
/* 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
'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';
--- /dev/null
+<?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> </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> </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
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;
}
/** 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;}
.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
.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
--------------------------*/
$THEME->parents = array(
- 'canvas',
- 'base',
+ 'canvas',
+ 'base',
);
/////////////////////////////////////////////////////
$THEME->sheets = array(
- 'core',
- 'pagelayout',
- 'menus',
- 'settings',
+ 'core',
+ 'pagelayout',
+ 'menus',
+ 'settings',
);
////////////////////////////////////////////////////
////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
- 'base'=>array(
- 'pagelayout',
- ),
- 'canvas'=>array(
- 'pagelayout',
- ),
+ 'base'=>array(
+ 'pagelayout',
+ ),
+ 'canvas'=>array(
+ 'pagelayout',
+ ),
);
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
'embedded' => array(
- 'theme' => 'canvas',
+ 'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
),
-
+ 'report' => array(
+ 'file' => 'general.php',
+ 'regions' => array('side-post'),
+ 'defaultregion' => 'side-post',
+ ),
);
///////////////////////////////////////////////////////////////
// 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
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;
width: 72%;
}
-#page-content #region-main-box #region-post-box #region-post {
+#page-content #region-post {
float: left;
overflow: hidden;
position: relative;
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;
}
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
$THEME->parents = array(
- 'canvas',
- 'base',
+ 'canvas',
+ 'base',
);
/////////////////////////////////////////////////////
$THEME->sheets = array(
- 'core',
+ 'core',
);
////////////////////////////////////////////////////
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
'embedded' => array(
- 'theme' => 'canvas',
+ 'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
),
-
+ 'report' => array(
+ 'file' => 'report.php',
+ 'regions' => array('side-pre'),
+ 'defaultregion' => 'side-pre',
+ ),
);
///////////////////////////////////////////////////////////////
<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 } ?>
--- /dev/null
+<?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
------------------------*/
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
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
),
-
+ 'report' => array(
+ 'file' => 'general.php',
+ 'regions' => array('side-pre'),
+ 'defaultregion' => 'side-pre',
+ ),
);
///////////////////////////////////////////////////////////////
/** 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
/** 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 */
}
/**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
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
$THEME->parents = array(
- 'canvas',
- 'base',
+ 'canvas',
+ 'base',
);
/////////////////////////////////////////////////////
$THEME->sheets = array(
- 'core',
- 'pagelayout',
+ 'core',
+ 'pagelayout',
);
////////////////////////////////////////////////////
////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
- 'base'=>array(
- 'pagelayout',
- ),
- 'canvas'=>array(
- 'pagelayout',
- ),
+ 'base'=>array(
+ 'pagelayout',
+ ),
+ 'canvas'=>array(
+ 'pagelayout',
+ ),
);
'options' => array('nofooter'=>true, 'nonavbar'=>true),
),
'embedded' => array(
- 'theme' => 'canvas',
+ 'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
),
-
+ 'report' => array(
+ 'file' => 'general.php',
+ 'regions' => array('side-pre'),
+ 'defaultregion' => 'side-pre',
+ ),
);
///////////////////////////////////////////////////////////////
/** 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
$THEME->parents = array(
- 'canvas',
- 'base',
+ 'canvas',
+ 'base',
);
/////////////////////////////////////////////////////
$THEME->sheets = array(
- 'core',
- 'settings',
- 'pagelayout',
+ 'core',
+ 'settings',
+ 'pagelayout',
);
////////////////////////////////////////////////////
////////////////////////////////////////////////////
$THEME->parents_exclude_sheets = array(
- 'base'=>array(
- 'pagelayout',
- ),
- 'canvas'=>array(
- 'pagelayout',
- ),
+ 'base'=>array(
+ 'pagelayout',
+ ),
+ 'canvas'=>array(
+ 'pagelayout',
+ ),
);
'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',
+ ),
);
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
$THEME->csspostprocess = 'overlay_process_css';
-
+
////////////////////////////////////////////////////
// Allows the user to provide the name of a function
// that all CSS should be passed to before being
// media player for the filters
////////////////////////////////////////////////////
-// $THEME->javascripts
+// $THEME->javascripts
////////////////////////////////////////////////////
// An array containing the names of JavaScript files
// (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
// the themes parents
////////////////////////////////////////////////////
-// $THEME->parents_exclude_sheets
+// $THEME->parents_exclude_sheets
////////////////////////////////////////////////////
// An array of stylesheets not to inherit from the
// $THEME->resource_mp3player_colors
////////////////////////////////////////////////////
-// Controls the colours for the MP3 p