Populate soccer presets

This commit is contained in:
Brian Miyaji
2014-02-08 23:10:25 +11:00
parent 19755385d9
commit e7e0cb55f1

View File

@@ -3,16 +3,37 @@ global $sportspress_sports;
$sportspress_sports['soccer'] = array( $sportspress_sports['soccer'] = array(
'name' => __( 'Soccer (Association Football)', 'sportspress' ), 'name' => __( 'Soccer (Association Football)', 'sportspress' ),
'terms' => array(
// Positions
'sp_position' => array(
array(
'name' => 'Goalkeeper',
'slug' => 'goalkeeper',
),
array(
'name' => 'Defender',
'slug' => 'defender',
),
array(
'name' => 'Midfielder',
'slug' => 'midfielder',
),
array(
'name' => 'Forward',
'slug' => 'forward',
),
),
),
'posts' => array( 'posts' => array(
// Results // Results
'sp_result' => array( 'sp_result' => array(
array( array(
'post_title' => '1st Half', 'post_title' => '1',
'post_name' => 'firsthalf', 'post_name' => 'one',
), ),
array( array(
'post_title' => '2nd Half', 'post_title' => '2',
'post_name' => 'secondhalf', 'post_name' => 'two',
), ),
array( array(
'post_title' => 'Goals', 'post_title' => 'Goals',
@@ -126,6 +147,14 @@ $sportspress_sports['soccer'] = array(
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'sum',
), ),
'tax_input' => array(
'sp_position' => array(
'goalkeeper',
'defender',
'midfielder',
'striker',
),
),
), ),
array( array(
'post_title' => 'Assists', 'post_title' => 'Assists',
@@ -133,6 +162,14 @@ $sportspress_sports['soccer'] = array(
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'sum',
), ),
'tax_input' => array(
'sp_position' => array(
'goalkeeper',
'defender',
'midfielder',
'striker',
),
),
), ),
array( array(
'post_title' => 'Yellow Cards', 'post_title' => 'Yellow Cards',
@@ -140,6 +177,14 @@ $sportspress_sports['soccer'] = array(
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'sum',
), ),
'tax_input' => array(
'sp_position' => array(
'goalkeeper',
'defender',
'midfielder',
'striker',
),
),
), ),
array( array(
'post_title' => 'Red Cards', 'post_title' => 'Red Cards',
@@ -147,6 +192,14 @@ $sportspress_sports['soccer'] = array(
'meta' => array( 'meta' => array(
'sp_calculate' => 'sum', 'sp_calculate' => 'sum',
), ),
'tax_input' => array(
'sp_position' => array(
'goalkeeper',
'defender',
'midfielder',
'striker',
),
),
), ),
), ),
), ),