Skip to content

Commit

Permalink
Tag version 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmiyaji committed May 7, 2018
1 parent 61c468f commit 87074fa
Show file tree
Hide file tree
Showing 65 changed files with 113 additions and 142 deletions.
Binary file removed assets/images/welcome/screenshot-awards.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added assets/images/welcome/screenshot-event-specs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/welcome/screenshot-group-stages.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/welcome/screenshot-next-team.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/welcome/screenshot-officials.png
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/welcome/screenshot-sponsor-levels.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-sp-admin-assets.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.5
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-sp-admin-sports.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-sp-admin-taxonomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Handles taxonomies in admin
*
* @class SP_Admin_Taxonomies
* @version 2.5.1
* @version 2.6
* @package SportsPress/Admin
* @category Class
* @author ThemeBoy
Expand Down
57 changes: 29 additions & 28 deletions includes/admin/class-sp-admin-welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ private function intro() {
<?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
Expand Down Expand Up @@ -182,25 +180,21 @@ public function about_screen() {
</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>&gt;</strong>, <strong>&lt;</strong>, <strong>&equiv;</strong>, <strong>&ne;</strong>, <strong>&ge;</strong>, and <strong>&le;</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>

Expand All @@ -213,14 +207,21 @@ public function about_screen() {
</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>

Expand All @@ -233,22 +234,22 @@ public function about_screen() {

<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>

Expand All @@ -262,16 +263,16 @@ public function about_screen() {

<div class="feature-section three-col">
<div class="col">
<h3>Short Names</h3>
<p></p>
<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>Calculating Substitution Time</h3>
<p></p>
<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>Localization Improvements</h3>
<p></p>
<h3>Short Names</h3>
<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>

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.5.5
* @version 2.6
*/

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.5
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/post-types/class-sp-admin-cpt-player.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.5
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/post-types/class-sp-admin-cpt-spec.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 0.9
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/post-types/class-sp-admin-cpt-team.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.5
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
Original file line number Diff line number Diff line change
@@ -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
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.2
* @version 2.6
*/

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.4
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down Expand Up @@ -107,7 +107,7 @@ public static function table( $id = null, $league_id, $columns = array(), $data
$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>
Expand Down Expand Up @@ -166,7 +166,7 @@ public static function table( $id = null, $league_id, $columns = array(), $data
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 ) ): ?>
Expand All @@ -176,7 +176,7 @@ public static function table( $id = null, $league_id, $columns = array(), $data
<?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>
Expand Down Expand Up @@ -237,10 +237,10 @@ public static function table( $id = null, $league_id, $columns = array(), $data
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>
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 1.0
* @version 2.6
*/

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
* @version 2.6
*/

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
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down
7 changes: 3 additions & 4 deletions includes/admin/settings/class-sp-settings-events.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.5.5
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down Expand Up @@ -278,16 +278,15 @@ public function get_settings() {

apply_filters( 'sportspress_eventplayer_options', array(
array(
'title' => __( 'Player Sorting', 'sportspress' ),
'title' => __( 'Order', 'sportspress' ),
'id' => 'sportspress_event_player_sort',
'default' => 'jersey',
'type' => 'radio',
'options' => array(
'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.',
),

) ),
Expand Down
21 changes: 1 addition & 20 deletions includes/admin/settings/class-sp-settings-modules.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.5
* @version 2.6
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
Expand Down Expand Up @@ -74,25 +74,6 @@ public function output() {
</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>
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.5.5
* @version 2.6
*/

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.5.5
* @version 2.6
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sp-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.5
* @version 2.6
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
Expand Down
Loading

0 comments on commit 87074fa

Please sign in to comment.