XPressME Integration Kit

Trac

source: trunk/wp-content/themes/xpress_default/index.php @ 141

Last change on this file since 141 was 141, checked in by toemon, 15 years ago

デフォルトテーマxpress_defaultの調整 bump Ver0.18
メインメニューにwordPress管理とXPressME設定を追加

File size: 3.5 KB
Line 
1<?php get_header(); ?>
2<div id="xpress_wrap">
3<?php
4        if(xpress_is_theme_sidebar_disp()) {
5                echo '<div id="xpress_content" class="narrowcolumn">'; 
6        } else {
7                echo '<div id="xpress_content" class="narrowcolumn_nonside">';
8        }       
9?>                             
10
11                <div class="xpress-header-bar">
12                        <div class="xpress-header-title">
13                                <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>
14                        </div>
15                        <div class="xpress-conditional-title">
16                                &nbsp;( <?php xpress_conditional_title();?> )
17                        </div>
18                        <div class="xpress-description">
19                                <?php bloginfo('description'); ?>
20                        </div>
21                        <div class="xpress-operation-link">
22                                <a href="<?php echo get_option('home'); ?>/"><?php _e('Mein Page','xpress')?></a>
23                                <?php if(is_xpress_contributor()) { echo ' | ' ; xpress_post_new_link(__('Post New','xpress')); }?>
24                        </div>
25                </div>
26                <hr class="xpress-border">
27                <?php if (have_posts()) : ?>
28                        <div class="xpress-navi-bar">
29                                <?php if(function_exists('wp_pagenavi')) : ?>                   
30                                        <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div>
31                                <?php else : ?>
32                                        <div class="xpress-next-posts-link"><?php next_posts_link(__('&laquo; Older Entries', 'xpress')) ?></div>
33                                        <div class="xpress-previous-posts-link">&nbsp;<?php previous_posts_link(__('Newer Entries &raquo;', 'xpress')) ?></div>
34                                <?php endif; ?>
35                        </div>
36                               
37                        <?php while (have_posts()) : the_post(); ?>
38
39                                <div class="xpress-post" id="post-<?php the_ID(); ?>">
40                                        <div class ="xpress-post-header">
41                                                <?php if (function_exists('hotDates')) { hotDates(); }?>
42                                                <div class ="xpress-post-title">
43                                                        <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>
44                                                </div>
45                                        </div>
46                                        <div class="xpress-post-entry">
47                                                <?php xpress_the_content(__('Read the rest of this entry &raquo;') ); ?>
48                                        </div>
49                                        <div class ="xpress-post-footer">
50                                        <?php
51                                                the_time('Y/m/d l');
52                                                echo ' - ';
53                                                the_author_posts_link();
54                                                echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';
55                                                echo ' | ';
56                                                // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | ');
57                                                printf(__('Posted in %s', 'xpress'), get_the_category_list(', '));
58                                                echo ' | ';
59                                                edit_post_link(__('Edit', 'xpress'), '', ' | ');
60                                                comments_popup_link(__('No Comments &#187;', 'xpress'), __('1 Comment &#187;', 'xpress'), __('% Comments &#187;', 'xpress'), '', __('Comments Closed', 'xpress') );
61                                        ?>
62                                        </div>
63                                </div>
64
65                        <?php endwhile; ?>
66                               
67                        <div class="xpress-navi-bar">
68                                <?php if(function_exists('wp_pagenavi')) : ?>                   
69                                        <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div>
70                                <?php else : ?>
71                                        <div class="xpress-next-posts-link"><?php next_posts_link(__('&laquo; Older Entries', 'xpress')) ?></div>
72                                        <div class="xpress-previous-posts-link">&nbsp;<?php previous_posts_link(__('Newer Entries &raquo;', 'xpress')) ?></div>
73                                <?php endif; ?>
74                        </div>
75                               
76                <?php else : ?>
77
78                        <h2 class="center"><?php _e('Not Found', 'xpress'); ?></h2>
79                        <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'xpress'); ?></p>
80                        <?php include (get_template_directory() . "/searchform.php"); ?>
81
82                <?php endif; ?>
83        </div>
84</div>
85<?php if(xpress_is_theme_sidebar_disp()) get_sidebar(); ?>
86<hr class="xpress-border">
87<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.