Tag version 2.6
|
Before Width: | Height: | Size: 17 KiB |
BIN
assets/images/welcome/screenshot-conditional-equations.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB |
BIN
assets/images/welcome/screenshot-event-specs.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
BIN
assets/images/welcome/screenshot-midseason-transfers.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
assets/images/welcome/screenshot-next-team.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 32 KiB |
BIN
assets/images/welcome/screenshot-results-matrix.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 24 KiB |
BIN
assets/images/welcome/screenshot-vertical-timelines.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
@@ -7,6 +7,7 @@
|
||||
* Feature - Short name option added to teams.
|
||||
* Feature - Automatic event titles using short name when available.
|
||||
* Feature - Display featured image in countdown widget.
|
||||
* Tweak - Stronger connections between leagues, seasons, and teams for automatic player lists.
|
||||
* Tweak - Relative date option added to editor shortcodes.
|
||||
* Tweak - Display only current team in player list.
|
||||
* Tweak - Filter players dropdown by current team only.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress admin sports class stores preset sport data.
|
||||
*
|
||||
* @class SP_Admin_Sports
|
||||
* @version 2.5.2
|
||||
* @version 2.6
|
||||
* @package SportsPress/Admin
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
* Handles taxonomies in admin
|
||||
*
|
||||
* @class SP_Admin_Taxonomies
|
||||
* @version 2.5.1
|
||||
* @version 2.6
|
||||
* @package SportsPress/Admin
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -133,8 +133,6 @@ class SP_Admin_Welcome {
|
||||
<?php _e( 'Welcome', 'sportspress' ); ?>
|
||||
</a><a class="nav-tab <?php if ( $_GET['page'] == 'sp-credits' ) echo 'nav-tab-active'; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sp-credits' ), 'index.php' ) ) ); ?>">
|
||||
<?php _e( 'Credits', 'sportspress' ); ?>
|
||||
</a><a class="nav-tab <?php if ( $_GET['page'] == 'sp-translators' ) echo 'nav-tab-active'; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sp-translators' ), 'index.php' ) ) ); ?>">
|
||||
<?php _e( 'Translators', 'sportspress' ); ?>
|
||||
</a>
|
||||
</h2>
|
||||
<?php
|
||||
@@ -182,25 +180,21 @@ class SP_Admin_Welcome {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="feature-section two-col">
|
||||
<div class="feature-section three-col">
|
||||
<div class="col">
|
||||
<img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/welcome/screenshot-conditional-equations.png" alt="Screenshot">
|
||||
<h3>Conditional Equations</h3>
|
||||
<p></p>
|
||||
<p>Use the newly introduced conditional operators <strong>></strong>, <strong><</strong>, <strong>≡</strong>, <strong>≠</strong>, <strong>≥</strong>, and <strong>≤</strong> to calculate the relationship between variables, then insert that calculation into more complex equations. Visit the <a href="<?php echo add_query_arg( array( 'page' => 'sportspress-config' ), admin_url( 'admin.php' ) ); ?>">Configure</a> page to edit variables and equations.</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/welcome/screenshot-event-specs.png" alt="Screenshot">
|
||||
<h3>Event Specs</h3>
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="feature-section two-col">
|
||||
<div class="col">
|
||||
<h3>Countdown Images</h3>
|
||||
<p></p>
|
||||
<p>Measure and display additional details per event using the new <strong>Event Specs</strong> variables. They are customizable and can be useful for keeping track of information like player of the match, attendance, and venue weather.
|
||||
</div>
|
||||
<div class="col">
|
||||
<img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/welcome/screenshot-next-team.png" alt="Screenshot">
|
||||
<h3>Next Team Column</h3>
|
||||
<p><p>
|
||||
<p>Provide a quick overview of who each team is playing next using the new <strong>Next Team</strong> preset for <a href="<?php echo add_query_arg( array( 'post_type' => 'sp_column' ), admin_url( 'edit.php' ) ); ?>">league table columns</a>. This will automatically display the next team's name or logo that links to the next match for each team in the table.<p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -213,14 +207,21 @@ class SP_Admin_Welcome {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="feature-section two-col">
|
||||
<div class="feature-section three-col">
|
||||
<div class="col">
|
||||
<img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/welcome/screenshot-results-matrix.png" alt="Results Matrix">
|
||||
<h3>Results Matrix</h3>
|
||||
<p></p>
|
||||
<p>Display matches between home and away team in a grid. Create or select an existing calendar and select the <strong>Matrix</strong> layout to convert the calendar to an interactive results matrix!</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/welcome/screenshot-midseason-transfers.png" alt="Midseason Transfers">
|
||||
<h3>Midseason Transfers</h3>
|
||||
<p>Keep track of players that switched teams during a season by adding one or more extra rows to their statistics table. Display the team and partial statistics before and after the transfer.<p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/welcome/screenshot-vertical-timelines.png" alt="Vertical Timelines">
|
||||
<h3>Vertical Timelines</h3>
|
||||
<p><p>
|
||||
<p>Display a match commentary style play-by-play timeline within events. <a href="<?php echo esc_url( apply_filters( 'sportspress_pro_url', 'http://tboy.co/pro' ) ); ?>">Upgrade to SportsPress Pro</a> to get access to <strong>Timelines</strong> and other pro features.<p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -233,22 +234,22 @@ class SP_Admin_Welcome {
|
||||
|
||||
<div class="feature-section one-col">
|
||||
<div class="col">
|
||||
<h2>Data Accuracy and Flexibility</h2>
|
||||
<h2>Player Data Improvements</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="feature-section three-col">
|
||||
<div class="col">
|
||||
<h3>Relative Date in Shortcodes</h3>
|
||||
<p></p>
|
||||
<h3>Player Assignments</h3>
|
||||
<p>Players will now be saved using a new data format that allows them to belong to multiple leagues, seasons, and teams and be accurately selected in <a href="<?php echo add_query_arg( array( 'post_type' => 'sp_list' ), admin_url( 'edit.php' ) ); ?>">player lists</a>.</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3>Current Team in Player Lists</h3>
|
||||
<p></p>
|
||||
<h3>Current Team Column</h3>
|
||||
<p>The <strong>Team</strong> column in player lists will now display only the current team that player belongs to, determined by the <strong>Current Team</strong> setting of each player.</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3>Squad Number Zero</h3>
|
||||
<p></p>
|
||||
<p>It's now possible to import players with the squad number <strong>0 (zero)</strong> or any other value that would previously be interpreted as empty.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -261,17 +262,17 @@ class SP_Admin_Welcome {
|
||||
</div>
|
||||
|
||||
<div class="feature-section three-col">
|
||||
<div class="col">
|
||||
<h3>Countdown Images</h3>
|
||||
<p>A new option has been added to the <strong>Countdown</strong> widget, allowing you to display a featured image from the next event.</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3>Relative Date in Shortcodes</h3>
|
||||
<p>You'll now be able to select a relative date range when inserting calendar-related shortcodes from the visual editor.</p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3>Short Names</h3>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3>Calculating Substitution Time</h3>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3>Localization Improvements</h3>
|
||||
<p></p>
|
||||
<p>Teams have been given a <strong>Short Name</strong> setting in addition to the existing <strong>Abbreviation</strong> for added customizability.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Importers
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post_Types
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post_Types
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post_Types
|
||||
* @version 0.9
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post_Types
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Player Metrics
|
||||
* Event Specs
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Meta_Boxes
|
||||
* @version 1.9.7
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Meta_Boxes
|
||||
* @version 2.2
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Meta_Boxes
|
||||
* @version 2.4
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -107,7 +107,7 @@ class SP_Meta_Box_Player_Statistics {
|
||||
$buffer = apply_filters( 'sportspress_meta_box_player_statistics_table_buffer', array( 'teams' => $teams, 'readonly' => $readonly ), $id );
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<table class="widefat sp-data-table sp-player-statistics-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Season', 'sportspress' ); ?></th>
|
||||
@@ -166,7 +166,7 @@ class SP_Meta_Box_Player_Statistics {
|
||||
if ( $div_id === 0 ) continue;
|
||||
$div = get_term( $div_id, 'sp_season' );
|
||||
?>
|
||||
<tr class="sp-row sp-post<?php if ( $i % 2 == 0 ) echo ' alternate'; ?>">
|
||||
<tr class="sp-row sp-post<?php if ( $i % 2 == 0 ) echo ' alternate'; ?> <?php echo implode( ' ', apply_filters( 'sportspress_meta_box_player_statistics_row_classes', array(), $league_id, $div_id ) ); ?>" data-league="<?php echo (int) $league_id; ?>" data-season="<?php echo (int) $div_id; ?>">
|
||||
<td>
|
||||
<label>
|
||||
<?php if ( ! apply_filters( 'sportspress_player_team_statistics', $league_id ) ): ?>
|
||||
@@ -176,7 +176,7 @@ class SP_Meta_Box_Player_Statistics {
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ( 0 === $div_id ) _e( 'Total', 'sportspress' );
|
||||
elseif ( 'WP_Error' != get_class( $div ) ) echo $div->name;
|
||||
elseif ( 'WP_Error' != get_class( $div ) ) echo apply_filters( 'sportspress_meta_box_player_statistics_season_name', $div->name, $league_id, $div_id, $div_stats );
|
||||
?>
|
||||
</label>
|
||||
</td>
|
||||
@@ -237,10 +237,10 @@ class SP_Meta_Box_Player_Statistics {
|
||||
echo $timeval ? $timeval : $placeholder;
|
||||
} else {
|
||||
if ( 'time' === sp_array_value( $formats, $column, 'number' ) ) {
|
||||
echo '<input class="sp-convert-time-input" type="text" name="sp_times[' . $league_id . '][' . $div_id . '][' . $column . ']" value="' . ( '' === $value ? '' : esc_attr( $timeval ) ) . '" placeholder="' . esc_attr( $placeholder ) . '"' . ( $readonly ? ' disabled="disabled"' : '' ) . ' />';
|
||||
echo '<input class="sp-convert-time-input" type="text" name="sp_times[' . $league_id . '][' . $div_id . '][' . $column . ']" value="' . ( '' === $value ? '' : esc_attr( $timeval ) ) . '" placeholder="' . esc_attr( $placeholder ) . '"' . ( $readonly ? ' disabled="disabled"' : '' ) . ' data-column="' . $column . '" />';
|
||||
echo '<input class="sp-convert-time-output" type="hidden" name="sp_statistics[' . $league_id . '][' . $div_id . '][' . $column . ']" value="' . esc_attr( $value ) . '" />';
|
||||
} else {
|
||||
echo '<input type="text" name="sp_statistics[' . $league_id . '][' . $div_id . '][' . $column . ']" value="' . esc_attr( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '"' . ( $readonly ? ' disabled="disabled"' : '' ) . ' />';
|
||||
echo '<input type="text" name="sp_statistics[' . $league_id . '][' . $div_id . '][' . $column . ']" value="' . esc_attr( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '"' . ( $readonly ? ' disabled="disabled"' : '' ) . ' data-column="' . $column . '" />';
|
||||
}
|
||||
}
|
||||
?></td>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Meta_Boxes
|
||||
* @version 1.0
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Meta_Boxes
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Meta_Boxes
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -278,7 +278,7 @@ class SP_Settings_Events extends SP_Settings_Page {
|
||||
|
||||
apply_filters( 'sportspress_eventplayer_options', array(
|
||||
array(
|
||||
'title' => __( 'Player Sorting', 'sportspress' ),
|
||||
'title' => __( 'Order', 'sportspress' ),
|
||||
'id' => 'sportspress_event_player_sort',
|
||||
'default' => 'jersey',
|
||||
'type' => 'radio',
|
||||
@@ -286,8 +286,7 @@ class SP_Settings_Events extends SP_Settings_Page {
|
||||
'jersey'=> __( 'Jersey (e.g. "33. John Doe")', 'sportspress' ),
|
||||
'name' => __( 'Name (e.g. "John Doe (33)")', 'sportspress' ),
|
||||
),
|
||||
'desc_tip' => _x( 'When editing an event, this determines how the checklist of players are sorted in the Teams metabox. This does not affect the Box Score section.', 'event player sort setting description', 'sportspress' ),
|
||||
|
||||
'desc_tip' => 'When editing an event, this determines how the checklist of players are sorted in the Teams metabox. This does not affect the Box Score section.',
|
||||
),
|
||||
|
||||
) ),
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -74,25 +74,6 @@ class SP_Settings_Modules extends SP_Settings_Page {
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! class_exists( 'WordPay' ) ) { ?>
|
||||
<table class="widefat" cellspacing="0">
|
||||
<thead>
|
||||
<tr><th>
|
||||
<a href="https://wordpay.org/sportspress/" target="_blank"><img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>assets/images/modules/wordpay.png" alt="<?php _e( 'WordPay', 'sportspress' ); ?>" width="150"></a>
|
||||
</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>
|
||||
<p><?php _e( 'Start collecting club membership payments with WordPay.','sportspress' ); ?></p>
|
||||
<p class="sp-module-actions">
|
||||
<span><?php _e( 'Premium', 'sportspress' ); ?></span>
|
||||
<a class="button" href="https://wordpay.org/sportspress/" target="_blank"><?php _e( 'Get WordPay', 'sportspress' ); ?></a>
|
||||
</p>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! class_exists( 'SportsPress_Twitter' ) || ! class_exists( 'SportsPress_Facebook' ) ) { ?>
|
||||
<table class="widefat" cellspacing="0">
|
||||
<thead>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -8,7 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
* AJAX Event Handler
|
||||
*
|
||||
* @class SP_AJAX
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress event class handles individual event data.
|
||||
*
|
||||
* @class SP_Event
|
||||
* @version 2.5.2
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress league table class handles individual league table data.
|
||||
*
|
||||
* @class SP_League_Table
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress modules class stores available modules.
|
||||
*
|
||||
* @class SP_Modules
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
@@ -173,14 +173,6 @@ class SP_Modules {
|
||||
'link' => 'https://www.themeboy.com/sportspress-extensions/sponsors/',
|
||||
'desc' => __( 'Attract sponsors by offering them advertising space on your website.', 'sportspress' ),
|
||||
),
|
||||
'wordpay' => array(
|
||||
'label' => __( 'WordPay', 'sportspress' ),
|
||||
'class' => 'WordPay',
|
||||
'icon' => 'sp-icon-wordpay',
|
||||
'link' => 'https://wordpay.org/sportspress/',
|
||||
'desc' => __( 'Start collecting club membership payments with WordPay.', 'sportspress' ),
|
||||
'tip' => __( 'Get WordPay', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress player list class handles individual player list data.
|
||||
*
|
||||
* @class SP_Player_List
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress player class handles individual player data.
|
||||
*
|
||||
* @class SP_Player
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
@@ -256,8 +256,11 @@ class SP_Player extends SP_Custom_Post {
|
||||
|
||||
$data = array();
|
||||
|
||||
$league_stats = sp_array_value( $stats, $league_id, array() );
|
||||
$div_ids = apply_filters( 'sportspress_player_data_season_ids', $div_ids, $league_stats );
|
||||
|
||||
// Get all seasons populated with data where available
|
||||
$data = sp_array_combine( $div_ids, sp_array_value( $stats, $league_id, array() ), true );
|
||||
$data = sp_array_combine( $div_ids, $league_stats, true );
|
||||
|
||||
// Get equations from statistic variables
|
||||
$equations = sp_get_var_equations( 'sp_statistic' );
|
||||
@@ -340,7 +343,7 @@ class SP_Player extends SP_Custom_Post {
|
||||
);
|
||||
endif;
|
||||
|
||||
$args = apply_filters( 'sportspress_player_data_event_args', $args );
|
||||
$args = apply_filters( 'sportspress_player_data_event_args', $args, $data, $div_id );
|
||||
|
||||
$events = get_posts( $args );
|
||||
|
||||
@@ -597,7 +600,7 @@ class SP_Player extends SP_Custom_Post {
|
||||
if ( -1 == $team_id )
|
||||
continue;
|
||||
|
||||
$season_name = sp_array_value( $season_names, $season_id, ' ' );
|
||||
$season_name = sp_array_value( $season_names, (int) $season_id, ' ' );
|
||||
|
||||
if ( $team_id ):
|
||||
$team_name = sp_team_short_name( $team_id );
|
||||
|
||||
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
* Registers post types and taxonomies
|
||||
*
|
||||
* @class SP_Post_types
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* The SportsPress team class handles individual team data.
|
||||
*
|
||||
* @class SP_Team
|
||||
* @version 2.2.4
|
||||
* @version 2.6
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Core
|
||||
* @package SportsPress/Functions
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Core
|
||||
* @package SportsPress/Functions
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Core
|
||||
* @package ThemeBoy/Functions
|
||||
* @version 1.6.1
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Core
|
||||
* @package SportsPress/Functions
|
||||
* @version 2.5.10
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
|
||||
Description: Add conditional equations to SportsPress.
|
||||
Author: ThemeBoy
|
||||
Author URI: http://themeboy.com/
|
||||
Version: 2.5.10
|
||||
Version: 2.6
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Conditional_Equations' ) ) :
|
||||
* Main SportsPress Conditional Equations Class
|
||||
*
|
||||
* @class SportsPress_Conditional_Equations
|
||||
* @version 2.5.10
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
class SportsPress_Conditional_Equations {
|
||||
@@ -42,7 +42,7 @@ if ( ! class_exists( 'SportsPress_Conditional_Equations' ) ) :
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_CONDITIONAL_EQUATIONS_VERSION' ) )
|
||||
define( 'SP_CONDITIONAL_EQUATIONS_VERSION', '2.5.10' );
|
||||
define( 'SP_CONDITIONAL_EQUATIONS_VERSION', '2.6' );
|
||||
|
||||
if ( !defined( 'SP_CONDITIONAL_EQUATIONS_URL' ) )
|
||||
define( 'SP_CONDITIONAL_EQUATIONS_URL', plugin_dir_url( __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.0
|
||||
Version: 2.6
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Countdowns' ) ) :
|
||||
* Main SportsPress Countdowns Class
|
||||
*
|
||||
* @class SportsPress_Countdowns
|
||||
* @version 2.0
|
||||
* @version 2.6
|
||||
*/
|
||||
class SportsPress_Countdowns {
|
||||
|
||||
@@ -41,7 +41,7 @@ class SportsPress_Countdowns {
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_COUNTDOWNS_VERSION' ) )
|
||||
define( 'SP_COUNTDOWNS_VERSION', '2.0' );
|
||||
define( 'SP_COUNTDOWNS_VERSION', '2.6' );
|
||||
|
||||
if ( !defined( 'SP_COUNTDOWNS_URL' ) )
|
||||
define( 'SP_COUNTDOWNS_URL', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
|
||||
Description: Add event specs/stats to SportsPress.
|
||||
Author: ThemeBoy
|
||||
Author URI: http://themeboy.com/
|
||||
Version: 2.5.10
|
||||
Version: 2.6
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Event_Specs' ) ) :
|
||||
* Main SportsPress Event Specs Class
|
||||
*
|
||||
* @class SportsPress_Event_Specs
|
||||
* @version 2.5.10
|
||||
* @version 2.6
|
||||
*/
|
||||
class SportsPress_Event_Specs {
|
||||
|
||||
@@ -48,7 +48,7 @@ class SportsPress_Event_Specs {
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_EVENT_SPECS_VERSION' ) )
|
||||
define( 'SP_EVENT_SPECS_VERSION', '2.5.10' );
|
||||
define( 'SP_EVENT_SPECS_VERSION', '2.6' );
|
||||
|
||||
if ( !defined( 'SP_EVENT_SPECS_URL' ) )
|
||||
define( 'SP_EVENT_SPECS_URL', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
|
||||
Description: Add officials to SportsPress.
|
||||
Author: ThemeBoy
|
||||
Author URI: http://themeboy.com/
|
||||
Version: 2.5.1
|
||||
Version: 2.6
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Officials' ) ) :
|
||||
* Main SportsPress Officials Class
|
||||
*
|
||||
* @class SportsPress_Officials
|
||||
* @version 2.5.1
|
||||
* @version 2.6
|
||||
*/
|
||||
class SportsPress_Officials {
|
||||
|
||||
@@ -66,7 +66,7 @@ class SportsPress_Officials {
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_OFFICIALS_VERSION' ) )
|
||||
define( 'SP_OFFICIALS_VERSION', '2.5.1' );
|
||||
define( 'SP_OFFICIALS_VERSION', '2.6' );
|
||||
|
||||
if ( !defined( 'SP_OFFICIALS_URL' ) )
|
||||
define( 'SP_OFFICIALS_URL', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
|
||||
Description: Add player assignments support to SportsPress.
|
||||
Author: Savvas
|
||||
Author URI: http://themeboy.com/
|
||||
Version: 2.6.0
|
||||
Version: 2.6
|
||||
*/
|
||||
// Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
@@ -14,7 +14,7 @@ if ( ! class_exists( 'SportsPress_Player_Assignments' ) ) :
|
||||
* Main SportsPress Player Assignments Class
|
||||
*
|
||||
* @class SportsPress_Player_Assignments
|
||||
* @version 2.6.0
|
||||
* @version 2.6
|
||||
*/
|
||||
class SportsPress_Player_Assignments {
|
||||
/**
|
||||
@@ -36,7 +36,7 @@ class SportsPress_Player_Assignments {
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_PLAYER_ASSIGNMENTS_VERSION' ) )
|
||||
define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6.0' );
|
||||
define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6' );
|
||||
if ( !defined( 'SP_PLAYER_ASSIGNMENTS_URL' ) )
|
||||
define( 'SP_PLAYER_ASSIGNMENTS_URL', plugin_dir_url( __FILE__ ) );
|
||||
if ( !defined( 'SP_PLAYER_ASSIGNMENTS_DIR' ) )
|
||||
@@ -57,7 +57,7 @@ class SportsPress_Player_Assignments {
|
||||
if ( 0 === $l_id ) continue;
|
||||
foreach ( $season as $s_id => $team_id ) {
|
||||
if ( 0 >= $team_id ) continue;
|
||||
$serialized = $l_id.'_'.$s_id.'_'.$team_id;
|
||||
$serialized = intval($l_id).'_'.intval($s_id).'_'.intval($team_id);
|
||||
add_post_meta( $post_id, 'sp_assignments', $serialized, false );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
|
||||
Description: Add team and player registration shortcodes to WordPay.
|
||||
Author: ThemeBoy
|
||||
Author URI: http://themeboy.com/
|
||||
Version: 2.4.1
|
||||
Version: 2.6
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_WordPay' ) ) :
|
||||
* Main SportsPress WordPay Class
|
||||
*
|
||||
* @class SportsPress_WordPay
|
||||
* @version 2.4.1
|
||||
* @version 2.6
|
||||
*/
|
||||
class SportsPress_WordPay {
|
||||
|
||||
@@ -47,7 +47,7 @@ class SportsPress_WordPay {
|
||||
*/
|
||||
private function define_constants() {
|
||||
if ( !defined( 'SP_WORDPAY_VERSION' ) )
|
||||
define( 'SP_WORDPAY_VERSION', '2.4.1' );
|
||||
define( 'SP_WORDPAY_VERSION', '2.6' );
|
||||
|
||||
if ( !defined( 'SP_WORDPAY_URL' ) )
|
||||
define( 'SP_WORDPAY_URL', plugin_dir_url( __FILE__ ) );
|
||||
@@ -232,6 +232,4 @@ class SportsPress_WordPay {
|
||||
|
||||
endif;
|
||||
|
||||
if ( get_option( 'sportspress_load_wordpay_module', 'yes' ) == 'yes' ) {
|
||||
new SportsPress_WordPay();
|
||||
}
|
||||
new SportsPress_WordPay();
|
||||
@@ -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: 4.9
|
||||
Stable tag: 2.6-RC1
|
||||
Stable tag: 2.6
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
@@ -244,6 +244,7 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
|
||||
* Feature - Short name option added to teams.
|
||||
* Feature - Automatic event titles using short name when available.
|
||||
* Feature - Display featured image in countdown widget.
|
||||
* Tweak - Stronger connections between leagues, seasons, and teams for automatic player lists.
|
||||
* Tweak - Relative date option added to editor shortcodes.
|
||||
* Tweak - Display only current team in player list.
|
||||
* Tweak - Filter players dropdown by current team only.
|
||||
|
||||
@@ -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-RC1
|
||||
* Version: 2.6
|
||||
* Author: ThemeBoy
|
||||
* Author URI: http://themeboy.com
|
||||
* Requires at least: 3.8
|
||||
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
|
||||
* Main SportsPress Class
|
||||
*
|
||||
* @class SportsPress
|
||||
* @version 2.6-RC1
|
||||
* @version 2.6
|
||||
*/
|
||||
final class SportsPress {
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $version = '2.6-RC1';
|
||||
public $version = '2.6';
|
||||
|
||||
/**
|
||||
* @var SportsPress The single instance of the class
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.2
|
||||
* @version 2.6
|
||||
*/
|
||||
?>
|
||||
<div class="sp-template sp-template-event-logos sp-template-event-blocks sp-template-event-logos-block">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.2
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
$team_logos = array();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.2
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.3
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.2.4
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -74,12 +74,7 @@ if ( is_array( $leagues ) ):
|
||||
if ( ! $show_teams ) {
|
||||
$args['hide_teams'] = true;
|
||||
}
|
||||
|
||||
if ( has_action( 'sportspress_player_statistics_league_template' ) ) {
|
||||
do_action( 'sportspress_player_statistics_league_template', $args );
|
||||
} else {
|
||||
sp_get_template( 'player-statistics-league.php', $args );
|
||||
}
|
||||
endforeach;
|
||||
|
||||
if ( $show_career_totals ) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.0
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 2.5.5
|
||||
* @version 2.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||