Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36339 Modify themes to add course headers and footers provided by…

… course format
  • Loading branch information...
commit 656581fa2c719706712baa181a650e5ca916a0aa 1 parent cf04387
@marinaglancy marinaglancy authored stronk7 committed
Showing with 409 additions and 78 deletions.
  1. +5 −5 theme/formal_white/config.php
  2. +23 −0 theme/formal_white/layout/general.php
  3. +24 −0 theme/formal_white/layout/report.php
  4. +5 −5 theme/formfactor/config.php
  5. +20 −0 theme/formfactor/layout/general.php
  6. +3 −0  theme/formfactor/style/core.css
  7. +5 −5 theme/fusion/config.php
  8. +20 −0 theme/fusion/layout/general.php
  9. +4 −0 theme/fusion/style/core.css
  10. +5 −5 theme/leatherbound/config.php
  11. +23 −5 theme/leatherbound/layout/general.php
  12. +23 −5 theme/leatherbound/layout/report.php
  13. +5 −5 theme/magazine/config.php
  14. +20 −2 theme/magazine/layout/general.php
  15. +14 −0 theme/magazine/style/core.css
  16. +6 −6 theme/mymobile/config.php
  17. +19 −0 theme/mymobile/layout/general.php
  18. +5 −5 theme/nimble/config.php
  19. +20 −1 theme/nimble/layout/general.php
  20. +5 −5 theme/nonzero/config.php
  21. +22 −2 theme/nonzero/layout/general.php
  22. +4 −4 theme/overlay/config.php
  23. +19 −1 theme/overlay/layout/general.php
  24. +3 −0  theme/overlay/style/pagelayout.css
  25. +6 −6 theme/sky_high/config.php
  26. +18 −0 theme/sky_high/layout/general.php
  27. +18 −0 theme/sky_high/layout/report.php
  28. +6 −6 theme/splash/config.php
  29. +18 −0 theme/splash/layout/general.php
  30. +18 −0 theme/splash/layout/report.php
  31. +5 −5 theme/standardold/config.php
  32. +18 −0 theme/standardold/layout/general.php
View
10 theme/formal_white/config.php
@@ -145,19 +145,19 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// No blocks and minimal footer - used for legacy frame layouts only!
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
// Embeded pages, like iframe embeded in moodleform (chat)
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
// Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
// This must not have any blocks, and it is good idea if it does not have links to
@@ -165,13 +165,13 @@
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'report.php',
View
23 theme/formal_white/layout/general.php
@@ -15,6 +15,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -91,6 +101,12 @@
<?php } ?>
<!-- end of page-header -->
+<!-- begin of course header -->
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+<!-- end of course header -->
+
<!-- begin of custom menu -->
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
@@ -115,7 +131,9 @@
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -146,6 +164,11 @@
</div>
<!-- end of moodle content -->
+<!-- begin of course footer -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
+<!-- end of course footer -->
<div class="clearfix"></div>
<?php if ($hasframe) { ?>
View
24 theme/formal_white/layout/report.php
@@ -14,6 +14,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if (!$showsidepre) {
$bodyclasses[] = 'content-only';
@@ -86,6 +96,12 @@
<?php } ?>
<!-- end of page-header -->
+<!-- begin of course header -->
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+<!-- end of course header -->
+
<!-- begin of custom menu -->
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
@@ -107,7 +123,9 @@
<!-- main mandatory content of the moodle page -->
<div id="report-main-content">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
<!-- end of main mandatory content of the moodle page -->
@@ -127,6 +145,12 @@
</div>
<!-- end of moodle content -->
+<!-- begin of course footer -->
+<?php if (!empty($coursefooter)) { ?>
+<div id="course-footer"><?php echo $coursefooter; ?></div>
+<?php } ?>
+<!-- end of course footer -->
+
<div class="clearfix"></div>
<?php if ($hasframe) { ?>
View
10 theme/formfactor/config.php
@@ -127,28 +127,28 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
);
View
20 theme/formfactor/layout/general.php
@@ -9,6 +9,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($hassidepre && !$hassidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -61,6 +71,10 @@
<?php } ?>
<?php } ?>
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
@@ -79,7 +93,9 @@
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -105,6 +121,10 @@
</div>
</div>
+<?php if (!empty($coursefooter)) { ?>
+<div id="course-footer"><?php echo $coursefooter; ?></div>
+<?php } ?>
+
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="clearfix">
View
3  theme/formfactor/style/core.css
@@ -11,6 +11,7 @@ body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea { font-family: "Trebuchet MS",
#page-site-index .headermain { margin:0.85em 0;font-size:2.5em; }
+#course-header { margin:0 50px; }
/* Menu Navigation
--------------------------*/
@@ -54,6 +55,8 @@ body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea { font-family: "Trebuchet MS",
#page-footer { margin:25px 0; }
#page-footer .logininfo { margin: 1em 0; }
+#course-footer { margin:0 50px; }
+
/* custum menu */
#custommenu {
margin:0 50px;
View
10 theme/fusion/config.php
@@ -143,29 +143,29 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'general.php',
View
20 theme/fusion/layout/general.php
@@ -10,6 +10,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepost) {
$bodyclasses[] = 'side-post-only';
@@ -77,6 +87,10 @@
<?php } ?>
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+
<!-- START OF CONTENT -->
@@ -106,7 +120,9 @@
</div>
<?php } ?>
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -130,6 +146,10 @@
<!-- END OF CONTENT -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
+
<?php if ($hasheading || $hasnavbar) { ?>
</div>
View
4 theme/fusion/style/core.css
@@ -189,6 +189,10 @@ h6{
padding: 2px 5px 0 0;
}
+#course-header, #course-footer {
+ margin:5px 20px 0 0;
+}
+
/* Navbar
----------------------------*/
View
10 theme/leatherbound/config.php
@@ -131,29 +131,29 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'report.php',
View
28 theme/leatherbound/layout/general.php
@@ -8,6 +8,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($hassidepre && !$hassidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -32,10 +42,9 @@
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
-<?php if ($hasheading || $hasnavbar) { ?>
+<?php if ($hasheading) { ?>
<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();
@@ -44,12 +53,16 @@
}
echo $PAGE->headingmenu ?>
</div>
- <?php } ?>
</div>
</div>
+<?php } ?>
<?php if ($hascustommenu) { ?>
-<div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
+ <div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
+<?php } ?>
+
+<?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
<?php } ?>
<?php if ($hasnavbar) { ?>
@@ -61,7 +74,6 @@
</div>
<?php } ?>
-<?php } ?>
<!-- END OF HEADER -->
<div id="page-content-wrapper" class="wrapper clearfix">
<div id="page-content">
@@ -71,7 +83,9 @@
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -97,6 +111,10 @@
</div>
</div>
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
+
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="wrapper">
View
28 theme/leatherbound/layout/report.php
@@ -8,6 +8,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($hassidepre && !$hassidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -32,10 +42,9 @@
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
-<?php if ($hasheading || $hasnavbar) { ?>
+<?php if ($hasheading) { ?>
<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();
@@ -44,12 +53,16 @@
}
echo $PAGE->headingmenu ?>
</div>
- <?php } ?>
</div>
</div>
+<?php } ?>
<?php if ($hascustommenu) { ?>
-<div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
+ <div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
+<?php } ?>
+
+<?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
<?php } ?>
<?php if ($hasnavbar) { ?>
@@ -61,14 +74,15 @@
</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 $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
<?php if ($hassidepre) { ?>
@@ -83,6 +97,10 @@
</div>
</div>
+<?php if (!empty($coursefooter)) { ?>
+<div id="course-footer"><?php echo $coursefooter; ?></div>
+<?php } ?>
+
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="wrapper">
View
10 theme/magazine/config.php
@@ -104,28 +104,28 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'general.php',
View
22 theme/magazine/layout/general.php
@@ -10,6 +10,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -85,6 +95,10 @@
</div>
</div>
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+
<!-- end of logo and menu section -->
@@ -119,8 +133,9 @@
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
-
- <?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentheader; ?>
+ <?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -159,6 +174,9 @@
</div>
<!-- START OF FOOTER -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
<div id="page-footer">
<div id="footer-container">
<div id="footer">
View
14 theme/magazine/style/core.css
@@ -160,6 +160,13 @@ div.rightinfo {
margin-top: 40px;
}
+#course-header {
+ width: 93%;
+ min-width: 910px;
+ margin: 0 auto;
+ overflow: hidden;
+}
+
/** main content wraps **/
#outercontainer {
@@ -237,6 +244,13 @@ div.jcontrolsright div.singlebutton, div.jcontrolsright div.forumsearch {
/** foot wraps and inner divs **/
+#course-footer {
+ width: 93%;
+ min-width: 910px;
+ margin: 0 auto;
+ overflow: hidden;
+}
+
#footer {
width: 91%;
height: 35px;
View
12 theme/mymobile/config.php
@@ -105,34 +105,34 @@
'popup' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
// The pagelayout used when a redirection is occuring.
'redirect' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
// The pagelayout used for reports
'report' => array(
View
19 theme/mymobile/layout/general.php
@@ -89,6 +89,16 @@
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hasmyblocks = $PAGE->blocks->region_has_content('myblocks', $OUTPUT);
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
$bodyclasses[] = (string)$hasithumb;
$bodyclasses[] = (string)$showsitetopic;
@@ -129,6 +139,9 @@
<?php } else if (!isloggedin()) {
echo $OUTPUT->login_info();
} ?>
+ <?php if (!empty($courseheader)) { ?>
+ <div data-role="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
<!-- start navbar -->
<div data-role="navbar">
<ul>
@@ -173,7 +186,9 @@
<?php if ($hasshowmobileintro && $mypagetype == 'site-index') { ?>
<?php echo $PAGE->theme->settings->showmobileintro; ?>
<?php } ?>
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content(); ?>
+ <?php echo $coursecontentfooter; ?>
<?php } ?>
</div>
</div>
@@ -237,6 +252,10 @@
<!-- end main content -->
<!-- start footer -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div data-role="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
+
<div data-role="footer" class="mobilefooter" <?php echo $datatheme;?>>
<div data-role="navbar" class="jnav" >
<ul>
View
10 theme/nimble/config.php
@@ -143,29 +143,29 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'general.php',
View
21 theme/nimble/layout/general.php
@@ -10,6 +10,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepost) {
$bodyclasses[] = 'side-post-only';
@@ -94,6 +104,10 @@
<h1 class="headermain"><?php echo $PAGE->heading ?></h1>
</div>
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+
<?php if ($hasnavbar) { ?>
<div class="navbar">
<div class="wrapper clearfix">
@@ -106,8 +120,9 @@
</div>
</div>
<?php } ?>
-
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -141,6 +156,10 @@
<?php } ?>
<!-- START OF FOOTER -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer" class="shrinkwrapper"><?php echo $coursefooter; ?></div>
+ <?php } ?>
+
<?php if ($hasfooter) { ?>
<div id="page-footer" class="wrapper">
View
10 theme/nonzero/config.php
@@ -142,29 +142,29 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'general.php',
View
24 theme/nonzero/layout/general.php
@@ -13,6 +13,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -39,7 +49,7 @@
<?php echo $OUTPUT->standard_top_of_body_html() ?>
<div id="page">
-<?php if ($hasheading || $hasnavbar) { ?>
+<?php if ($hasheading || $hasnavbar || !empty($courseheader)) { ?>
<div id="page-header" >
<div id="page-header-wrapper" class="wrapper clearfix">
<?php if ($hasheading) { ?>
@@ -59,6 +69,10 @@
<div id="top">
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header" class="wrapper"><?php echo $courseheader; ?></div>
+ <?php } ?>
+
<?php if ($hasnavbar) { ?>
<div class="navbar">
<div class="wrapper clearfix">
@@ -79,7 +93,9 @@
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -105,10 +121,14 @@
</div>
</div>
-<?php if ($hasheading || $hasnavbar) { ?>
+<?php if ($hasheading || $hasnavbar || !empty($courseheader)) { ?>
</div>
<?php } ?>
+<?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer" class="wrapper"><?php echo $coursefooter; ?></div>
+<?php } ?>
+
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="wrapper">
View
8 theme/overlay/config.php
@@ -143,23 +143,23 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'general.php',
View
20 theme/overlay/layout/general.php
@@ -13,6 +13,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -80,6 +90,10 @@
</div>
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
+
<?php if ($hasnavbar) { ?>
<div class="navbar">
<div class="wrapper clearfix">
@@ -92,8 +106,9 @@
<div class="region-content">
-
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -122,6 +137,9 @@
</div>
<!-- END OF CONTENT -->
+<?php if (!empty($coursefooter)) { ?>
+<div id="course-footer" class="wrapper"><?php echo $coursefooter; ?></div>
+<?php } ?>
</div>
<!-- START OF FOOTER -->
View
3  theme/overlay/style/pagelayout.css
@@ -57,6 +57,9 @@ body {margin:auto 0px;
padding: 20px 20px 20px 0;
min-height: 100%;
}
+#page-content #course-header {
+ padding-right: 20px;
+}
.pagelayout-report #page-content #region-main .region-content {
overflow: auto;
padding-bottom: 0;
View
12 theme/sky_high/config.php
@@ -144,36 +144,36 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
'embedded' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// The pagelayout used when a redirection is occuring.
'redirect' => array(
'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'report.php',
View
18 theme/sky_high/layout/general.php
@@ -13,6 +13,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -82,6 +92,9 @@
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
+<?php if (!empty($courseheader)) { ?>
+<div id="course-header"><?php echo $courseheader; ?></div>
+<?php } ?>
<div class="navbar clearfix">
<?php if ($hasnavbar) { ?>
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
@@ -97,7 +110,9 @@
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -122,6 +137,9 @@
</div>
</div>
</div>
+<?php if (!empty($coursefooter)) { ?>
+<div id="course-footer"><?php echo $coursefooter; ?></div>
+<?php } ?>
<!-- END OF CONTENT -->
View
18 theme/sky_high/layout/report.php
@@ -8,6 +8,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre) {
$bodyclasses[] = 'side-pre-only';
@@ -71,6 +81,9 @@
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
+<?php if (!empty($courseheader)) { ?>
+<div id="course-header"><?php echo $courseheader; ?></div>
+<?php } ?>
<div class="navbar clearfix">
<?php if ($hasnavbar) { ?>
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
@@ -85,7 +98,9 @@
<div id="report-region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
@@ -101,6 +116,9 @@
</div>
</div>
</div>
+<?php if (!empty($coursefooter)) { ?>
+<div id="course-footer"><?php echo $coursefooter; ?></div>
+<?php } ?>
<!-- END OF CONTENT -->
View
12 theme/splash/config.php
@@ -109,19 +109,19 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
// No blocks and minimal footer - used for legacy frame layouts only!
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter', 'noblocks'=>true),
+ 'options' => array('nofooter', 'noblocks'=>true, 'nocoursefooter'=>true),
),
// Embeded pages, like iframe embeded in moodleform
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocourseheaderfooter'=>true),
),
// Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
// This must not have any blocks, and it is good idea if it does not have links to
@@ -129,19 +129,19 @@
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true, 'nocourseheaderfooter'=>true),
),
// The pagelayout used when a redirection is occuring.
'redirect' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
'report' => array(
'file' => 'report.php',
View
18 theme/splash/layout/general.php
@@ -34,6 +34,16 @@
splash_check_colourswitch();
splash_initialise_colourswitcher($PAGE);
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
$bodyclasses[] = 'splash-'.splash_get_colour();
if ($hassidepre && !$hassidepost) {
@@ -148,6 +158,9 @@ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-
<?php
} ?>
<!-- END CUSTOMMENU -->
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
<div class="navbar">
<div class="wrapper clearfix">
<div class="breadcrumb">
@@ -171,7 +184,9 @@ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</div>
@@ -197,6 +212,9 @@ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-
</div>
</div>
<!-- END OF CONTENT -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
<div class="clearfix"></div>
<!-- END OF #Page -->
</div>
View
18 theme/splash/layout/report.php
@@ -34,6 +34,16 @@
splash_check_colourswitch();
splash_initialise_colourswitcher($PAGE);
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
$bodyclasses[] = 'splash-'.splash_get_colour();
if ($hassidepre && !$hassidepost) {
@@ -148,6 +158,9 @@ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-
<?php
} ?>
<!-- END CUSTOMMENU -->
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
<div class="navbar">
<div class="wrapper clearfix">
<div class="breadcrumb">
@@ -169,7 +182,9 @@ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-
<div id="page-content" class="clearfix">
<div id="report-main-content">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
<?php if ($hassidepre) { ?>
@@ -185,6 +200,9 @@ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-
</div>
<!-- END OF CONTENT -->
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
<div class="clearfix"></div>
<!-- END OF #Page -->
</div>
View
10 theme/standardold/config.php
@@ -109,19 +109,19 @@
'popup' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
// No blocks and minimal footer - used for legacy frame layouts only!
'frametop' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('nofooter'=>true),
+ 'options' => array('nofooter'=>true, 'nocoursefooter'=>true),
),
// Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
'embedded' => array(
'file' => 'embedded.php',
'regions' => array(),
- 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
// Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
// This must not have any blocks, and it is good idea if it does not have links to
@@ -129,13 +129,13 @@
'maintenance' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
// Should display the content and basic headers only.
'print' => array(
'file' => 'general.php',
'regions' => array(),
- 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true),
+ 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true, 'nocourseheaderfooter'=>true),
),
);
View
18 theme/standardold/layout/general.php
@@ -12,6 +12,16 @@
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
+$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';
+if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
+ $courseheader = $OUTPUT->course_header();
+ $coursecontentheader = $OUTPUT->course_content_header();
+ if (empty($PAGE->layout_options['nocoursefooter'])) {
+ $coursecontentfooter = $OUTPUT->course_content_footer();
+ $coursefooter = $OUTPUT->course_footer();
+ }
+}
+
$bodyclasses = array();
if ($showsidepre && !$showsidepost) {
$bodyclasses[] = 'side-pre-only';
@@ -48,6 +58,9 @@
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
+ <?php if (!empty($courseheader)) { ?>
+ <div id="course-header"><?php echo $courseheader; ?></div>
+ <?php } ?>
<?php if ($hasnavbar) { ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
@@ -71,7 +84,9 @@
<td id="region-main-wrap">
<div id="region-main">
<div class="region-content">
+ <?php echo $coursecontentheader; ?>
<?php echo $OUTPUT->main_content() ?>
+ <?php echo $coursecontentfooter; ?>
</div>
</div>
</td>
@@ -85,6 +100,9 @@
</tr>
</table>
</div>
+ <?php if (!empty($coursefooter)) { ?>
+ <div id="course-footer"><?php echo $coursefooter; ?></div>
+ <?php } ?>
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
Please sign in to comment.
Something went wrong with that request. Please try again.