-
Notifications
You must be signed in to change notification settings - Fork 15
/
header.php
executable file
·74 lines (65 loc) · 1.82 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
64
65
66
67
68
69
70
71
72
73
74
<?php
/*
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
*
* header.php - common header for all pages
*
*
* Copyright (C) 2004-2007 Stephen Minutillo
* steve@minutillo.com - http://minutillo.com/steve/
*
* Distributed under the GPL - see LICENSE
*
*/
include_once "fof-main.php";
fof_set_content_type();
$width = isset($_COOKIE['fof_sidebar_width']) ? $_COOKIE['fof_sidebar_width'] : 250;
$unread_count = fof_db_tag_count(fof_current_user(), 'unread');
?>
<!DOCTYPE html>
<html>
<head>
<title>Feed on Feeds<?php if ($unread_count) {
echo " ($unread_count)";
}
?></title>
<link rel="stylesheet" href="fof.css" media="screen" />
<?php
if (is_readable('./fof-custom.css')) {
?>
<link rel="stylesheet" href="fof-custom.css" media="screen" />
<?php
}
?>
<link rel="microsummary" href="microsummary.php" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="fof.js" type="text/javascript"></script>
<script>
<?php if ($fof_prefs_obj->get('keyboard')) {?>
document.onkeypress = keyboard;
<?php }?>
</script>
<style>
#sidebar {
width: <?php echo $width ?>px;
}
#handle {
left:<?php echo $width ?>px;
}
#items {
margin-left: <?php echo $width + 10 ?>px;
}
#item-display-controls { left: <?php echo $width + 10 ?>px; }
#welcome { width: <?php echo $width - 30 ?>px; }
</style>
</head>
<body class="highlight-on"> <!--onkeypress="keyboard(event)"-->
<a href="#sidebar" id="menu_toggle" onclick="document.getElementById('sidebar').classList.toggle('active'); return false;">☰</a>
<div id="sidebar">
<?php
include 'sidebar.php';
?>
</div>
<div id="handle" class="hide-on-mobile" onmousedown="startResize(event)"></div>
<div id="items">
<div id="marker"></div>