XPressME Integration Kit

Trac

source: trunk/wp-content/themes/xpress_default/single.php @ 143

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

デフォルトテーマxpress_defaultの調整

File size: 2.8 KB
Line 
1<?php get_header(); ?>
2
3<div id="xpress_wrap">
4<?php
5        if(xpress_is_theme_sidebar_disp()) {
6                echo '<div id="xpress_content" class="narrowcolumn">'; 
7        } else {
8                echo '<div id="xpress_content" class="narrowcolumn_nonside">';
9        }       
10?>
11                <div id="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
28        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
29
30                <div class="xpress-navi-bar">
31                        <div class="alignleft"><?php xpress_left_arrow_post_link(true) ?></div>
32                        <div class="alignright"><?php xpress_right_arrow_post_link(true) ?></div>
33                </div>
34
35                <div class="xpress-post" id="post-<?php the_ID(); ?>">
36                        <div class ="xpress-post-header">
37                                <?php if (function_exists('hotDates')) { hotDates(); }?>
38                                <div class ="xpress-post-title">
39                                        <h3><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>
40                                </div>
41                        </div>
42
43                        <div class="xpress-post-entry">
44                                <?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'xpress') . '</p>'); ?>
45                        </div>
46                        <div class ="xpress-post-footer">
47                                <?php
48                                        the_time('Y/m/d l');
49                                        echo ' - ';
50                                        the_author_posts_link();
51                                        echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';
52                                        echo ' | ';
53                                        // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | ');
54                                        printf(__('Posted in %s', 'xpress'), get_the_category_list(', '));
55                                        echo ' | ';
56                                        edit_post_link(__('Edit', 'xpress'), '', ' | ');
57                                        comments_popup_link(__('No Comments &#187;', 'xpress'), __('1 Comment &#187;', 'xpress'), __('% Comments &#187;', 'xpress'), '', __('Comments Closed', 'xpress') );
58                                ?>
59                        </div>
60                        <div class ="xpress-comments-block">
61                                <?php comments_template(); ?>   
62                        </div>
63                </div>
64
65       
66
67        <?php endwhile; else: ?>
68
69                <p><?php _e('Sorry, no posts matched your criteria.', 'xpress'); ?></p>
70
71<?php endif; ?>
72                <div class="xpress-navi-bar">
73                        <div class="alignleft"><?php xpress_left_arrow_post_link(true) ?></div>
74                        <div class="alignright"><?php xpress_right_arrow_post_link(true) ?></div>
75                </div>
76
77        </div>
78</div>
79<?php if(xpress_is_theme_sidebar_disp()) get_sidebar(); ?>
80<hr class="xpress-border">
81<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.