| | 491 | |
| | 492 | <div id="formatdiv" class="postbox"> |
| | 493 | <div class="handlediv" title="<?php _e('Click to toggle'); ?>"> |
| | 494 | <br /> |
| | 495 | </div> |
| | 496 | <h3><?php _e('Format'); ?></h3> |
| | 497 | <div class="inside"> |
| | 498 | <div id="post-formats-select"> |
| | 499 | <?php |
| | 500 | $post_formats = get_theme_support( 'post-formats' ); |
| | 501 | if( is_array( $post_formats[0] ) ): |
| | 502 | ?> |
| | 503 | <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> |
| | 504 | <?php foreach( $post_formats[0] as $format ): ?> |
| | 505 | <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> |
| | 506 | <?php endforeach; ?> |
| | 507 | <br /> |
| | 508 | <?php endif; ?> |
| | 509 | </div> |
| | 510 | </div> |
| | 511 | </div> |