Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/splash/layout/report.php
Go to the documentation of this file.
00001 <?php
00002 
00003 $hasheading = ($PAGE->heading);
00004 $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
00005 $hasfooter = (empty($PAGE->layout_options['nofooter']));
00006 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
00007 
00008 $custommenu = $OUTPUT->custom_menu();
00009 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
00010 
00011 splash_check_colourswitch();
00012 splash_initialise_colourswitcher($PAGE);
00013 
00014 $bodyclasses = array();
00015 $bodyclasses[] = 'splash-'.splash_get_colour();
00016 if (!$hassidepre) {
00017     $bodyclasses[] = 'content-only';
00018 }
00019 
00020 $haslogo = (!empty($PAGE->theme->settings->logo));
00021 $hasfootnote = (!empty($PAGE->theme->settings->footnote));
00022 $hidetagline = (!empty($PAGE->theme->settings->hide_tagline) && $PAGE->theme->settings->hide_tagline == 1);
00023 
00024 if (!empty($PAGE->theme->settings->tagline)) {
00025     $tagline = $PAGE->theme->settings->tagline;
00026 } else {
00027     $tagline = get_string('defaulttagline', 'theme_splash');
00028 }
00029 
00030 echo $OUTPUT->doctype() ?>
00031 <html <?php echo $OUTPUT->htmlattributes() ?>>
00032 <head>
00033     <title><?php echo $PAGE->title ?></title>
00034     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00035     <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
00036     <?php echo $OUTPUT->standard_head_html() ?>
00037 </head>
00038 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00039     <?php echo $OUTPUT->standard_top_of_body_html() ?>
00040     <div id="page">
00041         <?php if ($hasheading || $hasnavbar) { ?>
00042         <div id="page-header">
00043             <div id="page-header-wrapper" class="wrapper clearfix">
00044                 <?php if ($hasheading) { ?>
00045                 <div id="headermenu">
00046                     <?php if (isloggedin()) {
00047                         echo html_writer::start_tag('div', array('id'=>'userdetails'));
00048                         echo html_writer::tag('h1', get_string('usergreeting', 'theme_splash', $USER->firstname));
00049                         echo html_writer::start_tag('p', array('class'=>'prolog'));
00050                         echo html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), get_string('myprofile')).' | ';
00051                         echo html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), get_string('logout'));
00052                         echo html_writer::end_tag('p');
00053                         echo html_writer::end_tag('div');
00054                         echo html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>55)), array('class'=>'userimg'));
00055                     } else {
00056                         echo html_writer::start_tag('div', array('id'=>'userdetails_loggedout'));
00057                         $loginlink = html_writer::link(new moodle_url('/login/'), get_string('loginhere', 'theme_splash'));
00058                         echo html_writer::tag('h1', get_string('welcome', 'theme_splash', $loginlink));
00059                         echo html_writer::end_tag('div');;
00060                     } ?>
00061                     <div class="clearer"></div>
00062                     <div id="colourswitcher">
00063                         <ul>
00064                             <li><img src="<?php echo $OUTPUT->pix_url('colour', 'theme'); ?>" alt="colour" /></li>
00065                             <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'red')); ?>" class="styleswitch colour-red"><img src="<?php echo $OUTPUT->pix_url('red-theme2', 'theme'); ?>" alt="red" /></a></li>
00066                             <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'green')); ?>" class="styleswitch colour-green"><img src="<?php echo $OUTPUT->pix_url('green-theme2', 'theme'); ?>" alt="green" /></a></li>
00067                             <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'blue')); ?>" class="styleswitch colour-blue"><img src="<?php echo $OUTPUT->pix_url('blue-theme2', 'theme'); ?>" alt="blue" /></a></li>
00068                             <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'orange')); ?>" class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-theme2', 'theme'); ?>" alt="orange" /></a></li>
00069                         </ul>
00070                     </div>
00071                     <?php echo $OUTPUT->lang_menu();?>
00072                 </div>
00073                 <div id="logobox">
00074                     <?php if ($haslogo) {
00075                         echo html_writer::link(new moodle_url('/'), "<img src='".$PAGE->theme->settings->logo."' alt='logo' />");
00076                     } else {
00077                         echo html_writer::link(new moodle_url('/'), $PAGE->heading, array('class'=>'nologoimage'));
00078                     } ?>
00079                     <?php if (!$hidetagline) { ?>
00080                         <h4><?php echo $tagline ?></h4>
00081                     <?php } ?>
00082                 </div>
00083                 <div class="clearer"></div>
00084                 <?php if ($haslogo) { ?>
00085                 <h4 class="headermain inside">&nbsp;</h4>
00086                 <?php } else { ?>
00087                 <h4 class="headermain inside"><?php echo $PAGE->heading ?></h4>
00088                 <?php } ?>
00089             <?php } // End of if ($hasheading)?>
00090                 <!-- DROP DOWN MENU -->
00091                 <div class="clearer"></div>
00092                 <div id="dropdownmenu">
00093                     <?php if ($hascustommenu) { ?>
00094                     <div id="custommenu"><?php echo $custommenu; ?></div>
00095                     <?php } ?>
00096                     <div class="navbar">
00097                         <div class="wrapper clearfix">
00098                             <div class="breadcrumb"><?php if ($hasnavbar) echo $OUTPUT->navbar(); ?></div>
00099                             <div class="navbutton"> <?php echo $PAGE->button; ?></div>
00100                         </div>
00101                     </div>
00102                 </div>
00103                 <!-- END DROP DOWN MENU -->
00104             </div>
00105         </div>
00106     <?php } // if ($hasheading || $hasnavbar) ?>
00107         <!-- END OF HEADER -->
00108         <!-- START OF CONTENT -->
00109 
00110         <div id="page-content" class="clearfix">
00111             <div id="report-main-content">
00112                 <div class="region-content">
00113                     <?php echo $OUTPUT->main_content() ?>
00114                 </div>
00115             </div>
00116             <?php if ($hassidepre) { ?>
00117             <div id="report-region-wrap">
00118                 <div id="report-region-pre" class="block-region">
00119                     <div class="region-content">
00120                         <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00121                     </div>
00122                 </div>
00123             </div>
00124             <?php } ?>
00125         </div>
00126 
00127         <!-- END OF CONTENT -->
00128         <div class="clearfix"></div>
00129     <!-- END OF #Page -->
00130     </div>
00131     <!-- START OF FOOTER -->
00132     <?php if ($hasfooter) { ?>
00133     <div id="page-footer">
00134         <div id="footer-wrapper">
00135             <?php if ($hasfootnote) { ?>
00136             <div id="footnote"><?php echo $PAGE->theme->settings->footnote; ?></div>
00137             <?php } ?>
00138             <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00139             <?php
00140             echo $OUTPUT->login_info();
00141             echo $OUTPUT->home_link();
00142             echo $OUTPUT->standard_footer_html();
00143             ?>
00144         </div>
00145     </div>
00146     <?php } ?>
00147 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00148 </body>
00149 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations