214 lines
8.0 KiB
PHP
Raw Normal View History

2010-07-06 11:59:31 +00:00
<?php
defined('MOODLE_INTERNAL') || die();
$hasheading = $PAGE->heading;
2010-07-06 11:59:31 +00:00
$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);
$showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
$showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT);
2010-07-06 11:59:31 +00:00
$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';
}
2010-07-06 11:59:31 +00:00
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
/************************************************************************************************/
2010-07-06 11:59:31 +00:00
if (!empty($PAGE->theme->settings->logo)) {
$logourl = $PAGE->theme->settings->logo;
} else {
$logourl = $OUTPUT->pix_url('logo_small', 'theme');
2010-07-06 11:59:31 +00:00
}
$hasframe = !isset($PAGE->theme->settings->noframe) || !$PAGE->theme->settings->noframe;
$displaylogo = !isset($PAGE->theme->settings->displaylogo) || $PAGE->theme->settings->displaylogo;
/************************************************************************************************/
2010-07-06 11:59:31 +00:00
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>
2011-03-27 12:29:36 +02:00
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
<?php echo $OUTPUT->standard_top_of_body_html();
2010-07-06 11:59:31 +00:00
if ($hasframe) { ?>
<div id="frametop">
<div id="framebottom">
<div id="frametopright">
<div>&nbsp;</div>
</div>
<div id="frameleft">
<div id="frameright">
<div id="wrapper">
<?php } ?>
2010-07-06 11:59:31 +00:00
<!-- begin of page-header -->
<?php if ($hasheading) { ?>
<div id="page-header">
<?php if ($displaylogo) { ?>
<div id="headerlogo">
<img src="<?php echo $logourl ?>" alt="Custom logo here" />
</div>
<?php } else { ?>
<h1 class="headerheading"><?php echo $PAGE->heading ?></h1>
<?php } ?>
<div class="headermenu">
<?php
echo $OUTPUT->login_info();
if (($CFG->langmenu) && (!empty($PAGE->layout_options['langmenu']))) {
echo $OUTPUT->lang_menu();
}
echo $PAGE->headingmenu;
?>
</div>
</div>
<?php } ?>
<!-- end of page-header -->
<!-- begin of custom menu -->
<?php if ($hascustommenu) { ?>
<div id="custommenu"><?php echo $custommenu; ?></div>
<?php } ?>
<!-- end of custom menu -->
<!-- begin of navigation bar -->
<?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 } ?>
<!-- end of navigation bar -->
<!-- start of moodle content -->
<div id="page-content">
<div id="region-main-box">
<div id="region-post-box">
<!-- main mandatory content of the moodle page -->
<div id="region-main-wrap">
<div id="region-main">
<div class="region-content">
<?php echo $OUTPUT->main_content() ?>
2010-07-06 11:59:31 +00:00
</div>
</div>
</div>
<!-- end of main mandatory content of the moodle page -->
2010-07-06 11:59:31 +00:00
<!-- left column block - diplayed only if... -->
<?php if ($hassidepre) { ?>
<div id="region-pre" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
</div>
</div>
<?php } ?>
<!-- end of left column block - diplayed only if... -->
<!-- right column block - diplayed only if... -->
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
<!-- end of right column block - diplayed only if... -->
</div>
</div>
</div>
<!-- end of moodle content -->
<div class="clearfix"></div>
<?php if ($hasframe) { ?>
</div> <!-- end of wrapper -->
</div> <!-- </frameright> -->
</div> <!-- </frameleft> -->
<div id="framebottomright">
<div>&nbsp;</div>
</div>
</div> <!-- </framebottom> -->
</div> <!-- </frametop> -->
<?php }
if ($hasfooter) {
if ($hasframe) { ?>
<!-- START OF FOOTER -->
<div id="page-footer">
<?php if (!empty($PAGE->theme->settings->footnote)) { ?>
<div id="footerframetop">
<div id="footerframebottom">
<div id="footerframetopright">
<div>&nbsp;</div>
</div>
<div id="footerframeleft">
<div id="footerframeright">
<!-- the content to show -->
<div id="footerwrapper">
<?php echo $PAGE->theme->settings->footnote; ?>
</div> <!-- end of footerwrapper -->
</div>
</div> <!-- </footerframeright></footerframeleft> -->
<div id="footerframebottomright">
<div>&nbsp;</div>
</div>
</div>
</div> <!-- </footerframebottom></footerframetop> -->
<?php }
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
//one more div is waiting to be closed
} else { ?>
<!-- START OF FOOTER -->
<div id="page-footer" class="noframefooter">
<?php if (!empty($PAGE->theme->settings->footnote)) { ?>
<div id="page-footer-content">
<!-- the content to show -->
<div id="footerwrapper">
<?php echo $PAGE->theme->settings->footnote; ?>
</div> <!-- end of footerwrapper -->
</div> <!-- end of page-footer_noframe-content -->
<?php }
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
//one more div is waiting to be closed
} ?>
<div class="moodledocsleft">
<?php
//echo $OUTPUT->login_info();
//echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
?>
</div>
<div class="moodledocs">
<?php echo page_doc_link(get_string('moodledocslink')); ?>
</div>
</div> <!-- end of page-footer or page-footer_noframe -->
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
<?php //the waiting div has been closed
}
echo $OUTPUT->standard_end_of_body_html(); ?>
2010-07-06 11:59:31 +00:00
</body>
</html>