<?php
# ----------------------------------------------------------------
# THIS IS THE DEFAULT PHPOSXOM FLAVOR FILE
# The purpose is to allow you to customize the look and feel of
# your PHPosxom blog without the necessity of using flav=foo in
# the URL or editing the main script.
# ----------------------------------------------------------------
# USAGE
# There are three functions below that form the head, story, and
# foot blocks on a blog page.
#
# Find out more about using Flavor files here:
# http://www.celsius1414.com/phposxom/flavors.php
# ----------------------------------------------------------------
# $sendToBrowser lets the browser know what kind of content is being
# served. You'll probably want to leave this alone.

$sendToBrowser ='Content-type: text/html';

# ---------------------------------------------------------------
# headBlock is the HTML that forms the top of a PHPosxom page.
# You can add additional lines by following the $head[] format below.

function headBlock($lang,$title,$description) {
	global $cssURL;
	$head = array();
	$headThang = null;

# BEGIN EDITABLE SECTION

	$head[] = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML  4.0 Transitional//EN"> 
<html>
<head>
<title>Kismet</title>

<LINK REL=stylesheet HREF="/kismet.css" TYPE="text/css">
<LINK rel="SHORTCUT ICON" href="http://www.kismetwireless.net/favicon.ico" />

</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0">
	<tr>
	<td height="110" width="50%" valign="middle" align="center">

		<table width="100%" border="0" cellspacing="10" cellpadding="0">
		<tr>
		<td bgcolor="#C0C0C0" height="10" colspan="2">
		</tr><tr>
		<td valign="top" align="center"><a class="theader" href="/download.shtml">Download</a>
		<td valign="top" align="center"><a class="theader" href="/documentation.shtml">Documentation</a>
		</tr>
		<tr>
		<td colspan="2" bgcolor="#C0C0C0" height="1">
		</tr>
		</table>
	</td>
	<td height="110" valign="middle" align="center" width="255">
		<a href="/index.shtml"><img src="/logo_small.png" border="0" alt="kismetwireless"></a>
	</td>
	<td height="110" width="50%" valign="middle" align="center">

		<table width="100%" border="0" cellspacing="10" cellpadding="0">
		<tr>
		<td bgcolor="#C0C0C0" height="10" colspan="2">
		</tr><tr>
		<td valign="top" align="center"><a class="theader" href="/Forum/General/">Forum</a>
		<td valign="top" align="center"><a class="theader" href="/links.shtml">Links</a>
		</tr>
		<tr>
		<td colspan="2" bgcolor="#C0C0C0" height="1">
		</tr>
		</table>
	</td>
	</tr>

</table>

<br><br>

<center>
<table border="0" width="80%">
<tr>
<td>
';
	$head[] = '
<a name="gpg"></a>
<div class="texthunk">
<b class="bheader">'.$title.'</b>
<blockquote>
<p class="ihangp">'.$description.'
</div>
<br><br>
';
	#$head[] = "<b>".$title."</b>\n";
	#$head[] = "<blockquote>".$description."</blockquote>\n";

# END EDITABLE SECTION

	foreach ($head as $valhead) {
		$headThang = $headThang.$valhead;
	}
	return $headThang;
}

# ---------------------------------------------------------------
# storyBlock is the HTML that constructs an individual blog entry.
# You can add additional lines by following the $story[] format below.

function storyBlock($title,$text,$authorlink,$author,$time,$cat,$path,$date) {
	global $whoami;
	$story = array();
	$storyThang = null;

# BEGIN EDITABLE SECTION
	$story[] = '
<a name="gpg"></a>
<div class="texthunk">
<b class="bheader">'.$title.'</b>
<blockquote>
<p>'.$text.'</blockquote>';
	$story[] = "<div align=right><p> Posted by <a href=\"".$authorlink."\">".$author."</a> at ".$time." / ".$date." [ <a href=\"".$whoami."?category=".$cat."\">/".$cat."</a> | <a href=\"".$whoami."?entry=".$path."\">#</a> ]</p></div>\n";

	$story[] = '</div>
<div class="topbar"><a class="tuheader" href="http://www.kismetwireless.net/blog/">top</a></div>
<br><br>
';
#	$story[] = "<blockquote>";
#	$story[] = "<i>".$title."</i>\n";
#	$story[] = "<blockquote><p class=\"blog\">".$text."</p>\n";
#	$story[] = "<div width=80% align=right><p class=\"blogmeta\"> Posted by <a href=\"".$authorlink."\">".$author."</a> at ".$time." [ <a href=\"".$whoami."?category=".$cat."\">/".$cat."</a> | <a href=\"".$whoami."?entry=".$path."\">#</a> ]</p></div></blockquote>\n";
#	$story[] = "</blockquote>";

# END EDITABLE SECTION

	foreach ($story as $valstory) {
		$storyThang = $storyThang.$valstory;
	}
	return $storyThang;
}

# ---------------------------------------------------------------
# footBlock is the HTML that forms the bottom of the page.
# You can add additional lines by following the $foot[] format below.

function footBlock() {
	global $whoami;
	$foot = array();
	$footThang = null;

# BEGIN EDITABLE SECTION

	$foot[] = "<b>Archive</b><blockquote>";
	$foot[] = "<p><a href=\"".$whoami."?flav=archive\">Archive</a></p>\n";
	$foot[] = "</blockquote>";
	$foot[] = "<b>RSS</b><blockquote>";
	$foot[] = "<p><a href=\"".$whoami."?flav=rss\">RSS Feed</a></p>\n";
	$foot[] = "<p>Powered by <a href=\"http://www.celsius1414.com/phposxom/\">PHPosxom</a>.</p>\n";
	$foot[] = "</blockquote>";
	$foot[] = '

<br>
</td>
</tr><tr>
<td colspan="3" bgcolor="#C0C0C0" height="1">
</tr><tr>
<td colspan="3" align="right">dragorn@kismetwireless.net
</tr>
</table>

</body>
</html>
';

# END EDITABLE SECTION

	foreach ($foot as $valfoot) {
		$footThang = $footThang.$valfoot;
	}
	return $footThang;
}
?>
