diff --git a/assets/css/admin.css b/assets/css/admin.css index 0ac2459a..0a92a1dd 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -155,14 +155,6 @@ text-align: right; } -.sp-admin-config-table .sp-visibility-icon { - color: #ddd; -} - -.sp-admin-config-table .sp-visibility-icon-visible { - color: #555; -} - .sportspress table.form-table .sp-color-option { max-width: 225px; } diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php index fd4c36d7..ae8147d3 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-performance-details.php @@ -29,9 +29,6 @@ class SP_Meta_Box_Performance_Details extends SP_Meta_Box_Config { } else { $readonly = false; } - - // Options - $visibility_options = apply_filters( 'sportspress_statistic_visibility_options', array( 'sp_event', 'sp_player' ) ); // Post Meta $section = get_post_meta( $post->ID, 'sp_section', true ); @@ -42,9 +39,9 @@ class SP_Meta_Box_Performance_Details extends SP_Meta_Box_Config { if ( '' === $format ) { $format = 'number'; } - $visibility = get_post_meta( $post->ID, 'sp_visibility', true ); - if ( ! is_array( $visibility ) ) { - $visibility = $visibility_options; + $visible = get_post_meta( $post->ID, 'sp_visible', true ); + if ( '' === $visible ) { + $visible = 1; } ?>
@@ -74,16 +71,23 @@ class SP_Meta_Box_Performance_Details extends SP_Meta_Box_Config { ?> -
-
+ + +
+
@@ -55,16 +52,23 @@ class SP_Meta_Box_Statistic_Details extends SP_Meta_Box_Config { ?>
--
+ + +
+post_name; ?>post_excerpt; ?>
post_excerpt; ?>