diff --git a/admin/hooks/restrict-manage-posts.php b/admin/hooks/restrict-manage-posts.php
index 270108c2..89bb7ccd 100644
--- a/admin/hooks/restrict-manage-posts.php
+++ b/admin/hooks/restrict-manage-posts.php
@@ -2,30 +2,30 @@
function sportspress_restrict_manage_posts() {
sportspress_highlight_admin_menu();
global $typenow, $wp_query;
- if ( in_array( $typenow, array( 'sp_event', 'sp_player', 'sp_staff', 'sp_table', 'sp_list' ) ) ):
- $selected = isset( $_REQUEST['sp_team'] ) ? $_REQUEST['sp_team'] : null;
- $args = array(
- 'show_option_none' => __( 'All Teams', 'sportspress' ),
- 'post_type' => 'sp_team',
- 'name' => 'sp_team',
- 'selected' => $selected
- );
- // wp_dropdown_pages( $args );
- endif;
if ( in_array( $typenow, array( 'sp_player' ) ) ):
$selected = isset( $_REQUEST['sp_position'] ) ? $_REQUEST['sp_position'] : null;
$args = array(
- 'show_option_all' => __( 'All Positions', 'sportspress' ),
+ 'show_option_all' => __( 'Show all positions', 'sportspress' ),
'taxonomy' => 'sp_position',
'name' => 'sp_position',
'selected' => $selected
);
sportspress_dropdown_taxonomies( $args );
endif;
+ if ( in_array( $typenow, array( 'sp_team', 'sp_event', 'sp_player', 'sp_staff', 'sp_table', 'sp_list' ) ) ):
+ $selected = isset( $_REQUEST['sp_league'] ) ? $_REQUEST['sp_league'] : null;
+ $args = array(
+ 'show_option_all' => __( 'Show all leagues', 'sportspress' ),
+ 'taxonomy' => 'sp_league',
+ 'name' => 'sp_league',
+ 'selected' => $selected
+ );
+ sportspress_dropdown_taxonomies( $args );
+ endif;
if ( in_array( $typenow, array( 'sp_team', 'sp_event', 'sp_player', 'sp_staff', 'sp_table', 'sp_list' ) ) ):
$selected = isset( $_REQUEST['sp_season'] ) ? $_REQUEST['sp_season'] : null;
$args = array(
- 'show_option_all' => __( 'All Seasons', 'sportspress' ),
+ 'show_option_all' => __( 'Show all seasons', 'sportspress' ),
'taxonomy' => 'sp_season',
'name' => 'sp_season',
'selected' => $selected
@@ -37,7 +37,7 @@ function sportspress_restrict_manage_posts() {
$args = array(
'post_type' => 'sp_team',
'name' => 'team',
- 'show_option_none' => __( 'All Teams', 'sportspress' ),
+ 'show_option_none' => __( 'Show all teams', 'sportspress' ),
'selected' => $selected,
'values' => 'ID',
);
diff --git a/admin/post-types/column.php b/admin/post-types/column.php
index 9e26a410..eb180d48 100644
--- a/admin/post-types/column.php
+++ b/admin/post-types/column.php
@@ -33,7 +33,7 @@ function sportspress_column_edit_columns() {
'title' => __( 'Label', 'sportspress' ),
'sp_key' => __( 'Key', 'sportspress' ),
'sp_equation' => __( 'Equation', 'sportspress' ),
- 'sp_precision' => __( 'Precision', 'sportspress' ),
+ 'sp_precision' => __( 'Rounding', 'sportspress' ),
'sp_order' => __( 'Sort Order', 'sportspress' ),
);
return $columns;
@@ -51,7 +51,7 @@ function sportspress_column_details_meta( $post ) {
$precision = get_post_meta( $post->ID, 'sp_precision', true );
// Defaults
- if ( $precision == '' ) $precision = 1;
+ if ( $precision == '' ) $precision = 0;
?>
@@ -65,9 +65,9 @@ function sportspress_column_details_meta( $post ) {
endforeach;
?>
-
+
-
+
diff --git a/admin/settings/tables.php b/admin/settings/tables.php
index f420dafc..f7c7ed27 100644
--- a/admin/settings/tables.php
+++ b/admin/settings/tables.php
@@ -15,7 +15,7 @@ $data = get_posts( $args );
|
|
|
- |
+ |
|
diff --git a/functions.php b/functions.php
index 103eb26c..16f91a66 100644
--- a/functions.php
+++ b/functions.php
@@ -566,12 +566,15 @@ if ( !function_exists( 'sportspress_equation_selector' ) ) {
$constants[$i] = $i;
endfor;
+ // Add 100 to constants
+ $constants[100] = 100;
+
// Add constants to options
$options[ __( 'Constants', 'sportspress' ) ] = (array) $constants;
?>