web/wp-content/themes/IRI-Theme/single.php
branchwordpress
changeset 109 03b0d1493584
child 123 561aa6d282f6
equal deleted inserted replaced
-1:000000000000 109:03b0d1493584
       
     1 <?php get_header(); ?>
       
     2 	<div class="column span-17 colborder first" id="maincontent">
       
     3 		<div class="content">
       
     4 			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       
     5 				<!-- <div class="navigation small">
       
     6 					<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
       
     7 					<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
       
     8 				</div> 
       
     9 				<div style="padding-bottom: 15px;"></div> -->
       
    10 				<div class="post" id="post-<?php the_ID(); ?>">
       
    11 					<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
       
    12 					<p class="small">
       
    13 						<?php the_time('j, F Y') ?> &nbsp;|&nbsp; 
       
    14 						<!-- by <?php the_author() ?> -->
       
    15 						<?php echo(__("Published")." : "); ?>
       
    16 						<?php
       
    17 							the_category(', ');
       
    18 							if($post->comment_count > 0) { 
       
    19 									echo ' &nbsp;|&nbsp; ';
       
    20 									if($post->comment_count > 1) { 
       
    21 										echo '<a href="#comments">' . $post->comment_count . ' Comments</a>';
       
    22 									} else {
       
    23 										echo '<a href="#comments">1 Comment</a>';
       
    24 									}
       
    25 							}
       
    26 							edit_post_link('Edit', ' &nbsp;|&nbsp; ', '');
       
    27 						?>
       
    28 					</p>
       
    29 					
       
    30 					<div class="entry">
       
    31 						<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
       
    32 						<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
       
    33 						
       
    34 					</div>
       
    35 				</div>
       
    36 			<?php comments_template(); ?>
       
    37 			<?php endwhile; else: ?>
       
    38 				<p><?php _e("Sorry, no such page."); ?></p>
       
    39 		<?php endif; ?>
       
    40 		<!-- ADD TO ANY -->
       
    41 		<?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>'; ?>
       
    42 		<!-- -->
       
    43 </div>
       
    44 </div>
       
    45 <div class="column span-5 last">
       
    46 <?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
       
    47 </div>
       
    48 <hr></hr>
       
    49 <?php get_sidebar(); ?>
       
    50 <?php get_footer(); ?>