FeedOnFeeds/header.php

96 lines
1.9 KiB
PHP
Raw Normal View History

2007-01-02 04:41:22 +03:00
<?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();
2007-01-02 04:41:22 +03:00
if(isset($_COOKIE['fof_sidebar_width']))
{
$width = $_COOKIE['fof_sidebar_width'];
}
else
{
$width = 250;
}
2007-06-12 07:20:19 +04:00
$unread_count = fof_get_unread_count(fof_current_user());
2007-01-02 04:41:22 +03:00
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
2007-06-12 07:20:19 +04:00
<title>Feed on Feeds<?php if($unread_count) echo " ($unread_count)";?></title>
2007-01-02 04:41:22 +03:00
<link rel="stylesheet" href="fof.css" media="screen" />
2007-12-29 06:51:12 +03:00
<link rel="microsummary" href="microsummary.php" />
2007-01-02 04:41:22 +03:00
<script src="prototype/prototype.js" type="text/javascript"></script>
<script src="fof.js" type="text/javascript"></script>
<script>
document.onmousemove = dragResize;
document.onmouseup = completeDrag;
<?php if($fof_prefs_obj->get('keyboard')) { ?>
2007-06-12 07:20:19 +04:00
document.onkeypress = keyboard;
2007-05-21 00:39:37 +04:00
<?php } ?>
2007-06-12 07:20:19 +04:00
isIE = false;
2007-01-02 04:41:22 +03:00
</script>
<style>
#sidebar
{
width: <?php echo $width ?>px;
}
2007-01-02 04:41:22 +03:00
#handle
{
left:<?php echo $width ?>px;
}
#items
{
margin-left: <?php echo $width+20 ?>px;
}
#item-display-controls { left: <?php echo $width+10 ?>px; }
2007-01-02 04:41:22 +03:00
</style>
<!--[if IE]>
<style>
#sidebar table
{
width: <?php echo $width - 20?>px;
}
</style>
<script>isIE = true;</script>
<![endif]-->
2007-01-02 04:41:22 +03:00
</head>
<body class="highlight-on"> <!--onkeypress="keyboard(event)"-->
<div id="sidebar">
<?php include("sidebar.php") ?>
</div>
<div id="handle" onmousedown="startResize(event)"></div>
<div id="items">