M
page2.php ——————————
<?
/*
Template Name: With comments
*/
?>
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : 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(); ?>
</span> <br />
<?php the_content(); ?><br />
<?php wp_link_pages(array( 'before'=>'<p><strong>
Pages:</strong> ','after'=> '</p>','next_or_number'=>
'number' )); ?><!-- AdSense line
--><!-- AdSense line
-->
</div>
<div class="post-footer"> This entry was posted on
<?php the_time('l, F jS, Y') ?> at
<?php the_time() ?> and is filed under
<?php the_category(', ') ?>. You can follow any responses
to this entry through the
<?php post_comments_feed_link(__('<abbr title="Really
Simple Syndication">RSS 2.0</abbr>')) ?> feed.
<?php if ( ('open'== $post-> comment_status) && ('open' ==
$post->ping_status) ){ ?> You can
<a href="#respond">
<?php _e('leave a comment') ?></a>, or
<a href="<?php trackback_url(); ?>" rel="trackback">
trackback</a> from your own site.
<?php } elseif (!('open'== $post-> comment_status ) &&
('open' == $post->ping_status ) ) { ?> Responeses are
currently closed, but you can
<a href="<?php trackback_url(); ?>" rel="trackback">
trackback</a> from your own site.
<?php } elseif (('open'==$post->comment_status )&&
!('open' ==$post->ping_status ) ){ ?> 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) ){ ?> Both comments
and pings are currently closed.
<?php } ?> You can
<?php include(TEMPLATEPATH.'/sharethis.js'); ?>.
<?php edit_post_link(__('Edit')); ?>
</div>
</div>
<?php comments_template();?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<!-- content close -->
<div id="content2">
<?php include(TEMPLATEPATH.'/topbar.php') ?>
<?php include(TEMPLATEPATH.'/mbar.php'); ?>
<?php get_footer(); ?>