Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ccc6c1877d
|
|||
|
91b572ab75
|
|||
|
8fb86314eb
|
@@ -29,6 +29,21 @@ class SP_Meta_Box_Event_Teams {
|
|||||||
$team = array_shift( $teams );
|
$team = array_shift( $teams );
|
||||||
?>
|
?>
|
||||||
<div class="sp-instance">
|
<div class="sp-instance">
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
<?php
|
||||||
|
if ($i==0){
|
||||||
|
echo esc_attr__("Home");
|
||||||
|
}
|
||||||
|
elseif ($i==1){
|
||||||
|
echo esc_attr__("Away");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo esc_attr__("Team") . " " . ($i +1);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<p class="sp-tab-select sp-title-generator">
|
<p class="sp-tab-select sp-title-generator">
|
||||||
<?php
|
<?php
|
||||||
$args = array(
|
$args = array(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Plugin Name: SportsPress
|
* Plugin Name: Tony's SportsPress
|
||||||
* Plugin URI: http://themeboy.com/sportspress/
|
* Plugin URI: http://themeboy.com/sportspress/
|
||||||
* Description: Manage your club and its players, staff, events, league tables, and player lists.
|
* Description: Manage your club and its players, staff, events, league tables, and player lists.
|
||||||
* Version: 2.7.17
|
* Version: 2.7.17
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
* Text Domain: sportspress
|
* Text Domain: sportspress
|
||||||
* Domain Path: /languages/
|
* Domain Path: /languages/
|
||||||
*
|
*
|
||||||
* @package SportsPress
|
* @package TonysSportsPress
|
||||||
* @category Core
|
* @category Core
|
||||||
* @author ThemeBoy
|
* @author Tony
|
||||||
*/
|
*/
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit; // Exit if accessed directly
|
exit; // Exit if accessed directly
|
||||||
|
|||||||
@@ -253,6 +253,7 @@ $identifier = uniqid( 'eventlist_' );
|
|||||||
$reverse_teams = get_option( 'sportspress_event_reverse_teams', 'no' ) === 'yes' ? true : false;
|
$reverse_teams = get_option( 'sportspress_event_reverse_teams', 'no' ) === 'yes' ? true : false;
|
||||||
if ( $reverse_teams ) {
|
if ( $reverse_teams ) {
|
||||||
$main_results = array_reverse( $main_results, true );
|
$main_results = array_reverse( $main_results, true );
|
||||||
|
$teams = array_reverse( $teams, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
$teams_output = '';
|
$teams_output = '';
|
||||||
@@ -282,9 +283,9 @@ $identifier = uniqid( 'eventlist_' );
|
|||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ( $link_teams ) :
|
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 :
|
else :
|
||||||
$team_output = $name;
|
$team_output = '<span class="team-'.$t .'">'.$name.'</span>';
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
$team_result = sp_array_value( $main_results, $team, null );
|
$team_result = sp_array_value( $main_results, $team, null );
|
||||||
|
|||||||
Reference in New Issue
Block a user