-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
40 lines (37 loc) · 1.6 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<?php Options::out('locale') ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php if ( $request->display_entry && isset($post) ) { echo "{$post->title} - "; } ?><?php Options::out( 'title' ) ?></title>
<link rel="stylesheet" type="text/css" media="screen" href="<?php Site::out_url( 'theme' ); ?>/style.css">
<?php echo $theme->header(); ?>
</head>
<body>
<div id="header">
<div id="siteinfo">
<h1><?php Options::out( 'title' ); ?></h1>
<p id="tagline"><?php Options::out( 'tagline' ); ?></p>
</div>
<form method="get" id="search" action="<?php URL::out('display_search'); ?>">
<p><input type="text" id="searchfield" name="criteria" value="<?php if ( isset( $criteria ) ) { echo htmlentities($criteria, ENT_COMPAT, 'UTF-8'); } ?>"> <input type="submit" id="searchsubmit" value="<?php _e('Search'); ?>"></p>
</form>
<ul id="menu">
<li>
<a href="<?php Site::out_url( 'habari' ); ?>">Home</a>
</li>
<?php
foreach ( array_filter($pages->getArrayCopy(), create_function('$a', 'return !in_array($a->slug, array("tag", "archives"));')) as $tab ) {
?>
<li>
<a href="<?php echo $tab->permalink; ?>" title="<?php echo $tab->title; ?>"><?php echo $tab->title; ?></a>
</li>
<?php
}
if ( User::identify()->loggedin ) {
?>
<li class="admintab"><a href="<?php Site::out_url( 'admin' ); ?>" title="Admin area">Admin</a></li>
<?php
}
?>
</ul>
</div>