Restructure repository
[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     if ($loadjs) {
15         echo '<script type="text/javascript" src="'. $GLOBALS['root'] .'jsScuttle.php"></script>';
16     }
17     ?>
18 </head>
19 <body>
20
21 <?php
22 $headerstyle = '';
23 if(isset($_GET['popup'])) {
24     $headerstyle = ' class="popup"';
25 }
26 ?>
27
28 <div id="header"<?php echo $headerstyle; ?>>
29     <h1><a href="<?php echo $GLOBALS['root']; ?>"><?php echo $GLOBALS['sitename']; ?></a></h1>
30     <?php
31     if(!isset($_GET['popup'])) {
32         $this->includeTemplate('toolbar.inc');
33     }
34     ?>
35 </div>
36
37 <?php
38 if (isset($subtitle)) {
39     echo '<h2>'. $subtitle ."</h2>\n";
40 }
41 if (isset($error)) {
42     echo '<p class="error">'. $error ."</p>\n";
43 }
44 if (isset($msg)) {
45     echo '<p class="success">'. $msg ."</p>\n";
46 }
47 ?>

Benjamin Mako Hill || Want to submit a patch?