-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.html
executable file
·56 lines (56 loc) · 2.84 KB
/
header.html
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
52
53
54
55
56
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<?php $moodletitle = ($home == true) ? "KnowJesus" : substr($title, 0, 60); ?>
<title><?php echo $moodletitle; ?></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1">
<link rel="shortcut icon" href="<?php echo $CFG->wwwroot; ?>/favicon.ico">
<link rel="apple-touch-icon" href="<?php echo $CFG->wwwroot; ?>/apple-touch-icon.png">
<link rel="stylesheet" href="<?php echo $CFG->themewww; ?>/knowjesus-en/css/normalize.css">
<link rel="stylesheet" href="<?php echo $CFG->themewww; ?>/knowjesus-en/css/main.css">
<script src="<?php echo $CFG->themewww; ?>/js/vendor/modernizr-2.6.1.min.js"></script>
<?php include("$CFG->javascript"); ?>
</head>
<body<?php
echo " $bodytags";
if ($focus) {
echo " onload=\"setfocus()\"";
}
?>>
<div class="page">
<header>
<?php if ($home == true): ?>
<h1><span class="homelogo">KnowJesus.net</span></h1>
<?php else: ?>
<h1><a href="<?php echo $CFG->wwwroot; ?>" title="Return to the home page">Know Jesus.net</a></h1>
<?php endif; ?>
<p><span class="visuallyhidden">"Now this is eternal life: that they know you, the only true God, and Jesus Christ, whom you have sent." <span class="headerverse">John 17:3</span></span></p>
</header>
<div class="headermenu">
<div class="breadcrumb">
<?php print_navigation($navigation); ?>
</div>
<!--<?php echo user_login_string(); ?>-->
<div class="logininfo">
<?php
if (isset($USER->username)) {
$kjlogout = '<span class="hidemobile">Hi, '. $USER->firstname .' | </span>';
$kjlogout .= '<a href="'. $CFG->wwwroot .'/login/logout.php?sesskey='. sesskey() .'">'. get_string('logout') .'</a>';
echo $kjlogout;
} else {
$kjlogin = '<span class="hidemobile">You are not logged in. (</span>';
$kjlogin .= '<a href="'. $CFG->wwwroot .'/login/index.php">Login</a>';
$kjlogin .= '<span class="hidemobile">)</span>';
echo $kjlogin;
}
?>
</div>
</div>
<?php print_container_start(true, '', 'content'); ?>
<section class="editbutton clearfix"><?php echo $button; ?></section>