mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Adding new layout for Boxxie theme
This commit is contained in:
parent
c180ccf974
commit
f020dd1b6b
@ -33,4 +33,85 @@ $THEME->enable_dock = false;
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
// Do you want to use the new navigation dock?
|
||||
////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
$THEME->layouts = array(
|
||||
'base' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array(),
|
||||
),
|
||||
'general' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
),
|
||||
'course' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post'
|
||||
),
|
||||
'coursecategory' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
),
|
||||
'incourse' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
),
|
||||
'frontpage' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
),
|
||||
'admin' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre'),
|
||||
'defaultregion' => 'side-pre',
|
||||
),
|
||||
'mydashboard' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
'options' => array('langmenu'=>true),
|
||||
),
|
||||
'mypublic' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre', 'side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
),
|
||||
'login' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array(),
|
||||
'options' => array('langmenu'=>true),
|
||||
),
|
||||
'popup' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true),
|
||||
),
|
||||
'frametop' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true),
|
||||
),
|
||||
'maintenance' => array(
|
||||
'theme' => 'boxxie',
|
||||
'file' => 'general.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
||||
),
|
||||
);
|
70
theme/boxxie/layout/general.php
Normal file
70
theme/boxxie/layout/general.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
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; ?>">
|
||||
<?php echo $OUTPUT->standard_top_of_body_html() ?>
|
||||
<div id="page">
|
||||
<?php if ($PAGE->heading || (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar())) { ?>
|
||||
<div id="page-header">
|
||||
<?php if ($PAGE->heading) { ?>
|
||||
<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 (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()) { ?>
|
||||
<div class="navbar clearfix">
|
||||
<div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
|
||||
<div class="navbutton"> <?php echo $PAGE->button; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="page-content">
|
||||
<div id="regions">
|
||||
<div id="regions-mask">
|
||||
<div id="region-main">
|
||||
<div id="region-main-mask">
|
||||
<div class="region-content">
|
||||
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="region-pre">
|
||||
<div class="region-content">
|
||||
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="region-post">
|
||||
<div class="region-content">
|
||||
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?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>
|
Loading…
x
Reference in New Issue
Block a user