1029 | | |
1030 | | <?php if ( post_type_supports( $screen->post_type, 'post-formats' ) && current_theme_supports( 'post-formats' ) ) : |
1031 | | $post_formats = get_theme_support( 'post-formats' ); |
1032 | | if ( isset( $post_formats[0] ) && is_array( $post_formats[0] ) ) : |
1033 | | $all_post_formats = get_post_format_strings(); |
1034 | | unset( $all_post_formats['standard'] ); ?> |
1035 | | <div class="inline-edit-group"> |
1036 | | <label class="alignleft" for="post_format"> |
1037 | | <span class="title"><?php _ex( 'Format', 'post format' ); ?></span> |
1038 | | <select name="post_format"> |
1039 | | <?php if ( $bulk ) : ?> |
1040 | | <option value="-1"><?php _e( '— No Change —' ); ?></option> |
1041 | | <?php endif; ?> |
1042 | | <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option> |
1043 | | <?php foreach ( $all_post_formats as $slug => $format ) : |
1044 | | $unsupported = ! in_array( $slug, $post_formats[0] ); |
1045 | | if ( $bulk && $unsupported ) |
1046 | | continue; |
1047 | | ?> |
1048 | | <option value="<?php echo esc_attr( $slug ); ?>"<?php if ( $unsupported ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option> |
1049 | | <?php endforeach; ?> |
1050 | | </select></label> |
1051 | | </div> |
1052 | | <?php endif; ?> |
1053 | | <?php endif; // post-formats ?> |
1054 | | |