XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 31, 2009, 12:22:47 PM (15 years ago)
Author:
toemon
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/xpress_default/single.php

    r141 r143  
    99        }        
    1010?> 
    11                 <div class="xpress-header-bar"> 
     11                <div id="xpress-header-bar"> 
    1212                        <div class="xpress-header-title"> 
    1313                                <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a> 
     
    3434 
    3535                <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> 
     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> 
    4242 
    4343                        <div class="xpress-post-entry"> 
    4444                                <?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  
     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(); ?>    
    8362                        </div> 
    8463                </div> 
    8564 
    86         <?php comments_template(); ?> 
     65         
    8766 
    8867        <?php endwhile; else: ?> 
Note: See TracChangeset for help on using the changeset viewer.