Use list markup in player list column groups
This commit is contained in:
@@ -21,20 +21,26 @@ class SP_Meta_Box_List_Columns {
|
|||||||
public static function output( $post ) {
|
public static function output( $post ) {
|
||||||
$column_groups = (array) get_post_meta( $post->ID, 'sp_column_group' );
|
$column_groups = (array) get_post_meta( $post->ID, 'sp_column_group' );
|
||||||
?>
|
?>
|
||||||
<div id="sp-column-group-select">
|
<ul id="sp-column-group-select">
|
||||||
<label class="selectit">
|
<li>
|
||||||
<input type="checkbox" name="sp_column_group[]" value="sp_performance" <?php checked( true, in_array( 'sp_performance', $column_groups ) ); ?>>
|
<label class="selectit">
|
||||||
<?php _e( 'Performance', 'sportspress' ); ?>
|
<input type="checkbox" name="sp_column_group[]" value="sp_performance" <?php checked( true, in_array( 'sp_performance', $column_groups ) ); ?>>
|
||||||
</label><br>
|
<?php _e( 'Performance', 'sportspress' ); ?>
|
||||||
<label class="selectit">
|
</label>
|
||||||
<input type="checkbox" name="sp_column_group[]" value="sp_metric" <?php checked( true, in_array( 'sp_metric', $column_groups ) ); ?>>
|
</li>
|
||||||
<?php _e( 'Metrics', 'sportspress' ); ?>
|
<li>
|
||||||
</label><br>
|
<label class="selectit">
|
||||||
<label class="selectit">
|
<input type="checkbox" name="sp_column_group[]" value="sp_metric" <?php checked( true, in_array( 'sp_metric', $column_groups ) ); ?>>
|
||||||
<input type="checkbox" name="sp_column_group[]" value="sp_statistic" <?php checked( true, in_array( 'sp_statistic', $column_groups ) ); ?>>
|
<?php _e( 'Metrics', 'sportspress' ); ?>
|
||||||
<?php _e( 'Statistics', 'sportspress' ); ?>
|
</label>
|
||||||
</label><br>
|
</li>
|
||||||
</div>
|
<li>
|
||||||
|
<label class="selectit">
|
||||||
|
<input type="checkbox" name="sp_column_group[]" value="sp_statistic" <?php checked( true, in_array( 'sp_statistic', $column_groups ) ); ?>>
|
||||||
|
<?php _e( 'Statistics', 'sportspress' ); ?>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user