Tag version 2.7

This commit is contained in:
Brian Miyaji
2020-03-25 03:20:19 +11:00
parent c04048a1bd
commit 8765121248
24 changed files with 85 additions and 57 deletions

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
Description: Add bulk actions to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.2
Version: 2.7
*/
// Exit if accessed directly
@@ -17,16 +17,16 @@ if ( ! class_exists( 'SportsPress_Bulk_Actions' ) ) :
* 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' ) );
@@ -38,21 +38,21 @@ class SportsPress_Bulk_Actions {
// 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.
@@ -123,10 +123,10 @@ class SportsPress_Bulk_Actions {
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'] );
@@ -155,7 +155,7 @@ class SportsPress_Bulk_Actions {
'sportspress'
) . '</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>', $count );
}
}
}
}
endif;

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
Description: Add countdown widgets to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.6
Version: 2.7
*/
// Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Countdowns' ) ) :
* Main SportsPress Countdowns Class
*
* @class SportsPress_Countdowns
* @version 2.6
* @version 2.7
*/
class SportsPress_Countdowns {
@@ -42,7 +42,7 @@ class SportsPress_Countdowns {
*/
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__ ) );

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
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
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Icons' ) ) :
* Main SportsPress Icons Class
*
* @class SportsPress_Icons
* @version 2.6.8
* @version 2.7
*/
class SportsPress_Icons {
@@ -49,7 +49,7 @@ class SportsPress_Icons {
*/
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__ ) );

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
Description: Integrate OpenStreetMap to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.6.18
Version: 2.7
*/
// Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_OpenStreetMap' ) ):
* Main SportsPress OpenStreetMap Class
*
* @class SportsPress_OpenStreetMap
* @version 2.6.18
* @version 2.7
*/
class SportsPress_OpenStreetMap {
@@ -45,7 +45,7 @@ if ( ! class_exists( 'SportsPress_OpenStreetMap' ) ):
*/
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__ ) );

View File

@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
Description: Add frontend styles to SportsPress.
Author: ThemeBoy
Author URI: http://themeboy.com/
Version: 2.3
Version: 2.7
*/
// Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Styles' ) ) :
* Main SportsPress Styles Class
*
* @class SportsPress_Styles
* @version 2.3
* @version 2.7
*/
class SportsPress_Styles {
@@ -43,7 +43,7 @@ class SportsPress_Styles {
*/
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__ ) );