--- /dev/null
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+ <div id="main">
+
+ <h1>Error 404 - Not Found</h2>
+ <p>Sorry, but you are looking for something that isn't here.</p>
+ <?php include (TEMPLATEPATH . "/searchform.php"); ?>
+
+ </div>
+</div>
+<?php get_footer(); ?>
\ No newline at end of file
--- /dev/null
+<?php
+
+/**
+ * Function BX_archive
+ * ------------------------------------------------------
+ * This function is based on WP's built-in get_archives()
+ * It outputs the following:
+ *
+ * <h3><a href="link">Month Year</a></h3>
+ * <ul class="postspermonth">
+ * <li><a href="link">Post title</a> (Comment count)</li>
+ * [..]
+ * </ul>
+ */
+
+function BX_archive()
+{
+ global $month, $wpdb;
+ $now = current_time('mysql');
+ $arcresults = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS year, MONTH(post_date) AS month, count(ID) as posts FROM " . $wpdb->posts . " WHERE post_date <'" . $now . "' AND post_status='publish' AND post_password='' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC");
+
+ if ($arcresults) {
+ foreach ($arcresults as $arcresult) {
+ $url = get_month_link($arcresult->year, $arcresult->month);
+ $text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year);
+ echo get_archives_link($url, $text, '','<h3>','</h3>');
+
+ $thismonth = zeroise($arcresult->month,2);
+ $thisyear = $arcresult->year;
+
+ $arcresults2 = $wpdb->get_results("SELECT ID, post_date, post_title, comment_status FROM " . $wpdb->posts . " WHERE post_date LIKE '$thisyear-$thismonth-%' AND post_status='publish' AND post_password='' ORDER BY post_date DESC");
+
+ if ($arcresults2) {
+ echo "<ul class=\"postspermonth\">\n";
+ foreach ($arcresults2 as $arcresult2) {
+ if ($arcresult2->post_date != '0000-00-00 00:00:00') {
+ $url = get_permalink($arcresult2->ID);
+ $arc_title = $arcresult2->post_title;
+
+ if ($arc_title) $text = strip_tags($arc_title);
+ else $text = $arcresult2->ID;
+
+ echo "<li>".get_archives_link($url, $text, '');
+ $comments = mysql_query("SELECT * FROM " . $wpdb->comments . " WHERE comment_post_ID=" . $arcresult2->ID);
+ $comments_count = mysql_num_rows($comments);
+ if ($arcresult2->comment_status == "open" OR $comments_count > 0) echo ' ('.$comments_count.')';
+ echo "</li>\n";
+ }
+ }
+ echo "</ul>\n";
+ }
+ }
+ }
+}
+
+
+/**
+ * Function BX_get_recent_posts
+ * ------------------------------------------------------
+ * Outputs an unorderd list of the most recent posts.
+ *
+ * $current_id this post will be excluded
+ * $limit max. number of posts
+ */
+
+function BX_get_recent_posts($current_id, $limit)
+{
+ global $wpdb;
+ $posts = $wpdb->get_results("SELECT ID, post_title FROM " . $wpdb->posts . " WHERE post_status='publish' ORDER BY post_date DESC LIMIT " . $limit);
+ foreach ($posts as $post) {
+ $post_title = stripslashes($post->post_title);
+ $permalink = get_permalink($post->ID);
+ if ($post->ID != $current_id) echo "<li><a href=\"" . $permalink . "\">" . $post_title . "</a></li>\n";
+ }
+}
+
+
+/**
+ * Function BX_get_pages
+ * ------------------------------------------------------
+ * Returns the following of all WP pages:
+ * ID, title, name, (content)
+ *
+ * $withcontent specifies if the page's content will
+ * also be returned
+ */
+
+function BX_get_pages($with_content = '')
+{
+ global $wpdb;
+ $query = "SELECT ID, post_title, post_name FROM " . $wpdb->posts . " WHERE post_type='page' OR post_status='static' ORDER BY menu_order ASC";
+
+ if ($with_content == "with_content") {
+ $query = "SELECT ID, post_title,post_name, post_content FROM " . $wpdb->posts . " WHERE post_type='page' OR post_status='static' ORDER BY menu_order ASC";
+ }
+ return $wpdb->get_results($query);
+}
+
+
+/**
+ * Function BX_excluded_pages()
+ * ------------------------------------------------------
+ * Returns the Blix default pages that are excluded
+ * from the navigation in the sidebar
+ *
+ */
+
+function BX_excluded_pages()
+{
+ $pages = BX_get_pages();
+ $exclude = "";
+ if ($pages) {
+ foreach ($pages as $page) {
+ $page_id = $page->ID;
+ $page_name = $page->post_name;
+ if ($page_name == "archives" || $page_name == "about" || $page_name == "about_short" || $page_name == "contact") {
+ $exclude .= ", ".$page_id;
+ }
+ }
+ $exclude = preg_replace("/^, (.*?)/","\\1",$exclude);
+ }
+ return $exclude;
+}
+
+
+/**
+ * Function BX_shift_down_headlines
+ * ------------------------------------------------------
+ * Shifts down the headings by one level (<h5> --> </h6>)
+ * Used for posts in the archive
+ */
+
+function BX_shift_down_headlines($text)
+{
+ $text = apply_filters('the_content', $text);
+ $text = preg_replace("/h5>/","h6>",$text);
+ $text = preg_replace("/h4>/","h5>",$text);
+ $text = preg_replace("/h3>/","h4>",$text);
+ echo $text;
+}
+
+
+/**
+ * Function BX_remove_p
+ * ------------------------------------------------------
+ * Removes the opening <p> and closing </p> from $text
+ * Used for the short about text on the front page
+ */
+
+function BX_remove_p($text)
+{
+ $text = apply_filters('the_content', $text);
+ $text = preg_replace("/^[\t|\n]?<p>(.*)/","\\1",$text); // opening <p>
+ $text = preg_replace("/(.*)<\/p>[\t|\n]$/","\\1",$text); // closing </p>
+ return $text;
+}
+
+?>
\ No newline at end of file
--- /dev/null
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+ <div id="main">
+
+ <?php if (have_posts()) : ?>
+
+ <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
+<?php /* If this is a category archive */ if (is_category()) { ?>
+ <h1>Archive for the '<?php echo single_cat_title(); ?>' Category</h1>
+
+ <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
+ <h1>Archive for <?php the_time('F jS, Y'); ?></h1>
+
+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
+ <h1>Archive for <?php the_time('F, Y'); ?></h1>
+
+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
+ <h1>Archive for <?php the_time('Y'); ?></h1>
+
+ <?php /* If this is a search */ } elseif (is_search()) { ?>
+ <h1>Search Results</h1>
+
+ <?php /* If this is an author archive */ } elseif (is_author()) { ?>
+ <h1>Author Archive</h1>
+
+ <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
+ <h1>Blog Archives</h1>
+
+ <?php } ?>
+
+
+ <div class="navigation">
+ <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
+ <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
+ </div>
+
+ <?php while (have_posts()) : the_post(); ?>
+
+ <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+ <?php if (function_exists("the_bunny_tags")) {
+ the_bunny_tags();
+ }
+ ?>
+ <p class="post-footer align-right">
+ Posted in <?php the_category(', ') ?> on <span class="date"><?php the_time('F jS, Y') ?></span> <!-- by <?php the_author() ?> --> <strong>|</strong>
+ <?php edit_post_link('Edit','','<strong> |</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
+ <?php the_excerpt(); ?>
+ <!--
+ <?php trackback_rdf(); ?>
+ -->
+ </p>
+
+ <p>[ <a href="#top">Back to top</a> ]</p>
+
+
+
+ <?php endwhile; ?>
+
+ <div class="navigation">
+ <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
+ <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
+ </div>
+
+ <?php else : ?>
+
+ <h1 class="center">Not Found</h1>
+ <?php include (TEMPLATEPATH . '/searchform.php'); ?>
+
+ <?php endif; ?>
+
+ </div>
+
+ <!-- content-wrap ends here -->
+ </div>
+<?php get_footer(); ?>
\ No newline at end of file
--- /dev/null
+<?php
+/*
+Template Name: Archives
+*/
+?>
+
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<div id="main">
+
+<h1>Archives by Month:</h1>
+ <ul>
+ <?php wp_get_archives('type=monthly'); ?>
+ </ul>
+
+<h1>Archives by Subject:</h1>
+ <ul>
+ <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
+ </ul>
+
+</div>
+
+ <!-- content-wrap ends here -->
+ </div>
+<?php get_footer(); ?>
--- /dev/null
+<?php // Do not delete these lines
+ if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+ die ('Please do not load this page directly. Thanks!');
+
+ if (!empty($post->post_password)) { // if there's a password
+ if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
+ ?>
+
+ <p class="nocomments">This post is password protected. Enter the password to view comments.<p>
+
+ <?php
+ return;
+ }
+ }
+
+ /* This variable is for alternating comment background */
+ $oddcomment = 'alt';
+?>
+
+<!-- You can start editing here. -->
+
+<?php if ($comments) : ?>
+ <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
+
+ <ol class="commentlist">
+
+ <?php foreach ($comments as $comment) : ?>
+
+ <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
+ <cite><?php if (function_exists('gravatar')) { gravatar_image_link(); } ?> <?php comment_author_link() ?></cite> Says:
+ <?php if ($comment->comment_approved == '0') : ?>
+ <em>Your comment is awaiting moderation.</em>
+ <?php endif; ?>
+ <br />
+
+ <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('Edit','',''); ?></small>
+
+ <?php comment_text() ?>
+
+ </li>
+
+ <?php /* Changes every other comment to a different class */
+ if ('alt' == $oddcomment) $oddcomment = '';
+ else $oddcomment = 'alt';
+ ?>
+
+ <?php endforeach; /* end for each comment */ ?>
+
+ </ol>
+
+ <?php else : // this is displayed if there are no comments so far ?>
+
+ <?php if ('open' == $post->comment_status) : ?>
+ <!-- If comments are open, but there are no comments. -->
+
+ <?php else : // comments are closed ?>
+ <!-- If comments are closed. -->
+ <p class="nocomments">Comments are closed.</p>
+
+ <?php endif; ?>
+<?php endif; ?>
+
+
+<?php if ('open' == $post->comment_status) : ?>
+
+<h3 id="respond">Leave a Reply</h3>
+
+<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
+<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
+<?php else : ?>
+
+<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
+
+<?php if ( $user_ID ) : ?>
+
+<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p>
+
+<?php else : ?>
+
+<p><label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label>
+<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
+
+<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label>
+<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
+
+<label for="url"><small>Website</small></label>
+<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
+
+<?php endif; ?>
+
+<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>
+
+<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
+
+<input class="button" name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
+<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
+</p>
+<?php do_action('comment_form', $post->ID); ?>
+
+</form>
+
+<?php endif; // If registration required and not logged in ?>
+
+<?php endif; // if you delete this the sky will fall on your head ?>
--- /dev/null
+<div id="footer">
+
+ <p>
+ <?php bloginfo('name'); ?> powered by
+ <a href="http://wordpress.org">WordPress</a> |
+ Design by: <a href="http://www.styleshout.com/">styleshout</a> |
+ Ported to Wordpress by: <a href="http://www.exguides.org/" title="Exguides.org Wordpress Theme">Exguides</a>
+
+ </p>
+<?php wp_footer(); ?>
+ </div>
+
+<!-- wrap ends here -->
+</div>
+
+</body>
+</html>
--- /dev/null
+<?php require_once get_template_directory()."/BX_functions.php"; ?>
+<!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="en" lang="en">
+<head>
+
+<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
+<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen,projection" />
+<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
+<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
+<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+<?php wp_head(); ?>
+
+<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?> </title>
+
+
+</head>
+
+<body>
+<!-- wrap starts here -->
+<div id="wrap">
+
+ <!--header -->
+ <div id="header">
+
+ <h1 id="logo-text"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
+ <h2 id="slogan"><?php bloginfo('description'); ?></h2>
+ <p>
+<!-- <?php include (TEMPLATEPATH . "/searchform.php"); ?> -->
+ </p>
+ </div>
+
+ <!-- menu -->
+ <div id="menu">
+ <ul>
+ <li <?php if (is_home()) echo " id=\"current\""; ?>><a href="<?php echo get_settings('home'); ?>">Home</a></li>
+ <?php
+ $pages = BX_get_pages();
+ if ($pages) {
+ foreach ($pages as $page) {
+ $page_id = $page->ID;
+ $page_title = $page->post_title;
+ $page_name = $page->post_name;
+ if ($page_name == "archives") {
+ (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' id="current"':$selected='';
+ echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
+ }
+ elseif($page_name == "about") {
+ (is_page($page_id))?$selected = ' id="current"':$selected='';
+ echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
+ }
+ elseif ($page_name == "contact") {
+ (is_page($page_id))?$selected = ' id="current"':$selected='';
+ echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
+ }
+ elseif ($page_name == "about_short") {/*ignore*/}
+ else {
+ (is_page($page_id))?$selected = ' id="current"':$selected='';
+ echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
+ }
+ }
+ }
+ ?>
+ </ul>
+ </div>
--- /dev/null
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<!--Content Starts here-->
+ <div id="main">
+ <?php if (have_posts()) : ?>
+ <?php while (have_posts()) : the_post(); ?>
+
+ <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+ <?php if (function_exists("the_bunny_tags")) {
+ the_bunny_tags();
+ }
+ ?>
+ <?php the_content('Read the rest of this entry »'); ?>
+ <p class="post-footer align-right">
+ Posted in <?php the_category(', ') ?> on <span class="date"><?php the_time('F jS, Y') ?></span> <!-- by <?php the_author() ?> --> <strong>|</strong>
+ <?php edit_post_link('Edit','','<strong> | </strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
+ <?php endwhile; ?>
+ <div>
+ <div class="alignleft"><small><?php previous_post_link('« %link') ?></small></div>
+ <div class="alignright"><small><?php next_post_link('Next: %link »') ?></small></div>
+ </div>
+ <?php else : ?>
+
+ <h1>Not Found</h1>
+ <p>Sorry, but you are looking for something that isn't here.</p>
+ <?php include (TEMPLATEPATH . "/searchform.php"); ?>
+
+ <?php endif; ?>
+
+
+ </div>
+
+ <!-- content-wrap ends here -->
+ </div>
+<!--Content Ends here-->
+<?php get_footer(); ?>
--- /dev/null
+<?php
+/*
+Template Name: Links
+*/
+?>
+
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<div id="main">
+
+ <ul>
+ <?php get_links_list(); ?>
+ </ul>
+
+
+</div>
+
+ <!-- content-wrap ends here -->
+ </div>
+<?php get_footer(); ?>
--- /dev/null
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+ <div id="main">
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+ <h1><?php the_title(); ?></h1>
+ <p>
+ <?php the_content('<p>Read the rest of this page »</p>'); ?>
+
+ <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
+
+ </p>
+
+ <?php edit_post_link('Edit this Entry','<p class="post-footer align-right">','</p>'); ?>
+
+ <?php endwhile; endif; ?>
+
+ <!-- content-wrap ends here -->
+ </div>
+</div>
+<?php get_footer(); ?>
\ No newline at end of file
--- /dev/null
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<div id="main">
+
+ <?php if (have_posts()) : ?>
+
+ <h1>Search Results</h1>
+ <a name="top">
+ <?php while (have_posts()) : the_post(); ?>
+
+ <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+
+ <?php the_excerpt(); ?>
+ <!--
+ <?php trackback_rdf(); ?>
+ -->
+
+ <p class="post-footer align-right">Posted in <?php the_category(', ') ?> on <span class="date"><?php the_time('F jS, Y') ?></span> <strong>|</strong> <?php edit_post_link('Edit','','<strong> | </strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
+ [ <a href="#top">Back to top</a> ]
+ <?php endwhile; ?>
+ </div>
+ <div class="navigation">
+ <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
+ <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
+ </div>
+
+ <?php else : ?>
+
+ <h2 class="center">Not Found</h2>
+ <?php include (TEMPLATEPATH . '/searchform.php'); ?>
+
+ <?php endif; ?>
+
+</div>
+
+<?php get_footer(); ?>
\ No newline at end of file
--- /dev/null
+<form class="search" method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input class="textbox" type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
+<input class="button" type="submit" id="searchsubmit" value="Search" />
+</form>
\ No newline at end of file
--- /dev/null
+<!--Sidebar Starts here-->
+ <!-- content-wrap starts here -->
+ <div id="content-wrap">
+
+ <div id="sidebar">
+
+ <h1>Categories</h1>
+ <div class="left-box">
+ <ul class="sidemenu">
+ <?php wp_list_cats('sort_column=name&optioncount=1'); ?>
+ </ul>
+ </div>
+
+ <h1>Archives</h1>
+ <div class="left-box">
+ <ul class="sidemenu">
+ <?php wp_get_archives('type=monthly'); ?>
+ </ul>
+ </div>
+
+ <h1>Latest Links</h1>
+ <div class="left-box">
+ <ul>
+ <?php get_links( -1, '<li>', '</li>', '', FALSE, '_id', FALSE, FALSE, 10, FALSE ); ?>
+ </ul>
+ </div>
+
+
+ <h1>Meta</h1>
+ <div class="left-box">
+ <ul class="sidemenu">
+ <?php wp_register(); ?>
+ <li><?php wp_loginout(); ?></li>
+ <?php wp_meta(); ?>
+ <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS 2.0'); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
+ </ul>
+ </div>
+
+ </div>
+<!--Sidebar Ends here-->
--- /dev/null
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<div id="main">
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+
+ <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+ <?php if (function_exists("the_bunny_tags")) {
+ the_bunny_tags();
+ }
+ ?>
+ <?php the_content('Read the rest of this entry »'); ?>
+ <!--
+ <?php trackback_rdf(); ?>
+ -->
+
+ <p class="post-footer align-right">
+ Posted in <?php the_category(', ') ?> on <span class="date"><?php the_time('F jS, Y') ?></span> <!-- by <?php the_author() ?> --> <?php edit_post_link('Edit this entry.','',''); ?>
+
+ <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
+ // Both Comments and Pings are open ?>
+ <br />You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
+
+ <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
+ // Only Pings are Open ?>
+ <br />Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
+
+ <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
+ // Comments are open, Pings are not ?>
+ <br />You can skip to the end and leave a response. Pinging is currently not allowed.
+
+ <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
+ // Neither Comments, nor Pings are open ?>
+ <br />Both comments and pings are currently closed.
+
+ <?php } ?>
+
+ </p>
+
+ <?php comments_template(); ?>
+
+ <div>
+ <div class="alignleft"><small><?php previous_post_link('« %link') ?></small></div>
+ <div class="alignright"><small><?php next_post_link('Next: %link »') ?></small></div>
+ </div>
+
+ <?php endwhile; else: ?>
+ <p>Sorry, no posts matched your criteria.</p>
+<?php endif; ?>
+</div>
+
+ <!-- content-wrap ends here -->
+ </div>
+<?php get_footer(); ?>
\ No newline at end of file
--- /dev/null
+/*
+Theme Name: RefreshWP
+Theme URI: http://www.exguides.org/
+Description: Wordpress theme based on Refresh open source web template by StyleShout. Supports Gravatar2 Plugin and Wordpress 2.1 compatible.
+Version: 1.5
+Author: StyleShout, ported by Navjot Singh
+Author URI: http://www.exguides.org/
+*/
+
+
+/********************************************
+ HTML ELEMENTS
+********************************************/
+
+/* Top Elements */
+* { margin: 0; padding: 0; }
+
+body {
+ background: #CCCCCC;
+ font: 70%/1.5em Verdana, Tahoma, arial, sans-serif;
+ color: #333;
+ text-align: center;
+}
+
+/* links */
+a, a:visited {
+ text-decoration: none;
+ color: #4F82CB;
+
+}
+a:hover {
+ color: #4EBF37;
+
+}
+
+/* headers */
+h1, h2, h3 {
+ font-family: Tahoma, Verdana, 'Trebuchet MS', Sans-serif;
+ font-weight: Bold;
+}
+h1 {
+ font-size: 120%;
+}
+h2 {
+ font-size: 110%;
+ text-transform: uppercase;
+ color: #88ac0b;
+}
+h3 {
+ font-size: 110%;
+ color: #666666;
+}
+
+/* images */
+img {
+ border: 0px solid #CCC;
+}
+
+img.float-right {
+ margin: 5px 0px 10px 10px;
+}
+img.float-left {
+ margin: 5px 10px 10px 0px;
+}
+
+h1, h2, h3, p {
+ padding: 10px;
+ margin: 0;
+}
+ul, ol {
+ margin: 5px 20px;
+ padding: 0 20px;
+ color: #88ac0b;
+}
+ul span, ol span {
+ color: #666666;
+}
+
+code {
+ margin: 5px 0;
+ padding: 10px;
+ text-align: left;
+ display: block;
+ overflow: auto;
+ font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
+ /* white-space: pre; */
+ background: #FAFAFA;
+ border: 1px solid #f2f2f2;
+}
+acronym {
+ cursor: help;
+ border-bottom: 1px solid #777;
+}
+blockquote {
+ margin: 10px;
+ padding: 0 0 0 28px;
+ border: 1px solid #f2f2f2;
+ background: #FAFAFA url(images/quote.gif) no-repeat 5px 5px;
+}
+
+/* form elements */
+form {
+ margin:10px; padding: 0 5px;
+ border: 1px solid #f2f2f2;
+ background-color: #FAFAFA;
+}
+label {
+ display:block;
+ font-weight:bold;
+ margin:5px 0;
+}
+input {
+ padding:2px;
+ border:1px solid #eee;
+ font: normal 1em Verdana, sans-serif;
+ color:#777;
+}
+textarea {
+ width:400px;
+ padding:2px;
+ font: normal 1em Verdana, sans-serif;
+ border:1px solid #eee;
+ height:100px;
+ display:block;
+ color:#777;
+}
+input.button {
+ margin: 0;
+ font: bolder 12px Arial, Sans-serif;
+ border: 1px solid #CCC;
+ padding: 2px 3px;
+ background: #FFF;
+ color: #88ac0b;
+}
+
+/* search */
+form.search {
+// position: absolute;
+ top: 35px; right: 25px;
+ background: transparent;
+ border: none;
+}
+form.search input.textbox {
+ margin: 0; padding: 1px 2px;
+ width: 120px;
+ background: #FFF;
+ color: #333;
+}
+form.search input.button {
+ background: #CCC url(images/headerbg.gif) repeat-x;
+ color: #333;
+ border: none;
+ width: 70px; height: 21px;
+}
+
+/********************************************
+ LAYOUT
+********************************************/
+#wrap {
+ width: 820px;
+ background: #CCC url(images/content.jpg) repeat-y center top;
+ margin: 0 auto;
+ text-align: left;
+}
+#content-wrap {
+ clear: both;
+ width: 760px;
+ padding: 0;
+ margin: 0 auto;
+}
+#header {
+ width: 820px;
+ position: relative;
+ height: 106px;
+ background: #CCC url(images/header.jpg) no-repeat center top;
+ padding: 0;
+ font-size: 14px;
+ color: #FFF;
+}
+#header h1#logo-text {
+ position: absolute;
+ margin: 0; padding: 0;
+ font: bolder 3.0em 'Trebuchet MS', Arial, Sans-serif;
+ letter-spacing: -2px;
+ color: #FFF;
+ text-transform: none;
+
+ /* change the values of top and left to adjust the position of the logo*/
+ top: 28px; left: 50px;
+}
+
+#header h1#logo-text a{
+ color: #FFF;
+ }
+
+#header h2#slogan {
+ position: absolute;
+ margin: 0; padding: 0;
+ font: normal .8em 'Trebuchet MS', Arial, Sans-serif;
+ text-transform: none;
+ color: #FFF;
+
+ /* change the values of top and left to adjust the position of the slogan*/
+ top: 74px; left: 58px;
+}
+
+/* Menu */
+#menu {
+ clear: both;
+ margin: 0; padding: 0px 40px 5px 0;
+ background: url(images/menu.jpg) repeat-y center top;
+ font: bold 12px/26px Verdana, Arial, Tahoma, Sans-serif;
+ height: 26px;
+}
+#menu ul {
+ float: left;
+ list-style: none;
+ margin:5px; padding: 20;
+}
+#menu ul li {
+ display: inline;
+}
+#menu ul li a {
+ display: block;
+ float: left;
+ padding: 0 8px;
+ color: #FFF;
+ text-decoration: none;
+}
+#menu ul li a:hover {
+ background-color: #ECECEC;
+ color: #333;
+}
+#menu ul li#current a {
+ background-color: #FFF;
+ color: #333;
+}
+
+/* Main Column */
+#main {
+ float: right;
+ width: 72%;
+ padding: 0; margin: 0;
+}
+
+#main h1 {
+ margin-top: 10px;
+ font: Bold 125% Verdana, 'Trebuchet MS', Sans-serif;
+ color: #88ac0b;
+ padding: 5px 0 5px 25px;
+ border-bottom: 1px solid #EFF0F1;
+ background: #FFF url(images/square-green.png) no-repeat 3px 50%;
+}
+
+.post-footer {
+ background-color: #FAFAFA;
+ padding: 5px; margin: 20px 10px 0 10px;
+ border: 1px solid #f2f2f2;
+ font-size: 95%;
+}
+.post-footer .date {
+ background: url(images/clock.gif) no-repeat left center;
+ padding-left: 20px; margin: 0 10px 0 5px;
+}
+.post-footer .comments {
+ background: url(images/comment.gif) no-repeat left center;
+ padding-left: 20px; margin: 0 10px 0 5px;
+}
+.post-footer .readmore {
+ background: url(images/page.gif) no-repeat left center;
+ padding-left: 20px; margin: 0 10px 0 5px;
+}
+
+/* Sidebar */
+#sidebar {
+ float: left;
+ width: 26.5%;
+ padding: 0; margin: 0;
+}
+#sidebar h1 {
+ margin-top: 10px;
+ padding: 5px 0 5px 10px;
+ font: bold 1.1em Verdana, 'Trebuchet MS', Sans-serif;
+ color: #555;
+ background: #EEF0F1 url(images/headerbg.gif) repeat-x left bottom;
+ border: 1px solid #EFF0F1;
+}
+#sidebar .left-box {
+ border: 1px solid #EFF0F1;
+ margin: 0 0 5px 0;
+}
+#sidebar ul.sidemenu {
+ list-style: none;
+ text-align: left;
+ margin: 5px 5 8px 0; padding: 0;
+ text-decoration: none;
+}
+#sidebar ul.children {
+ list-style: none;
+ text-align: left;
+ margin: 3px 0 8px 0; padding: 0;
+ text-decoration: none;
+}
+#sidebar ul.sidemenu li {
+ border-bottom: 1px solid #EFF0F1;
+ background: url(images/go.gif) no-repeat 5px 5px;
+ padding: 5px 0 2px 25px;
+ margin: 0 2px;
+}
+#sidebar ul.sidemenu a {
+ font-weight: bolder;
+ text-decoration: none;
+ background-image: none;
+}
+
+/* Footer */
+#footer {
+ color: #666666;
+ background: #CCC url(images/footer.jpg) no-repeat center top;
+ clear: both;
+ width: 820px;
+ height: 55px;
+ text-align: center;
+ font-size: 92%;
+}
+#footer a { text-decoration: none; }
+
+/* alignment classes */
+.float-left { float: left; }
+.float-right { float: right; }
+.align-left { text-align: left; }
+.align-right { text-align: right; }
+
+/* display and additional classes */
+.clear { clear: both; }
+.gray { color: #CCC; }
+