web/wp-content/themes/IRI-Theme/single.php
branchwordpress
changeset 109 03b0d1493584
child 123 561aa6d282f6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/single.php	Wed Dec 23 17:55:33 2009 +0000
@@ -0,0 +1,50 @@
+<?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(); ?>
\ No newline at end of file