| 491 | |
| 492 | <?php if ( current_theme_supports( 'post-formats' ) ): ?> |
| 493 | <div id="formatdiv" class="postbox"> |
| 494 | <div class="handlediv" title="<?php _e('Click to toggle'); ?>"> |
| 495 | <br /> |
| 496 | </div> |
| 497 | <h3><?php _e('Format'); ?></h3> |
| 498 | <div class="inside"> |
| 499 | <div id="post-formats-select"> |
| 500 | <?php |
| 501 | $post_formats = get_theme_support( 'post-formats' ); |
| 502 | if( is_array( $post_formats[0] ) ): |
| 503 | ?> |
| 504 | <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" checked="checked" /> <label for="post-format-0"><?php _e('Standard'); ?></label> |
| 505 | <?php foreach( $post_formats[0] as $format ): ?> |
| 506 | <br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" /> <label for="post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label> |
| 507 | <?php endforeach; ?> |
| 508 | <br /> |
| 509 | <?php endif; ?> |
| 510 | </div> |
| 511 | </div> |
| 512 | </div> |
| 513 | <?php endif; ?> |