-
Notifications
You must be signed in to change notification settings - Fork 14
/
header.php
executable file
·51 lines (44 loc) · 1.48 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Aardvark theme for Moodle - Material-inspired theme based on bootstrap.
*
* DO NOT MODIFY THIS THEME!
* COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD.
*
* For full information about creating Moodle themes, see:
* http://docs.moodle.org/dev/Themes_2.0
*
* Header and alert bar
*
* @package theme_aardvark
* @author Shaun Daubney
* @copyright 2017 Newbury College
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
global $CFG;
$hasgeneralalert = (!empty($PAGE->theme->settings->generalalert));
?>
<header role="banner" class="navbar navbar-fixed-top<?php echo $html->navbarclass ?> moodle-has-zindex">
<nav role="navigation" class="navbar-inner">
<div class="container-fluid">
<?php echo $OUTPUT->navbar_home(); ?>
<?php echo $OUTPUT->navbar_button(); ?>
<?php echo $OUTPUT->user_menu(); ?>
<?php echo $OUTPUT->navbar_plugin_output(); ?>
<?php echo $OUTPUT->search_box(); ?>
<div class="nav-collapse collapse">
<?php echo $OUTPUT->custom_menu(); ?>
<ul class="nav pull-right">
<li><?php echo $OUTPUT->page_heading_menu(); ?></li>
</ul>
</div>
</div>
</nav>
</header>
<div class="container-fluid clearfix"><?php
if ($hasgeneralalert) { ?>
<div id="page-header-generalalert"><?php
echo $PAGE->theme->settings->generalalert; ?>
</div><?php
} ?>
</div>