forked from pmeth/truenorthphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
31 lines (28 loc) · 899 Bytes
/
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
<?php
ini_set('date.timezone','America/Toronto');
$css = array('bootstrap/css/bootstrap.css', 'css/truenorth.css');
if (isset($extra_css)) {
$css = array_merge($css, $extra_css);
}
//Check for Mobile Browser
if (!isset($_COOKIE['mobileNoPrompt'])){
require_once('vendor/mobile-detect/Mobile_Detect.php');
$detect = new Mobile_Detect();
if ($detect->isMobile()) {
// if mobile Device move to mobile prompt page
header('Location: mobile.php');
exit;
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>True North PHP Conference - November 2-3 - Toronto, Canada</title>
<?php foreach ($css as $name) { ?>
<link rel="stylesheet" href="<?php echo $name ?>">
<?php } ?>
<link href='http://fonts.googleapis.com/css?family=Buenard|Muli' rel='stylesheet' type='text/css'>
</head>
<body>
<?php include 'navigation.php'; ?>