<!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>[26020] trunk/src/wp-content/themes/twentyfourteen: Twenty Fourteen: add Audio post format support.</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 { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { 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://core.trac.wordpress.org/changeset/26020">26020</a></dd>
<dt>Author</dt> <dd>lancewillett</dd>
<dt>Date</dt> <dd>2013-11-05 21:51:03 +0000 (Tue, 05 Nov 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Twenty Fourteen: add Audio post format support. Props celloexpressions, closes <a href="http://core.trac.wordpress.org/ticket/25807">#25807</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentyfourteenfunctionsphp">trunk/src/wp-content/themes/twentyfourteen/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenincwidgetsphp">trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenrtlcss">trunk/src/wp-content/themes/twentyfourteen/rtl.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenstylecss">trunk/src/wp-content/themes/twentyfourteen/style.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteentaxonomypost_formatphp">trunk/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentyfourteencontentaudiophp">trunk/src/wp-content/themes/twentyfourteen/content-audio.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpcontentthemestwentyfourteencontentaudiophp"></a>
<div class="addfile"><h4>Added: trunk/src/wp-content/themes/twentyfourteen/content-audio.php (0 => 26020)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/content-audio.php                             (rev 0)
+++ trunk/src/wp-content/themes/twentyfourteen/content-audio.php        2013-11-05 21:51:03 UTC (rev 26020)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+<?php
+/**
+ * The template for displaying posts in the Audio post format
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+       <?php twentyfourteen_post_thumbnail(); ?>
+
+       <header class="entry-header">
+               <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+               <div class="entry-meta">
+                       <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
+               </div><!-- .entry-meta -->
+               <?php
+                       endif;
+
+                       if ( is_single() ) :
+                               the_title( '<h1 class="entry-title">', '</h1>' );
+                       else :
+                               the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
+                       endif;
+               ?>
+
+               <div class="entry-meta">
+                       <span class="post-format">
+                               <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'audio' ) ); ?>"><?php echo get_post_format_string( 'audio' ); ?></a>
+                       </span>
+
+                       <?php twentyfourteen_posted_on(); ?>
+
+                       <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
+                       <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
+                       <?php endif; ?>
+
+                       <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
+               </div><!-- .entry-meta -->
+       </header><!-- .entry-header -->
+
+       <div class="entry-content">
+               <?php
+                       the_content();
+                       wp_link_pages( array(
+                               'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
+                               'after'       => '</div>',
+                               'link_before' => '<span>',
+                               'link_after'  => '</span>',
+                       ) );
+               ?>
+       </div><!-- .entry-content -->
+
+       <?php if ( has_tag() ) : ?>
+       <footer class="entry-meta">
+               <span class="tag-links">
+                       <?php echo get_the_tag_list(); ?>
+               </span>
+       </footer><!-- .entry-meta -->
+       <?php endif; ?>
+</article><!-- #post-## -->
</ins><span class="cx">Property changes on: trunk/src/wp-content/themes/twentyfourteen/content-audio.php
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+native
</ins><span class="cx">\ No newline at end of property
</span><a id="trunksrcwpcontentthemestwentyfourteenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/functions.php (26019 => 26020)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/functions.php 2013-11-05 21:48:29 UTC (rev 26019)
+++ trunk/src/wp-content/themes/twentyfourteen/functions.php    2013-11-05 21:51:03 UTC (rev 26020)
</span><span class="lines">@@ -91,7 +91,7 @@
</span><span class="cx">   * See http://codex.wordpress.org/Post_Formats
</span><span class="cx">   */
</span><span class="cx">  add_theme_support( 'post-formats', array(
</span><del>-               'aside', 'image', 'video', 'quote', 'link', 'gallery',
</del><ins>+                'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',
</ins><span class="cx">   ) );
</span><span class="cx"> 
</span><span class="cx">  /*
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenincwidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php (26019 => 26020)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php       2013-11-05 21:48:29 UTC (rev 26019)
+++ trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php  2013-11-05 21:51:03 UTC (rev 26020)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Custom Widget for displaying specific post formats
</span><span class="cx">  *
</span><del>- * Displays posts from Aside, Quote, Video, Image, Gallery, and Link formats.
</del><ins>+ * Displays posts from Aside, Quote, Video, Audio, Image, Gallery, and Link formats.
</ins><span class="cx">  *
</span><span class="cx">  * @link http://codex.wordpress.org/Widgets_API#Developing_Widgets
</span><span class="cx">  *
</span><span class="lines">@@ -20,7 +20,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @var array
</span><span class="cx">   */
</span><del>-       private $formats = array( 'aside', 'image', 'video', 'quote', 'link', 'gallery' );
</del><ins>+        private $formats = array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery' );
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Pluralized post format strings.
</span><span class="lines">@@ -41,16 +41,17 @@
</span><span class="cx">  public function __construct() {
</span><span class="cx">          parent::__construct( 'widget_twentyfourteen_ephemera', __( 'Twenty Fourteen Ephemera', 'twentyfourteen' ), array(
</span><span class="cx">                  'classname'   => 'widget_twentyfourteen_ephemera',
</span><del>-                       'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Image, Gallery, and Link posts', 'twentyfourteen' ),
</del><ins>+                        'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts', 'twentyfourteen' ),
</ins><span class="cx">           ) );
</span><span class="cx"> 
</span><span class="cx">          /*
</span><del>-                * @todo http://core.trac.wordpress.org/ticket/23257
</del><ins>+                 * @todo http://core.trac.wordpress.org/ticket/23257: Add plural versions of Post Format strings
</ins><span class="cx">            */
</span><span class="cx">          $this->format_strings = array(
</span><span class="cx">                  'aside'   => __( 'Asides',    'twentyfourteen' ),
</span><span class="cx">                  'image'   => __( 'Images',    'twentyfourteen' ),
</span><span class="cx">                  'video'   => __( 'Videos',    'twentyfourteen' ),
</span><ins>+                       'audio'   => __( 'Audio',     'twentyfourteen' ),
</ins><span class="cx">                   'quote'   => __( 'Quotes',    'twentyfourteen' ),
</span><span class="cx">                  'link'    => __( 'Links',     'twentyfourteen' ),
</span><span class="cx">                  'gallery' => __( 'Galleries', 'twentyfourteen' ),
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenrtlcss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/rtl.css (26019 => 26020)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/rtl.css       2013-11-05 21:48:29 UTC (rev 26019)
+++ trunk/src/wp-content/themes/twentyfourteen/rtl.css  2013-11-05 21:51:03 UTC (rev 26020)
</span><span class="lines">@@ -442,6 +442,10 @@
</span><span class="cx">          margin: -1px 0 0 2px;
</span><span class="cx">  }
</span><span class="cx"> 
</span><ins>+       .site-content .format-audio .post-format a:before {
+               margin: -1px 0 0 2px;
+       }
+
</ins><span class="cx">   .site-content .format-image .post-format a:before {
</span><span class="cx">          margin: -1px 0 0 3px;
</span><span class="cx">  }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenstylecss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/style.css (26019 => 26020)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/style.css     2013-11-05 21:48:29 UTC (rev 26019)
+++ trunk/src/wp-content/themes/twentyfourteen/style.css        2013-11-05 21:51:03 UTC (rev 26020)
</span><span class="lines">@@ -2575,6 +2575,10 @@
</span><span class="cx">  content: "\f104";
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.content-sidebar .widget_twentyfourteen_ephemera .audio.widget-title:before {
+       content: "\f109";
+}
+
</ins><span class="cx"> .content-sidebar .widget_twentyfourteen_ephemera .image.widget-title:before {
</span><span class="cx">  content: "\f473";
</span><span class="cx"> }
</span><span class="lines">@@ -2971,6 +2975,11 @@
</span><span class="cx">          margin: -1px 2px 0 0;
</span><span class="cx">  }
</span><span class="cx"> 
</span><ins>+       .site-content .format-audio .post-format a:before {
+               content: "\f109";
+               margin: -1px 2px 0 0;
+       }
+
</ins><span class="cx">   .site-content .format-image .post-format a:before {
</span><span class="cx">          content: "\f473";
</span><span class="cx">          margin: -1px 3px 0 0;
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteentaxonomypost_formatphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php (26019 => 26020)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php      2013-11-05 21:48:29 UTC (rev 26019)
+++ trunk/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php 2013-11-05 21:51:03 UTC (rev 26020)
</span><span class="lines">@@ -33,6 +33,9 @@
</span><span class="cx">                                          elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
</span><span class="cx">                                                  _e( 'Videos', 'twentyfourteen' );
</span><span class="cx"> 
</span><ins>+                                               elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :
+                                                       _e( 'Audio', 'twentyfourteen' );
+
</ins><span class="cx">                                           elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
</span><span class="cx">                                                  _e( 'Quotes', 'twentyfourteen' );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>