Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (19 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

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

    r2591 r3517  
    22
    33    <div id="content" class="widecolumn">
    4                
     4
    55  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    6    
     6
    77        <div class="navigation">
    88            <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    99            <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    1010        </div>
    11    
     11
    1212        <div class="post" id="post-<?php the_ID(); ?>">
    1313            <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    14    
     14
    1515            <div class="entrytext">
    1616                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    17    
     17
    1818                <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    19    
     19
    2020                <p class="postmetadata alt">
    2121                    <small>
     
    2828                        and is filed under <?php the_category(', ') ?>.
    2929                        You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
    30                        
     30
    3131                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3232                            // Both Comments and Pings are open ?>
    3333                            You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
    34                        
     34
    3535                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3636                            // Only Pings are Open ?>
    3737                            Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
    38                        
     38
    3939                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4040                            // Comments are open, Pings are not ?>
    4141                            You can skip to the end and leave a response. Pinging is currently not allowed.
    42            
     42
    4343                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4444                            // Neither Comments, nor Pings are open ?>
    45                             Both comments and pings are currently closed.           
    46                        
     45                            Both comments and pings are currently closed.
     46
    4747                        <?php } edit_post_link('Edit this entry.','',''); ?>
    48                        
     48
    4949                    </small>
    5050                </p>
    51    
     51
    5252            </div>
    5353        </div>
    54        
     54
    5555    <?php comments_template(); ?>
    56    
     56
    5757    <?php endwhile; else: ?>
    58    
     58
    5959        <p>Sorry, no posts matched your criteria.</p>
    60    
     60
    6161<?php endif; ?>
    62    
     62
    6363    </div>
    6464
Note: See TracChangeset for help on using the changeset viewer.