Compare commits

...

2 Commits

Author SHA1 Message Date
91b572ab75 add the class with team index to event list 2023-12-29 18:37:44 -06:00
8fb86314eb update metadata for "tony" 2023-12-29 18:37:14 -06:00
2 changed files with 6 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<?php
/**
* Plugin Name: SportsPress
* Plugin Name: Tony's SportsPress
* Plugin URI: http://themeboy.com/sportspress/
* Description: Manage your club and its players, staff, events, league tables, and player lists.
* Version: 2.7.17
@@ -12,9 +12,9 @@
* Text Domain: sportspress
* Domain Path: /languages/
*
* @package SportsPress
* @package TonysSportsPress
* @category Core
* @author ThemeBoy
* @author Tony
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly

View File

@@ -253,6 +253,7 @@ $identifier = uniqid( 'eventlist_' );
$reverse_teams = get_option( 'sportspress_event_reverse_teams', 'no' ) === 'yes' ? true : false;
if ( $reverse_teams ) {
$main_results = array_reverse( $main_results, true );
$teams = array_reverse( $teams, true );
}
$teams_output = '';
@@ -282,9 +283,9 @@ $identifier = uniqid( 'eventlist_' );
endif;
if ( $link_teams ) :
$team_output = '<a href="' . get_post_permalink( $team ) . '" itemprop="url">' . $name . '</a>';
$team_output = '<span class="team-'.$t .'"><a href="' . get_post_permalink( $team ) . '" itemprop="url">' . $name . '</a></span>';
else :
$team_output = $name;
$team_output = '<span class="team-'.$t .'">'.$name.'</span>';
endif;
$team_result = sp_array_value( $main_results, $team, null );