diff --git a/wp-content/themes/twentyfourteen/content-audio.php b/wp-content/themes/twentyfourteen/content-audio.php new file mode 100644 index 0000000000..62e4965b6d --- /dev/null +++ b/wp-content/themes/twentyfourteen/content-audio.php @@ -0,0 +1,63 @@ + + +
> + + +
+ + + ', '' ); + else : + the_title( '

', '

' ); + endif; + ?> + + +
+ +
+ '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + + + +
diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index c2e075f59d..bbbf24c233 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -91,7 +91,7 @@ function twentyfourteen_setup() { * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( - 'aside', 'image', 'video', 'quote', 'link', 'gallery', + 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) ); /* diff --git a/wp-content/themes/twentyfourteen/inc/widgets.php b/wp-content/themes/twentyfourteen/inc/widgets.php index 7970e3b647..49be068b3b 100644 --- a/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/wp-content/themes/twentyfourteen/inc/widgets.php @@ -2,7 +2,7 @@ /** * Custom Widget for displaying specific post formats * - * Displays posts from Aside, Quote, Video, Image, Gallery, and Link formats. + * Displays posts from Aside, Quote, Video, Audio, Image, Gallery, and Link formats. * * @link http://codex.wordpress.org/Widgets_API#Developing_Widgets * @@ -20,7 +20,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { * * @var array */ - private $formats = array( 'aside', 'image', 'video', 'quote', 'link', 'gallery' ); + private $formats = array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery' ); /** * Pluralized post format strings. @@ -41,16 +41,17 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { public function __construct() { parent::__construct( 'widget_twentyfourteen_ephemera', __( 'Twenty Fourteen Ephemera', 'twentyfourteen' ), array( 'classname' => 'widget_twentyfourteen_ephemera', - 'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Image, Gallery, and Link posts', 'twentyfourteen' ), + 'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts', 'twentyfourteen' ), ) ); /* - * @todo http://core.trac.wordpress.org/ticket/23257 + * @todo http://core.trac.wordpress.org/ticket/23257: Add plural versions of Post Format strings */ $this->format_strings = array( 'aside' => __( 'Asides', 'twentyfourteen' ), 'image' => __( 'Images', 'twentyfourteen' ), 'video' => __( 'Videos', 'twentyfourteen' ), + 'audio' => __( 'Audio', 'twentyfourteen' ), 'quote' => __( 'Quotes', 'twentyfourteen' ), 'link' => __( 'Links', 'twentyfourteen' ), 'gallery' => __( 'Galleries', 'twentyfourteen' ), diff --git a/wp-content/themes/twentyfourteen/rtl.css b/wp-content/themes/twentyfourteen/rtl.css index f5b72cd36b..cb8c2bc4b1 100644 --- a/wp-content/themes/twentyfourteen/rtl.css +++ b/wp-content/themes/twentyfourteen/rtl.css @@ -442,6 +442,10 @@ td { margin: -1px 0 0 2px; } + .site-content .format-audio .post-format a:before { + margin: -1px 0 0 2px; + } + .site-content .format-image .post-format a:before { margin: -1px 0 0 3px; } diff --git a/wp-content/themes/twentyfourteen/style.css b/wp-content/themes/twentyfourteen/style.css index c2e7200f4b..3ac5a5a188 100644 --- a/wp-content/themes/twentyfourteen/style.css +++ b/wp-content/themes/twentyfourteen/style.css @@ -2575,6 +2575,10 @@ a.post-thumbnail:hover { content: "\f104"; } +.content-sidebar .widget_twentyfourteen_ephemera .audio.widget-title:before { + content: "\f109"; +} + .content-sidebar .widget_twentyfourteen_ephemera .image.widget-title:before { content: "\f473"; } @@ -2971,6 +2975,11 @@ a.post-thumbnail:hover { margin: -1px 2px 0 0; } + .site-content .format-audio .post-format a:before { + content: "\f109"; + margin: -1px 2px 0 0; + } + .site-content .format-image .post-format a:before { content: "\f473"; margin: -1px 3px 0 0; diff --git a/wp-content/themes/twentyfourteen/taxonomy-post_format.php b/wp-content/themes/twentyfourteen/taxonomy-post_format.php index b8c37dd7cd..fa7101978c 100644 --- a/wp-content/themes/twentyfourteen/taxonomy-post_format.php +++ b/wp-content/themes/twentyfourteen/taxonomy-post_format.php @@ -33,6 +33,9 @@ get_header(); ?> elseif ( is_tax( 'post_format', 'post-format-video' ) ) : _e( 'Videos', 'twentyfourteen' ); + elseif ( is_tax( 'post_format', 'post-format-audio' ) ) : + _e( 'Audio', 'twentyfourteen' ); + elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : _e( 'Quotes', 'twentyfourteen' );