Add home and away record to equation builder

This commit is contained in:
Brian Miyaji
2015-04-11 14:39:45 +10:00
parent 93aef64809
commit ac83d14fa3
4 changed files with 76 additions and 5 deletions

View File

@@ -42,6 +42,8 @@ class SP_Meta_Box_Equation {
case 'outcome':
$options[ 'Outcomes' ] = self::optgroup( 'sp_outcome' );
$options[ 'Outcomes' ]['$gamesback'] = __( 'Games Back', 'sportspress' );
$options[ 'Outcomes' ]['$homerecord'] = __( 'Home Record', 'sportspress' );
$options[ 'Outcomes' ]['$awayrecord'] = __( 'Away Record', 'sportspress' );
$options[ 'Outcomes' ]['$streak'] = __( 'Streak', 'sportspress' );
$options[ 'Outcomes' ]['$last5'] = __( 'Last 5', 'sportspress' );
$options[ 'Outcomes' ]['$last10'] = __( 'Last 10', 'sportspress' );