+ <?php if ( post_type_supports( $screen->post_type, 'post-formats' ) && current_theme_supports( 'post-formats' ) ) :
+ $post_formats = get_theme_support( 'post-formats' );
+ if ( isset( $post_formats[0] ) && is_array( $post_formats[0] ) ) :
+ $all_post_formats = get_post_format_strings(); ?>
+ <div class="inline-edit-group">
+ <label class="alignleft" for="post_format">
+ <span class="title"><?php _e( 'Post Format' ); ?></span>
+ <select name="post_format">
+ <?php if ( $bulk ) : ?>
+ <option value="-1"><?php _e( '— No Change —' ); ?></option>
+ <?php endif; ?>
+ <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option>
+ <?php foreach ( $all_post_formats as $slug => $format ):
+ if ( $slug != 'standard' ) : ?>
+ <option value="<?php echo esc_attr( $slug ); ?>"<?php if ( ! in_array( $slug, $post_formats[0] ) ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option>
+ <?php endif;
+ endforeach; ?>
+ </select></label>
+ </div>
+ <?php endif; ?>
+ <?php endif; // post-formats ?>
+