forked from 4nd3rs/RESS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
89 lines (79 loc) · 3.08 KB
/
header.php
File metadata and controls
89 lines (79 loc) · 3.08 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php include "WURFL.php"?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RESS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes">
<meta name="description" content="Getting started with RESS. A demo site for using Responsive Web design together with server side techniques.">
<meta name="author" content="Anders M. Andersen">
<!-- Styles -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/swipe.css" rel="stylesheet">
<link href="css/site.css" rel="stylesheet">
<link href="css/header.css" rel="stylesheet">
<!-- Just neccecary scripts, rest goes in footer -->
<script src="js/modernizr-2.5.3-custom.js"></script>
<!-- Include touch and favicons -->
<?php include "fragments/touchicon.php"?>
<!-- Check screensize and write to cookie (need to do this after the meta viewport tag)
We populate a PHP array called RESS.
-->
<?php include "RESS.php"?>
<?php include "fragments/google-analytics.php" ?>
</head>
<body>
<div class="container">
<div id="header">
<div class="row">
<?php
if ($RESS["width"] >= 320 && $RESS["width"] <= 640) {
?>
<div class="mobile-ad max-320">
<?php include "fragments/ads/320.php"?>
</div>
<?php
}?>
<div id="site-logo">
<a href="/ress/">RESS</a>
</div>
<div class="ad">
<?php
if ($RESS["width"] >= 980) {
?>
<div class="max-980">
<?php include "fragments/ads/728.php"?>
</div>
<?php
} else if ($RESS["width"] >= 768) {
?>
<div class="max-768">
<?php include "fragments/ads/468.php"?>
</div>
<?php
}
?>
</div>
</div>
</div>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Home</a>
<div class="nav-collapse">
<ul class="nav">
<li><a href="http://www.netmagazine.com/tutorials/getting-started-ress">Original Article</a></li>
<li><a href="https://github.com/4nd3rs/RESS">Sourcecode</a></li>
<li><a href="#about">About</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
</div>