<!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>[17717] trunk/wp-content/themes/twentyeleven: Twenty Eleven:
add support for Status and Quote formats, props iandstewart - see #17198</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17717">17717</a></dd>
<dt>Author</dt> <dd>lancewillett</dd>
<dt>Date</dt> <dd>2011-04-26 18:46:31 +0000 (Tue, 26 Apr 2011)</dd>
</dl>
<h3>Log Message</h3>
<pre>Twenty Eleven: add support for Status and Quote formats, props iandstewart - see <a href="http://trac.wordpress.org/ticket/17198">#17198</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentyelevenfunctionsphp">trunk/wp-content/themes/twentyeleven/functions.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenshowcasephp">trunk/wp-content/themes/twentyeleven/showcase.php</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenstylecss">trunk/wp-content/themes/twentyeleven/style.css</a></li>
<li><a href="#trunkwpcontentthemestwentyelevenwidgetsphp">trunk/wp-content/themes/twentyeleven/widgets.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentyelevenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/functions.php (17716 => 17717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/functions.php        2011-04-26 18:40:40 UTC (rev 17716)
+++ trunk/wp-content/themes/twentyeleven/functions.php        2011-04-26 18:46:31 UTC (rev 17717)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> /**
</span><span class="cx"> * Add support for an Aside Post Format
</span><span class="cx"> */
</span><del>-add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery' ) );
</del><ins>+add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote' ) );
</ins><span class="cx">
</span><span class="cx"> /**
</span><span class="cx"> * Add support for custom backgrounds
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenshowcasephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/showcase.php (17716 => 17717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/showcase.php        2011-04-26 18:40:40 UTC (rev 17716)
+++ trunk/wp-content/themes/twentyeleven/showcase.php        2011-04-26 18:46:31 UTC (rev 17717)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx">                                                 'tax_query' => array(
</span><span class="cx">                                                         array(
</span><span class="cx">                                                                 'taxonomy' => 'post_format',
</span><del>-                                                                'terms' => array( 'post-format-aside', 'post-format-link' ),
</del><ins>+                                                                'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ),
</ins><span class="cx">                                                                 'field' => 'slug',
</span><span class="cx">                                                                 'operator' => 'NOT IN',
</span><span class="cx">                                                         ),
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenstylecss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/style.css (17716 => 17717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/style.css        2011-04-26 18:40:40 UTC (rev 17716)
+++ trunk/wp-content/themes/twentyeleven/style.css        2011-04-26 18:46:31 UTC (rev 17717)
</span><span class="lines">@@ -796,7 +796,10 @@
</span><span class="cx">                 top: 80px;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* Aside */
</del><ins>+
+/* =Aside
+----------------------------------------------- */
+
</ins><span class="cx"> .format-aside .entry-title,
</span><span class="cx"> .format-aside .entry-header .comments-link {
</span><span class="cx">         display: none;
</span><span class="lines">@@ -811,7 +814,10 @@
</span><span class="cx">         padding: 1.625em 0 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* Link */
</del><ins>+
+/* =Link
+----------------------------------------------- */
+
</ins><span class="cx"> .format-link .entry-title,
</span><span class="cx"> .format-link .entry-header .comments-link {
</span><span class="cx">         display: none;
</span><span class="lines">@@ -826,14 +832,57 @@
</span><span class="cx">         padding: 1.625em 0 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* Gallery */
</del><ins>+
+/* =Gallery
+----------------------------------------------- */
+
</ins><span class="cx"> .format-gallery .gallery-thumb {
</span><span class="cx">         float: left;
</span><span class="cx">         display: block;
</span><span class="cx">         margin-right: 1.625em;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* error404 */
</del><ins>+
+/* =Status
+----------------------------------------------- */
+
+.format-status .entry-title,
+.format-status .entry-header .comments-link {
+        display: none;
+}
+.singular .format-status .entry-title {
+        display: block;
+}
+.format-status .entry-content {
+        padding: 0;
+}
+.singular .format-status .entry-content {
+        padding: 1.625em 0 0;
+}
+.format-status img.avatar {
+        -moz-border-radius: 3px;
+        border-radius: 3px;
+        -webkit-box-shadow: 0 1px 2px #ccc;
+        -moz-box-shadow: 0 1px 2px #ccc;
+        box-shadow: 0 1px 2px #ccc;
+        float: left;
+        margin: 4px 10px 1.625em 0;
+        padding: 0;
+}
+
+
+/* =Quote
+----------------------------------------------- */
+
+.format-quote blockquote {
+        color: #555;
+        font-size: 17px;
+        margin: 0;
+}
+
+
+/* =error404
+----------------------------------------------- */
</ins><span class="cx"> .error404 #main #searchform {
</span><span class="cx">         background: #f9f9f9;
</span><span class="cx">         border: 1px solid #ddd;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentyelevenwidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentyeleven/widgets.php (17716 => 17717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentyeleven/widgets.php        2011-04-26 18:40:40 UTC (rev 17716)
+++ trunk/wp-content/themes/twentyeleven/widgets.php        2011-04-26 18:46:31 UTC (rev 17717)
</span><span class="lines">@@ -12,7 +12,7 @@
</span><span class="cx">          * @return void
</span><span class="cx">          **/
</span><span class="cx">         function Twenty_Eleven_Ephemera_Widget() {
</span><del>-                $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside and Link posts', 'twentyeleven' ) );
</del><ins>+                $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ) );
</ins><span class="cx">                 $this->WP_Widget( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), $widget_ops );
</span><span class="cx">                 $this->alt_option_name = 'widget_twentyeleven_ephemera';
</span><span class="cx">
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">                         'tax_query' => array(
</span><span class="cx">                                 array(
</span><span class="cx">                                         'taxonomy' => 'post_format',
</span><del>-                                        'terms' => array( 'post-format-aside', 'post-format-link' ),
</del><ins>+                                        'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-status', 'post-format-quote' ),
</ins><span class="cx">                                         'field' => 'slug',
</span><span class="cx">                                         'operator' => 'IN',
</span><span class="cx">                                 ),
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx">                 <ol>
</span><span class="cx">                 <?php while ( $ephemera->have_posts() ) : $ephemera->the_post(); ?>
</span><span class="cx">
</span><del>-                        <?php if ( 'aside' == get_post_format( $post->ID ) ) : ?>
</del><ins>+                        <?php if ( 'link' != get_post_format( $post->ID ) ) : ?>
</ins><span class="cx">
</span><span class="cx">                         <li class="entry-title">
</span><span class="cx">                                 <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx">                                 </span>
</span><span class="cx">                         </li>
</span><span class="cx">
</span><del>-                        <?php elseif ( 'link' == get_post_format( $post->ID ) ) : ?>
</del><ins>+                        <?php else : ?>
</ins><span class="cx">
</span><span class="cx">                         <li class="entry-title">
</span><span class="cx">                                 <?php
</span></span></pre>
</div>
</div>
</body>
</html>