web/wp-content/themes/IRI-Theme/single.php
author hurons@caf4f556-3d62-0410-8435-a86758001935
Wed, 23 Dec 2009 17:55:33 +0000
branchwordpress
changeset 109 03b0d1493584
child 123 561aa6d282f6
permissions -rw-r--r--
wordpress 2.8 () with the following extensions : - add-to-any - categories page - Event calendar (a custom version for IRI-Theme) - Executable PHP widget - FD feedburner - ggis subscribe - Google Xml site maple - post of current category - page redirection - related post by category AND IRI-Theme

<?php get_header(); ?>
	<div class="column span-17 colborder first" id="maincontent">
		<div class="content">
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<!-- <div class="navigation small">
					<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
					<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
				</div> 
				<div style="padding-bottom: 15px;"></div> -->
				<div class="post" id="post-<?php the_ID(); ?>">
					<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
					<p class="small">
						<?php the_time('j, F Y') ?> &nbsp;|&nbsp; 
						<!-- by <?php the_author() ?> -->
						<?php echo(__("Published")." : "); ?>
						<?php
							the_category(', ');
							if($post->comment_count > 0) { 
									echo ' &nbsp;|&nbsp; ';
									if($post->comment_count > 1) { 
										echo '<a href="#comments">' . $post->comment_count . ' Comments</a>';
									} else {
										echo '<a href="#comments">1 Comment</a>';
									}
							}
							edit_post_link('Edit', ' &nbsp;|&nbsp; ', '');
						?>
					</p>
					
					<div class="entry">
						<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
						<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
						
					</div>
				</div>
			<?php comments_template(); ?>
			<?php endwhile; else: ?>
				<p><?php _e("Sorry, no such page."); ?></p>
		<?php endif; ?>
		<!-- ADD TO ANY -->
		<?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?>
		<!-- -->
</div>
</div>
<div class="column span-5 last">
<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
</div>
<hr></hr>
<?php get_sidebar(); ?>
<?php get_footer(); ?>