SportsPress – Sports Club & League Manager - Version 2.6.20

Version Description

  • Tweak - Improve compatibility with volleyball for checkbox performance.
  • Preset - Update volleyball preset with additional options.
Download this release

Release Info

Developer ThemeBoy
Plugin Icon 128x128 SportsPress – Sports Club & League Manager
Version 2.6.20
Comparing to
See all releases

Code changes from version 2.6.19 to 2.6.20

assets/css/icons.css CHANGED
@@ -1,12 +1,12 @@
1
  /* SportsPress icons */
2
  @font-face {
3
  font-family: 'sportspress';
4
- src:url('../fonts/sportspress.eot?ddphik');
5
- src:url('../fonts/sportspress.eot?#iefixddphik') format('embedded-opentype'),
6
- url('../fonts/sportspress.woff2?ddphik') format('woff2'),
7
- url('../fonts/sportspress.ttf?ddphik') format('truetype'),
8
- url('../fonts/sportspress.woff?ddphik') format('woff'),
9
- url('../fonts/sportspress.svg?ddphik#sportspress') format('svg');
10
  font-weight: normal;
11
  font-style: normal;
12
  }
1
  /* SportsPress icons */
2
  @font-face {
3
  font-family: 'sportspress';
4
+ src:url('../fonts/sportspress.eot?ddphik2');
5
+ src:url('../fonts/sportspress.eot?#iefixddphik2') format('embedded-opentype'),
6
+ url('../fonts/sportspress.woff2?ddphik2') format('woff2'),
7
+ url('../fonts/sportspress.ttf?ddphik2') format('truetype'),
8
+ url('../fonts/sportspress.woff?ddphik2') format('woff'),
9
+ url('../fonts/sportspress.svg?ddphik2#sportspress') format('svg');
10
  font-weight: normal;
11
  font-style: normal;
12
  }
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == SportsPress Changelog ==
2
 
 
 
 
 
3
  = 2.6.19 =
4
  * Feature - Enable filtering calendars base on players.
5
  * Feature - Add checkbox type to event performance.
1
  == SportsPress Changelog ==
2
 
3
+ = 2.6.20 =
4
+ * Tweak - Improve compatibility with volleyball for checkbox performance.
5
+ * Preset - Update volleyball preset with additional options.
6
+
7
  = 2.6.19 =
8
  * Feature - Enable filtering calendars base on players.
9
  * Feature - Add checkbox type to event performance.
includes/class-sp-calendar.php CHANGED
@@ -8,7 +8,7 @@
8
  * https://wordpress.org/support/topic/timezone-issues-with-schedule-calendar-list/
9
  *
10
  * @class SP_Calendar
11
- * @version 2.6.19
12
  * @package SportsPress/Classes
13
  * @category Class
14
  * @author ThemeBoy
@@ -388,22 +388,18 @@ class SP_Calendar extends SP_Secondary_Post {
388
  }
389
 
390
  if ( ! empty( $teams ) ) {
391
- $args['meta_query'] = array(
392
- array(
393
- 'key' => 'sp_team',
394
- 'value' => $teams,
395
- 'compare' => 'IN',
396
- ),
397
  );
398
  }
399
 
400
  if ( ! empty( $players ) ) {
401
- $args['meta_query'] = array(
402
- array(
403
- 'key' => 'sp_player',
404
- 'value' => $players,
405
- 'compare' => 'IN',
406
- ),
407
  );
408
  }
409
 
8
  * https://wordpress.org/support/topic/timezone-issues-with-schedule-calendar-list/
9
  *
10
  * @class SP_Calendar
11
+ * @version 2.6.20
12
  * @package SportsPress/Classes
13
  * @category Class
14
  * @author ThemeBoy
388
  }
389
 
390
  if ( ! empty( $teams ) ) {
391
+ $args['meta_query'][] = array(
392
+ 'key' => 'sp_team',
393
+ 'value' => $teams,
394
+ 'compare' => 'IN',
 
 
395
  );
396
  }
397
 
398
  if ( ! empty( $players ) ) {
399
+ $args['meta_query'][] = array(
400
+ 'key' => 'sp_player',
401
+ 'value' => $players,
402
+ 'compare' => 'IN',
 
 
403
  );
404
  }
405
 
presets/team-sports/volleyball.json CHANGED
@@ -55,9 +55,11 @@
55
  "options": {
56
  "mode" : "team",
57
  "event_teams" : "2",
 
 
58
  "event_reverse_teams" : "no",
59
  "event_performance_mode" : "values",
60
  "event_show_player_numbers" : "yes",
61
- "event_show_position" : "no",
62
  }
63
  }
55
  "options": {
56
  "mode" : "team",
57
  "event_teams" : "2",
58
+ "event_teams_delimiter" : "-",
59
+ "event_show_full_time" : "no",
60
  "event_reverse_teams" : "no",
61
  "event_performance_mode" : "values",
62
  "event_show_player_numbers" : "yes",
63
+ "event_show_position" : "no"
64
  }
65
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: calendars, club, club management, esports, events, fixtures, leagues, leag
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 5.2
7
- Stable tag: 2.6.19
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -52,6 +52,7 @@ More details about each feature are available on the [SportsPress Website](http:
52
  * [SportsPress for Cricket](https://wordpress.org/plugins/sportspress-for-cricket/)
53
  * [SportsPress for Football (Soccer)](https://wordpress.org/plugins/sportspress-for-soccer/)
54
  * [SportsPress for Golf](https://wordpress.org/plugins/sportspress-for-golf/)
 
55
 
56
  = SportsPress Pro =
57
 
@@ -126,6 +127,8 @@ Looking for more advanced sports functionality? Upgrade to [SportsPress Pro](htt
126
  * [Football Club](http://tboy.co/fc)
127
  * [Marquee](http://tboy.co/marquee)
128
  * [Premier](http://tboy.co/premier)
 
 
129
 
130
  = Get Involved =
131
 
@@ -237,6 +240,10 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
237
 
238
  == Changelog ==
239
 
 
 
 
 
240
  = 2.6.19 =
241
  * Feature - Enable filtering calendars base on players.
242
  * Feature - Add checkbox type to event performance.
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 5.2
7
+ Stable tag: 2.6.20
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
52
  * [SportsPress for Cricket](https://wordpress.org/plugins/sportspress-for-cricket/)
53
  * [SportsPress for Football (Soccer)](https://wordpress.org/plugins/sportspress-for-soccer/)
54
  * [SportsPress for Golf](https://wordpress.org/plugins/sportspress-for-golf/)
55
+ * [SportsPress for Volleyball](https://wordpress.org/plugins/sportspress-for-volleyball/)
56
 
57
  = SportsPress Pro =
58
 
127
  * [Football Club](http://tboy.co/fc)
128
  * [Marquee](http://tboy.co/marquee)
129
  * [Premier](http://tboy.co/premier)
130
+ * [Rookie Plus](http://tboy.co/rp)
131
+ * [Varsity](http://tboy.co/varsity)
132
 
133
  = Get Involved =
134
 
240
 
241
  == Changelog ==
242
 
243
+ = 2.6.20 =
244
+ * Tweak - Improve compatibility with volleyball for checkbox performance.
245
+ * Preset - Update volleyball preset with additional options.
246
+
247
  = 2.6.19 =
248
  * Feature - Enable filtering calendars base on players.
249
  * Feature - Add checkbox type to event performance.
sportspress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SportsPress
4
  * Plugin URI: http://themeboy.com/sportspress/
5
  * Description: Manage your club and its players, staff, events, league tables, and player lists.
6
- * Version: 2.6.19
7
  * Author: ThemeBoy
8
  * Author URI: http://themeboy.com
9
  * Requires at least: 3.8
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
26
  * Main SportsPress Class
27
  *
28
  * @class SportsPress
29
- * @version 2.6.19
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
- public $version = '2.6.19';
37
 
38
  /**
39
  * @var SportsPress The single instance of the class
@@ -383,6 +383,14 @@ final class SportsPress {
383
  'version' => '0.9.6',
384
  );
385
  break;
 
 
 
 
 
 
 
 
386
  endswitch;
387
 
388
  $config = array(
3
  * Plugin Name: SportsPress
4
  * Plugin URI: http://themeboy.com/sportspress/
5
  * Description: Manage your club and its players, staff, events, league tables, and player lists.
6
+ * Version: 2.6.20
7
  * Author: ThemeBoy
8
  * Author URI: http://themeboy.com
9
  * Requires at least: 3.8
26
  * Main SportsPress Class
27
  *
28
  * @class SportsPress
29
+ * @version 2.6.20
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
+ public $version = '2.6.20';
37
 
38
  /**
39
  * @var SportsPress The single instance of the class
383
  'version' => '0.9.6',
384
  );
385
  break;
386
+ case 'volleyball':
387
+ $plugins[] = array(
388
+ 'name' => 'SportsPress for Volleyball',
389
+ 'slug' => 'sportspress-for-volleyball',
390
+ 'required' => false,
391
+ 'version' => '0.9',
392
+ );
393
+ break;
394
  endswitch;
395
 
396
  $config = array(
templates/event-performance-table.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 2.6.19
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -162,7 +162,7 @@ $i = 0;
162
  $value = $position = implode( ', ', $positions );
163
  endif;
164
  else:
165
- if ( array_key_exists( $key, $row ) && $row[ $key ] != '' ):
166
  if ( 'checkbox' === $format ):
167
  $value = '<span class="sp-checkbox">' . $row[ $key ] . '</span>';
168
  else:
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 2.6.20
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
162
  $value = $position = implode( ', ', $positions );
163
  endif;
164
  else:
165
+ if ( array_key_exists( $key, $row ) && $row[ $key ] !== '' ):
166
  if ( 'checkbox' === $format ):
167
  $value = '<span class="sp-checkbox">' . $row[ $key ] . '</span>';
168
  else: