-
Notifications
You must be signed in to change notification settings - Fork 2
/
theloop.php
35 lines (33 loc) · 1.18 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
<?php lblg_before_loop(); ?>
<?php
/* Start The Loop */
if (have_posts()) {
while (have_posts()) {
the_post();
/* Permalink navigation has to be inside the loop */
if (is_single()) get_template_part('navigation'); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php lblg_before_post_title(); ?>
<?php if( !is_single() && !is_page() ) { ?><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php echo strip_tags(get_the_title()) ?>"><?php the_title(); ?></a></h2>
<?php } else { ?><h1><?php the_title(); ?></h1><?php } ?>
<?php lblg_before_itemtext(); ?>
<div class="itemtext">
<?php
if ( is_archive() or is_search() or is_tag() ) {
the_excerpt();
} 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 */
if(is_home() || is_archive()) get_template_part('navigation');
} /*End loop*/
lblg_after_loop();
?>