Make WordPress Core


Ignore:
Timestamp:
05/03/2010 07:16:47 PM (14 years ago)
Author:
iammattthomas
Message:

In Twenty Ten:

  • removed custom functions for listing tags, cats, or other custom taxonomy terms.
  • fixed up a couple of span tags meant to catch the text before tag and cat listings (for child themes)
  • made attachment pages full width with a filterable size for the image, 'twentyten_attachment_size' (for child themes)
  • removed "RSS for this post" in single.php.

clicking on attachment images in a gallery takes you to the next image, unless it's the last image in a gallery, in which case it points you back to the parent post.

  • added a link to the full-size image in the post meta

Props iandstewart.

File:
1 edited

Legend:

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

    r14037 r14384  
    3535                                get_the_date()
    3636                            );
     37                            if ( wp_attachment_is_image() ) {
     38                                $size = getimagesize( wp_get_attachment_url() );
     39                                printf( __( ' at <a href="%1$s" title="Link to full-size image">%2$s &times; %3$s</a>', 'twentyten'),
     40                                    wp_get_attachment_url(),
     41                                    $size[0],
     42                                    $size[1]
     43                                );
     44                            }                           
    3745                        ?>
    3846                        <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
     
    4250                        <div class="entry-attachment">
    4351<?php if ( wp_attachment_is_image() ) : ?>
    44                         <p class="attachment"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
    45                             echo wp_get_attachment_image( $post->ID, array( $content_width, $content_width ) ); // max $content_width wide or high.
     52                        <p class="attachment"><a href="<?php echo twentyten_get_next_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
     53                            $attachment_size = apply_filters( 'twentyten_attachment_size',  900 );
     54                            echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
    4655                        ?></a></p>
    4756
     
    6574                        $tag_list = get_the_tag_list();
    6675                        if ( '' != $tag_list ) {
    67                             $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );
     76                            $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    6877                        } else {
    69                             $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );
     78                            $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    7079                        }
    7180                        printf(
     
    97106        </div><!-- #container -->
    98107
    99 <?php get_sidebar(); ?>
    100108<?php get_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.