<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[14532] trunk/wp-content/themes/twentyten/attachment.php:
  Twentyten attachment.php copy and i18n fixes.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14532">14532</a></dd>
<dt>Author</dt> <dd>nbachiyski</dd>
<dt>Date</dt> <dd>2010-05-10 05:11:11 +0000 (Mon, 10 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Twentyten attachment.php copy and i18n fixes. Props dimadin and zeo. See <a href="http://trac.wordpress.org/ticket/13198">#13198</a>
 * Removed the Post a comment link, since it's not present on any other single post page
 * The text and link to the full-size image weren't clear and hard to i18n. Changed to Full size is 3872 ?\195?\151 2592 pixel, where the size is the link
 * Whitespace fixes</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentytenattachmentphp">trunk/wp-content/themes/twentyten/attachment.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentytenattachmentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyten/attachment.php (14531 => 14532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyten/attachment.php        2010-05-10 04:51:57 UTC (rev 14531)
+++ trunk/wp-content/themes/twentyten/attachment.php        2010-05-10 05:11:11 UTC (rev 14532)
</span><span class="lines">@@ -22,24 +22,34 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;entry-meta&quot;&gt;
</span><span class="cx">                                                 &lt;?php
</span><del>-                                                        printf(__( '&lt;span class=&quot;meta-prep meta-prep-author&quot;&gt; By &lt;/span&gt; &lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s&lt;/a&gt;&lt;/span&gt;', 'twentyten'),
-                                                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                                                                sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
-                                                                get_the_author()
</del><ins>+                                                        printf(__('&lt;span class=&quot;%1$s&quot;&gt;By&lt;/span&gt; %2$s', 'twentyten'),
+                                                                'meta-prep meta-prep-author',
+                                                                sprintf( '&lt;span class=&quot;author vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s&lt;/a&gt;&lt;/span&gt;',
+                                                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
+                                                                        sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
+                                                                        get_the_author()
+                                                                )
</ins><span class="cx">                                                         );
</span><span class="cx">                                                 ?&gt;
</span><del>-                                                &lt;span class=&quot;meta-sep&quot;&gt; | &lt;/span&gt;
</del><ins>+                                                &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;
</ins><span class="cx">                                                 &lt;?php
</span><del>-                                                        printf( __( '&lt;span class=&quot;meta-prep meta-prep-entry-date&quot;&gt;Published &lt;/span&gt; &lt;span class=&quot;entry-date&quot;&gt;&lt;abbr class=&quot;published&quot; title=&quot;%1$s&quot;&gt;%2$s&lt;/abbr&gt;&lt;/span&gt;', 'twentyten'),
-                                                                esc_attr( get_the_time() ),
-                                                                get_the_date()
</del><ins>+                                                        printf( __('&lt;span class=&quot;%1$s&quot;&gt;Published&lt;/span&gt; %2$s', 'twentyten'),
+                                                                'meta-prep meta-prep-entry-date',
+                                                                sprintf( '&lt;span class=&quot;entry-date&quot;&gt;&lt;abbr class=&quot;published&quot; title=&quot;%1$s&quot;&gt;%2$s&lt;/abbr&gt;&lt;/span&gt;',
+                                                                        esc_attr( get_the_time() ),
+                                                                        get_the_date()
+                                                                )
</ins><span class="cx">                                                         );
</span><span class="cx">                                                         if ( wp_attachment_is_image() ) {
</span><ins>+                                                                echo ' &lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt; ';
</ins><span class="cx">                                                                 $size = getimagesize( wp_get_attachment_url() );
</span><del>-                                                                printf( __( ' at &lt;a href=&quot;%1$s&quot; title=&quot;Link to full-size image&quot;&gt;%2$s &amp;times; %3$s&lt;/a&gt;', 'twentyten'),
-                                                                        wp_get_attachment_url(),
-                                                                        $size[0],
-                                                                        $size[1]
</del><ins>+                                                                printf( __( 'Full size is %s pixels', 'twentyten'),
+                                                                        sprintf( '&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s &amp;times; %4$s&lt;/a&gt;',
+                                                                                wp_get_attachment_url(),
+                                                                                esc_attr( __('Link to full-size image', 'twentyten') ),
+                                                                                $size[0],
+                                                                                $size[1]
+                                                                        )
</ins><span class="cx">                                                                 );
</span><span class="cx">                                                         }                                                        
</span><span class="cx">                                                 ?&gt;
</span><span class="lines">@@ -50,7 +60,7 @@
</span><span class="cx">                                                 &lt;div class=&quot;entry-attachment&quot;&gt;
</span><span class="cx"> &lt;?php if ( wp_attachment_is_image() ) : ?&gt;
</span><span class="cx">                                                 &lt;p class=&quot;attachment&quot;&gt;&lt;a href=&quot;&lt;?php echo twentyten_get_next_attachment_url(); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_the_title() ); ?&gt;&quot; rel=&quot;attachment&quot;&gt;&lt;?php
</span><del>-                                                        $attachment_size = apply_filters( 'twentyten_attachment_size',  900 );
</del><ins>+                                                        $attachment_size = apply_filters( 'twentyten_attachment_size', 900 );
</ins><span class="cx">                                                         echo wp_get_attachment_image( $post-&gt;ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
</span><span class="cx">                                                 ?&gt;&lt;/a&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -62,9 +72,9 @@
</span><span class="cx">                                                 &lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_the_title() ); ?&gt;&quot; rel=&quot;attachment&quot;&gt;&lt;?php echo basename( get_permalink() ); ?&gt;&lt;/a&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx">                                                 &lt;/div&gt;
</span><del>-                                                &lt;div class=&quot;entry-caption&quot;&gt;&lt;?php if ( ! empty( $post-&gt;post_excerpt ) ) the_excerpt(); ?&gt;&lt;/div&gt;
</del><ins>+                                                &lt;div class=&quot;entry-caption&quot;&gt;&lt;?php if ( !empty( $post-&gt;post_excerpt ) ) the_excerpt(); ?&gt;&lt;/div&gt;
</ins><span class="cx"> 
</span><del>-&lt;?php the_content( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' )  ); ?&gt;
</del><ins>+&lt;?php the_content( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
</ins><span class="cx"> &lt;?php wp_link_pages( array( 'before' =&gt; '&lt;div class=&quot;page-link&quot;&gt;' . __( 'Pages:', 'twentyten' ), 'after' =&gt; '&lt;/div&gt;' ) ); ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-content --&gt;
</span><span class="lines">@@ -72,7 +82,7 @@
</span><span class="cx">                                         &lt;div class=&quot;entry-utility&quot;&gt;
</span><span class="cx">                                         &lt;?php
</span><span class="cx">                                                 $tag_list = get_the_tag_list();
</span><del>-                                                if ( '' != $tag_list ) {
</del><ins>+                                                if ( $tag_list ) {
</ins><span class="cx">                                                         $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the &lt;a href=&quot;%3$s&quot; title=&quot;Permalink to %4$s&quot; rel=&quot;bookmark&quot;&gt;permalink&lt;/a&gt;.', 'twentyten' );
</span><span class="cx">                                                 } else {
</span><span class="cx">                                                         $utility_text = __( 'This entry was posted in %1$s. Bookmark the &lt;a href=&quot;%3$s&quot; title=&quot;Permalink to %4$s&quot; rel=&quot;bookmark&quot;&gt;permalink&lt;/a&gt;.', 'twentyten' );
</span><span class="lines">@@ -86,16 +96,6 @@
</span><span class="cx">                                                         get_post_comments_feed_link()
</span><span class="cx">                                                 );
</span><span class="cx">                                         ?&gt;
</span><del>-
-&lt;?php if ( comments_open() &amp;&amp; pings_open() ) : // Comments and trackbacks open ?&gt;
-                                                &lt;?php printf( __( '&lt;a class=&quot;comment-link&quot; href=&quot;#respond&quot; title=&quot;Post a comment&quot;&gt;Post a comment&lt;/a&gt; or leave a trackback: &lt;a class=&quot;trackback-link&quot; href=&quot;%s&quot; title=&quot;Trackback URL for your post&quot; rel=&quot;trackback&quot;&gt;Trackback URL&lt;/a&gt;.', 'twentyten' ), get_trackback_url() ); ?&gt;
-&lt;?php elseif ( ! comments_open() &amp;&amp; pings_open() ) : // Only trackbacks open ?&gt;
-                                                &lt;?php printf( __( 'Comments are closed, but you can leave a trackback: &lt;a class=&quot;trackback-link&quot; href=&quot;%s&quot; title=&quot;Trackback URL for your post&quot; rel=&quot;trackback&quot;&gt;Trackback URL&lt;/a&gt;.', 'twentyten' ), get_trackback_url() ); ?&gt;
-&lt;?php elseif ( comments_open() &amp;&amp; ! pings_open() ) : // Only comments open ?&gt;
-                                                &lt;?php _e( 'Trackbacks are closed, but you can &lt;a class=&quot;comment-link&quot; href=&quot;#respond&quot; title=&quot;Post a comment&quot;&gt;post a comment&lt;/a&gt;.', 'twentyten' ); ?&gt;
-&lt;?php elseif ( ! comments_open() &amp;&amp; ! pings_open() ) : // Comments and trackbacks closed ?&gt;
-                                                &lt;?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?&gt;
-&lt;?php endif; ?&gt;
</del><span class="cx"> &lt;?php edit_post_link( __( 'Edit', 'twentyten' ), ' &lt;span class=&quot;edit-link&quot;&gt;', '&lt;/span&gt;' ); ?&gt;
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- .entry-utility --&gt;
</span><span class="cx">                                 &lt;/div&gt;&lt;!-- #post-&lt;?php the_ID(); ?&gt; --&gt;
</span></span></pre>
</div>
</div>

</body>
</html>