FeedOnFeeds/header.php

75 lines
1.9 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-09-01 01:21:12 +04:00
<link rel="stylesheet" type="text/css" href="fof.css" media="screen" />
<link rel="stylesheet" type="text/css" href="fof-mobile.css" media="handheld" />
2010-09-01 01:42:34 +04:00
<link rel="stylesheet" type="text/css" href="fof-mobile.css" media="only screen and (max-device-width: 600px)" />
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>
2009-08-03 16:42:04 +04:00
2010-08-31 02:16:06 +04:00
<!--[if IE]>
<script>window.isIE = true;</script>
2010-08-31 02:33:23 +04:00
<style>
2010-09-01 01:21:12 +04:00
@media screen { #sidebar table { width: <?=($width-20)?>px; } }
2010-08-31 02:33:23 +04:00
</style>
2010-08-31 02:16:06 +04:00
<![endif]-->
2009-08-03 16:42:04 +04:00
2010-09-01 01:21:12 +04:00
<style>
@media only screen and (min-device-width: 600px) {
#sidebar { width: <?=$width?>px; }
#handle { left: <?=$width?>px; }
#items { margin-left: <?=($width+20)?>px; }
#item-display-controls { left: <?=($width+10)?>px; }
}
</style>
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 } ?>
</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">