XPressME Integration Kit

Trac

source: wp-content/themes/toemon/image.php @ 1

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

取り敢えずインストールと表示が出来るようにした初期バージョン

File size: 2.9 KB
Line 
1<?php get_header(); ?>
2
3        <div id="xpress_content" class="widecolumn">
4
5  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
6
7                <div class="post" id="post-<?php the_ID(); ?>">
8                        <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
9                        <div class="entry">
10                                <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
11                                <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
12
13                                <?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'kubrick') . '</p>'); ?>
14
15                                <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
16
17                                <div class="navigation">
18                                        <div class="alignleft"><?php previous_image_link() ?></div>
19                                        <div class="alignright"><?php next_image_link() ?></div>
20                                </div>
21                                <br class="clear" />
22
23                                <p class="postmetadata alt">
24                                        <small>
25                                                <?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'kubrick'),  get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', ')); ?>
26                                                <?php the_taxonomies(); ?>
27                                                <?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "kubrick"), get_post_comments_feed_link()); ?>
28
29                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
30                                                        // Both Comments and Pings are open ?>
31                                                        <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
32
33                                                <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
34                                                        // Only Pings are Open ?>
35                                                        <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
36
37                                                <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
38                                                        // Comments are open, Pings are not ?>
39                                                        <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?>
40
41                                                <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
42                                                        // Neither Comments, nor Pings are open ?>
43                                                        <?php _e('Both comments and pings are currently closed.', 'kubrick'); ?>
44
45                                                <?php } edit_post_link(__('Edit this entry.', 'kubrick'),'',''); ?>
46
47                                        </small>
48                                </p>
49
50                        </div>
51
52                </div>
53
54        <?php comments_template(); ?>
55
56        <?php endwhile; else: ?>
57
58                <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
59
60<?php endif; ?>
61
62        </div>
63
64<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.