M
404.php———————————
<?php get_header(); ?>
<div id="content">
<?php _e('No pages found.')?> 404 Error.
</div>
<!-- content close -->
<div id="content2">
<?php include(TEMPLATEPATH.'/topbar.php') ?>
<?php include(TEMPLATEPATH.'/mbar.php'); ?>
<?php get_footer(); ?>
archive.php—————————–
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()): $post=$posts[0]; ?>
<?php if (is_category()) { ?>
<h2 class="pagetitle">Archive for the
<?php single_cat_title(); ?> Category</h2>
<?php } elseif (is_tag()) { ?>
<h2 class="pagetitle">Posts Tagged
<?php single_tag_title(); ?></h2>
<?php } elseif (is_day()) { ?>
<h2 class="pagetitle">Archive for
<?php the_time('F jS, Y'); ?></h2>
<?php } elseif (is_month()) { ?>
<h2 class="pagetitle">Archive for
<?php the_time('F, Y'); ?></h2>
<?php } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for
<?php the_time('Y'); ?></h2>
<?php } elseif (is_author()) { ?>
<h2 class="pagetitle">Author Archive </h2>
<?php } elseif (is_search()) { ?>
<h2 class="pagetitle">Search Results </h2>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged']) )
{ ?>
<h2 class="pagetitle">Blog Archives</h2>
<?php } ?>
<?php include(TEMPLATEPATH. '/nav.php') ?><br />
<?php while (have_posts()): the_post(); ?>
<div class="post" id="post-<?php the_ID();?>">
<h2 class="post-title">
<a href="<?php the_permalink() ?>" rel="bookmark"
title="Permanent Link to: <?php the_title();?>">
<?php the_title();?></a> </h2>
<div class="post-body">
<div class="date-header" >
<?php the_time('m/j/Y g:i:00 A')?>
</div>
<span class="byline-author"> Posted by
<?php the_author(); ?>
<?php edit_post_link(__('Edit')); ?>
</span> <br />
<?php the_content(); ?> <br />
<div class="byline-author"> <?php the_tags(__('Tags:'),',
','.<br />'); ?>
<?php _e('Categories:'); the_category(', ')?>.</div>
</div>
<div class="post-footer">
<?php include(TEMPLATEPATH.'/sharethis.js') ?>
<?php if ('open' == $post->comment_status ): ?> |
<?php comments_popup_link( __( 'Leave a comment' ), __('1
Comment'), __('% Comments')); ?>
<?php if (get_comments_number()>0 ): ?> |
<a href="<?php the_permalink() ?>/#comment"
title="<?php _e('Leave a comment') ?>">
<?php _e('Leave a comment'); ?></a>
<?php endif ?>
<?php else: if (get_comments_number()>0): ?> |
<?php comments_popup_link( __(' '), __('1 Comment'),
__('% Comments'));endif ?>
<?php endif?>|
<a href="<?php the_permalink() ?>" rel="bookmark"
title="Permanent Link to: <?php the_title(); ?>">
Permalink</a>
<?php edit_post_link(__('Edit'),__(' | ')); ?>
</div>
</div>
<?php endwhile; ?>
<?php include(TEMPLATEPATH. '/nav.php') ?>
<?php else : ?>
<p>
<?php _e('Sorry, no posts matched your criteria.'); ?>
</p>
<?php endif; ?>
<div id="ads">
<!-- AdSense line
--><!-- AdSense line
-->
</div>
</div>
<!-- content close -->
<div id="content2">
<?php include(TEMPLATEPATH.'/topbar.php') ?>
<?php include(TEMPLATEPATH.'/mbar.php'); ?>
<?php get_footer(); ?>