Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r4264 r3328  
    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">&nbsp;</div>
     
    1313        <div class="post" id="post-<?php the_ID(); ?>">
    1414            <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    15             <div class="entry">
     15            <div class="entrytext">
    1616                <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
    1717
    1818                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    19 
    20                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    21 
     19   
     20                <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
     21   
    2222                <p class="postmetadata alt">
    2323                    <small>
     
    3030                        and is filed under <?php the_category(', ') ?>.
    3131                        You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
    32 
     32                       
    3333                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3434                            // Both Comments and Pings are open ?>
    3535                            You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
    36 
     36                       
    3737                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3838                            // Only Pings are Open ?>
    3939                            Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
    40 
     40                       
    4141                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4242                            // Comments are open, Pings are not ?>
    4343                            You can skip to the end and leave a response. Pinging is currently not allowed.
    44 
     44           
    4545                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    4646                            // Neither Comments, nor Pings are open ?>
    47                             Both comments and pings are currently closed.
    48 
     47                            Both comments and pings are currently closed.           
     48                       
    4949                        <?php } edit_post_link('Edit this entry.','',''); ?>
    50 
     50                       
    5151                    </small>
    5252                </p>
    53 
     53   
    5454            </div>
    5555        </div>
    56 
     56       
    5757    <?php comments_template(); ?>
    58 
     58   
    5959    <?php endwhile; else: ?>
    60 
     60   
    6161        <p>Sorry, no attachments matched your criteria.</p>
    62 
     62   
    6363<?php endif; ?>
    64 
     64   
    6565    </div>
    6666
Note: See TracChangeset for help on using the changeset viewer.