diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index 93c2c7a0..5a22283a 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -276,8 +276,9 @@ background: rgba(0, 0, 0, 0.02); } -/* Highlight */ -.sp-highlight { +/* Highlight & Heading */ +.sp-highlight, +.sp-heading { font-weight: bold; } diff --git a/includes/admin/post-types/class-sp-admin-cpt-event.php b/includes/admin/post-types/class-sp-admin-cpt-event.php index 40deaa9d..a7cf843e 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-event.php +++ b/includes/admin/post-types/class-sp-admin-cpt-event.php @@ -66,7 +66,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT { public function wp_insert_post_data( $data, $postarr ) { if ( $data['post_type'] == 'sp_event' && $data['post_title'] == '' ): - if ( 'teams' == get_option( 'sportspress_mode', 'teams' ) ) $post_type = 'sp_team'; + if ( 'team' == get_option( 'sportspress_mode', 'team' ) ) $post_type = 'sp_team'; else $post_type = 'sp_player'; $teams = sp_array_value( $postarr, $post_type, array() ); @@ -96,7 +96,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT { unset( $existing_columns['author'], $existing_columns['comments'] ); $columns = array_merge( array( 'cb' => '', - 'sp_format' => '', + 'sp_format' => '', 'title' => null, 'date' => __( 'Date', 'sportspress' ), 'sp_time' => __( 'Time', 'sportspress' ), @@ -121,7 +121,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT { $formats = new SP_Formats(); $event_formats = $formats->event; if ( array_key_exists( $format, $event_formats ) ): - echo ''; + echo ''; endif; break; case 'sp_time': @@ -162,7 +162,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT { $team_results = implode( ' | ', $team_results ); endif; - echo '' . ( $team_result == '' ? '-' : $team_result ) . ''; + echo '' . ( $team_result == '' ? '-' : $team_result ) . ''; echo ' '; echo $team->post_title; echo '
'; @@ -175,11 +175,6 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT { - - - - -

'', - 'sp_number' => '', + 'sp_number' => '', 'title' => null, 'sp_position' => __( 'Positions', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ), diff --git a/includes/admin/post-types/class-sp-admin-cpt-team.php b/includes/admin/post-types/class-sp-admin-cpt-team.php index 3d50be61..38164242 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-team.php +++ b/includes/admin/post-types/class-sp-admin-cpt-team.php @@ -60,7 +60,7 @@ class SP_Admin_CPT_Team extends SP_Admin_CPT { unset( $existing_columns['author'], $existing_columns['date'] ); $columns = array_merge( array( 'cb' => '', - 'sp_icon' => '', + 'sp_icon' => '', 'title' => null, 'sp_url' => __( 'URL', 'sportspress' ), 'sp_abbreviation' => __( 'Abbreviation', 'sportspress' ), diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php index 44ef7b59..f934d588 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-data.php @@ -149,7 +149,7 @@ class SP_Meta_Box_Calendar_Data { $main_results[] = $team_result; unset( $team_results['outcome'] ); $team_results = implode( ' | ', $team_results ); - echo '' . $team_result . ' '; + echo '' . $team_result . ' '; endif; echo $name . '
'; diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php index c7edd959..4adf9d03 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-teams.php @@ -53,7 +53,7 @@ class SP_Meta_Box_Event_Teams { sp_dropdown_taxonomies( $args ); ?>

- +

'sp_team[]', 'class' => 'sportspress-pages', 'show_option_none' => __( '— None —', 'sportspress' ), - 'show_option_all' => __( '— Individual —', 'sportspress' ), 'values' => 'ID', 'selected' => $team, ); @@ -88,7 +87,7 @@ class SP_Meta_Box_Event_Teams { * Save meta box data */ public static function save( $post_id, $post ) { - if ( 'teams' == get_option( 'sportspress_mode', 'teams' ) ) { + if ( 'team' == get_option( 'sportspress_mode', 'team' ) ) { sp_update_post_meta_recursive( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) ); } sp_update_post_meta_recursive( $post_id, 'sp_player', sp_array_value( $_POST, 'sp_player', array() ) ); diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php index 1683ee4c..b8613369 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php @@ -98,13 +98,12 @@ class SP_Meta_Box_Player_Statistics { - + 'sp_team', 'name' => 'sp_leagues[' . $league_id . '][' . $div_id . ']', 'show_option_none' => __( '— None —', 'sportspress' ), - 'show_option_all' => __( '— Individual —', 'sportspress' ), 'sort_order' => 'ASC', 'sort_column' => 'menu_order', 'selected' => $value, diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php index 4c3a274e..1a3b88c0 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php @@ -53,7 +53,7 @@ class SP_Meta_Box_Table_Data { - + $label ): ?>