<!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" />
<title>[17802] trunk/wp-content/themes/twentyeleven: Twenty Eleven updates and fixes, see #17198</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17802">17802</a></dd>
<dt>Author</dt> <dd>lancewillett</dd>
<dt>Date</dt> <dd>2011-05-04 22:54:50 +0000 (Wed, 04 May 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Twenty Eleven updates and fixes, see <a href="http://trac.wordpress.org/ticket/17198">#17198</a>

 * Add explanatory comments in all templates, following Twenty Ten's example
 * Stick with twentyeleven_ for prefixing filter names
 * Use post format content templates in search results
 * First pass at adding a template for adding a sidebar to pages
 * Add a featured post header to standard sticky posts
 * Style fixes: print media, comment styles for pages with sidebars, color of meta links on image post format</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyelevenarchivephp">trunk/wp-content/themes/twentyeleven/archive.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenauthorphp">trunk/wp-content/themes/twentyeleven/author.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencategoryphp">trunk/wp-content/themes/twentyeleven/category.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencommentsphp">trunk/wp-content/themes/twentyeleven/comments.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevencontentphp">trunk/wp-content/themes/twentyeleven/content.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenfooterphp">trunk/wp-content/themes/twentyeleven/footer.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenfunctionsphp">trunk/wp-content/themes/twentyeleven/functions.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenheaderphp">trunk/wp-content/themes/twentyeleven/header.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenimagephp">trunk/wp-content/themes/twentyeleven/image.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenincthemeoptionsphp">trunk/wp-content/themes/twentyeleven/inc/theme-options.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevensearchphp">trunk/wp-content/themes/twentyeleven/search.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenstylecss">trunk/wp-content/themes/twentyeleven/style.css</a></li>
<li><a href="#trunkwpcontentthemestwentyeleventagphp">trunk/wp-content/themes/twentyeleven/tag.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyelevensidebarfooterphp">trunk/wp-content/themes/twentyeleven/sidebar-footer.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevensidebarpagephp">trunk/wp-content/themes/twentyeleven/sidebar-page.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentyelevenarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/archive.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/archive.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/archive.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -17,7 +17,16 @@
</span><span class="cx">                 &lt;section id=&quot;primary&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-                                &lt;?php the_post(); ?&gt;
</del><ins>+                                &lt;?php
+                                        /* Queue the first post, that way we know
+                                         * what date we're dealing with (if that is the case).
+                                         *
+                                         * We reset this later so we can run the loop
+                                         * properly with a call to rewind_posts().
+                                         */
+                                        if ( have_posts() )
+                                                the_post();
+                                ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;header class=&quot;page-header&quot;&gt;
</span><span class="cx">                                         &lt;h1 class=&quot;page-title&quot;&gt;
</span><span class="lines">@@ -33,14 +42,26 @@
</span><span class="cx">                                         &lt;/h1&gt;
</span><span class="cx">                                 &lt;/header&gt;
</span><span class="cx"> 
</span><del>-                                &lt;?php rewind_posts(); ?&gt;
</del><ins>+                                &lt;?php
+                                        /* Since we called the_post() above, we need to
+                                         * rewind the loop back to the beginning that way
+                                         * we can run the loop properly, in full.
+                                         */
+                                        rewind_posts();
+                                ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php twentyeleven_content_nav( 'nav-above' ); ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php /* Start the Loop */ ?&gt;
</span><span class="cx">                                 &lt;?php while ( have_posts() ) : the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php get_template_part( 'content', get_post_format() ); ?&gt;
</del><ins>+                                        &lt;?php
+                                                /* Include the Post-Format-specific template for the content.
+                                                 * If you want to overload this in a child theme then include a file
+                                                 * called loop-___.php (where ___ is the Post Format name) and that will be used instead.
+                                                 */
+                                                get_template_part( 'content', get_post_format() );
+                                        ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenauthorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/author.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/author.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/author.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -12,13 +12,28 @@
</span><span class="cx">                 &lt;section id=&quot;primary&quot;&gt;
</span><span class="cx">                         &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
</span><span class="cx"> 
</span><del>-                                &lt;?php the_post(); ?&gt;
</del><ins>+                                &lt;?php
+                                        /* Queue the first post, that way we know
+                                         * what date we're dealing with (if that is the case).
+                                         *
+                                         * We reset this later so we can run the loop
+                                         * properly with a call to rewind_posts().
+                                         */
+                                        if ( have_posts() )
+                                                the_post();
+                                ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;header class=&quot;page-header&quot;&gt;
</span><span class="cx">                                         &lt;h1 class=&quot;page-title author&quot;&gt;&lt;?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '&lt;span class=&quot;vcard&quot;&gt;&lt;a class=&quot;url fn n&quot; href=&quot;' . get_author_posts_url( get_the_author_meta( &quot;ID&quot; ) ) . '&quot; title=&quot;' . esc_attr( get_the_author() ) . '&quot; rel=&quot;me&quot;&gt;' . get_the_author() . '&lt;/a&gt;&lt;/span&gt;' ); ?&gt;&lt;/h1&gt;
</span><span class="cx">                                 &lt;/header&gt;
</span><span class="cx"> 
</span><del>-                                &lt;?php rewind_posts(); ?&gt;
</del><ins>+                                &lt;?php
+                                        /* Since we called the_post() above, we need to
+                                         * rewind the loop back to the beginning that way
+                                         * we can run the loop properly, in full.
+                                         */
+                                        rewind_posts();
+                                ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php twentyeleven_content_nav( 'nav-above' ); ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -39,7 +54,13 @@
</span><span class="cx">                                 &lt;?php /* Start the Loop */ ?&gt;
</span><span class="cx">                                 &lt;?php while ( have_posts() ) : the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php get_template_part( 'content', get_post_format() ); ?&gt;
</del><ins>+                                        &lt;?php
+                                                /* Include the Post-Format-specific template for the content.
+                                                 * If you want to overload this in a child theme then include a file
+                                                 * called loop-___.php (where ___ is the Post Format name) and that will be used instead.
+                                                 */
+                                                get_template_part( 'content', get_post_format() );
+                                        ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencategoryphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/category.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/category.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/category.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -25,7 +25,13 @@
</span><span class="cx">                                 &lt;?php /* Start the Loop */ ?&gt;
</span><span class="cx">                                 &lt;?php while ( have_posts() ) : the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php get_template_part( 'content', get_post_format() ); ?&gt;
</del><ins>+                                        &lt;?php
+                                                /* Include the Post-Format-specific template for the content.
+                                                 * If you want to overload this in a child theme then include a file
+                                                 * called loop-___.php (where ___ is the Post Format name) and that will be used instead.
+                                                 */
+                                                get_template_part( 'content', get_post_format() );
+                                        ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/comments.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/comments.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/comments.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -16,7 +16,12 @@
</span><span class="cx">         &lt;?php if ( post_password_required() ) : ?&gt;
</span><span class="cx">                 &lt;div class=&quot;nopassword&quot;&gt;&lt;?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;&lt;!-- .comments --&gt;
</span><del>-        &lt;?php return;
</del><ins>+        &lt;?php
+                        /* Stop the rest of comments.php from being processed,
+                         * but don't kill the script entirely -- we still have
+                         * to fully load the template.
+                         */
+                        return;
</ins><span class="cx">                 endif;
</span><span class="cx">         ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -39,7 +44,15 @@
</span><span class="cx">                 &lt;?php endif; // check for comment navigation ?&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;ol class=&quot;commentlist&quot;&gt;
</span><del>-                        &lt;?php wp_list_comments( array( 'callback' =&gt; 'twentyeleven_comment' ) ); ?&gt;
</del><ins>+                        &lt;?php
+                                /* Loop through and list the comments. Tell wp_list_comments()
+                                 * to use twentyeleven_comment() to format the comments.
+                                 * If you want to overload this in a child theme then you can
+                                 * define twentyeleven_comment() and that will be used instead.
+                                 * See twentyeleven_comment() in twentyeleven/functions.php for more.
+                                 */
+                                wp_list_comments( array( 'callback' =&gt; 'twentyeleven_comment' ) );
+                        ?&gt;
</ins><span class="cx">                 &lt;/ol&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php if ( get_comment_pages_count() &gt; 1 &amp;&amp; get_option( 'page_comments' ) ) : // are there comments to navigate through ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevencontentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/content.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/content.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/content.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -10,7 +10,14 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</span><span class="cx">                 &lt;header class=&quot;entry-header&quot;&gt;
</span><ins>+                        &lt;?php if ( is_sticky() ) : ?&gt;
+                                &lt;hgroup&gt;
+                                        &lt;h1 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
+                                        &lt;h2 class=&quot;entry-format&quot;&gt;&lt;?php _e( 'Featured', 'twentyeleven' ); ?&gt;&lt;/h2&gt;
+                                &lt;/hgroup&gt;
+                        &lt;?php else : ?&gt;
</ins><span class="cx">                         &lt;h1 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
</span><ins>+                        &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;?php if ( 'post' == $post-&gt;post_type ) : ?&gt;
</span><span class="cx">                         &lt;div class=&quot;entry-meta&quot;&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/footer.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/footer.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/footer.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -14,28 +14,13 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;footer id=&quot;colophon&quot; role=&quot;contentinfo&quot;&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php if ( is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) || is_active_sidebar( 'sidebar-5' ) ) : ?&gt;
-                        &lt;div id=&quot;supplementary&quot; &lt;?php twentyeleven_footer_sidebar_class(); ?&gt;&gt;
-                                &lt;?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?&gt;
-                                &lt;div id=&quot;first&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
-                                        &lt;?php dynamic_sidebar( 'sidebar-3' ); ?&gt;
-                                &lt;/div&gt;&lt;!-- #first .widget-area --&gt;
-                                &lt;?php endif; ?&gt;
</del><ins>+                        &lt;?php
+                                /* A sidebar in the footer? Yep. You can can customize
+                                 * your footer with three columns of widgets.
+                                 */
+                                get_sidebar( 'footer' );
+                        ?&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?&gt;
-                                &lt;div id=&quot;second&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
-                                        &lt;?php dynamic_sidebar( 'sidebar-4' ); ?&gt;
-                                &lt;/div&gt;&lt;!-- #second .widget-area --&gt;
-                                &lt;?php endif; ?&gt;
-
-                                &lt;?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?&gt;
-                                &lt;div id=&quot;third&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
-                                        &lt;?php dynamic_sidebar( 'sidebar-5' ); ?&gt;
-                                &lt;/div&gt;&lt;!-- #third .widget-area --&gt;
-                                &lt;?php endif; ?&gt;
-                        &lt;/div&gt;&lt;!-- #supplementary --&gt;
-                        &lt;?php endif; ?&gt;
-
</del><span class="cx">                         &lt;div id=&quot;site-generator&quot;&gt;
</span><span class="cx">                                 &lt;a href=&quot;http://wordpress.org/&quot; rel=&quot;generator&quot;&gt;Proudly powered by WordPress&lt;/a&gt;&lt;span class=&quot;sep&quot;&gt; | &lt;/span&gt;&lt;?php printf( __( 'Theme: %1$s.', 'twentyeleven' ), 'Twenty Eleven' ); ?&gt;
</span><span class="cx">                         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/functions.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/functions.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/functions.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -353,7 +353,7 @@
</span><span class="cx">  * Add custom body classes
</span><span class="cx">  */
</span><span class="cx"> function twentyeleven_singular_class( $classes ) {
</span><del>-        if ( is_singular() &amp;&amp; ! is_home() &amp;&amp; ! is_page_template( 'showcase.php' ) )
</del><ins>+        if ( is_singular() &amp;&amp; ! is_home() &amp;&amp; ! is_page_template( 'showcase.php' ) &amp;&amp; ! is_page_template( 'sidebar-page.php' ) )
</ins><span class="cx">                 $classes[] = 'singular';
</span><span class="cx"> 
</span><span class="cx">         return $classes;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/header.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/header.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/header.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -47,13 +47,24 @@
</span><span class="cx">         ?&gt;&lt;/title&gt;
</span><span class="cx"> &lt;link rel=&quot;profile&quot; href=&quot;http://gmpg.org/xfn/11&quot; /&gt;
</span><span class="cx"> &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;&lt;?php bloginfo( 'stylesheet_url' ); ?&gt;&quot; /&gt;
</span><del>-&lt;?php if ( is_singular() &amp;&amp; get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?&gt;
</del><span class="cx"> &lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo( 'pingback_url' ); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;!--[if lt IE 9]&gt;
</span><span class="cx"> &lt;script src=&quot;&lt;?php echo get_template_directory_uri(); ?&gt;/js/html5.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;![endif]--&gt;
</span><ins>+&lt;?php
+        /* We add some JavaScript to pages with the comment form
+         * to support sites with threaded comments (when in use).
+         */
+        if ( is_singular() &amp;&amp; get_option( 'thread_comments' ) )
+                wp_enqueue_script( 'comment-reply' );
</ins><span class="cx"> 
</span><del>-&lt;?php wp_head(); ?&gt;
</del><ins>+        /* Always have wp_head() just before the closing &lt;/head&gt;
+         * tag of your theme, or you will break many plugins, which
+         * generally use this hook to add elements to &lt;head&gt; such
+         * as styles, scripts, and meta tags.
+         */
+        wp_head();
+?&gt;
</ins><span class="cx"> &lt;/head&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;body &lt;?php body_class(); ?&gt;&gt;
</span><span class="lines">@@ -100,8 +111,9 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;nav id=&quot;access&quot; role=&quot;navigation&quot;&gt;
</span><span class="cx">                                 &lt;h1 class=&quot;section-heading&quot;&gt;&lt;?php _e( 'Main menu', 'twentyeleven' ); ?&gt;&lt;/h1&gt;
</span><ins>+                                &lt;?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?&gt;
</ins><span class="cx">                                 &lt;div class=&quot;skip-link screen-reader-text&quot;&gt;&lt;a href=&quot;#content&quot; title=&quot;&lt;?php esc_attr_e( 'Skip to content', 'twentyeleven' ); ?&gt;&quot;&gt;&lt;?php _e( 'Skip to content', 'twentyeleven' ); ?&gt;&lt;/a&gt;&lt;/div&gt;
</span><del>-
</del><ins>+                                &lt;?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?&gt;
</ins><span class="cx">                                 &lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) ); ?&gt;
</span><span class="cx">                         &lt;/nav&gt;&lt;!-- #access --&gt;
</span><span class="cx">         &lt;/header&gt;&lt;!-- #branding --&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenimagephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/image.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/image.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/image.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">         }
</span><span class="cx"> ?&gt;
</span><span class="cx">                                                                 &lt;a href=&quot;&lt;?php echo $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( 'theme_attachment_size', 848 );
</del><ins>+                                                                $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );
</ins><span class="cx">                                                                 echo wp_get_attachment_image( $post-&gt;ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.
</span><span class="cx">                                                                 ?&gt;&lt;/a&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenincthemeoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/inc/theme-options.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/inc/theme-options.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/inc/theme-options.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -295,7 +295,8 @@
</span><span class="cx">                 .entry-title a:hover,
</span><span class="cx">                 .widget_twentyeleven_ephemera .comments-link a:hover,
</span><span class="cx">                 section.recent-posts .other-recent-posts a[rel=&quot;bookmark&quot;]:hover,
</span><del>-                section.recent-posts .other-recent-posts .comments-link a:hover {
</del><ins>+                section.recent-posts .other-recent-posts .comments-link a:hover,
+                .format-image footer.entry-meta a:hover {
</ins><span class="cx">                         color: &lt;?php echo $link_color; ?&gt;;
</span><span class="cx">                 }
</span><span class="cx">                 section.recent-posts .other-recent-posts .comments-link a:hover {
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevensearchphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/search.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/search.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/search.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -23,7 +23,13 @@
</span><span class="cx">                                 &lt;?php /* Start the Loop */ ?&gt;
</span><span class="cx">                                 &lt;?php while ( have_posts() ) : the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php get_template_part( 'content', 'search' ); ?&gt;
</del><ins>+                                        &lt;?php
+                                                /* Include the Post-Format-specific template for the content.
+                                                 * If you want to overload this in a child theme then include a file
+                                                 * called loop-___.php (where ___ is the Post Format name) and that will be used instead.
+                                                 */
+                                                get_template_part( 'content', get_post_format() );
+                                        ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevensidebarfooterphp"></a>
<div class="addfile"><h4>Added: trunk/wp-content/themes/twentyeleven/sidebar-footer.php (0 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/sidebar-footer.php                                (rev 0)
+++ trunk/wp-content/themes/twentyeleven/sidebar-footer.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;?php
+/**
+ * The Footer widget areas.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Eleven
+ * @since Twenty Eleven 1.0
+ */
+?&gt;
+
+&lt;?php
+        /* The footer widget area is triggered if any of the areas
+         * have widgets. So let's check that first.
+         *
+         * If none of the sidebars have widgets, then let's bail early.
+         */
+        if (   ! is_active_sidebar( 'sidebar-3'  )
+                &amp;&amp; ! is_active_sidebar( 'sidebar-4' )
+                &amp;&amp; ! is_active_sidebar( 'sidebar-5'  )
+        )
+                return;
+        // If we get this far, we have widgets. Let do this.
+?&gt;
+&lt;div id=&quot;supplementary&quot; &lt;?php twentyeleven_footer_sidebar_class(); ?&gt;&gt;
+        &lt;?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?&gt;
+        &lt;div id=&quot;first&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
+                &lt;?php dynamic_sidebar( 'sidebar-3' ); ?&gt;
+        &lt;/div&gt;&lt;!-- #first .widget-area --&gt;
+        &lt;?php endif; ?&gt;
+
+        &lt;?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?&gt;
+        &lt;div id=&quot;second&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
+                &lt;?php dynamic_sidebar( 'sidebar-4' ); ?&gt;
+        &lt;/div&gt;&lt;!-- #second .widget-area --&gt;
+        &lt;?php endif; ?&gt;
+
+        &lt;?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?&gt;
+        &lt;div id=&quot;third&quot; class=&quot;widget-area&quot; role=&quot;complementary&quot;&gt;
+                &lt;?php dynamic_sidebar( 'sidebar-5' ); ?&gt;
+        &lt;/div&gt;&lt;!-- #third .widget-area --&gt;
+        &lt;?php endif; ?&gt;
+&lt;/div&gt;&lt;!-- #supplementary --&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevensidebarpagephp"></a>
<div class="addfile"><h4>Added: trunk/wp-content/themes/twentyeleven/sidebar-page.php (0 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/sidebar-page.php                                (rev 0)
+++ trunk/wp-content/themes/twentyeleven/sidebar-page.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+&lt;?php
+/**
+ * Template Name: Sidebar Template
+ * Description: A Page Template that adds a sidebar to pages
+ *
+ * @package WordPress
+ * @subpackage Twenty Eleven
+ * @since Twenty Eleven 1.0
+ */
+
+get_header(); ?&gt;
+
+                &lt;div id=&quot;primary&quot;&gt;
+                        &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
+
+                                &lt;?php the_post(); ?&gt;
+
+                                &lt;?php get_template_part( 'content', 'page' ); ?&gt;
+
+                                &lt;?php comments_template( '', true ); ?&gt;
+
+                        &lt;/div&gt;&lt;!-- #content --&gt;
+                &lt;/div&gt;&lt;!-- #primary --&gt;
+
+&lt;?php get_sidebar(); ?&gt;
+&lt;?php get_footer(); ?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenstylecss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/style.css (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/style.css        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/style.css        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -1052,6 +1052,9 @@
</span><span class="cx"> .format-image .entry-meta span.comments-link {
</span><span class="cx">         display: block;
</span><span class="cx"> }
</span><ins>+.format-image footer.entry-meta a {
+        color: #444;
+}
</ins><span class="cx"> .format-image .wp-caption {
</span><span class="cx">         background: #111;
</span><span class="cx">         margin-bottom: 0;
</span><span class="lines">@@ -1779,6 +1782,18 @@
</span><span class="cx">         border-color: #d3d3d3;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/* sidebar-page.php comments */
+/* Make sure we have room for our comment avatars */
+.page-template-sidebar-page-php .commentlist &gt; li.comment,
+.page-template-sidebar-page-php.commentlist .pingback {
+        margin-left: 102px;
+        width: auto;
+}
+/* And a full-width comment form */
+.page-template-sidebar-page-php #respond {
+        width: auto;
+}
+
</ins><span class="cx"> /* Comment Form */
</span><span class="cx"> #respond {
</span><span class="cx">         background: #ddd;
</span><span class="lines">@@ -2114,7 +2129,7 @@
</span><span class="cx">         /* Talking avatars take up too much room at this size */
</span><span class="cx">         .commentlist &gt; li.comment,
</span><span class="cx">         .commentlist &gt; li.pingback {
</span><del>-                margin-left: 0;
</del><ins>+                margin-left: 0 !important;
</ins><span class="cx">         }
</span><span class="cx">         .commentlist .avatar {
</span><span class="cx">                 background: transparent;
</span><span class="lines">@@ -2146,9 +2161,7 @@
</span><span class="cx">                 font-size: 10pt;
</span><span class="cx">         }
</span><span class="cx">         footer.entry-meta a[rel=bookmark]:link:after,
</span><del>-        footer.entry-meta a[rel=bookmark]:visited:after,
-        #author-info a:link:after,
-        #author-info a:visited:after {
</del><ins>+        footer.entry-meta a[rel=bookmark]:visited:after {
</ins><span class="cx">                 content:&quot; [&quot; attr(href) &quot;] &quot;; /* Show URLs */
</span><span class="cx">         }        
</span><span class="cx">         #page {
</span><span class="lines">@@ -2200,6 +2213,9 @@
</span><span class="cx">         .singular .entry-header .entry-meta {
</span><span class="cx">             position: static;
</span><span class="cx">         }
</span><ins>+        .entry-meta .edit-link a {
+                display: none;
+        }
</ins><span class="cx">         #content nav {
</span><span class="cx">                 display: none;
</span><span class="cx">         }
</span><span class="lines">@@ -2270,6 +2286,16 @@
</span><span class="cx">         .commentlist li.comment .comment-content {
</span><span class="cx">             margin: 1.625em 0 0;
</span><span class="cx">         }
</span><ins>+        .commentlist .comment-edit-link {
+                display: none;
+        }
+        .commentlist &gt; li::before,
+        .commentlist &gt; li.bypostauthor::before {
+                content: '';
+        }
+        .commentlist .reply {
+                display: none;
+        }
</ins><span class="cx">         
</span><span class="cx">         /* Post author highlighting */
</span><span class="cx">         .commentlist &gt; li.bypostauthor {
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyeleventagphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/tag.php (17801 => 17802)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/tag.php        2011-05-04 20:22:44 UTC (rev 17801)
+++ trunk/wp-content/themes/twentyeleven/tag.php        2011-05-04 22:54:50 UTC (rev 17802)
</span><span class="lines">@@ -27,7 +27,13 @@
</span><span class="cx">                                 &lt;?php /* Start the Loop */ ?&gt;
</span><span class="cx">                                 &lt;?php while ( have_posts() ) : the_post(); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php get_template_part( 'content', get_post_format() ); ?&gt;
</del><ins>+                                        &lt;?php
+                                                /* Include the Post-Format-specific template for the content.
+                                                 * If you want to overload this in a child theme then include a file
+                                                 * called loop-___.php (where ___ is the Post Format name) and that will be used instead.
+                                                 */
+                                                get_template_part( 'content', get_post_format() );
+                                        ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>