-
Notifications
You must be signed in to change notification settings - Fork 2
/
theloop.php
46 lines (42 loc) · 1.23 KB
/
theloop.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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();