1 | <?php
|
---|
2 | /*
|
---|
3 | Template Name: MultiBlog Index_Page
|
---|
4 | */
|
---|
5 | ?><?php get_header(); ?>
|
---|
6 |
|
---|
7 |
|
---|
8 | <div id="xpress_wrap">
|
---|
9 | <?php
|
---|
10 | if(xpress_is_theme_sidebar_disp()) {
|
---|
11 | echo '<div id="xpress_content" class="narrowcolumn">';
|
---|
12 | } else {
|
---|
13 | echo '<div id="xpress_content" class="narrowcolumn_nonside">';
|
---|
14 | }
|
---|
15 | ?>
|
---|
16 | <?php if (have_posts()) : ?>
|
---|
17 | <div class="xpress-navi-bar">
|
---|
18 | <?php if(function_exists('wp_pagenavi')) : ?>
|
---|
19 | <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div>
|
---|
20 | <?php else : ?>
|
---|
21 | <div class="alignleft"><?php xpress_left_arrow_posts_link('echo=1'); ?></div>
|
---|
22 | <div class="alignright"><?php xpress_right_arrow_posts_link('echo=1'); ?></div>
|
---|
23 | <?php endif; ?>
|
---|
24 | </div>
|
---|
25 |
|
---|
26 | <?php while (have_posts()) : the_post(); ?>
|
---|
27 |
|
---|
28 | <div class="xpress-post" id="post-<?php the_ID(); ?>">
|
---|
29 | <div class ="xpress-post-header">
|
---|
30 | <?php if (function_exists('hotDates')) { hotDates(); }?>
|
---|
31 | <div class ="xpress-post-title">
|
---|
32 | <?php if(function_exists('the_title_attribute')) : ?>
|
---|
33 | <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
|
---|
34 | <?php else : ?>
|
---|
35 | <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title('','',false)); ?>"><?php the_title(); ?></a></h2>
|
---|
36 | <?php endif; ?>
|
---|
37 | </div>
|
---|
38 | </div>
|
---|
39 | <div class="xpress-post-entry">
|
---|
40 | <?php xpress_the_content(); ?>
|
---|
41 | </div>
|
---|
42 | <div class="xpress-link-pages"><?php wp_link_pages() ?></div>
|
---|
43 | <div class ="xpress-post-footer">
|
---|
44 | <?php
|
---|
45 | the_time('Y/m/d l');
|
---|
46 | echo ' - ';
|
---|
47 | the_author_posts_link();
|
---|
48 | echo ' (' . xpress_post_views_count('post_id=' . $post->ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')';
|
---|
49 | echo ' | ';
|
---|
50 | // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | ');
|
---|
51 | printf(__('Posted in %s', 'xpress'), get_the_category_list(', '));
|
---|
52 | echo ' | ';
|
---|
53 | edit_post_link(__('Edit', 'xpress'), '', ' | ');
|
---|
54 | comments_popup_link(__('No Comments »', 'xpress'), __('1 Comment »', 'xpress'), __('% Comments »', 'xpress'), '', __('Comments Closed', 'xpress') );
|
---|
55 | ?>
|
---|
56 | </div>
|
---|
57 | </div>
|
---|
58 |
|
---|
59 | <?php endwhile; ?>
|
---|
60 |
|
---|
61 | <div class="xpress-navi-bar">
|
---|
62 | <?php if(function_exists('wp_pagenavi')) : ?>
|
---|
63 | <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div>
|
---|
64 | <?php else : ?>
|
---|
65 | <div class="alignleft"><?php xpress_left_arrow_posts_link('echo=1'); ?></div>
|
---|
66 | <div class="alignright"><?php xpress_right_arrow_posts_link('echo=1'); ?></div>
|
---|
67 | <?php endif; ?>
|
---|
68 | </div>
|
---|
69 |
|
---|
70 | <?php else : ?>
|
---|
71 |
|
---|
72 | <h2 class="center"><?php _e('Not Found', 'xpress'); ?></h2>
|
---|
73 | <p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'xpress'); ?></p>
|
---|
74 | <?php include (get_template_directory() . "/searchform.php"); ?>
|
---|
75 |
|
---|
76 | <?php endif; ?>
|
---|
77 | </div>
|
---|
78 | </div>
|
---|
79 | <?php if(xpress_is_theme_sidebar_disp()) get_sidebar(); ?>
|
---|
80 |
|
---|
81 | <?php get_footer(); ?>
|
---|