From 9b5db5fbe73724429e8cabb609ae90493d0c8d82 Mon Sep 17 00:00:00 2001 From: savvasha Date: Fri, 11 May 2018 18:06:43 +0300 Subject: [PATCH 1/8] 1st commit for icon support to sp_statistic CPT --- .../admin/post-types/class-sp-admin-cpt-statistic.php | 4 ++++ .../admin/post-types/class-sp-admin-meta-boxes.php | 3 +++ includes/admin/views/html-admin-config.php | 11 +++++++++++ includes/class-sp-post-types.php | 3 +++ modules/sportspress-icons.php | 2 +- 5 files changed, 22 insertions(+), 1 deletion(-) diff --git a/includes/admin/post-types/class-sp-admin-cpt-statistic.php b/includes/admin/post-types/class-sp-admin-cpt-statistic.php index 1568ffa7..a94b0fac 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-statistic.php +++ b/includes/admin/post-types/class-sp-admin-cpt-statistic.php @@ -40,6 +40,7 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT { public function edit_columns( $existing_columns ) { $columns = array( 'cb' => '', + 'sp_icon' => __( 'Icon', 'sportspress' ), 'title' => __( 'Label', 'sportspress' ), 'sp_key' => __( 'Key', 'sportspress' ), 'sp_equation' => __( 'Equation', 'sportspress' ), @@ -55,6 +56,9 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT { */ public function custom_columns( $column, $post_id ) { switch ( $column ): + case 'sp_icon': + echo has_post_thumbnail( $post_id ) ? edit_post_link( get_the_post_thumbnail( $post_id, 'sportspress-fit-mini' ), '', '', $post_id ) : ''; + break; case 'sp_key': global $post; echo $post->post_name; diff --git a/includes/admin/post-types/class-sp-admin-meta-boxes.php b/includes/admin/post-types/class-sp-admin-meta-boxes.php index 56bb893b..c4b69203 100644 --- a/includes/admin/post-types/class-sp-admin-meta-boxes.php +++ b/includes/admin/post-types/class-sp-admin-meta-boxes.php @@ -303,6 +303,9 @@ class SP_Admin_Meta_Boxes { remove_meta_box( 'postimagediv', 'sp_performance', 'side' ); add_meta_box( 'postimagediv', __( 'Icon', 'sportspress' ), 'post_thumbnail_meta_box', 'sp_performance', 'side', 'low' ); + + remove_meta_box( 'postimagediv', 'sp_statistic', 'side' ); + add_meta_box( 'postimagediv', __( 'Icon', 'sportspress' ), 'post_thumbnail_meta_box', 'sp_statistic', 'side', 'low' ); } /** diff --git a/includes/admin/views/html-admin-config.php b/includes/admin/views/html-admin-config.php index 8b90f05a..0f5fb3c8 100644 --- a/includes/admin/views/html-admin-config.php +++ b/includes/admin/views/html-admin-config.php @@ -371,6 +371,7 @@ $columns = get_option( 'sportspress_player_columns', 'auto' ); + @@ -391,6 +392,16 @@ $columns = get_option( 'sportspress_player_columns', 'auto' ); ?> > post_title; ?> + + ID ) ) + $icon = get_the_post_thumbnail( $row->ID, 'sportspress-fit-mini' ); + else + $icon = ' '; + + echo apply_filters( 'sportspress_performance_icon', $icon, $row->ID ); + ?> + ID ); ?> ID ); ?> ID ); ?> diff --git a/includes/class-sp-post-types.php b/includes/class-sp-post-types.php index c2e78030..c2e2519d 100644 --- a/includes/class-sp-post-types.php +++ b/includes/class-sp-post-types.php @@ -392,6 +392,9 @@ class SP_Post_types { 'search_items' => __( 'Search', 'sportspress' ), 'not_found' => __( 'No results found.', 'sportspress' ), 'not_found_in_trash' => __( 'No results found.', 'sportspress' ), + 'set_featured_image' => __( 'Select Icon', 'sportspress' ), + 'remove_featured_image' => __( 'Remove icon', 'sportspress' ), + 'use_featured_image' => __( 'Add icon', 'sportspress' ), ), 'public' => false, 'show_ui' => true, diff --git a/modules/sportspress-icons.php b/modules/sportspress-icons.php index d3d40351..d200b997 100644 --- a/modules/sportspress-icons.php +++ b/modules/sportspress-icons.php @@ -143,7 +143,7 @@ class SportsPress_Icons { // Bypass if not performance post type $post_type = get_post_type( $id ); - if ( 'sp_performance' !== $post_type ) return $content; + if ( 'sp_performance' !== $post_type && 'sp_statistic' !== $post_type ) return $content; // Detect if image uploaded $is_uploaded = isset( $_POST['thumbnail_id'] ); From ed70d8babe70855f1bb60f27c8d20a2719a9db49 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 12 May 2018 15:59:25 +1000 Subject: [PATCH 2/8] Save statistic icon --- modules/sportspress-icons.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sportspress-icons.php b/modules/sportspress-icons.php index d200b997..f365c5d4 100644 --- a/modules/sportspress-icons.php +++ b/modules/sportspress-icons.php @@ -41,6 +41,7 @@ class SportsPress_Icons { add_filter( 'sportspress_event_performance_icons', array( $this, 'replace_icons' ), 10, 3 ); add_filter( 'admin_post_thumbnail_html', array( $this, 'admin_post_thumbnail_html' ), 10, 2 ); add_action( 'sportspress_process_sp_performance_meta', array( $this, 'save' ), 10, 2 ); + add_action( 'sportspress_process_sp_statistic_meta', array( $this, 'save' ), 10, 2 ); } /** From d1e147178e84be3cd3bd81d16813caef50e73a4d Mon Sep 17 00:00:00 2001 From: savvasha Date: Mon, 14 May 2018 19:35:05 +0300 Subject: [PATCH 3/8] Add support of Player Performance and Player statistic icons to Player List template --- .../settings/class-sp-settings-players.php | 11 ++++++ includes/class-sp-player-list.php | 35 +++++++++++++++---- templates/player-list.php | 10 ++++-- 3 files changed, 47 insertions(+), 9 deletions(-) diff --git a/includes/admin/settings/class-sp-settings-players.php b/includes/admin/settings/class-sp-settings-players.php index c7a918e0..478e394e 100644 --- a/includes/admin/settings/class-sp-settings-players.php +++ b/includes/admin/settings/class-sp-settings-players.php @@ -148,6 +148,17 @@ class SP_Settings_Players extends SP_Settings_Page { 'manual' => __( 'Manual', 'sportspress' ), ), ), + + array( + 'title' => __( 'Mode', 'sportspress' ), + 'id' => 'sportspress_player_statistics_mode', + 'default' => 'values', + 'type' => 'radio', + 'options' => array( + 'values' => __( 'Values', 'sportspress' ), + 'icons' => __( 'Icons', 'sportspress' ), + ), + ), array( 'title' => __( 'Categories', 'sportspress' ), diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index b66ba107..fe5fea27 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -213,8 +213,19 @@ class SP_Player_List extends SP_Secondary_Post { // Add precision to object $stat->precision = sp_array_value( sp_array_value( $meta, 'sp_precision', array() ), 0, 0 ) + 0; - // Add column name to columns - $columns[ $stat->post_name ] = $stat->post_title; + // Add column icons to columns were is available + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' && ( $stat->post_type == 'sp_performance' || $stat->post_type == 'sp_statistic' ) ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $stat->ID, 1 ); + if ( $icon != '' ) { + $columns[ $stat->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $stat->ID, 1 ); + }else{ + $columns[ $stat->post_name ] = $stat->post_title; + } + }else{ + $columns[ $stat->post_name ] = $stat->post_title; + } + // Add columns titles for using with data-label + $columns_title[ $stat->post_name ] = $stat->post_title; // Add format $format = get_post_meta( $stat->ID, 'sp_format', true ); @@ -669,16 +680,20 @@ class SP_Player_List extends SP_Secondary_Post { foreach( $this->columns as $key ): if ( $key == 'number' ): $labels[ $key ] = '#'; + $labels_title[ $key ] = '#'; elseif ( $key == 'team' ): $labels[ $key ] = __( 'Team', 'sportspress' ); + $labels_title[ $key ] = __( 'Team', 'sportspress' ); elseif ( $key == 'position' ): $labels[ $key ] = __( 'Position', 'sportspress' ); + $labels_title[ $key ] = __( 'Position', 'sportspress' ); elseif ( array_key_exists( $key, $columns ) ): $labels[ $key ] = $columns[ $key ]; + $labels_title[ $key ] = $columns_title[ $key ]; endif; endforeach; - return array( $labels, $data, $placeholders, $merged, $orderby ); + return array( $labels, $labels_title, $data, $placeholders, $merged, $orderby ); else: // Convert to time notation @@ -716,10 +731,18 @@ class SP_Player_List extends SP_Secondary_Post { $labels = array(); if ( in_array( 'number', $this->columns ) ) $labels['number'] = '#'; $labels['name'] = __( 'Player', 'sportspress' ); - if ( in_array( 'team', $this->columns ) ) $labels['team'] = __( 'Team', 'sportspress' ); - if ( in_array( 'position', $this->columns ) ) $labels['position'] = __( 'Position', 'sportspress' ); + $labels_title['name'] = __( 'Player', 'sportspress' ); + if ( in_array( 'team', $this->columns ) ) { + $labels['team'] = __( 'Team', 'sportspress' ); + $labels_title['team'] = __( 'Team', 'sportspress' ); + } + if ( in_array( 'position', $this->columns ) ) { + $labels['position'] = __( 'Position', 'sportspress' ); + $labels_title['position'] = __( 'Position', 'sportspress' ); + } - $merged[0] = array_merge( $labels, $columns ); + $merged['head'] = array_merge( $labels, $columns ); + $merged[0] = array_merge( $labels, $columns_title ); return $merged; endif; } diff --git a/templates/player-list.php b/templates/player-list.php index 723aa263..900678fd 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -53,17 +53,21 @@ if ( isset( $columns ) && null !== $columns ): endif; $data = $list->data(); -// The first row should be column labels +// The first row should be data-label labels $labels = $data[0]; +// The 'head' row should be column labels +$labels_head = $data['head']; + //Create a unique identifier based on the current time in microseconds $identifier = uniqid( 'playerlist_' ); // If responsive tables are enabled then load the inline css code if ( true == $responsive ){ //sportspress_responsive_tables_css( $identifier ); } -// Remove the first row to leave us with the actual data +// Remove the first row and 'head' row to leave us with the actual data unset( $data[0] ); +unset( $data['head'] ); if ( $grouping === null || $grouping === 'default' ): $grouping = $list->grouping; @@ -223,7 +227,7 @@ foreach ( $groups as $group ): endif; endif; - foreach( $labels as $key => $label ): + foreach( $labels_head as $key => $label ): if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) ) $output .= ''. $label . ''; endforeach; From 4f33f8543e8757b3df803ca359b6ff81586c51f8 Mon Sep 17 00:00:00 2001 From: savvasha Date: Tue, 15 May 2018 17:47:32 +0300 Subject: [PATCH 4/8] Fix false positives labels and warning about undefined variable --- includes/class-sp-player-list.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index fe5fea27..fb3da300 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -677,6 +677,7 @@ class SP_Player_List extends SP_Secondary_Post { endif; $labels = array(); + $labels_title = array(); foreach( $this->columns as $key ): if ( $key == 'number' ): $labels[ $key ] = '#'; @@ -725,20 +726,18 @@ class SP_Player_List extends SP_Secondary_Post { foreach ( $columns as $key => $label ): if ( ! in_array( $key, $this->columns ) ): unset( $columns[ $key ] ); + unset( $columns_title[ $key ] ); endif; endforeach; $labels = array(); if ( in_array( 'number', $this->columns ) ) $labels['number'] = '#'; $labels['name'] = __( 'Player', 'sportspress' ); - $labels_title['name'] = __( 'Player', 'sportspress' ); if ( in_array( 'team', $this->columns ) ) { $labels['team'] = __( 'Team', 'sportspress' ); - $labels_title['team'] = __( 'Team', 'sportspress' ); } if ( in_array( 'position', $this->columns ) ) { $labels['position'] = __( 'Position', 'sportspress' ); - $labels_title['position'] = __( 'Position', 'sportspress' ); } $merged['head'] = array_merge( $labels, $columns ); From 01f2ffffcae830d19a8b1271478a6f3664a91918 Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 16 May 2018 14:31:54 +0300 Subject: [PATCH 5/8] Re arrange thead and tbody sections --- templates/player-list.php | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/templates/player-list.php b/templates/player-list.php index 900678fd..e813c111 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -126,6 +126,23 @@ foreach ( $groups as $group ): if ( intval( $number ) > 0 ) $limit = $number; + $thead = '' . ''; + + if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ): + if ( in_array( $orderby, array( 'number', 'name' ) ) ): + $thead .= '#'; + else: + $thead .= '' . __( 'Rank', 'sportspress' ) . ''; + endif; + endif; + + foreach( $labels_head as $key => $label ): + if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) ) + $thead .= ''. $label . ''; + endforeach; + + $thead .= '' . ''; + $tbody = ''; foreach( $data as $player_id => $row ): if ( empty( $group->term_id ) || has_term( $group->term_id, 'sp_position', $player_id ) ): @@ -217,22 +234,9 @@ foreach ( $groups as $group ): endif; $output .= '
' . - '' . '' . ''; - - if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ): - if ( in_array( $orderby, array( 'number', 'name' ) ) ): - $output .= ''; - else: - $output .= ''; - endif; - endif; - - foreach( $labels_head as $key => $label ): - if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) ) - $output .= ''; - endforeach; - - $output .= '' . '' . ''; + '
#' . __( 'Rank', 'sportspress' ) . ''. $label . '
'; + + $output .= $thead . ''; $output .= $tbody; From 379fbf26bf52221b41c3bef1b63ad77e5f14ed3f Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 16 May 2018 20:26:52 +0300 Subject: [PATCH 6/8] Add support of Player Performance and Player statistic icons to Player Profile template and simplify the loop logic --- includes/class-sp-player-list.php | 13 +------ includes/class-sp-player.php | 64 ++++++++++++++++++++++++++++--- templates/player-list.php | 12 +++--- 3 files changed, 66 insertions(+), 23 deletions(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 38d50c71..42343e45 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -224,8 +224,6 @@ class SP_Player_List extends SP_Secondary_Post { }else{ $columns[ $stat->post_name ] = $stat->post_title; } - // Add columns titles for using with data-label - $columns_title[ $stat->post_name ] = $stat->post_title; // Add format $format = get_post_meta( $stat->ID, 'sp_format', true ); @@ -677,24 +675,19 @@ class SP_Player_List extends SP_Secondary_Post { endif; $labels = array(); - $labels_title = array(); foreach( $this->columns as $key ): if ( $key == 'number' ): $labels[ $key ] = '#'; - $labels_title[ $key ] = '#'; elseif ( $key == 'team' ): $labels[ $key ] = __( 'Team', 'sportspress' ); - $labels_title[ $key ] = __( 'Team', 'sportspress' ); elseif ( $key == 'position' ): $labels[ $key ] = __( 'Position', 'sportspress' ); - $labels_title[ $key ] = __( 'Position', 'sportspress' ); elseif ( array_key_exists( $key, $columns ) ): $labels[ $key ] = $columns[ $key ]; - $labels_title[ $key ] = $columns_title[ $key ]; endif; endforeach; - return array( $labels, $labels_title, $data, $placeholders, $merged, $orderby ); + return array( $labels, $data, $placeholders, $merged, $orderby ); else: // Convert to time notation @@ -726,7 +719,6 @@ class SP_Player_List extends SP_Secondary_Post { foreach ( $columns as $key => $label ): if ( ! in_array( $key, $this->columns ) ): unset( $columns[ $key ] ); - unset( $columns_title[ $key ] ); endif; endforeach; @@ -740,8 +732,7 @@ class SP_Player_List extends SP_Secondary_Post { $labels['position'] = __( 'Position', 'sportspress' ); } - $merged['head'] = array_merge( $labels, $columns ); - $merged[0] = array_merge( $labels, $columns_title ); + $merged[0] = array_merge( $labels, $columns ); return $merged; endif; } diff --git a/includes/class-sp-player.php b/includes/class-sp-player.php index 5ecafa73..943eff7e 100644 --- a/includes/class-sp-player.php +++ b/includes/class-sp-player.php @@ -184,8 +184,17 @@ class SP_Player extends SP_Custom_Post { foreach ( $posts as $post ): if ( -1 === $section ) { - $performance_labels[ $post->post_name ] = $post->post_title; - } else { + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + if ( $icon != '' ) { + $performance_labels[ $post->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + }else{ + $performance_labels[ $post->post_name ] = $post->post_title; + } + }else{ + $performance_labels[ $post->post_name ] = $post->post_title; + } + }else{ $post_section = get_post_meta( $post->ID, 'sp_section', true ); if ( '' === $post_section ) { @@ -193,7 +202,16 @@ class SP_Player extends SP_Custom_Post { } if ( $section == $post_section || -1 == $post_section ) { + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + if ( $icon != '' ) { + $performance_labels[ $post->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + }else{ + $performance_labels[ $post->post_name ] = $post->post_title; + } + }else{ $performance_labels[ $post->post_name ] = $post->post_title; + } } } @@ -566,7 +584,16 @@ class SP_Player extends SP_Custom_Post { foreach ( $posts as $post ): if ( -1 === $section ) { - $stats[ $post->post_name ] = $post->post_title; + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + if ( $icon != '' ) { + $stats[ $post->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + }else{ + $stats[ $post->post_name ] = $post->post_title; + } + }else{ + $stats[ $post->post_name ] = $post->post_title; + } } else { $post_section = get_post_meta( $post->ID, 'sp_section', true ); @@ -577,16 +604,43 @@ class SP_Player extends SP_Custom_Post { if ( $admin ) { if ( 1 == $section ) { if ( 1 == $post_section ) { - $stats[ $post->post_name ] = $post->post_title; + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + if ( $icon != '' ) { + $stats[ $post->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + } else { + $stats[ $post->post_name ] = $post->post_title; + } + } else { + $stats[ $post->post_name ] = $post->post_title; + } } } else { if ( 1 != $post_section ) { - $stats[ $post->post_name ] = $post->post_title; + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + if ( $icon != '' ) { + $stats[ $post->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + } else { + $stats[ $post->post_name ] = $post->post_title; + } + } else { + $stats[ $post->post_name ] = $post->post_title; + } } } } elseif ( $section == $post_section || -1 == $post_section ) { + if ( get_option( 'sportspress_player_statistics_mode', 'values' ) == 'icons' ) { + $icon = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + if ( $icon != '' ) { + $stats[ $post->post_name ] = apply_filters( 'sportspress_event_performance_icons', '', $post->ID, 1 ); + }else{ + $stats[ $post->post_name ] = $post->post_title; + } + }else{ $stats[ $post->post_name ] = $post->post_title; } + } } endforeach; diff --git a/templates/player-list.php b/templates/player-list.php index e813c111..3a839a64 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -53,12 +53,9 @@ if ( isset( $columns ) && null !== $columns ): endif; $data = $list->data(); -// The first row should be data-label labels +// The first row should be labels $labels = $data[0]; -// The 'head' row should be column labels -$labels_head = $data['head']; - //Create a unique identifier based on the current time in microseconds $identifier = uniqid( 'playerlist_' ); // If responsive tables are enabled then load the inline css code @@ -67,7 +64,6 @@ if ( true == $responsive ){ } // Remove the first row and 'head' row to leave us with the actual data unset( $data[0] ); -unset( $data['head'] ); if ( $grouping === null || $grouping === 'default' ): $grouping = $list->grouping; @@ -136,9 +132,11 @@ foreach ( $groups as $group ): endif; endif; - foreach( $labels_head as $key => $label ): + foreach( $labels as $key => $label ): if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) ) - $thead .= ''; + $thead .= ''; + if ( preg_match ( "/title=\"(.*?)\"/", $label, $new_label ) ) + $labels[$key] = $label[1]; endforeach; $thead .= '' . ''; From 1f5233750cab6bf766515163938075f5ce108e8a Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 20 May 2018 14:18:35 +1000 Subject: [PATCH 7/8] Add league, shield, tshirt, whistle, time, and friendly icons --- modules/sportspress-icons.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/sportspress-icons.php b/modules/sportspress-icons.php index f365c5d4..e17f4496 100644 --- a/modules/sportspress-icons.php +++ b/modules/sportspress-icons.php @@ -92,6 +92,12 @@ class SportsPress_Icons { 'racing-flag', 'shoe', 'card', + 'league', + 'shield', + 'tshirt', + 'whistle', + 'time', + 'friendly', 'sub', 'update', 'undo', From 1cbeb64fbf22342b070e71ba7d38624a9fb0c5c8 Mon Sep 17 00:00:00 2001 From: savvasha Date: Sun, 20 May 2018 12:32:56 +0300 Subject: [PATCH 8/8] Add league, shield, tshirt, whistle, time, and friendly icons to front-end --- assets/css/icons.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/assets/css/icons.css b/assets/css/icons.css index af3696b4..3ed7a013 100644 --- a/assets/css/icons.css +++ b/assets/css/icons.css @@ -109,3 +109,22 @@ .sp-icon-card:before { content: "\e801"; } +.sp-icon-league:before { + content: "\f332"; +} +.sp-icon-shield:before { + content: "\f334"; +} +.sp-icon-tshirt:before, +.sp-icon-sp_player:before { + content: "\f307"; +} +.sp-icon-whistle:before { + content: "\f227"; +} +.sp-icon-time:before { + content: "\f469"; +} +.sp-icon-friendly:before { + content: "\f328"; +}
'. $label . ''. $label . '