-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheader.php
63 lines (61 loc) · 2.75 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php namespace Habari; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php Options::out('title'); ?> <?php if( $request->display_page && isset($post) ) { echo ' — ' . $post->title; } ?><?php echo $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="<?php Site::out_url('theme'); ?>/style.css" media="screen" type="text/css">
<link rel="Shortcut Icon" href="<?php Site::out_url('theme'); ?>/favicon.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link href="//get.pictos.cc/fonts/2135/9" rel="stylesheet" type="text/css">
<script>
if ( typeof(HPO) == "undefined" ) { HPO = {}; }
HPO.url = "<?php Site::out_url('habari'); ?>";
HPO.WSSE = <?php echo json_encode(Utils::WSSE()); ?>;
HPO.WSSE_update = '<?php echo URL::get('auth_ajax', array('context' => 'wsse_update')); ?>';
</script>
<?php echo $theme->header(); ?>
</head>
<body>
<nav id="mobile_menu">
<ul>
<?php echo $theme->top_level_menu(); ?>
</ul>
</nav>
<header>
<div class="container">
<div id="mobile_menu_trigger">
<a id="show_menu" href="#menu"><i class="icon-menu">q</i></a>
</div>
<div class="logo">
<a href="<?php Site::out_url('habari'); ?>" title="Habari Project"><span>Habari</span> <img src="<?php Site::out_url('theme'); ?>/images/habari_logo.png"></a>
</div>
<ul id="menu">
<?php echo $theme->top_level_menu(); ?>
<li class="search_field"><form method="get" action="<?php URL::out('display_search'); ?>"><input type="text" value="<?php if ( isset( $criteria ) ) { echo htmlentities($criteria, ENT_COMPAT, 'UTF-8'); } ?>" name="criteria" placeholder="Search"></form></li>
</ul>
</div>
</header>
<?php if( $request->display_home ) { ?>
<div id="intro">
<div class="bg"></div>
<div class="container">
<h1>Spread the News!</h1>
<h2>Nimble, flexible, powerful. Say hello to the new Habari.</h2>
<div class="offset-by-one columns">
<p>100s of new features, a completely rewritten core, a new streamlined admin interface and an integrated Plugin & Theme Catalog are just some of the highlights of the new & improved Habari.</p>
</div>
</div>
<div id="app_preview">
<div class="container">
<div class="row offset-by-three">
<div class="download five columns"><a href="http://habariproject.org/en/download" title="download 0.9.1">Download 0.9.1</a></div>
<div class="take_tour five columns"><a href="<?php URL::out('display_page', array('slug' => 'whats-new')); ?>" title="See what's new">See what's new</a></div>
</div>
</div>
</div>
</div>
<?php } ?>