$post_formats[0
][] =
$post_format;
} ?>
<div id="post-formats-select">
<fieldset>
<legend class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Post Formats'
);
?>
</legend>
<input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php
checked( $post_format, '0'
); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php
echo get_post_format_string( 'standard'
); ?></label>
<?php
foreach ( $post_formats[0
] as $format ) : ?>
<br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php
echo esc_attr( $format ); ?>" value="<?php
echo esc_attr( $format ); ?>" <?php
checked( $post_format,
$format ); ?> /> <label for="post-format-<?php
echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php
echo esc_attr( $format ); ?>"><?php
echo esc_html( get_post_format_string( $format ) ); ?></label>
<?php
endforeach; ?>
</fieldset>
</div>
<?php
endif;
endif;
}/**
* Displays post tags form fields.
*
* @since 2.6.0
*
* @todo Create taxonomy-agnostic wrapper for this.
*
* @param WP_Post $post Current post object.
* @param array $box {
* Tags meta box arguments.
*
* @type string $id Meta box 'id' attribute.
* @type string $title Meta box title.
* @type callable $callback Meta box display callback.
* @type array $args {
* Extra meta box arguments.
*
* @type string $taxonomy Taxonomy. Default 'post_tag'.
* }
* }
*/