<?php // This is the loop, which fetches entries from your database. // It is a delicate piece of machinery. Be gentle! ?><?php /* Headlines for archives */ if ((!is_single() && !is_home()) || is_paged()) { ?><h2 class="pagetitle"> <?php // Figure out what kind of page is being shown if (is_category()) { printf(__('Archive for the \'%s\' Category','unnamed'), single_cat_title('',false)); } elseif (is_day()) { printf(__('Archive for %s','unnamed'), get_the_time(__('l, F jS, Y','unnamed'))); } elseif (is_month()) { printf(__('Archive for %s','unnamed'), get_the_time(__('l, F jS, Y','unnamed'))); } elseif (is_year()) { printf(__('Archive for %s','unnamed'), get_the_time(__('l, F jS, Y','unnamed'))); } elseif (is_search()) { printf(__('Search Results for \'%s\'','unnamed'), $s); } elseif (function_exists('is_tag') && is_tag()) { printf(__('Tag Archive for \'%s\'','unnamed'), get_query_var('tag') ); } elseif (is_paged() && ($paged > 1)) { printf(__('Archive Page %s','unnamed'), $paged ); } ?></h2><?php } ?><?php /* Start the loop */ if (have_posts()) { while (have_posts()) { the_post(); ?><?php /* Permalink nav has to be inside loop */ if (is_single()) include (TEMPLATEPATH . '/navigation.php'); ?><div id="post-<?php the_ID(); ?>" class="entry"> <h3 class="entry-header"><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to "<?php strip_tags(the_title()); ?>"'> <?php the_title(); ?> </a></h3> <div class="date-header"> Posted on : <?php printf(__('%1$s by %2$s ','unnamed'), the_time(__('l, F jS, Y','unnamed')), get_the_author()) ?> at <?php the_time() ?> </div> <div id="lw_context_ads"><?php if (is_search() || (function_exists('is_tag') && is_tag())) { the_excerpt(); } else { the_content(sprintf(__("Continue reading '%s'", 'unnamed'), the_title('', '', false))); } ?><br /> <?php if (ls_getinfo(‘isref’)) { ?> <h2><?php ls_getinfo(‘terms’); ?></h2> <p>You came here from <?php ls_getinfo(‘referrer’); ?> searching for <i><?php ls_getinfo(‘terms’); ?></i>. These posts might be of interest:</p> <ul> <?php ls_related(5, 10, ‘<li>’, ‘</li>’, ‘’, ‘’, false, false); ?> </ul> <?php } ?><br /></div> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> <!-- <?php trackback_rdf(); ?> --> <?php if (is_home() || is_archive() || (function_exists('is_tag') && is_tag())) { ?> <?php if(function_exists(UTW_ShowTagsForCurrentPost)) { ?> <small> <?php _e('Tags:','unnamed'); ?> <?php UTW_ShowTagsForCurrentPost("commalist") ?> .</small> <?php } ?> <p class="entry-footer"> <?php edit_post_link(__('Edit Link','unnamed'),'<span class="metaedit">','</span>'); ?> <span class="metapost"> <?php _e('Category','unnamed'); ?> :<?php the_category(','); ?> </span> <?php comments_popup_link('<span class="metacmt">'.__('Add a comment','unnamed').'</span>', '<span class="metacmt">1 '.__('Comment','unnamed').'</span>', '<span class="metacmt">% '.__('Comments','unnamed').'</span>', '', '<span class="metacmt">'.__('Closed','unnamed').'</span>'); ?> </p> <?php } ?></div><?php } /* End The Loop */ ?><?php /* Insert Paged Navigation */ if (!is_single()) { include (TEMPLATEPATH.'/navigation.php'); } ?><?php /* If there is nothing to loop */ } else { $notfound = '1'; ?><h2 class="center"> <?php _e('Not Found','unnamed'); ?></h2><div class="entry"> <p> <?php _e('Oh no! You\'re looking for something which just isn\'t here! Fear not however, errors are to be expected, and luckily there are tools on the sidebar for you to use in your search for what you need.','unnamed'); ?> </p></div><?php /* End Loop Init */ } ?>