]> projects.mako.cc - scuttle/blob - templates/top.inc.php
- Allow blacklisting and whitelisting of e-mail addresses used for new user accounts
[scuttle] / templates / top.inc.php
1 <?php header('Content-Type: text/html; charset=utf-8'); ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <head>
5     <title><?php echo filter($GLOBALS['sitename'] . (isset($pagetitle) ? ': ' . $pagetitle : '')); ?></title>
6     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7     <link rel="icon" type="image/png" href="<?php echo $GLOBALS['root']; ?>icon.png" />
8     <link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['root']; ?>scuttle.css" />
9     <?php
10     $size = count($rsschannels);
11     for ($i = 0; $i < $size; $i++) {
12         echo '<link rel="alternate" type="application/rss+xml" title="'. $rsschannels[$i][0] .'" href="'. $rsschannels[$i][1] .'" />';
13     }
14     ?>
15     <?php if ($loadjs): ?>
16       <script type="text/javascript" src="<?php echo $GLOBALS['root']; ?>includes/jquery-1.4.4.min.js"></script>
17       <script type="text/javascript" src="<?php echo $GLOBALS['root']; ?>jsScuttle.php"></script>
18     <?php endif; ?>
19 </head>
20 <body>
21
22 <?php
23 $headerstyle = '';
24 if(isset($_GET['popup'])) {
25     $headerstyle = ' class="popup"';
26 }
27 ?>
28
29 <div id="header"<?php echo $headerstyle; ?>>
30     <h1><a href="<?php echo $GLOBALS['root']; ?>"><?php echo $GLOBALS['sitename']; ?></a></h1>
31     <?php
32     if(!isset($_GET['popup'])) {
33         $this->includeTemplate('toolbar.inc');
34     }
35     ?>
36 </div>
37
38 <?php
39 if (isset($subtitle)) {
40     echo '<h2>'. $subtitle ."</h2>\n";
41 }
42 if (isset($error)) {
43     echo '<p class="error">'. $error ."</p>\n";
44 }
45 if (isset($msg)) {
46     echo '<p class="success">'. $msg ."</p>\n";
47 }
48 ?>

Benjamin Mako Hill || Want to submit a patch?