FeedOnFeeds/header.php

77 lines
2.1 KiB
PHP
Raw Normal View History

2009-08-03 16:42:04 +04: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();
if(isset($_COOKIE['fof_sidebar_width']))
2010-08-31 02:16:06 +04:00
$width = $_COOKIE['fof_sidebar_width'];
2009-08-03 16:42:04 +04:00
else
2010-08-31 02:16:06 +04:00
$width = 250;
2009-08-03 16:42:04 +04:00
$unread_count = fof_get_unread_count(fof_current_user());
?>
<!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">
2010-08-31 02:16:06 +04:00
<head>
2009-08-03 16:42:04 +04:00
2010-08-31 02:16:06 +04:00
<title>Feed on Feeds<?php if($unread_count) echo " ($unread_count)";?></title>
2009-08-03 16:42:04 +04:00
2010-08-31 02:16:06 +04:00
<link rel="stylesheet" href="fof.css" media="screen" />
<link rel="stylesheet" href="fof-mobile.css" media="handheld" />
2009-08-03 16:42:04 +04:00
2010-08-31 02:16:06 +04:00
<script src="prototype/prototype.js" type="text/javascript"></script>
<script src="fof.js" type="text/javascript"></script>
<script src="mediatypechecker.js" type="text/javascript"></script>
2009-08-03 16:42:04 +04:00
2010-08-31 02:16:06 +04:00
<!--[if IE]>
<script>window.isIE = true;</script>
<![endif]-->
2009-08-03 16:42:04 +04:00
2010-08-31 02:16:06 +04:00
<script>
document.onmousemove = dragResize;
document.onmouseup = completeDrag;
<?php if($fof_prefs_obj->get('keyboard')) { ?>
document.onkeypress = keyboard;
<?php } ?>
2010-08-31 02:21:16 +04:00
var isMobile = IsMediaType('handheld') > 0;
2010-08-31 02:16:06 +04:00
var sidebarWidth = <?=$width?>;
if (!isMobile)
{
2010-08-31 02:21:16 +04:00
document.getElementById('sidebar').style.width = sidebarWidth+'px';
2010-08-31 02:16:06 +04:00
document.getElementById('handle').style.left = sidebarWidth+'px';
document.getElementById('items').style.marginLeft = (sidebarWidth+20)+'px';
document.getElementById('item-display-controls').style.left = (sidebarWidth+10)+'px';
if (isIE)
{
document.getElementById('taglist').style.width = (sidebarWidth-20)+'px';
document.getElementById('feedlisttable').style.width = (sidebarWidth-20)+'px';
}
}
</script>
</head>
<body class="highlight-on">
2009-08-03 16:42:04 +04:00
<div id="sidebar">
2010-08-31 02:16:06 +04:00
<?php include("sidebar.php") ?>
2009-08-03 16:42:04 +04:00
</div>
<div id="handle" onmousedown="startResize(event)"></div>
<div id="items">