[1] | 1 | <?php get_header(); ?>
|
---|
| 2 |
|
---|
| 3 | <div id="xpress_wrap">
|
---|
| 4 |
|
---|
[47] | 5 | <?php if(xpress_is_theme_sidebar_disp()) : ?>
|
---|
[1] | 6 |
|
---|
| 7 | <div id="xpress_content" class="narrowcolumn">
|
---|
| 8 |
|
---|
| 9 | <?php else : ?>
|
---|
| 10 |
|
---|
| 11 | <div id="xpress_content" class="narrowcolumn_nonside">
|
---|
| 12 |
|
---|
| 13 | <?php endif; ?>
|
---|
| 14 |
|
---|
| 15 | <div id="xpress_header">
|
---|
| 16 | <div id="xpress_headerimg">
|
---|
| 17 | <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
|
---|
| 18 | <div class="description"><?php bloginfo('description'); ?></div>
|
---|
| 19 | </div>
|
---|
| 20 | </div>
|
---|
| 21 |
|
---|
| 22 | <?php if (have_posts()) : ?>
|
---|
| 23 |
|
---|
| 24 | <?php if(function_exists('is_tag')) : ?>
|
---|
| 25 | <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
---|
| 26 | <?php /* If this is a category archive */ if (is_category()) { ?>
|
---|
[64] | 27 | <p class="xpress_pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'xpress'), single_cat_title('', false)); ?></p>
|
---|
[1] | 28 | <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
|
---|
[64] | 29 | <p class="xpress_pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'xpress'), single_tag_title('', false) ); ?></p>
|
---|
[1] | 30 | <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
---|
[64] | 31 | <p class="xpress_pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'xpress'), get_the_time(__('F jS, Y', 'xpress'))); ?></p>
|
---|
[1] | 32 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
---|
[64] | 33 | <p class="xpress_pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'xpress'), get_the_time(__('F, Y', 'xpress'))); ?></p>
|
---|
[1] | 34 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
---|
[64] | 35 | <p class="xpress_pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'xpress'), get_the_time(__('Y', 'xpress'))); ?></p>
|
---|
[1] | 36 | <?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
---|
[64] | 37 | <p class="xpress_pagetitle"><?php echo get_author_name( get_query_var('author')); _e('Author Archive', 'xpress'); ?></p>
|
---|
[1] | 38 | <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
---|
[64] | 39 | <p class="xpress_pagetitle"><?php _e('Blog Archives', 'xpress'); ?></p>
|
---|
[1] | 40 | <?php } ?>
|
---|
| 41 | <?php else : ?>
|
---|
| 42 | <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
---|
| 43 | <?php /* If this is a category archive */ if (is_category()) { ?>
|
---|
| 44 | <p class="xpress_pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</p>
|
---|
| 45 |
|
---|
| 46 | <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
---|
| 47 | <p class="xpress_pagetitle">Archive for <?php the_time('F jS, Y'); ?></p>
|
---|
| 48 |
|
---|
| 49 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
---|
| 50 | <p class="xpress_pagetitle">Archive for <?php the_time('F, Y'); ?></p>
|
---|
| 51 |
|
---|
| 52 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
---|
| 53 | <p class="xpress_pagetitle">Archive for <?php the_time('Y'); ?></p>
|
---|
| 54 |
|
---|
| 55 | <?php /* If this is a search */ } elseif (is_search()) { ?>
|
---|
| 56 | <p class="xpress_pagetitle">Search Results</p>
|
---|
| 57 |
|
---|
| 58 | <?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
---|
| 59 | <p class="xpress_pagetitle">Author Archive</p>
|
---|
| 60 |
|
---|
| 61 | <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
---|
| 62 | <p class="xpress_pagetitle">Blog Archives</p>
|
---|
| 63 |
|
---|
| 64 | <?php } ?>
|
---|
| 65 | <?php endif; ?>
|
---|
| 66 |
|
---|
| 67 |
|
---|
| 68 | <?php while (have_posts()) : the_post(); ?>
|
---|
| 69 | <div class="post">
|
---|
| 70 | <?php if (function_exists('hotDates')) { hotDates(); }?>
|
---|
[64] | 71 | <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" <?php if(function_exists('the_title_attribute')) : ?>title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"<?php endif; ?>><?php the_title(); ?></a></h2>
|
---|
| 72 | <small><?php the_time(__('l, F jS, Y', 'xpress')) ?></small>
|
---|
[1] | 73 |
|
---|
| 74 | <div class="entry">
|
---|
| 75 | <?php the_content() ?>
|
---|
| 76 | </div>
|
---|
| 77 |
|
---|
[64] | 78 | <p class="postmetadata"><?php if(function_exists('the_tags')) : ?><?php the_tags(__('Tags:', 'xpress'), ', ', '<br />'); ?><?php endif; ?> <?php printf(__('Posted in %s', 'xpress'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'xpress'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'xpress'), __('1 Comment »', 'xpress'), __('% Comments »', 'xpress'), '', __('Comments Closed', 'xpress') ); ?></p>
|
---|
[1] | 79 |
|
---|
| 80 | </div>
|
---|
| 81 |
|
---|
| 82 | <?php endwhile; ?>
|
---|
| 83 | <?php if(function_exists('wp_pagenavi')) : ?>
|
---|
| 84 | <div class="xpress_pagenavi">
|
---|
| 85 | <?php wp_pagenavi(); ?>
|
---|
| 86 | </div>
|
---|
| 87 | <?php else : ?>
|
---|
| 88 | <div class="xpress_navigation">
|
---|
[64] | 89 | <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'xpress')) ?></div>
|
---|
| 90 | <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'xpress')) ?></div>
|
---|
[1] | 91 | </div>
|
---|
| 92 | <?php endif; ?>
|
---|
| 93 | <?php else : ?>
|
---|
| 94 |
|
---|
[64] | 95 | <p class="center"><?php _e('Not Found', 'xpress'); ?></p>
|
---|
[1] | 96 | <?php include (get_template_directory() . '/searchform.php'); ?>
|
---|
| 97 |
|
---|
| 98 | <?php endif; ?>
|
---|
| 99 |
|
---|
| 100 | </div>
|
---|
| 101 | </div>
|
---|
| 102 |
|
---|
| 103 | <?php get_sidebar(); ?>
|
---|
| 104 |
|
---|
| 105 | <?php get_footer(); ?>
|
---|