From 41aba6b4890d5fe4e436dd1690bf232299c9e35b Mon Sep 17 00:00:00 2001 From: savvasha Date: Mon, 26 Mar 2018 16:32:54 +0300 Subject: [PATCH] Create an empty basic module for the Player Assignments --- modules/sportspress-player-assignments.php | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 modules/sportspress-player-assignments.php diff --git a/modules/sportspress-player-assignments.php b/modules/sportspress-player-assignments.php new file mode 100644 index 00000000..beb0948d --- /dev/null +++ b/modules/sportspress-player-assignments.php @@ -0,0 +1,44 @@ +define_constants(); + // Actions + // Filters + } + /** + * Define constants. + */ + private function define_constants() { + if ( !defined( 'SP_PLAYER_ASSIGNMENTS_VERSION' ) ) + define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6.0' ); + if ( !defined( 'SP_PLAYER_ASSIGNMENTS_URL' ) ) + define( 'SP_PLAYER_ASSIGNMENTS_URL', plugin_dir_url( __FILE__ ) ); + if ( !defined( 'SP_PLAYER_ASSIGNMENTS_DIR' ) ) + define( 'SP_PLAYER_ASSIGNMENTS_DIR', plugin_dir_path( __FILE__ ) ); + } +} +endif; +if ( get_option( 'sportspress_load_player_assignments_module', 'yes' ) == 'yes' ) { //Is it needed? + new SportsPress_Player_Assignments(); +} \ No newline at end of file