XPressME Integration Kit

Trac

source: trunk/wp-content/themes/xpress_default/single.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: 4.9 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 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
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                                                        <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>
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
46                                <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'xpress') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
47                                <?php echo '<p class="postmeta">' ;/* _e('Posted:', 'xpress'); echo '&nbsp;'; the_author_posts_link(); echo '<br />' ; */?><?php if(function_exists('the_tags')) : ?><?php the_tags(__('Tags:', 'xpress') . ' ', ', ', '<br />'); ?><?php endif; ?><?php printf(__('Posted in %s', 'xpress'), get_the_category_list(' &bull; ') . '</p>'); ?>
48                               
49                                <p class="postmetadata alt">
50                                        <small>
51                                                <?php /* This is commented, because it requires a little adjusting sometimes.
52                                                        You'll need to download this plugin, and follow the instructions:
53                                                        http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
54                                                        /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'xpress'), time_since($entry_datetime)); */ ?>
55                                                <?php printf(__('This entry was posted %1$s on %2$s at %3$s and is filed under %4$s.', 'xpress'), $time_since, get_the_time(__('l, F jS, Y', 'xpress')), get_the_time(), get_the_category_list(' &bull; ')); ?>
56                                                <?php if (function_exists('get_post_comments_feed_link')) : ?>
57                                                <?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "xpress"), get_post_comments_feed_link()); ?>
58                        <?php else : ?>
59                                                <?php _e('You can follow any responses to this entry through the', 'xpress'); ?><?php comments_rss_link('RSS 2.0'); ?><?php _e('feed.', 'xpress'); ?>
60                                                <?php endif; ?>
61
62                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
63                                                        // Both Comments and Pings are open ?>
64                                                        <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>
65
66                                                <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
67                                                        // Only Pings are Open ?>
68                                                        <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>
69
70                                                <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
71                                                        // Comments are open, Pings are not ?>
72                                                        <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'xpress'); ?>
73
74                                                <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
75                                                        // Neither Comments, nor Pings are open ?>
76                                                        <?php _e('Both comments and pings are currently closed.', 'xpress'); ?>
77
78                                                <?php } edit_post_link(__('Edit this entry', 'xpress'),'','.'); ?>
79
80                                        </small>
81                                </p>
82
83                        </div>
84                </div>
85
86        <?php comments_template(); ?>
87
88        <?php endwhile; else: ?>
89
90                <p><?php _e('Sorry, no posts matched your criteria.', 'xpress'); ?></p>
91
92<?php endif; ?>
93                <div class="xpress-navi-bar">
94                        <div class="alignleft"><?php xpress_left_arrow_post_link(true) ?></div>
95                        <div class="alignright"><?php xpress_right_arrow_post_link(true) ?></div>
96                </div>
97
98        </div>
99</div>
100<?php if(xpress_is_theme_sidebar_disp()) get_sidebar(); ?>
101<hr class="xpress-border">
102<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.