1 | <?php get_header(); ?>
|
---|
2 |
|
---|
3 | <div id="xpress_wrap">
|
---|
4 |
|
---|
5 | <?php if(xpress_is_theme_sidebar_disp()) : ?>
|
---|
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()) { ?>
|
---|
27 | <p class="xpress_pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></p>
|
---|
28 | <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
|
---|
29 | <p class="xpress_pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'kubrick'), single_tag_title('', false) ); ?></p>
|
---|
30 | <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
---|
31 | <p class="xpress_pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></p>
|
---|
32 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
---|
33 | <p class="xpress_pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
|
---|
34 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
---|
35 | <p class="xpress_pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></p>
|
---|
36 | <?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
---|
37 | <p class="xpress_pagetitle"><?php echo get_author_name( get_query_var('author')); _e('Author Archive', 'kubrick'); ?></p>
|
---|
38 | <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
---|
39 | <p class="xpress_pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></p>
|
---|
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(); }?>
|
---|
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', 'kubrick'), the_title_attribute('echo=0')); ?>"<?php endif; ?>><?php the_title(); ?></a></h2>
|
---|
72 | <small><?php the_time(__('l, F jS, Y', 'kubrick')) ?></small>
|
---|
73 |
|
---|
74 | <div class="entry">
|
---|
75 | <?php the_content() ?>
|
---|
76 | </div>
|
---|
77 |
|
---|
78 | <p class="postmetadata"><?php if(function_exists('the_tags')) : ?><?php the_tags(__('Tags:', 'kubrick'), ', ', '<br />'); ?><?php endif; ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p>
|
---|
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">
|
---|
89 | <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')) ?></div>
|
---|
90 | <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')) ?></div>
|
---|
91 | </div>
|
---|
92 | <?php endif; ?>
|
---|
93 | <?php else : ?>
|
---|
94 |
|
---|
95 | <p class="center"><?php _e('Not Found', 'kubrick'); ?></p>
|
---|
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(); ?>
|
---|