All pastes #749192 Raw Edit

support/topic/140355

public php v1 · immutable
#749192 ·published 2007-10-25 14:35 UTC
rendered paste body
<?php get_header(); ?>	<div id="primary" class="twocol-stories">		<div class="inside">			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>			<div class="primary">				<h1><?php the_title(); ?></h1>				<?php the_content('<p class="serif"></p>'); ?>			</div>			<hr class="hide" />			<div class="details">				<div class="details">					<p>Title: <?php the_title(); ?></p>						Published:						<?php the_time( $hemingway->date_format() ) ?>						Category:						<?php the_category(', ') ?>					<?php edit_post_link('Edit this entry.', 'Edit: ', ''); ?>				</div>			</div>			<div class="clear"></div>		</div>	</div>	<!-- [END] #primary -->	<hr class="hide" />	<div id="secondary">		<div class="inside">			<?php if ('open' == $post-> comment_status) {				// Comments are open ?>				<div class="comment-head">					<h2><?php comments_number('No comments','1 Comment','% Comments'); ?></h2>					<span class="details"><a href="#comment-form">Jump to comment form</a> | <?php comments_rss_link('comments rss'); ?> <a href="#what-is-comment-rss" class="help">[?]</a> <?php if ('open' == $post->ping_status): ?>| <a href="<?php trackback_url(true); ?>">trackback uri</a> <a href="#what-is-trackback" class="help">[?]</a><?php endif; ?></span>				</div>			<?php } elseif ('open' != $post-> comment_status) {				// Neither Comments, nor Pings are open ?>				<div class="comment-head">					<h2>Comments are closed</h2>					<span class="details">Comments are currently closed on this entry.</span>				</div>			<?php } ?>			<?php comments_template(); ?>			<?php endwhile; else: ?>			<p>Sorry, no posts matched your criteria.</p>			<?php endif; ?>		</div>	</div><?php get_sidebar(); ?><?php get_footer(); ?>And the index.php looks like this:<?php get_header(); ?>	<div id="primary" class="twocol-stories">		<div class="inside">			<?php				// Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel				query_posts('showposts=1');			?>			<?php if (have_posts()) : ?>				<?php $first = true; ?>				<?php while (have_posts()) : the_post(); ?>					<div class="story<?php if($first == true) echo " first" ?>">						<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>						<?php $hemingway->excerpt() ?>					<div class="detailbox">						<b class="rtop4">  						<b class="r14"></b> <b class="r24"></b> <b class="r34"></b> <b class="r44"></b>						</b>					<div class="details">							<?= _('Posted on') ?> <?php the_time( $hemingway->date_format() ) ?> | <?php comments_popup_link('no comments', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> <div class="read-on"><a href="<?php the_permalink() ?>">read on</a></div>					</div>						<b class="rbottom4">  						<b class="r44"></b> <b class="r34"></b> <b class="r24"></b> <b class="r14"></b>						</b>					</div>					</div>					<?php $first = false; ?>				<?php endwhile; ?>		</div>			<?php else : ?>				<h2 class="center">Not Found</h2>				<p class="center">Sorry, but you are looking for something that isn't here.</p>				<?php include (TEMPLATEPATH . "/searchform.php"); ?>			<?php endif; ?>			<div class="clear"></div>	</div>	<!-- [END] #primary --><?php get_sidebar(); ?><?php get_footer(); ?>