<!-- These lines start the php backend, look for the next comment that says "Leave everything till here" -->
<?php
/* Don't remove these lines. */
$blog 1;
require_once(
'wp-blog-header.php');
?>
<!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">

<!-- Leave Everything till here -->

<head>
<!-- This is the head section of the index, everything is commented appropriately, everything that HAS to be there,
    says so. Leaving everything in the head section as is will make your blog more compatible -->

    <!-- This posts and title of the blog from the database, can be removed-->
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    <!-- This tells the browser and the server what kind of page this is, DONT REMOVE-->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="generator" content="WordPress <?php echo $wp_version?>" /> <!-- leave this for stats -->

    <!-- This line sets up the CSS for use on the blog, replace CSS name with anything you wish, but
        dont remove it-->
    <style type="text/css" media="screen">
        @import url( <?php echo $siteurl?>/wp-layout.css );
    </style>

    <!-- These lines setup the News Feeds for the blog and the CSS for printing the blog pages
        any of them can be removed without too many problems-->
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo $siteurl?>/print.css" />
    <link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
    <link rel="alternate" type="text/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'); ?>" />

    <!-- These lines start the pingback process and the archives, can be removed-->
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php get_archives('monthly''''link'); ?>
    <?php //comments_popup_script(); // off by default ?>

    <!-- Add any other items you wish in the head-->
</head>

<!--This is the beginning of the body of the blog, dont remove the body tag -->
<body>
    <!-- This is an extra div for better control of the blog, should not be removed, can be renamed and then defined in the CSS-->
<div id="rap">

    <!-- This is the line that puts in the name of your blog on top of the page and makes it a link to the root of your
        blog directory, can be removed, look for #header in your CSS to change the look of this area-->
<h1 id="header"><a href="<?php echo $siteurl?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

    <!-- This is where the content of the blog begins. By content I mean the posts in your blog. This is what creates the entries
        in your blog and puts them in one after the other. The program starts a looping process, reads through all of the entries,
        counts them and then puts them in the order that it was requested. DO NOT REMOVE THE NEXT 2 LINES-->
<div id="content">
<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>

<?php the_date('','<h2>','</h2>'); ?>

    <!-- This is the part of the blog that gets repeated for every entry in your blog. Create a new .post in CSS to change the look
        of the posts in your blog. The next 3 lines setup the topic of the post, the permanent link to the post, the date, the time,
        the author, the categories and adds the "edit this" link to the title if you are looking at your own blog. Most of these items
        are self explanatory. If you do move these around, make sure that you keep a copy of the original for your own reference-->
<div class="post">
     <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <div class="meta">Filed under: <?php the_category() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>

    <!-- As it says, this is what builds and prints out the content of each post -->
    <div class="storycontent">
        <?php the_content(); ?>
    </div>

    <div class="feedback">
    <!-- This is where the feedback links are created. If your post is split into multiple pages, link_pages puts a small set of links
        to those pages. You can modify "Pages:" to suit your liking. -->
        <?php link_pages('<br />Pages: ''<br />''number'); ?>

    <!-- This is where the link for the comments is created. The first Comments(0) is what shows up if there are no comments. you could
        replace it with "There are no comments" or something like that. The second is what shows up when you have only one comment. So you
        could change it to say "There is just one comment". The last is for more than one commment. The % gets replaced with the number of
        comments in this case. So "(%) people have left their thoughts" is a good alternative-->
        <?php comments_popup_link('Comments (0)''Comments (1)''Comments (%)'); ?>
    </div>

    <!--
    <?php trackback_rdf(); ?>
    -->

    <!-- If you dont have pop-up comments setup, and your index is requesting comments, this is where the comments get put into the page-->
<?php include(ABSPATH 'wp-comments.php'); ?>
</div>

    <!-- DO NOT DELETE THE NEXT 3 LINES they are the end of the loop that prints out your posts. -->
<?php } } else { // end foreach, end if any posts ?>
<p>Sorry, no posts matched your criteria.</p>
<?php ?>
</div>


    <!-- This is where the right hand side menu is created-->
<div id="menu">

    <!-- Inside the menu, you can move things around in any way you want as long as for every <ul> and <li> you are also moving the
        correspoding </ul> and </li> that shows up after it. Think of it as opening and closing brackets for a sentence. Unless you move
        the opening and closing brace, the meaning of the sentence becomes completely different. eg. to move Categories, cut this:
        <li>Categories:
            <ul>
            <?php list_cats(0'All''name'); ?>
            </ul>
         </li>
         and everything will still look normal. In order to understand what each of these tags do (get_archives etc) please refer
         to http://wiki.wordpress.org/index.php/TemplateTags -->
<ul>
    <?php get_links_list(); ?>
 <li>Categories:
    <ul>
    <?php list_cats(0'All''name'); ?>
    </ul>
 </li>
 <li>Search:
    <form id="searchform" method="get" action="<?php echo $PHP_SELF/*$siteurl."/".$blogfilename*/ ?>">
    <div>
        <input type="text" name="s" size="15" /><br />
        <input type="submit" name="submit" value="search" />
    </div>
    </form>
 </li>
 <li>Archives:
     <ul>
     <?php get_archives('monthly'); ?>
     </ul>
 </li>
 <li>
    <?php get_calendar(); ?>
 </li>
 <li>Other:
    <ul>
        <li><a href="<?php echo $siteurl?>/wp-login.php">login</a></li>
        <li><a href="<?php echo $siteurl?>/wp-register.php">register</a></li>
    </ul>
 </li>
 <li>Meta:
     <ul>
        <li><a href="<?php bloginfo('rss2_url'); ?>" title="Syndicate this site using RSS"><abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
        <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
        <li><a href="http://wordpress.org" title="Powered by WordPress, state-of-the-art semantic personal publishing platform">WP</a></li>
    </ul>
 </li>

</ul>

</div>
<!-- A little note about closing the div (as above and below this line. Remember that these are like brackets again. So if you have an
    opening div somewhere in your page, it has to be closed at the point you want the effect of the div to stop. -->
</div>

<!-- This is the small box at the end of your page that tells you how long your page took to load and such. Can be easily removed or modified -->
<p class="credit"><!--<?php echo $wpdb->querycount?> queries.--> <?php timer_stop(1); ?> || <cite>Powered by <a href="http://wordpress.org" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
</body>
</html>