Fix up presets
This commit is contained in:
187
admin/presets/baseball.php
Normal file
187
admin/presets/baseball.php
Normal file
@@ -0,0 +1,187 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['baseball'] = array(
|
||||
'name' => __( 'Baseball', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'Wins', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$win',
|
||||
'sp_abbreviation' => __( 'W', 'sportspress' ),
|
||||
'sp_priority' => 1,
|
||||
'sp_order' => 'DESC'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Losses', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$loss',
|
||||
'sp_abbreviation' => __( 'L', 'sportspress' ),
|
||||
'sp_priority' => 2,
|
||||
'sp_order' => 'ASC'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Win Percentage', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$win / $eventsplayed',
|
||||
'sp_abbreviation' => __( 'Pct', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Games Back', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '( $winmax + $loss - $win - $lossmax ) / 2',
|
||||
'sp_abbreviation' => __( 'GB', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Runs Scored', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$rfor',
|
||||
'sp_abbreviation' => __( 'RS', 'sportspress' ),
|
||||
'sp_priority' => 3,
|
||||
'sp_order' => 'DESC'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Runs Against', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$ragainst',
|
||||
'sp_abbreviation' => __( 'RA', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Streak', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$streak',
|
||||
'sp_abbreviation' => __( 'Strk', 'sportspress' )
|
||||
)
|
||||
)
|
||||
),
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$eventsplayed'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'meta' => array( 'sp_equation' => '' )
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( '1st Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '1', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '2', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '3rd Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '3', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '4th Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '4', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '5th Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '5', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '6th Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '6', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '7th Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '7', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '8th Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '8', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '9th Inning', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '9', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Extra Innings', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( ' ', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Runs', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( 'R', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Hits', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( 'H', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Errors', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( 'E', 'sportspress' )
|
||||
)
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( 'W', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( 'L', 'sportspress' )
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
127
admin/presets/basketball.php
Normal file
127
admin/presets/basketball.php
Normal file
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['baseball'] = array(
|
||||
'name' => __( 'Baseball', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Table Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'Wins', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$win',
|
||||
'sp_abbreviation' => __( 'W', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Losses', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$loss',
|
||||
'sp_abbreviation' => __( 'L', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Win Percentage', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$win / $eventsplayed',
|
||||
'sp_abbreviation' => __( 'Pct', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Games Behind', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '( $winmax + $loss - $win - $lossmax ) / 2',
|
||||
'sp_abbreviation' => __( 'GB', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Streak', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$streak',
|
||||
'sp_abbreviation' => __( 'Strk', 'sportspress' )
|
||||
)
|
||||
)
|
||||
),
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$eventsplayed'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => ''
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => ''
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => ''
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => ''
|
||||
)
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( '1st Quarter', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '1', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Quarter', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '2', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '3rd Quarter', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '3', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '4th Quarter', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( '4', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Overtime', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( ' ', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Total', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_abbreviation' => __( 'T', 'sportspress' )
|
||||
)
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/cricket.php
Normal file
109
admin/presets/cricket.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
104
admin/presets/football.php
Normal file
104
admin/presets/football.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/footy.php
Normal file
109
admin/presets/footy.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/gaming.php
Normal file
109
admin/presets/gaming.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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
admin/presets/golf.php
Normal file
109
admin/presets/golf.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/handball.php
Normal file
109
admin/presets/handball.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/hockey.php
Normal file
109
admin/presets/hockey.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
21
admin/presets/presets.php
Normal file
21
admin/presets/presets.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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() );
|
||||
?>
|
||||
109
admin/presets/racing.php
Normal file
109
admin/presets/racing.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/rugby.php
Normal file
109
admin/presets/rugby.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
122
admin/presets/soccer.php
Normal file
122
admin/presets/soccer.php
Normal file
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
global $sportspress_sports;
|
||||
|
||||
$sportspress_sports['soccer'] = array(
|
||||
'name' => __( 'Association Football (Soccer)', 'sportspress' ),
|
||||
'posts' => array(
|
||||
// Table Columns
|
||||
'sp_column' => array(
|
||||
array(
|
||||
'post_title' => __( 'Games Played', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$eventsplayed',
|
||||
'sp_abbreviation' => __( 'GP', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Wins', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$win',
|
||||
'sp_abbreviation' => __( 'W', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draws', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$draw',
|
||||
'sp_abbreviation' => __( 'D', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Losses', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$loss',
|
||||
'sp_abbreviation' => __( 'L', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals For', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$goalsfor',
|
||||
'sp_priority' => '3',
|
||||
'sp_order' => 'DESC',
|
||||
'sp_abbreviation' => __( 'GF', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals Against', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$goalsagainst',
|
||||
'sp_abbreviation' => __( 'GA', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goal Difference', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$goalsfor - $goalsagainst',
|
||||
'sp_priority' => '2',
|
||||
'sp_order' => 'DESC',
|
||||
'sp_abbreviation' => __( 'GD', 'sportspress' )
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Points', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$win * 3 + $draw',
|
||||
'sp_priority' => '1',
|
||||
'sp_order' => 'DESC',
|
||||
'sp_abbreviation' => __( 'Pts', 'sportspress' )
|
||||
)
|
||||
)
|
||||
),
|
||||
// Statistics
|
||||
'sp_statistic' => array(
|
||||
array(
|
||||
'post_title' => __( 'Appearances', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_equation' => '$eventsplayed'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' ),
|
||||
'meta' => array(
|
||||
'sp_priority' => '1',
|
||||
'sp_order' => 'DESC'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Assists', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Yellow Cards', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Red Cards', 'sportspress' )
|
||||
)
|
||||
),
|
||||
// Results
|
||||
'sp_result' => array(
|
||||
array(
|
||||
'post_title' => __( 'Goals', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '1st Half', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( '2nd Half', 'sportspress' )
|
||||
)
|
||||
),
|
||||
// Outcomes
|
||||
'sp_outcome' => array(
|
||||
array(
|
||||
'post_title' => __( 'Win', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Draw', 'sportspress' )
|
||||
),
|
||||
array(
|
||||
'post_title' => __( 'Loss', 'sportspress' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/swimming.php
Normal file
109
admin/presets/swimming.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/tennis.php
Normal file
109
admin/presets/tennis.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
109
admin/presets/volleyball.php
Normal file
109
admin/presets/volleyball.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -1,3 +1,4 @@
|
||||
<h3 class="title"><?php _e( 'General Settings', 'sportspress' ); ?></h3>
|
||||
<?php
|
||||
|
||||
settings_fields( 'sportspress_general' );
|
||||
|
||||
Reference in New Issue
Block a user