forked from brandonsavage/masterclass-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.phtml
65 lines (55 loc) · 1.54 KB
/
layout.phtml
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
<html>
<head>
<title>Upvote News</title>
</head>
<style>
body {
font-family: Verdana;
font-size: 10pt;
}
#container {
clear: both;
margin: 0 auto;
width: 960px;
}
#main {
background-color: #F6F6EF;
width: 960px;
}
#header {
background-color: #FF6600;
padding: 5px;
}
a {
text-decoration: none;
color: #000000;
}
span {
display: block;
}
span, span a {
color: #828282;
font-size: 8pt;
}
/* #8287B0 */
</style>
<body>
<div id="container">
<div id="main">
<div id="header"><a href="/"><strong>Upvote News</strong>
<?php
if(isset($_SESSION['AUTHENTICATED'])) {
print '<a href="/story/create">new</a> | <a href="/user/account">account</a> | <a href="/user/logout">logout</a>';
} else {
print '<a href="/user/login">login</a> | ';
print '<a href="/user/create">create account</a>';
}
?>
</div>
<div id="content">
<?php echo $content; ?>
</div>
</div>
</div>
</body>
</html>