Source

elbee-elgee / theloop.php

Full commit
Doug Stewart 2a1b6c8 
Doug Stewart 3a51269 

Doug Stewart e44cf1d 
Doug Stewart 3a51269 




Doug Stewart e44cf1d 
Doug Stewart 7778e53 
Doug Stewart 071bece 




Doug Stewart 7778e53 
Doug Stewart edcb39b 
Doug Stewart ba2f84d 
Doug Stewart 47b8d36 

Doug Stewart ba2f84d 

Doug Stewart f0faf99 
Doug Stewart a41f5af 

Doug Stewart 3e411b0 
Doug Stewart a62c8bf 


Doug Stewart 3e411b0 

Doug Stewart a62c8bf 
Doug Stewart a41f5af 

Doug Stewart f0faf99 
Doug Stewart ba2f84d 
Doug Stewart f0faf99 



Doug Stewart 071bece 
Doug Stewart 7778e53 
Doug Stewart 071bece 

Doug Stewart 7778e53 
<?php
/**
 * Template Name: The Loop
 * @package 	Elbee-Elgee
 * @copyright	Copyright (c) 2011, Doug Stewart
 * @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
 *
 * @since 		Elbee-Elgee 1.0
 */

lblg_before_loop();
	/* Start The Loop */ 
	if (have_posts()) { 
		while (have_posts()) { 
			the_post();
			/* Permalink navigation has to be inside the loop */ 
			lblg_nav_top(); ?>
		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
			<?php lblg_before_post_title(); ?>
			
			<?php lblg_the_title(); ?>

			<?php lblg_before_itemtext(); ?>
			<div class="itemtext">
				<?php 
				if ( is_archive() or is_search() or is_tag() ) {
					the_excerpt();
					echo "<a href=\"";
					the_permalink();
					echo "\">Continue reading '" . the_title('', '', false) . "'</a>";
				} else {
					the_content('Continue reading'. " '" . the_title('', '', false) . "'");
					wp_link_pages( array( 'before' => '<div class="post-pagination">Pages: ', 'after' => '</div>', 'next_or_number' => 'number')); 
				}
				?>
			</div>
			<?php lblg_after_itemtext(); ?>
			<!--
				<?php trackback_rdf(); ?>
			-->
		</div>
	<?php } /* End while */
		lblg_nav_bottom();
	} /*End loop*/
	
lblg_after_loop();