Location: PHPKode > projects > Obsessive Website Statistics > ows/themes/default/index.php
	$Id: index.php 74 2007-07-29 23:11:16Z randomperson83 $

	Obsessive Web Statistics
    Copyright (C) 2007 Dustin Spicuzza <hide@address.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
	This implements the code needed for the default theme. All themes need to
	do is return a string comprising of the entire page (themes are called
	inside of output buffering, so there are a number of things that they 
	should not ever do). 
	There is a global variable called $output which contains information 
	that themes should use to construct the necessary HTML. 


// this is called, which must return HTML for the entire page requested.
function get_theme_html($content, $themepath){

	global $output,$cfg;

	$ret = 
'<!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" xml:lang="en" lang="en" dir="ltr">
	<title>' . htmlentities($output['title']) . '</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.corner.js"></script>
	<link rel="icon" href="favicon.ico" type="image/x-icon" /> 
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />	
	<link rel="stylesheet" type="text/css" media="screen" href="' . $themepath . '/main.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="' . $themepath . '/plugin.css" />
<script type="text/javascript">
		$("div#header0").corner("tl 10px dog");
		$("div.rounded").corner("br dog");
' . $output['head'] . '
<div id="header0"></div>
<div id="header">
	<a href="http://obsessive.sourceforge.net">Obsessive Web Statistics <sup>BETA</sup></a> 
<div id="content">
<div class="menu"><ul><li><a href="index.php">Home</a></li>' . $output['menu'] . '<li><a href="about.php">About OWS</a></li></ul></div><div id="main_container">

' . $content . '
<div id="footer" class="rounded">
	Obsessive Web Statistics Beta &copy; 2007 Dustin Spicuzza &amp; contributors' . ($cfg['db_queries'] > 0 ? ($cfg['db_queries'] > 1 ? "<br/>$cfg[db_queries] db queries performed" : "<br/>1 db query performed") : '') . '

	return $ret;

Return current item: Obsessive Website Statistics