Skip to content

Commit

Permalink
Tag version 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmiyaji committed Mar 24, 2020
1 parent c04048a commit 8765121
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 57 deletions.
14 changes: 14 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
== SportsPress Changelog ==

= 2.7 =
* Feature - New bulk actions to postpone and cancel multiple events.
* Feature - Add date of birth to player importer.
* Feature - Automatically select the home team's venue as the default venue when importing fixtures.
* Feature - Add ability to turn on comment for team profiles.
* Feature - Filter league tables by event status.
* Tweak - When an icon is used for player performance, display the icon in player lists and profiles.
* Tweak - Add title attribute for player statistic icons.
* Tweak - Default stylesheet sorting icon width.
* Fix - Icon color picker rendering issue.
* Fix - Image selector not working for player statistics.
* Fix - Enqueue scripts and styles for OpenStreetMap when used in shortcodes.
* Localization - Add translation options for countdown units.

= 2.6.20 =
* Tweak - Improve compatibility with volleyball for checkbox performance.
* Preset - Update volleyball preset with additional options.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/importers/class-sp-fixture-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Importers
* @version 2.5
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/importers/class-sp-player-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Importers
* @version 2.6.9
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/post-types/class-sp-admin-cpt-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Post_Types
* @version 2.6.5
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
* @version 2.5.5
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/settings/class-sp-settings-teams.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin
* @version 2.6
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sp-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* AJAX Event Handler
*
* @class SP_AJAX
* @version 2.6.15
* @version 2.7
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sp-league-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* The SportsPress league table class handles individual league table data.
*
* @class SP_League_Table
* @version 2.6.15
* @version 2.7
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sp-player-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* The SportsPress player list class handles individual player list data.
*
* @class SP_Player_List
* @version 2.6.19
* @version 2.7
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sp-player.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* The SportsPress player class handles individual player data.
*
* @class SP_Player
* @version 2.6.19
* @version 2.7
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sp-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Registers post types and taxonomies
*
* @class SP_Post_types
* @version 2.6.13
* @version 2.7
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
2 changes: 1 addition & 1 deletion includes/sp-api-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author ThemeBoy
* @category Core
* @package SportsPress/Functions
* @version 2.6.6
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/sp-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author ThemeBoy
* @category Core
* @package SportsPress/Functions
* @version 2.6.19
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SportsPress

Copyright 2019 by the contributors
Copyright 2020 by the contributors

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
50 changes: 25 additions & 25 deletions modules/sportspress-bulk-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Add bulk actions to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.2
Version: 2.7
*/

// Exit if accessed directly
Expand All @@ -17,16 +17,16 @@
* Main SportsPress Bulk Actions Class
*
* @class SportsPress_Bulk_Actions
* @version 2.2
* @version 2.7
*/
class SportsPress_Bulk_Actions {

/**
* Constructor
*/
public function __construct() {
// Define constants
$this->define_constants();
/**
* Constructor
*/
public function __construct() {
// Define constants
$this->define_constants();

// Teams
add_filter( 'bulk_actions-edit-sp_team', array( $this, 'team_actions' ) );
Expand All @@ -38,21 +38,21 @@ public function __construct() {

// Notices
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
}
}

/**
* Define constants.
*/
private function define_constants() {
if ( !defined( 'SP_BULK_ACTIONS_VERSION' ) )
define( 'SP_BULK_ACTIONS_VERSION', '2.2' );
/**
* Define constants.
*/
private function define_constants() {
if ( !defined( 'SP_BULK_ACTIONS_VERSION' ) )
define( 'SP_BULK_ACTIONS_VERSION', '2.7' );

if ( !defined( 'SP_BULK_ACTIONS_URL' ) )
define( 'SP_BULK_ACTIONS_URL', plugin_dir_url( __FILE__ ) );
if ( !defined( 'SP_BULK_ACTIONS_URL' ) )
define( 'SP_BULK_ACTIONS_URL', plugin_dir_url( __FILE__ ) );

if ( !defined( 'SP_BULK_ACTIONS_DIR' ) )
define( 'SP_BULK_ACTIONS_DIR', plugin_dir_path( __FILE__ ) );
}
if ( !defined( 'SP_BULK_ACTIONS_DIR' ) )
define( 'SP_BULK_ACTIONS_DIR', plugin_dir_path( __FILE__ ) );
}

/**
* Add option to the team bulk actions dropdown.
Expand Down Expand Up @@ -123,10 +123,10 @@ public function event_actions_handler( $redirect_to, $doaction, $post_ids ) {
return $redirect_to;
}

/**
* Display notices after form submission.
*/
public function admin_notices() {
/**
* Display notices after form submission.
*/
public function admin_notices() {
if ( ! empty( $_REQUEST['sp_bulk_generated_calendars'] ) ) {
$count = intval( $_REQUEST['sp_bulk_generated_calendars'] );

Expand Down Expand Up @@ -155,7 +155,7 @@ public function admin_notices() {
'sportspress'
) . '</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>', $count );
}
}
}
}

endif;
Expand Down
6 changes: 3 additions & 3 deletions modules/sportspress-countdowns.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Add countdown widgets to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.6
Version: 2.7
*/

// Exit if accessed directly
Expand All @@ -17,7 +17,7 @@
* Main SportsPress Countdowns Class
*
* @class SportsPress_Countdowns
* @version 2.6
* @version 2.7
*/
class SportsPress_Countdowns {

Expand All @@ -42,7 +42,7 @@ public function __construct() {
*/
private function define_constants() {
if ( !defined( 'SP_COUNTDOWNS_VERSION' ) )
define( 'SP_COUNTDOWNS_VERSION', '2.6' );
define( 'SP_COUNTDOWNS_VERSION', '2.7' );

if ( !defined( 'SP_COUNTDOWNS_URL' ) )
define( 'SP_COUNTDOWNS_URL', plugin_dir_url( __FILE__ ) );
Expand Down
6 changes: 3 additions & 3 deletions modules/sportspress-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Add vector performance icons to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.6.8
Version: 2.7
*/

// Exit if accessed directly
Expand All @@ -17,7 +17,7 @@
* Main SportsPress Icons Class
*
* @class SportsPress_Icons
* @version 2.6.8
* @version 2.7
*/
class SportsPress_Icons {

Expand Down Expand Up @@ -49,7 +49,7 @@ public function __construct() {
*/
private function define_constants() {
if ( !defined( 'SP_ICONS_VERSION' ) )
define( 'SP_ICONS_VERSION', '2.6.8' );
define( 'SP_ICONS_VERSION', '2.7' );

if ( !defined( 'SP_ICONS_URL' ) )
define( 'SP_ICONS_URL', plugin_dir_url( __FILE__ ) );
Expand Down
6 changes: 3 additions & 3 deletions modules/sportspress-openstreetmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Integrate OpenStreetMap to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.6.18
Version: 2.7
*/

// Exit if accessed directly
Expand All @@ -17,7 +17,7 @@
* Main SportsPress OpenStreetMap Class
*
* @class SportsPress_OpenStreetMap
* @version 2.6.18
* @version 2.7
*/

class SportsPress_OpenStreetMap {
Expand Down Expand Up @@ -45,7 +45,7 @@ public function __construct() {
*/
private function define_constants() {
if ( !defined( 'SP_OPENSTREETMAP_VERSION' ) )
define( 'SP_OPENSTREETMAP_VERSION', '2.6.18' );
define( 'SP_OPENSTREETMAP_VERSION', '2.7' );

if ( !defined( 'SP_OPENSTREETMAP_URL' ) )
define( 'SP_OPENSTREETMAP_URL', plugin_dir_url( __FILE__ ) );
Expand Down
6 changes: 3 additions & 3 deletions modules/sportspress-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Add frontend styles to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.3
Version: 2.7
*/

// Exit if accessed directly
Expand All @@ -17,7 +17,7 @@
* Main SportsPress Styles Class
*
* @class SportsPress_Styles
* @version 2.3
* @version 2.7
*/
class SportsPress_Styles {

Expand All @@ -43,7 +43,7 @@ public function __construct() {
*/
private function define_constants() {
if ( !defined( 'SP_STYLES_VERSION' ) )
define( 'SP_STYLES_VERSION', '2.3' );
define( 'SP_STYLES_VERSION', '2.7' );

if ( !defined( 'SP_STYLES_URL' ) )
define( 'SP_STYLES_URL', plugin_dir_url( __FILE__ ) );
Expand Down
16 changes: 15 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: calendars, club, club management, esports, events, fixtures, leagues, leag
Donate link: http://tboy.co/donate
Requires at least: 3.8
Tested up to: 5.2
Stable tag: 2.6.20
Stable tag: 2.7
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -240,6 +240,20 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate

== Changelog ==

= 2.7 =
* Feature - New bulk actions to postpone and cancel multiple events.
* Feature - Add date of birth to player importer.
* Feature - Automatically select the home team's venue as the default venue when importing fixtures.
* Feature - Add ability to turn on comment for team profiles.
* Feature - Filter league tables by event status.
* Tweak - When an icon is used for player performance, display the icon in player lists and profiles.
* Tweak - Add title attribute for player statistic icons.
* Tweak - Default stylesheet sorting icon width.
* Fix - Icon color picker rendering issue.
* Fix - Image selector not working for player statistics.
* Fix - Enqueue scripts and styles for OpenStreetMap when used in shortcodes.
* Localization - Add translation options for countdown units.

= 2.6.20 =
* Tweak - Improve compatibility with volleyball for checkbox performance.
* Preset - Update volleyball preset with additional options.
Expand Down
6 changes: 3 additions & 3 deletions sportspress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: SportsPress
* Plugin URI: http://themeboy.com/sportspress/
* Description: Manage your club and its players, staff, events, league tables, and player lists.
* Version: 2.6.20
* Version: 2.7
* Author: ThemeBoy
* Author URI: http://themeboy.com
* Requires at least: 3.8
Expand All @@ -26,14 +26,14 @@
* Main SportsPress Class
*
* @class SportsPress
* @version 2.6.20
* @version 2.7
*/
final class SportsPress {

/**
* @var string
*/
public $version = '2.6.20';
public $version = '2.7';

/**
* @var SportsPress The single instance of the class
Expand Down
2 changes: 1 addition & 1 deletion templates/event-venue.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 1.9
* @version 2.7
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
Loading

0 comments on commit 8765121

Please sign in to comment.