Update custom post type format icons
This commit is contained in:
@@ -62,6 +62,7 @@ function sportspress_list_format_meta( $post ) {
|
||||
?>
|
||||
<div id="post-formats-select">
|
||||
<input type="radio" name="sp_format" class="post-format" id="post-format-list" value="list" <?php checked( true, ! $format || $format == 'list' ); ?>> <label for="post-format-list" class="post-format-icon post-format-list">List</label>
|
||||
<br><input type="radio" name="sp_format" class="post-format" id="post-format-positions" value="positions" <?php checked( 'positions', $format ); ?>> <label for="post-format-positions" class="post-format-icon post-format-positions">Positions</label>
|
||||
<br><input type="radio" name="sp_format" class="post-format" id="post-format-gallery" value="gallery" <?php checked( 'gallery', $format ); ?>> <label for="post-format-gallery" class="post-format-icon post-format-gallery">Gallery</label>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@ function sportspress_sponsor_post_init() {
|
||||
'supports' => array( 'title', 'editor', 'author', 'thumbnail' ),
|
||||
'register_meta_box_cb' => 'sportspress_sponsor_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_sponsor_slug', 'sponsor' ) ),
|
||||
'menu_icon' => 'dashicons-star-filled',
|
||||
'menu_icon' => 'dashicons-portfolio',
|
||||
'capability_type' => 'sp_sponsor'
|
||||
);
|
||||
register_post_type( 'sp_sponsor', $args );
|
||||
|
||||
Reference in New Issue
Block a user