Always show date of birth and birthday options in player lists
This commit is contained in:
@@ -193,22 +193,20 @@ class SportsPress_Birthdays {
|
|||||||
* Add more General Columns at Player Lists
|
* Add more General Columns at Player Lists
|
||||||
*/
|
*/
|
||||||
public static function columns( $selected ) {
|
public static function columns( $selected ) {
|
||||||
if ( 'yes' == get_option( 'sportspress_player_show_birthday', 'no' ) ) { ?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<label class="selectit">
|
<label class="selectit">
|
||||||
<input value="dob" type="checkbox" name="sp_columns[]" id="sp_columns_dob" <?php checked( in_array( 'dob', $selected ) ); ?>>
|
<input value="dob" type="checkbox" name="sp_columns[]" id="sp_columns_dob" <?php checked( in_array( 'dob', $selected ) ); ?>>
|
||||||
<?php _e( 'Date of Birth', 'sportspress' ); ?>
|
<?php _e( 'Date of Birth', 'sportspress' ); ?>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<li>
|
||||||
<?php if ( 'yes' == get_option( 'sportspress_player_show_age', 'no' ) ) { ?>
|
<label class="selectit">
|
||||||
<li>
|
<input value="age" type="checkbox" name="sp_columns[]" id="sp_columns_age" <?php checked( in_array( 'age', $selected ) ); ?>>
|
||||||
<label class="selectit">
|
<?php _e( 'Age', 'sportspress' ); ?>
|
||||||
<input value="age" type="checkbox" name="sp_columns[]" id="sp_columns_age" <?php checked( in_array( 'age', $selected ) ); ?>>
|
</label>
|
||||||
<?php _e( 'Age', 'sportspress' ); ?>
|
</li>
|
||||||
</label>
|
<?php
|
||||||
</li>
|
|
||||||
<?php }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user