Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : ?>
- <h1 class="page_title">
- <?php if (is_category()): ?>Posts in category “<?php single_cat_title(); ?>”
- <?php elseif (is_day()): ?>Archive for "<?php the_time('F jS, Y'); ?>"
- <?php elseif (is_month()): ?>Archive for "<?php the_time('F, Y'); ?>"
- <?php elseif (is_year()): ?>Archive for "<?php the_time('Y'); ?>"
- <?php elseif (is_tag()): ?>Search results for "<?php single_tag_title(); ?>"
- <?php elseif (is_search()): ?>Search results for “<?php the_search_query(); ?>”
- <?php elseif (is_author()):
- if(get_query_var('author_name')) :
- $curauth = get_userdatabylogin(get_query_var('author_name'));
- else :
- $curauth = get_userdata(get_query_var('author'));
- endif;
- echo $curauth->display_name; ?>'s Archives <?php echo get_the_author() ;?>
- <?php elseif (isset($_GET['paged']) && !empty($_GET['paged'])): ?>Blog Archives
- <?php else : ?>Welcome to <?php bloginfo('name');?>
- <?php endif; ?>
- </h1>
- <ol class="post_list">
- <?php while (have_posts()) : the_post(); ?>
- <li <?php if (function_exists('post_class')) { post_class(); } else { echo 'class="post"'; } ?> id="post-<?php the_ID(); ?>">
- <h2 class="content_header"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_title() ?></a></h2>
- <div class="excerpt"><?php the_excerpt(); ?></div>
- </li>
- <?php endwhile; ?>
- </ol>
- <?php lj_pagination(); ?>
- <?php else : ?>
- <div class="post">
- <h1>Nothing found.</h1>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement