|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 // This file is part of Moodle - http://moodle.org/ 00003 // 00004 // Moodle is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // Moodle is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00016 00026 if (!empty($PAGE->theme->settings->colourswatch)) { 00027 $showswatch = $PAGE->theme->settings->colourswatch; 00028 } else { 00029 $showswatch = "light"; 00030 } 00031 if ($showswatch == "light") { 00032 $datatheme = 'b'; 00033 $databodytheme = 'd'; 00034 } else { 00035 $datatheme = 'a'; 00036 $databodytheme = 'c'; 00037 } 00038 $mypagetype = $PAGE->pagetype; 00039 00040 echo $OUTPUT->doctype() ?> 00041 <html <?php echo $OUTPUT->htmlattributes() ?>> 00042 <head> 00043 <title><?php echo $PAGE->title ?></title> 00044 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 00045 <?php if ($mypagetype != 'mod-chat-gui_ajax-index') { ?> 00046 <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" /> 00047 <?php } ?> 00048 <?php echo $OUTPUT->standard_head_html() ?> 00049 </head> 00050 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 00051 <?php echo $OUTPUT->standard_top_of_body_html() ?> 00052 <!-- END OF HEADER --> 00053 <?php if ($mypagetype == 'mod-chat-gui_ajax-index') { ?> 00054 <div data-role="page" id="chatpage" data-fullscreen="true" data-title="<?php p($SITE->shortname) ?>"> 00055 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?> 00056 <input type="button" value="back" data-role="none" id="chatback" onClick="history.back()"> 00057 </div> 00058 <?php } else { ?> 00059 <div id="content2" data-role="page" data-title="<?php p($SITE->shortname) ?>" data-theme="<?php echo $datatheme;?>"> 00060 <div data-role="header" data-theme="<?php echo $datatheme;?>"> 00061 <h1><?php echo $PAGE->heading ?> </h1> 00062 <?php if ($mypagetype != "help") { ?> 00063 <a class="ui-btn-right" data-ajax="false" data-icon="home" href="<?php p($CFG->wwwroot) ?>" data-iconpos="notext"><?php p(get_string('home')); ?></a> 00064 <?php } ?> 00065 </div> 00066 <div data-role="content" data-theme="<?php echo $databodytheme;?>"> 00067 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?> 00068 </div> 00069 </div> 00070 <?php } ?> 00071 <!-- START OF FOOTER --> 00072 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00073 </body> 00074 </html>