<?php

$template_matrix = array(
							array('index',				'webpage'),
							array('comments',			'webpage'),
							array('comment_preview',	'webpage'),
							array('trackbacks',			'webpage'),
							array('referrers',			'webpage'),
							array('smileys',			'webpage'),
							array('site_css',			'css')
						);


if ( ! isset($type))
	$type = 'core';

//-------------------------------------
//	Stylesheet template
//-------------------------------------

function site_css()
{
	global $type;

ob_start();
?>
body {
	margin: 0px;
	padding: 0px;
	height: 100%;
	font: 14px "Lucida sans unicode", Verdana, Geneva, Arial, Helvetica, sans-serif;
	color: #575757;
	background: #FFF;
}

#banner {
	background: #FFF url({site_url}themes/site_themes/redhead/redhead_banner.jpg) no-repeat top;
	height: 260px;
	margin: 0px;
	padding: 0px;
	voice-family: "\";}\"";
	voice-family: inherit;
	height:260px;
}

html>body #banner {height:260px;}

#navbar {
	text-align: center;
	padding: 0px;
	margin: 0px;
}

.clear {
	clear: both;
	margin: 0px 0px;
	padding: 5px 0 0 0;
	text-align: center;
	border-bottom: 3px double #663333;
}

#content   {
	padding: 0 10px;
	margin-right: 0px;
	margin-left: 420px;
	border-left: 3px double #663333;
	border-bottom: 3px double #663333;
}


#leftbar {
	position: absolute;
	top: 345px;
	left: 10px;
	width: 191px;
	padding: 0px;
		}

#rightbar {
	position: absolute;
	top: 345px;
	left: 215px;
	width: 191px;
	padding: 0px;
	}

#footer {
	clear: both;
	padding: 0px;
	margin: 0px;
	}

a {
	color: #800000;
	text-decoration: none;
}


a:visited {
	color : #800000;
	text-decoration : none;
	}

a:active {
	color : #575757;
	text-decoration : none;
	}

a:hover {
	color: #575757;
	text-decoration: none;
}

h2, h3, h4 {
	margin: 0px;
	padding: 0px;
	}

p,pre {
	margin:0px 10px 10px 10px;
	}

h1 {
	margin: 0px;
	padding-top:10px;
		}

#content li {
		list-style: none;
}

#banner h1 {
	padding: 10px 10px 0px 10px;
	margin: 0px;
	display: none;
}

#banner a,
        #banner a:link,
	#banner a:visited,
		#banner a:active,
			#banner a:hover{
	color: #800000;
	text-decoration: none;
	display: none;
}

#blogtitle {
margin: 0px;
padding: 5px 10px;
height: 100px;
text-align: left;
border-top: 10px solid #B35672;
border-bottom: 1px solid #333333;
background: #96507F;
color: #FFF;
display: none;
}

#blogtitle h1 {
font: bold italic 45px verdana, helvetica, sans-serif;
margin: 0;
padding: 0;
display: none;
}


#blog {
	font-size: 12px;
	font-weight: normal;
	line-height: 140%;
	padding: 0px;
	background-color: White;
}

.title {
	font: small-caps bold 14px 'Lucida Sans Unicode', Verdana, sans-serif;
	margin-bottom: 5px;
	color: #333333;
}

.paginate, .pagecount {
	font: small-caps bold 12px 'Lucida Sans Unicode', Verdana, sans-serif;
	margin-bottom: 0px;
	margin-top: 15px;
	padding: 15px;
	text-align: center;
}

.date {
	margin-bottom: 5px;
	text-align: right;
	font: small-caps bold 12px 'Lucida Sans Unicode', Verdana, sans-serif;
	padding: 5px 5px;
	}

.posted	{
	font: small-caps bold 10px 'Lucida Sans Unicode', Verdana, sans-serif;
	text-align: center;
	margin: 10px;
	padding: 5px;
	border: 3px double #663333;
}

.snipposted	{
	font: small-caps bold 10px 'Lucida Sans Unicode', Verdana, sans-serif;
	margin: 5px 10px;
	padding: 0 5px;
}

.calendar-head {
	font-family: verdana;
	font-size: 11px;
	font-weight: normal;
	padding: 2px;
	letter-spacing: .3em;
	text-transform: uppercase;
	text-align: center;
	font-weight: bold;
	background-color: #999999;
	color: #663333;
}

.calendar-link a {
font-size: 11px;
font-family: verdana;
text-decoration: none;
color: #800000;
}

.calendar-link a:hover {
color: #575757;
}

td.cal0 {
	width: 25px;
	text-align: center;
	font-family: verdana;
	font-weight: bold;
	font-size: 11px;
	color: #C0C0C0;
	background-color: #FFF;
}

td.cal1 {
	width: 25px;
	text-align: center;
	font-family: verdana;
	font-size: 11px;
	background-color: #C0C0C0;
	color: #4E3E62;
}

td.cal2 {
	width: 25px;
	text-align: center;
	font-family: verdana;
	font-size: 11px;
	background-color: #F4F4F4;
	color: #4E3E62;
}

tr.cal3 {
height: 20px;
}

td.cal4 {
	width: 25px;
	text-align: center;
	background-color: #575757;
	font-family: verdana;
	font-weight: bold;
	font-size: 11px;
	color: #C0C0C0;
}


.side {
	font-size: 11px;
	font-weight:normal;
	text-align: left;
	line-height:140%;
	padding: 5px;
	margin-bottom : 0px;
	}

.sideleft {
	font-size: 11px;
	font-weight:normal;
	text-align: left;
	line-height:140%;
	padding: 5px;
	margin-bottom : 10px;
	}

.sidetitle {
	line-height: 140%;
	text-align: center;
	letter-spacing: .2em;
	font: small-caps bold 12px 'Lucida Sans Unicode', Verdana, sans-serif;
	padding-top: 3px;
	padding-bottom: 3px;
	margin: 0px;
	border-bottom: 3px double #663333;
	background: #C0C0C0;
	color: #663333;
}

.archtitle {
	line-height: 140%;
	text-align: center;
	letter-spacing: .2em;
	font: small-caps bold 12px 'Lucida Sans Unicode', Verdana, sans-serif;
	padding-top: 3px;
	padding-bottom: 3px;
	margin: 0px;
}

.sidebox {
	width: 185px;
	border: 3px double #663333;
	margin: 10px 0px;
}


.entryimg {
	text-align: center;
	border: 1px solid #663333;
   margin: 5px;
	padding: 3px;
	}

.imgleft {
	float:left;
	border: 1px solid #663333;
	padding: 3px;
          margin-top: 0px;
          margin-right: 5px;
          margin-bottom: 5px;
          margin-left: 0px;
}

.moblog {
	text-align: center;
	border: 1px solid #663333;
	padding: 3px;
	}


.thumb {
	border: 1px solid #663333;
	padding: 3px;
          margin:4px 15px;
	}

.photo {
	text-align: center;
	border: 1px solid #663333;
	padding: 3px;
          width: 400px;
          height: 300px;
          margin-top: 10px;
          margin-bottom: 20px;
          margin-left: auto;
          margin-right: auto;
}

.livepreviewbox {
	margin : 5px 20px;
	padding : 5px;
	border: 3px double #663333;
}


#tagboard {
	text-align: left;
	height: 100%;
	}

form p {
	padding-left: 1px;
	font-size: 10px;
	}

textarea {
	background-color: #CCCCCC;
	}

input {
	font-family: 'Lucida Sans Unicode', Verdana, sans-serif;
	font-size: 10px;
	border: 1px solid #663333;
	margin: 1px 0px;
	}

.tag2, .tag2 p {
	font-size: 11px;
	background-color: #CCCCCC;
	text-align: left;
}

.tag2 a:link, .tag2 a:visited, .tag2 a:active, .tag2 a:hover {
	color: #663333;
	}

.tag1, .tag1 p {
	font-size: 11px;
	color: #4E3E62;
	background-color: #999999;
	text-align: left;
}

.tag1 a:link, .tag1 a:visited, .tag1 a:active, .tag1 a:hover {
	color: #663333;
	}
#parchs {
	margin-top: 5px;
	font-size: 10px;
	}
#pslink {
	font-size: 10px;
	text-align: left;
	}

blockquote {
	border: 3px double #663333;
	margin: 10px 30px;
	padding: 5px;
	font-style: italic;
	background-color: #E5E5E5;
	font-size: 11px;
}

div.blockquotesource {
	font-size: 10px;
	text-align: right;
	padding-top: 10px;
	color: #663333;
}

div.blockquotesource a, div.blockquotesource a:link, div.blockquotesource a:visited, div.blockquotesource a:hover, div.blockquotesource a:active  {
	text-decoration: overline;
	font-style: normal;
	color: #663333;
	}

img {
	border: none;
	padding : 0px;
	}


 #navcontainer ul
{
padding: 25px 0 .2em 0;
margin: 0;
list-style-type: none;
background-color: #FFF;
color: #575757;
border-top: 3px double #663333;
width: 100%;
font: normal 90% arial, helvetica, sans-serif;
text-align: center;
}

#navcontainer li { display: inline; }

#navcontainer li a
{
text-decoration: none;
background-color: #C0C0C0;
color: #663333;
padding: .2em 1em;
border-width: 1px;
border-color: #ffe #663333 #663333 #fff;
border-style: solid;
}

#navcontainer li a:hover
{
background-color: #999;
color: #C0C0C0;
border-color: #663333 #fff #fff #663333;
}


#footcontainer {
	margin: 0px;
	padding: 2px;
	}

#footlist  {
	padding: 0 1px 1px;
	margin-left: 0;
	font: small-caps bold 10px 'Lucida Sans Unicode', Verdana, sans-serif;
	}

#footlist li  {
	list-style: none;
	margin: 3px;
	border-top: 1px solid #EEEDF3;
	border-right: 1px solid #B2ACCA;
	border-bottom: 1px solid #B2ACCA;
	border-left: 1px solid #EEEDF3;
	display: inline;
	}

#footlist li a   {
	padding: 0.25em 0.5em 0.25em 0.75em;
	border-left: 10px solid #B2ACCA;
	background: #C8C3D9;
	font: small-caps bold 10px 'Lucida Sans Unicode', Verdana, sans-serif;
	text-decoration: none;
	}

#footlist li a:link {
	color: #4E3E62;
	}

#footlist li a:visited {
	color: #4E3E62;
	}

#footlist li a:hover {
	border-left: 10px solid #C8C3D9;
	color: #E0DDEA;
	background: #B2ACCA;
	}

.center {
text-align: center;
}

.adtable, .adheading, .adtext {
	font: 8px "Lucida Sans Unicode", Verdana, sans-serif;
text-align: center;
}
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END



//-------------------------------------
//	Weblog index template
//-------------------------------------

function index()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
<!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="{lang}" lang="{lang}">
<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>

<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>


</head>

<body>



<div id="banner"></div>
<div id="navbar">
<div id="navcontainer">
<ul id="navlist">
	<li><a href="{site_url}">Home</a></li>
	<li><a href="#">Photos</a></li>
	<li><a href="#">Links</a></li>
	<li><a href="#">Colophon</a></li>
	<li><a href="#">Contact</a></li>
	</ul>
</div>
</div>
<div class="clear">&nbsp;</div>
<div id="main">
<div id="blog">


<div id="content">


<div id="blogtitle">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>

<div class="spacer">&nbsp;</div>




{exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="15"}

{date_heading}
<h3 class="date">{entry_date format=' %l, %F %d, %Y'}</h3>
{/date_heading}

<h2 class="title">{title}</h2>

{summary}
{body}
{extended}

<div class="posted">
Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?>  in
<div class="category">
{categories}
&#8226; <a href="{path=site_index}">{category_name}</a>
{/categories}
</div>
<br />
{if allow_comments}
({comment_total}) <a href="{url_title_path="{my_template_group}/comments"}">Comments</a>  &#8226;
{/if}
{if allow_trackbacks}
({trackback_total}) <a href="{trackback_path="{my_template_group}/trackbacks"}">Trackbacks</a>  &#8226;
{/if}
<a href="{title_permalink={my_template_group}/comments}">Permalink</a>

</div>

{paginate}
<div class="paginate">
<span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
</div>
{/paginate}

{/exp:weblog:entries}





</div>
<div id="leftbar">

 <div class="sidebox">
 <div class="sidetitle">Calendar</div>
 <div class="side">


{exp:weblog:calendar switch="cal4|cal2"}

<table border="0" cellpadding="2" cellspacing="1" width="175" bgcolor="#999999" style="background-color:#999999;">
<tr class="cal3">
<th class="calendar-head"><div class="calendar-link"><a href="{previous_path={my_template_group}/index}">&lt;&lt;</a></div></th>
<th class="calendar-head" colspan="5">{date format="%F %Y"}</th>
<th class="calendar-head"><div class="calendar-head"><a class="calendar-head" href="{next_path={my_template_group}/index}">&gt;&gt;</a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="cal0">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}<td class='{switch}' align='center'><a href="{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
{if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
{if blank}<td class='cal3'>&nbsp;</td>{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Search</h2>
<div class="side" style="text-align: center;">
{exp:search:simple_form search_in="everywhere"}
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<input type="submit" value="submit"  class="submit" />
<br />
<a href="{path=search/index}">Advanced Search</a>
{/exp:search:simple_form}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Categories</h2>
<div class="side">
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Monthly Archives</h2>
<div class="side">
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Most recent entries</h2>
<div class="side">
<ul>
{exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off"}
<li><a href="{title_permalink={my_template_group}/comments}">{title}</a></li>
{/exp:weblog:entries}
</ul>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Syndicate</h2>
<div class="side">
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>
</div>


</div>



<div id="rightbar">

<div class="sidebox">
<h2 class="sidetitle">About</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Reading</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium.</p>
<ul>
<li>Book #1</li>
<li>Book #2</li>
<li>Book #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Listening</h2>
<div class="side">
<p>Sic tempus fugit esperanto hiccup estrogen.</p>
<ul>
<li>Song #1</li>
<li>Song #2</li>
<li>Song #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Viewing</h2>
<div class="side">
<p>Glorious baklava ex librus hup hey ad infinitum.</p>
<ul>
<li>Movie #1</li>
<li>Movie #2</li>
<li>Movie #3</li>
</ul>
</div>
</div>


<?php if ($type != 'core') { ?>
<div class="sidebox">
<h2 class="sidetitle">Join our Mailing List</h2>
<div class="side" style="text-align: center;">
{exp:mailinglist:form}
<p><input type="text" name="email" value="" class="input" size="18" /></p>
<p><input type="submit" value="submit"  class="submit" /></p>
{/exp:mailinglist:form}
</div>
</div>
<?php } ?>





</div>
</div><!-- close blog -->
</div><!-- close main -->
<br clear="all" />
<div style="clear:both;"></div>
</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END






//-------------------------------------
// Comments
//-------------------------------------

function comments()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
<!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="{lang}" lang="{lang}">
<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>

<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>


</head>

<body>



<div id="banner"></div>
<div id="navbar">
<div id="navcontainer">
<ul id="navlist">
	<li><a href="{site_url}">Home</a></li>
	<li><a href="#">Photos</a></li>
	<li><a href="#">Links</a></li>
	<li><a href="#">Colophon</a></li>
	<li><a href="#">Contact</a></li>
	</ul>
</div>
</div>
<div class="clear">&nbsp;</div>
<div id="main">
<div id="blog">


<div id="content">


<div id="blogtitle">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>

<div class="spacer">&nbsp;</div>




{exp:weblog:entries limit="1"}

{date_heading}
<h3 class="date">{entry_date format=' %l, %F %d, %Y'}</h3>
{/date_heading}

<h2 class="title">{title}</h2>

{summary}
{body}
{extended}

<div class="posted">
Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?>  in
<div class="category">
{categories}
&#8226; <a href="{path=site_index}">{category_name}</a>
{/categories}
</div>
<br />
{if allow_comments}
({comment_total}) <a href="{url_title_path="{my_template_group}/comments"}">Comments</a>  &#8226;
{/if}
{if allow_trackbacks}
({trackback_total}) <a href="{trackback_path="{my_template_group}/trackbacks"}">Trackbacks</a>  &#8226;
{/if}
<a href="{title_permalink={my_template_group}/comments}">Permalink</a>

</div>

{/exp:weblog:entries}



{exp:weblog:next_entry weblog="{my_weblog}"}
<span class="posted">Next entry: <a href="{path={my_template_group}/comments}">{title}</a></span>
{/exp:weblog:next_entry}

{exp:weblog:prev_entry weblog="{my_weblog}"}
<span class="posted">Previous entry: <a href="{path={my_template_group}/comments}">{title}</a></span>
{/exp:weblog:prev_entry}




<div class="spacer">&nbsp;</div>


<ol>
{exp:comment:entries weblog="{my_weblog}" limit="25"}
<li>
{comment}
<div class="posted">{url_or_email_as_author}  &nbsp;on&nbsp; {comment_date format='%m/%d'} &nbsp;at&nbsp; {comment_date format='%h:%i %A'}</div>

{paginate}
<div class="paginate">
<span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
</div>
{/paginate}

</li>
{/exp:comment:entries}
</ol>


{exp:comment:form preview="{my_template_group}/comment_preview"}

{if logged_out}
<p>
Name:<br />
<input type="text" name="name" value="{name}" size="50" />
</p>
<p>
Email:<br />
<input type="text" name="email" value="{email}" size="50" />
</p>
<p>
Location:<br />
<input type="text" name="location" value="{location}" size="50" />
</p>
<p>
URL:<br />
<input type="text" name="url" value="{url}" size="50" />
</p>

{/if}

<p>
<a href="{path={my_template_group}/smileys}" onclick="window.open(this.href, '_blank', 'width=400,height=440');return false;" onkeypress="this.onclick()">Smileys</a>
</p>


<p>
<textarea name="comment" cols="50" rows="12" style="width:100%">{comment}</textarea>
</p>

{if logged_out}
<p><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>
{/if}

<p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>

{if captcha}
<p>Submit the word you see below:</p>
<p>
{captcha}
<br />
<input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
</p>
{/if}

<input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview" />

{/exp:comment:form}



</div>
<div id="leftbar">

 <div class="sidebox">
 <div class="sidetitle">Calendar</div>
 <div class="side">


{exp:weblog:calendar switch="cal4|cal2"}

<table border="0" cellpadding="2" cellspacing="1" width="175" bgcolor="#999999" style="background-color:#999999;">
<tr class="cal3">
<th class="calendar-head"><div class="calendar-link"><a href="{previous_path={my_template_group}/index}">&lt;&lt;</a></div></th>
<th class="calendar-head" colspan="5">{date format="%F %Y"}</th>
<th class="calendar-head"><div class="calendar-head"><a class="calendar-head" href="{next_path={my_template_group}/index}">&gt;&gt;</a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="cal0">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}<td class='{switch}' align='center'><a href="{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
{if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
{if blank}<td class='cal3'>&nbsp;</td>{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Search</h2>
<div class="side" style="text-align: center;">
{exp:search:simple_form search_in="everywhere"}
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<input type="submit" value="submit"  class="submit" />
<br />
<a href="{path=search/index}">Advanced Search</a>
{/exp:search:simple_form}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Categories</h2>
<div class="side">
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Monthly Archives</h2>
<div class="side">
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Most recent entries</h2>
<div class="side">
<ul>
{exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off"}
<li><a href="{title_permalink={my_template_group}/comments}">{title}</a></li>
{/exp:weblog:entries}
</ul>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Syndicate</h2>
<div class="side">
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>
</div>


</div>



<div id="rightbar">

<div class="sidebox">
<h2 class="sidetitle">About</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Reading</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium.</p>
<ul>
<li>Book #1</li>
<li>Book #2</li>
<li>Book #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Listening</h2>
<div class="side">
<p>Sic tempus fugit esperanto hiccup estrogen.</p>
<ul>
<li>Song #1</li>
<li>Song #2</li>
<li>Song #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Viewing</h2>
<div class="side">
<p>Glorious baklava ex librus hup hey ad infinitum.</p>
<ul>
<li>Movie #1</li>
<li>Movie #2</li>
<li>Movie #3</li>
</ul>
</div>
</div>

<?php if ($type != 'core') { ?>
<div class="sidebox">
<h2 class="sidetitle">Join our Mailing List</h2>
<div class="side" style="text-align: center;">
{exp:mailinglist:form}
<p><input type="text" name="email" value="" class="input" size="18" /></p>
<p><input type="submit" value="submit"  class="submit" /></p>
{/exp:mailinglist:form}
</div>
</div>
<?php } ?>




</div>
</div><!-- close blog -->
</div><!-- close main -->
<br clear="all" />
<div style="clear:both;"></div>
</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END




//-------------------------------------
//	Comment preview
//-------------------------------------

function comment_preview()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
<!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="{lang}" lang="{lang}">
<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>

<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>


</head>

<body>

<div id="banner"></div>
<div id="navbar">
<div id="navcontainer">
<ul id="navlist">
	<li><a href="{site_url}">Home</a></li>
	<li><a href="#">Photos</a></li>
	<li><a href="#">Links</a></li>
	<li><a href="#">Colophon</a></li>
	<li><a href="#">Contact</a></li>
	</ul>
</div>
</div>
<div class="clear">&nbsp;</div>
<div id="main">
<div id="blog">


<div id="content">


<div id="blogtitle">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>

<div class="spacer">&nbsp;</div>




{exp:comment:preview}
{comment}
{/exp:comment:preview}



<div class="spacer">&nbsp;</div>



{exp:comment:form preview="{my_template_group}/comment_preview"}

{if logged_out}
<p>
Name:<br />
<input type="text" name="name" value="{name}" size="50" />
</p>
<p>
Email:<br />
<input type="text" name="email" value="{email}" size="50" />
</p>
<p>
Location:<br />
<input type="text" name="location" value="{location}" size="50" />
</p>
<p>
URL:<br />
<input type="text" name="url" value="{url}" size="50" />
</p>

{/if}

<p>
<a href="{path={my_template_group}/smileys}" onclick="window.open(this.href, '_blank', 'width=400,height=440');return false;" onkeypress="this.onclick()">Smileys</a>
</p>


<p>
<textarea name="comment" cols="50" rows="12" style="width:100%">{comment}</textarea>
</p>

{if logged_out}
<p><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>
{/if}

<p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>

{if captcha}
<p>Submit the word you see below:</p>
<p>
{captcha}
<br />
<input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
</p>
{/if}

<input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview" />

{/exp:comment:form}


</div>
<div id="leftbar">

 <div class="sidebox">
 <div class="sidetitle">Calendar</div>
 <div class="side">


{exp:weblog:calendar switch="cal4|cal2"}

<table border="0" cellpadding="2" cellspacing="1" width="175" bgcolor="#999999" style="background-color:#999999;">
<tr class="cal3">
<th class="calendar-head"><div class="calendar-link"><a href="{previous_path={my_template_group}/index}">&lt;&lt;</a></div></th>
<th class="calendar-head" colspan="5">{date format="%F %Y"}</th>
<th class="calendar-head"><div class="calendar-head"><a class="calendar-head" href="{next_path={my_template_group}/index}">&gt;&gt;</a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="cal0">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}<td class='{switch}' align='center'><a href="{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
{if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
{if blank}<td class='cal3'>&nbsp;</td>{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Search</h2>
<div class="side" style="text-align: center;">
{exp:search:simple_form search_in="everywhere"}
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<input type="submit" value="submit"  class="submit" />
<br />
<a href="{path=search/index}">Advanced Search</a>
{/exp:search:simple_form}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Categories</h2>
<div class="side">
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Monthly Archives</h2>
<div class="side">
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Most recent entries</h2>
<div class="side">
<ul>
{exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off"}
<li><a href="{title_permalink={my_template_group}/comments}">{title}</a></li>
{/exp:weblog:entries}
</ul>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Syndicate</h2>
<div class="side">
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>
</div>


</div>



<div id="rightbar">

<div class="sidebox">
<h2 class="sidetitle">About</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Reading</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium.</p>
<ul>
<li>Book #1</li>
<li>Book #2</li>
<li>Book #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Listening</h2>
<div class="side">
<p>Sic tempus fugit esperanto hiccup estrogen.</p>
<ul>
<li>Song #1</li>
<li>Song #2</li>
<li>Song #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Viewing</h2>
<div class="side">
<p>Glorious baklava ex librus hup hey ad infinitum.</p>
<ul>
<li>Movie #1</li>
<li>Movie #2</li>
<li>Movie #3</li>
</ul>
</div>
</div>


<?php if ($type != 'core') { ?>
<div class="sidebox">
<h2 class="sidetitle">Join our Mailing List</h2>
<div class="side" style="text-align: center;">
{exp:mailinglist:form}
<p><input type="text" name="email" value="" class="input" size="18" /></p>
<p><input type="submit" value="submit"  class="submit" /></p>
{/exp:mailinglist:form}
</div>
</div>
<?php } ?>




</div>
</div><!-- close blog -->
</div><!-- close main -->
<br clear="all" />
<div style="clear:both;"></div>
</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END





//-------------------------------------
//	Trackbacks
//-------------------------------------

function trackbacks()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
<!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="{lang}" lang="{lang}">
<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>

<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>


</head>

<body>



<div id="banner"></div>
<div id="navbar">
<div id="navcontainer">
<ul id="navlist">
	<li><a href="{site_url}">Home</a></li>
	<li><a href="#">Photos</a></li>
	<li><a href="#">Links</a></li>
	<li><a href="#">Colophon</a></li>
	<li><a href="#">Contact</a></li>
	</ul>
</div>
</div>
<div class="clear">&nbsp;</div>
<div id="main">
<div id="blog">


<div id="content">


<div id="blogtitle">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>

<div class="spacer">&nbsp;</div>


<p>The trackback URL for this entry is:</p>
<form action="">
<p><input type="text" value="{exp:trackback:url}" size="40" class="input" style="width:99%" /></p>
</form>


<div class="spacer">&nbsp;</div>

<ol>
{exp:trackback:entries}
{if no_results}
<li>There are no trackbacks for this entry</li>
{/if}

<li>
<h2>{title}</h2>
{content}
<div class="posted">Tracked on: <a href="{trackback_url}">{weblog_name}</a> ({trackback_ip}) at {trackback_date format="%Y %m %d %H:%i:%s"}</div>
</li>
{/exp:trackback:entries}
</ol>



</div>
<div id="leftbar">

 <div class="sidebox">
 <div class="sidetitle">Calendar</div>
 <div class="side">


{exp:weblog:calendar switch="cal4|cal2"}

<table border="0" cellpadding="2" cellspacing="1" width="175" bgcolor="#999999" style="background-color:#999999;">
<tr class="cal3">
<th class="calendar-head"><div class="calendar-link"><a href="{previous_path={my_template_group}/index}">&lt;&lt;</a></div></th>
<th class="calendar-head" colspan="5">{date format="%F %Y"}</th>
<th class="calendar-head"><div class="calendar-head"><a class="calendar-head" href="{next_path={my_template_group}/index}">&gt;&gt;</a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="cal0">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}<td class='{switch}' align='center'><a href="{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
{if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
{if blank}<td class='cal3'>&nbsp;</td>{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Search</h2>
<div class="side" style="text-align: center;">
{exp:search:simple_form search_in="everywhere"}
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<input type="submit" value="submit"  class="submit" />
<br />
<a href="{path=search/index}">Advanced Search</a>
{/exp:search:simple_form}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Categories</h2>
<div class="side">
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Monthly Archives</h2>
<div class="side">
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Most recent entries</h2>
<div class="side">
<ul>
{exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off"}
<li><a href="{title_permalink={my_template_group}/comments}">{title}</a></li>
{/exp:weblog:entries}
</ul>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Syndicate</h2>
<div class="side">
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>
</div>


</div>



<div id="rightbar">

<div class="sidebox">
<h2 class="sidetitle">About</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito.</p>
</div>
</div>


<div class="sidebox">
<h2 class="sidetitle">Reading</h2>
<div class="side">
<p>Quote meon an estimate et non interruptus stadium.</p>
<ul>
<li>Book #1</li>
<li>Book #2</li>
<li>Book #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Listening</h2>
<div class="side">
<p>Sic tempus fugit esperanto hiccup estrogen.</p>
<ul>
<li>Song #1</li>
<li>Song #2</li>
<li>Song #3</li>
</ul>
</div>
</div>

<div class="sidebox">
<h2 class="sidetitle">Viewing</h2>
<div class="side">
<p>Glorious baklava ex librus hup hey ad infinitum.</p>
<ul>
<li>Movie #1</li>
<li>Movie #2</li>
<li>Movie #3</li>
</ul>
</div>
</div>


<?php if ($type != 'core') { ?>
<div class="sidebox">
<h2 class="sidetitle">Join our Mailing List</h2>
<div class="side" style="text-align: center;">
{exp:mailinglist:form}
<p><input type="text" name="email" value="" class="input" size="18" /></p>
<p><input type="submit" value="submit"  class="submit" /></p>
{/exp:mailinglist:form}
</div>
</div>
<?php } ?>




</div>
</div><!-- close blog -->
</div><!-- close main -->
<br clear="all" />
<div style="clear:both;"></div>
</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END



//-------------------------------------
//	Smileys
//-------------------------------------

function smileys()
{
	global $type;

ob_start();
?>
<!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="{lang}" lang="{lang}">
<head>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<title>Smileys</title>

<style type="text/css">

body {
 background-color: #ffffff;
 margin-left: 40px;
 margin-right: 40px;
 margin-top: 30px;
 font-size: 11px;
 font-family: verdana,trebuchet,sans-serif;
}
a:link {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: underline;
}
a:visited {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: underline;
}
a:active {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: underline;
}
a:hover {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: none;
}

</style>

<script language="javascript">
<!--

function add_smiley(smiley)
{
    opener.document.comment_form.comment.value += " " + smiley + " ";
    opener.window.document.comment_form.comment.focus();
    window.close();
}
//-->
</script>


</head>
<body>

<p>Click on an image to add it to your comment</p>

<table border="0" width="100%" cellpadding="6" cellspacing="1">

{exp:emoticon columns="4"}
<tr>
<td><div>{smiley}</div></td>
</tr>
{/exp:emoticon}

</table>

</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END


//-------------------------------------
//	Default referrers
//-------------------------------------

function referrers()
{
	global $type;

ob_start();
?>
<!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="{lang}" lang="{lang}">

<head>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<title>Referrers</title>

<style type="text/css">

body {
 background-color: #ffffff;
 margin-left: 40px;
 margin-right: 40px;
 margin-top: 30px;
 font-size: 11px;
 font-family: verdana,trebuchet,sans-serif;
}
h4 {
 font-size: 14px;
 font-family: verdana,trebuchet,sans-serif;
}
a:link {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: underline;
}
a:visited {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: underline;
}
a:active {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: underline;
}
a:hover {
 color: #990000;
 font-size: 11px;
 font-weight: normal;
 text-decoration: none;
}

</style>

</head>
<body>

<h4>Referrers</h4>

<table border="0" width="100%" cellpadding="6" cellspacing="1">
<tr>
<td>From</td>
<td>To</td>
<td>IP Address</td>
<td>Date</td>
</tr>

{exp:referrer limit="50" popup="yes"}
<tr class="row">
<td><div>{ref_from}</div></td>
<td><div>{ref_to}</div></td>
<td><div>{ref_ip}</div></td>
<td><div>{ref_date format="%m/%d/%Y"}</div></td>
</tr>
{/exp:referrer}

</table>

</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END
?>