WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/26/2011 06:46:31 PM (10 years ago)
Author:
lancewillett
Message:

Twenty Eleven: add support for Status and Quote formats, props iandstewart - see #17198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/widgets.php

    r17714 r17717  
    1313     **/
    1414    function Twenty_Eleven_Ephemera_Widget() {
    15         $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside and Link posts', 'twentyeleven' ) );
     15        $widget_ops = array( 'classname' => 'widget_twentyeleven_ephemera', 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ) );
    1616        $this->WP_Widget( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), $widget_ops );
    1717        $this->alt_option_name = 'widget_twentyeleven_ephemera';
     
    6464                array(
    6565                    'taxonomy' => 'post_format',
    66                     'terms' => array( 'post-format-aside', 'post-format-link' ),
     66                    'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-status', 'post-format-quote' ),
    6767                    'field' => 'slug',
    6868                    'operator' => 'IN',
     
    8686        <?php while ( $ephemera->have_posts() ) : $ephemera->the_post(); ?>
    8787
    88             <?php if ( 'aside' == get_post_format( $post->ID ) ) : ?>
     88            <?php if ( 'link' != get_post_format( $post->ID ) ) : ?>
    8989
    9090            <li class="entry-title">
     
    9595            </li>
    9696
    97             <?php elseif ( 'link' == get_post_format( $post->ID ) ) : ?>
     97            <?php else : ?>
    9898
    9999            <li class="entry-title">
Note: See TracChangeset for help on using the changeset viewer.