Fix up presets
This commit is contained in:
@@ -1,130 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['baseball'] = array(
|
||||
'name' => __( 'Baseball', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( '1', 'sportspress' ),
|
||||
'post_name' => 'one'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2', 'sportspress' ),
|
||||
'post_name' => 'two'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '3', 'sportspress' ),
|
||||
'post_name' => 'three'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '4', 'sportspress' ),
|
||||
'post_name' => 'four'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '5', 'sportspress' ),
|
||||
'post_name' => 'five'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '6', 'sportspress' ),
|
||||
'post_name' => 'six'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '7', 'sportspress' ),
|
||||
'post_name' => 'seven'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '8', 'sportspress' ),
|
||||
'post_name' => 'eight'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '9', 'sportspress' ),
|
||||
'post_name' => 'nine'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( ' ', 'sportspress' ),
|
||||
'post_name' => 'nbsp'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'R', 'sportspress' ),
|
||||
'post_name' => 'r'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'H', 'sportspress' ),
|
||||
'post_name' => 'h'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'E', 'sportspress' ),
|
||||
'post_name' => 'e'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PCT', 'sportspress' ),
|
||||
'post_name' => 'pct',
|
||||
'meta' => array( 'sp_equation' => '$win / $eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GB', 'sportspress' ),
|
||||
'post_name' => 'gb',
|
||||
'meta' => array( 'sp_equation' => '( $winmax + $loss - $win - $lossmax ) / 2' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'STRK', 'sportspress' ),
|
||||
'post_name' => 'strk',
|
||||
'meta' => array( 'sp_equation' => '$streak' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['basketball'] = array(
|
||||
'name' => __( 'Basketball', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['cricket'] = array(
|
||||
'name' => __( 'Cricket', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,104 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['football'] = array(
|
||||
'name' => __( 'American Football', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Touchdowns', 'sportspress' ),
|
||||
'post_name' => 'touchdowns'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'T', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PCT', 'sportspress' ),
|
||||
'post_name' => 'pct',
|
||||
'meta' => array( 'sp_equation' => '$win / $eventsplayed', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PF', 'sportspress' ),
|
||||
'post_name' => 'pf',
|
||||
'meta' => array( 'sp_equation' => '$pointsfor', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PA', 'sportspress' ),
|
||||
'post_name' => 'pa',
|
||||
'meta' => array( 'sp_equation' => '$pointsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'STRK', 'sportspress' ),
|
||||
'post_name' => 'strk',
|
||||
'meta' => array( 'sp_equation' => '$streak' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['footy'] = array(
|
||||
'name' => __( 'Australian Rules Football', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['gaming'] = array(
|
||||
'name' => __( 'Competitive Gaming', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
presets/golf.php
109
presets/golf.php
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['golf'] = array(
|
||||
'name' => __( 'Golf', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['handball'] = array(
|
||||
'name' => __( 'Handball', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['hockey'] = array(
|
||||
'name' => __( 'Hockey', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
$sportspress_sports = array();
|
||||
|
||||
include_once dirname( __FILE__ ) . '/soccer.php';
|
||||
include_once dirname( __FILE__ ) . '/football.php';
|
||||
include_once dirname( __FILE__ ) . '/footy.php';
|
||||
include_once dirname( __FILE__ ) . '/baseball.php';
|
||||
include_once dirname( __FILE__ ) . '/basketball.php';
|
||||
include_once dirname( __FILE__ ) . '/gaming.php';
|
||||
include_once dirname( __FILE__ ) . '/cricket.php';
|
||||
include_once dirname( __FILE__ ) . '/golf.php';
|
||||
include_once dirname( __FILE__ ) . '/handball.php';
|
||||
include_once dirname( __FILE__ ) . '/hockey.php';
|
||||
include_once dirname( __FILE__ ) . '/racing.php';
|
||||
include_once dirname( __FILE__ ) . '/rugby.php';
|
||||
include_once dirname( __FILE__ ) . '/swimming.php';
|
||||
include_once dirname( __FILE__ ) . '/tennis.php';
|
||||
include_once dirname( __FILE__ ) . '/volleyball.php';
|
||||
|
||||
$sportspress_sports[] = array( 'name' => __( 'Custom', 'sportspress' ), 'posts' => array() );
|
||||
?>
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['racing'] = array(
|
||||
'name' => __( 'Racing', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['rugby'] = array(
|
||||
'name' => __( 'Rugby', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['soccer'] = array(
|
||||
'name' => __( 'Association Football (Soccer)', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['swimming'] = array(
|
||||
'name' => __( 'Swimming', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['tennis'] = array(
|
||||
'name' => __( 'Tennis', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,109 +0,0 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['volleyball'] = array(
|
||||
'name' => __( 'Volleyball', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'post_name' => 'appearances',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'post_name' => 'assists',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'post_name' => 'yellowcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'post_name' => 'redcards',
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'post_name' => 'win'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' ),
|
||||
'post_name' => 'draw'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'post_name' => 'loss'
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'post_name' => 'goals'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' ),
|
||||
'post_name' => 'firsthalf'
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' ),
|
||||
'post_name' => 'secondhalf'
|
||||
)
|
||||
),
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'P', 'sportspress' ),
|
||||
'post_name' => 'p',
|
||||
'meta' => array( 'sp_equation' => '$eventsplayed' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'W', 'sportspress' ),
|
||||
'post_name' => 'w',
|
||||
'meta' => array( 'sp_equation' => '$win' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'D', 'sportspress' ),
|
||||
'post_name' => 'd',
|
||||
'meta' => array( 'sp_equation' => '$draw' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'L', 'sportspress' ),
|
||||
'post_name' => 'l',
|
||||
'meta' => array( 'sp_equation' => '$loss' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'F', 'sportspress' ),
|
||||
'post_name' => 'f',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor', 'sp_priority' => '3', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'A', 'sportspress' ),
|
||||
'post_name' => 'a',
|
||||
'meta' => array( 'sp_equation' => '$goalsagainst' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'GD', 'sportspress' ),
|
||||
'post_name' => 'gd',
|
||||
'meta' => array( 'sp_equation' => '$goalsfor - $goalsagainst', 'sp_priority' => '2', 'sp_order' => 'DESC' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'PTS', 'sportspress' ),
|
||||
'post_name' => 'pts',
|
||||
'meta' => array( 'sp_equation' => '$win * 3 + $draw', 'sp_priority' => '1', 'sp_order' => 'DESC' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user