<?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 {
	background: #f5f5f5 url({site_url}themes/site_themes/alex_blue/alex_blue_bg.gif) repeat-y center;
	font-size: 101%;
	text-align: center;
	margin: 0;
	padding: 0;
}

div, h2, h3, h4, h5, h6, p, table, ul, ol, img {
	margin: 0;
	padding: 0;
	text-align: left;
	font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
}


a {
	text-decoration: none;
}

a:link {
	color: #000;
	border-bottom: 1px solid #000;
}

a:visited {
	color: #333;
	border-bottom: 1px solid #333;
}

a:active, a:hover {
	color: #2A629C;
	border-bottom: 0;
}

img {
	border: 0;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

acronym {
	cursor: help;
	border-bottom: 1px dashed #c60;
	color: #c60;
}

/* header
------------------------------------------------- */
h1 {
	background: #32679A url({site_url}themes/site_themes/alex_blue/alex_blue_hbg.gif) repeat-x;
	height: 33px;
	width: 691px;
	margin: 0 auto;
	border-left: 22px solid #2A629C;
	border-right: 22px solid #2A629C;
	color: #fff;
	font-size: 2em;
	letter-spacing: 1px;
	font-weight: normal;
	text-transform: uppercase;
	padding: 100px 0 0 35px;
	text-align: left;
}

/* navigation
------------------------------------------------- */
#navi {
	width: 726px;
	border-left: 22px solid #ebebeb;
	border-right: 22px solid #ebebeb;
	margin: 0 auto;
	background: #fff;
}

#navi ul li {
	list-style: none;
	float: left;
	margin-bottom: -20px;
}

html>body #navi ul li {
	margin-bottom: 0;
}


#navi ul li a {
	display: block;
	float: left;
	padding: 3px 12px;
	font-size: 0.7em;
	text-transform: uppercase;
	border-bottom: 0;
	letter-spacing: 1px;
}

#navi ul li a:link {
	color: #386A96;
}

#navi ul li a:visited {
	color: #386A96;
}

#navi ul li a:active {
	color: #fff;
	background: #386A96;
}

#navi ul li a:hover {
	color: #fff;
	background: #386A96;
}

/* highlighted navigation link
------------------------------------------------- */
#navi ul li a.hl:link {
	color: #fff;
	background: #386A96;
}

#navi ul li a.hl:visited {
	color: #fff;
	background: #386A96;
}

#navi ul li a.hl:active {
	color: #fff;
	background: #386A96;
}

#navi ul li a.hl:hover {
	color: #fff;
	background: #386A96;
}

/* main-c (main container)
------------------------------------------------- */
	#main-c {
	position: relative;
	width: 770px;
	margin: 0 auto;
}

/* searchform
------------------------------------------------- */
#main-c #searchform {
	position: relative;
	top: 0px;
	left: 522px;
	background: #7695B7;
	color: #fff;
	width: 216px;
	padding: 4px 10px 6px 10px;
	margin: 0 0 -31px 0;
}

#main-c #searchform p {
	font-size: 10px;
	margin-top: 3px;
}

#main-c #searchform p #searchterm {
	width: 155px;
	font-size: 0.7em;
}

#main-c #searchform p #searchsubmit {
	margin-bottom: -5px;
	margin-left: 2px;
}

/* mailinglist
------------------------------------------------- */
#mailinglist {
	color: #fff;
	width: 216px;
	padding: 4px 10px 6px 10px;
	margin: 0 0 -31px 0;
}

#mailinglist p {
	font-size: 10px;
	margin-top: 3px;
}

#mailinglist p #mailinglistsubmit {
	margin-bottom: -5px;
	margin-left: 2px;
}



/* about intro blogowner
------------------------------------------------- */
#about {
	background: #cc0;
	width: 499px;
	border-left: 22px solid #BCBC00;
}

#about p {
	padding: 17px;
	font: 0.75em/1.6em Georgia, "Times New Roman", Times, serif;
}

#about h2 {
	text-transform: uppercase;
	margin: 0 0 -10px 20px;
	padding-top: 20px;
	color: #000;
	font: 0.8em Georgia, "Times New Roman", Times, serif;
}

/* content
------------------------------------------------- */
#main-c #content {
	width: 521px;
	margin: 1px 0 0 0;
	float: left;
}

#main-c #content h2, #main-c #content h3 {
	text-transform: uppercase;
	margin: 20px 30px -13px 50px;
	color: #cc0000;
	font: 0.8em Georgia, "Times New Roman", Times, serif;
}

#main-c #content h2 a:link, #main-c #content h2 a:visited {
	border-bottom: 0;
	color: #ccc;
}

#main-c #content h2 a:active, #main-c #content h2 a:hover {
	color: #c00;
}

#main-c #content h3 {
	font-size: 18px;
	color: #333;
	letter-spacing: 1px;
}

#main-c #content p {
	margin: 15px 30px 10px 50px;
	color: #333;
	letter-spacing: 0.02em;
	font: 0.8em/1.5em Arial, Helvetica, sans-serif;
}

#main-c #content .tools {
	color: #c00;
	text-align: right;
	font: 0.7em Georgia, "Times New Roman", Times, serif;
}

#main-c #content .tools a:link, #main-c #content .tools a:visited {
	color: #666;
}

#main-c #content .tools a:active, #main-c #content .tools a:hover {
	color: #c00;
}

/* sidebar
------------------------------------------------- */
#main-c #sidebar {
	width: 223px;
	float: left;
	margin: -5em 0 0 1px;
}

#main-c #sidebar p {
	font-size: 0.7em;
	margin: 10px 10px 10px 10px;
	line-height: 1.5em;
	color: #2a629c;
}

#main-c #sidebar a:link {
	color: #2a629c;
	border-bottom: 1px solid #2a629c;
}

#main-c #sidebar a:visited {
	color: #357dca;
	border-bottom: 1px solid #357dca;
}

#main-c #sidebar a:active {
	color: #c00;
	border-bottom: 1px solid #c00;
}

#main-c #sidebar a:hover {
	color: #c00;
	border-bottom: 1px solid #c00;
}

#main-c #sidebar h4 {
	text-transform: uppercase;
	margin: 20px 10px -5px 10px;
	color: #2a629c;
	letter-spacing: 1px;
	font: normal 0.7em Georgia, "Times New Roman", Times, serif;
}

#main-c #sidebar ul {
	font-size: 0.7em;
	margin: 10px 10px 10px 40px;
	list-style: square;
	line-height: 1.5em;
	color: #2a629c;
}

/* footer
------------------------------------------------- */
#main-c #footer {
	background: #386A96;
	width: 521px;
	color: #96b9d8;
	font-size: 0.7em;
	text-align: center;
	padding-top: 17px;
	padding-bottom: 17px;
	clear: both;
}

#main-c #footer a:link, #main-c #footer a:visited, #main-c #footer a:active, #main-c #footer a:hover {
	color: #96b9d8;
	border-bottom: 1px solid #96b9d8;
}

/**************************************************************************

 single view / comment / interior page, the body id will change some styles

***************************************************************************/
#singleview #main-c #content h2 {
border-left: 30px solid #ebebeb;
margin-left: 10px;
padding-left: 10px;
font-size: 0.9em;
font-weight: bold;
}

#singleview #main-c #sidebar {
	margin-top: 3em;
}

/* comments
------------------------------------------------- */
#singleview #main-c #content .comment {
	background: #ebebeb;
	margin: 25px 20px 20px 42px;
	padding: 5px 0;
}

#singleview #main-c #content .comment p {
	margin-left: 15px;
		margin-right: 15px;
}

/* commentform
------------------------------------------------- */
#singleview #main-c #content #commentform {
	background: #bdd3ea;
	margin: 25px 20px 20px 42px;
	border: 1px solid #7695b7;
}
#singleview #main-c #commentform p {
	margin: 15px;
}

#singleview #main-c #commentform label {
	width: 100px;
	display: block;
	float: left;
	font-size: 0.85em;
	color: #999;
}

#singleview #main-c #commentform p span {
	font-size: 0.85em;
	color: #999;
}

#singleview #main-c #commentform .input {
	border: 1px solid #7695b7;
	width: 250px;
	margin-left: -40px;
	color: #666;
	font-size: 0.8em;
	padding: 2px 0 2px 2px;
}

#singleview #main-c #commentform textarea {
	border: 1px solid #7695b7;
	width: 409px;
	height: 200px;
	margin-top: -20px;
}

#singleview #main-c #commentform p.right input {
	background: #386a96;
	border: 1px solid #7695b7;
	color: #fff;
	font-weight: bold;
	width: 120px;
	height: 26px;
}

.paginate {
 font-family:		Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
 font-size:			12px;
 font-weight: 		normal;
 letter-spacing:	.1em;
 padding:			12px 0 16px 4px;
 margin:			0 0 0 40px;
 background-color:	transparent;
}

.pagecount {
 font-family:		Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
 font-size:			10px;
 color:				#666;
 font-weight:		normal;
 background-color: transparent;
}
<?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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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>


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

<div id="navi">
<ul>
<li><a href="{homepage}">Home</a></li>
<li><a href="#">Hyperlink 2</a></li>
<li><a href="#">Hyperlink 3</a></li>
<li><a href="#">Hyperlink 4</a></li>
<li><a href="#">Hyperlink 5</a></li>
</ul>
<span style="clear: both">&nbsp;</span>
</div>


<div id="main-c">

<div id="searchform">
{exp:search:simple_form search_in="everywhere"}
<p>
<input type="text" name="keywords" maxlength="100" value="Enter Keywords" onfocus="this.value=''" onblur="if(this.value=='')this.value='Enter Keywords';" />
<input type="image" src="{site_url}themes/site_themes/alex_blue/alex_blue_search.gif" title="start searching" id="searchsubmit" /></p>
<p><a href="{path=search/index}">Advanced Search</a></p>
{/exp:search:simple_form}
</div>



<div id="about">
<p><strong>About this site</strong><br />
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam.
</p>
</div>



<div id="content">


{exp:weblog:category_heading weblog="{my_weblog}"}
<h3>{category_name}</h3>
{if category_description}
<p>{category_description}</p>
{/if}
{/exp:weblog:category_heading}



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

<h2>{title}</h2>
{summary}

{body}

{extended}

<p class="tools">Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?>  on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}

<br />

{categories}
<a href="{path=site_index}">{category_name}</a> &#8226;
{/categories}

{if allow_comments}
&#40;{comment_total}&#41; <a href="{url_title_path="{my_template_group}/comments"}">Comments</a> &#8226;
{/if}

{if allow_trackbacks}
&#40;{trackback_total}&#41; <a href="{trackback_path="{my_template_group}/trackbacks"}">Trackbacks</a> &#8226;
{/if}
<a href="{title_permalink={my_template_group}/comments}">Permalink</a>

</p>

{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="sidebar">


<?php if ($type != 'core') { ?>
<h4>Members</h4>
<p>
{if logged_in}
 <a href="{path=member/profile}">Your Account</a>  |  <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
 <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
{/if}

 | <a href="{path=member/memberlist}">Member List</a>
</p>
<?php } ?>



<h4>Most recent entries</h4>
<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>



<h4>Categories</h4>

{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}



<h4>Archives</h4>
<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>



<h4>Syndicate</h4>
<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>

<p><a href="{path={my_template_group}/referrers}">Referrers</a></p>

<?php if ($type != 'core') { ?>
<h4>Join our Mailing List</h4>
<div id="mailinglist">
{exp:mailinglist:form}
<p><input type="text" name="email" value="" class="input" size="18" />
<input type="image" src="{site_url}themes/site_themes/alex_blue/alex_blue_submit.gif" title="submit" id="mailinglistsubmit" /></p>
{/exp:mailinglist:form}
</div>
<?php } ?>



</div>

<p id="footer"><span style="clear: both">&nbsp;</span> <a href="http://www.pmachine.com/">Powered by ExpressionEngine</a></p>

</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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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 id="singleview">

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

<div id="navi">
<ul>
<li><a href="{homepage}">Home</a></li>
<li><a href="#">Hyperlink 2</a></li>
<li><a href="#">Hyperlink 3</a></li>
<li><a href="#">Hyperlink 4</a></li>
<li><a href="#">Hyperlink 5</a></li>
</ul>
<span style="clear: both">&nbsp;</span>
</div>


<div id="main-c">

<div id="searchform">
{exp:search:simple_form search_in="everywhere"}
<p>
<input type="text" name="keywords" maxlength="100" value="Enter Keywords" onfocus="this.value=''" onblur="if(this.value=='')this.value='Enter Keywords';" />
<input type="image" src="{site_url}themes/site_themes/alex_blue/alex_blue_search.gif" title="start searching" id="searchsubmit" /></p>
<p><a href="{path=search/index}">Advanced Search</a></p>
{/exp:search:simple_form}
</div>






<div id="content">


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

<h2>{title}</h2>
{summary}

{body}

{extended}

<p class="tools">Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?>  on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}

<br />

{categories}
<a href="{path=site_index}">{category_name}</a> &#8226;
{/categories}
</p>
{/exp:weblog:entries}


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

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



<div class="comment">

{exp:comment:entries weblog="{my_weblog}" limit="25"}

{comment}

<p>Posted by {url_or_email_as_author}  &nbsp;on&nbsp; {comment_date format='%m/%d'} &nbsp;at&nbsp; {comment_date format='%h:%i %A'}</p>

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

{/exp:comment:entries}
</div>


<div id="commentform">

<br />

<h3><a name="commentformlink">Comment Form</a></h3>

{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>
<br /><br />
</p>


<p>
<textarea name="comment" cols="50" rows="12">{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}

<p>
<input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview" />
</p>
{/exp:comment:form}



</div>



</div>


<div id="sidebar">


<?php if ($type != 'core') { ?>
<h4>Members</h4>
<p>
{if logged_in}
 <a href="{path=member/profile}">Your Account</a>  |  <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
 <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
{/if}

 | <a href="{path=member/memberlist}">Member List</a>
</p>
<?php } ?>



<h4>Most recent entries</h4>
<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>



<h4>Categories</h4>

{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}



<h4>Archives</h4>
<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>



<h4>Syndicate</h4>
<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>


<p id="footer"><span style="clear: both">&nbsp;</span> <a href="http://www.pmachine.com/">Powered by ExpressionEngine</a></p>


</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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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 id="singleview">

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

<div id="navi">
<ul>
<li><a href="{homepage}">Home</a></li>
<li><a href="#">Hyperlink 2</a></li>
<li><a href="#">Hyperlink 3</a></li>
<li><a href="#">Hyperlink 4</a></li>
<li><a href="#">Hyperlink 5</a></li>
</ul>
<span style="clear: both">&nbsp;</span>
</div>


<div id="main-c">

<div id="searchform">
{exp:search:simple_form search_in="everywhere"}
<p>
<input type="text" name="keywords" maxlength="100" value="Enter Keywords" onfocus="this.value=''" onblur="if(this.value=='')this.value='Enter Keywords';" />
<input type="image" src="{site_url}themes/site_themes/alex_blue/alex_blue_search.gif" title="start searching" id="searchsubmit" /></p>
<p><a href="{path=search/index}">Advanced Search</a></p>
{/exp:search:simple_form}
</div>






<div id="content">

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




<div id="commentform">

<br />

<h3><a name="commentformlink">Comment Form</a></h3>

{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>
<br /><br />
</p>


<p>
<textarea name="comment" cols="50" rows="12">{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>

<p>
<input type="submit" name="submit" value="Submit" />
{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}

</p>
{/exp:comment:form}



</div>



</div>


<div id="sidebar">


<?php if ($type != 'core') { ?>
<h4>Members</h4>
<p>
{if logged_in}
 <a href="{path=member/profile}">Your Account</a>  |  <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
 <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
{/if}

 | <a href="{path=member/memberlist}">Member List</a>
</p>
<?php } ?>


<h4>Most recent entries</h4>
<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>



<h4>Categories</h4>

{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}



<h4>Archives</h4>
<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>



<h4>Syndicate</h4>
<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>


<p id="footer"><span style="clear: both">&nbsp;</span> <a href="http://www.pmachine.com/">Powered by ExpressionEngine</a></p>


</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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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 id="singleview">

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

<div id="navi">
<ul>
<li><a href="{homepage}">Home</a></li>
<li><a href="#">Hyperlink 2</a></li>
<li><a href="#" class="hl">Hyperlink 3</a></li>
<li><a href="#">Hyperlink 4</a></li>
<li><a href="#">Hyperlink 5</a></li>
</ul>
<span style="clear: both">&nbsp;</span>
</div>


<div id="main-c">

<div id="searchform">
{exp:search:simple_form search_in="everywhere"}
<p>
<input type="text" name="keywords" maxlength="100" value="Enter Keywords" onfocus="this.value=''" onblur="if(this.value=='')this.value='Enter Keywords';" />
<input type="image" src="{site_url}themes/site_themes/alex_blue/alex_blue_search.gif" title="start searching" id="searchsubmit" /></p>
<p><a href="{path=search/index}">Advanced Search</a></p>
{/exp:search:simple_form}
</div>






<div id="content">

<h2 class="title">The trackback URL for this entry is:</h2>

<form action="">
<p>
<input type="text" value="{exp:trackback:url}" size="60" />
</p>
</form>



<h2>Trackbacks:</h2>

{exp:trackback:entries}

<h2>{title}</h2>

{content}

<p>Tracked on: <a href="{trackback_url}">{weblog_name}</a> ({trackback_ip}) at {trackback_date format="%Y %m %d %H:%i:%s"}</p>

{/exp:trackback:entries}




</div>


<div id="sidebar">


<?php if ($type != 'core') { ?>
<h4>Members</h4>
<p>
{if logged_in}
 <a href="{path=member/profile}">Your Account</a>  |  <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
 <a href="{path=member/login}">Login</a> | <a href="{path=member/register}">Register</a>
{/if}

 | <a href="{path=member/memberlist}">Member List</a>
</p>
<?php } ?>



<h4>Most recent entries</h4>
<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>



<h4>Categories</h4>

{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}



<h4>Archives</h4>
<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>



<h4>Syndicate</h4>
<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>


<p id="footer"><span style="clear: both">&nbsp;</span> <a href="http://www.pmachine.com/">Powered by ExpressionEngine</a></p>


</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
?>