From 1ac35bbe67dc1ea57ec0bc0de8ab0082c2835df6 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 20 Jun 2014 15:47:39 +1000 Subject: [PATCH] Remove unused function --- includes/sp-core-functions.php | 1459 -------------------------------- 1 file changed, 1459 deletions(-) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 3506bf30..64025f12 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -1025,1465 +1025,6 @@ if ( !function_exists( 'sp_get_next_event' ) ) { } } -/** - * Get an array of sport options and settings. - * @return array - */ -function sp_get_sport_presets() { - return apply_filters( 'sportspress_sports', array( - 'baseball' => array( - 'name' => __( 'Baseball', 'sportspress' ), - 'posts' => array( - // Columns - 'sp_column' => array( - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - 'sp_precision' => 0, - 'sp_priority' => 1, - 'sp_order' => 'DESC', - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - 'sp_precision' => 0, - 'sp_priority' => 2, - 'sp_order' => 'ASC', - ), - ), - array( - 'post_title' => 'Pct', - 'post_name' => 'pct', - 'meta' => array( - 'sp_equation' => '$w / $eventsplayed', - 'sp_precision' => 2, - ), - ), - array( - 'post_title' => 'RS', - 'post_name' => 'rs', - 'meta' => array( - 'sp_equation' => '$rfor', - 'sp_precision' => 0, - 'sp_priority' => 3, - 'sp_order' => 'DESC', - ), - ), - array( - 'post_title' => 'RA', - 'post_name' => 'ra', - 'meta' => array( - 'sp_equation' => '$ragainst', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'Strk', - 'post_name' => 'strk', - 'meta' => array( - 'sp_equation' => '$streak', - 'sp_precision' => 0, - ), - ), - ), - // Statistics - 'sp_statistic' => array( - ), - // Results - 'sp_result' => array( - array( - 'post_title' => '1', - 'post_name' => 'first', - 'meta' => array( - ), - ), - array( - 'post_title' => '2', - 'post_name' => 'second', - 'meta' => array( - ), - ), - array( - 'post_title' => '3', - 'post_name' => 'third', - 'meta' => array( - ), - ), - array( - 'post_title' => '4', - 'post_name' => 'fourth', - 'meta' => array( - ), - ), - array( - 'post_title' => '5', - 'post_name' => 'fifth', - 'meta' => array( - ), - ), - array( - 'post_title' => '6', - 'post_name' => 'sixth', - 'meta' => array( - ), - ), - array( - 'post_title' => '7', - 'post_name' => 'seventh', - 'meta' => array( - ), - ), - array( - 'post_title' => '8', - 'post_name' => 'eighth', - 'meta' => array( - ), - ), - array( - 'post_title' => '9', - 'post_name' => 'ninth', - 'meta' => array( - ), - ), - array( - 'post_title' => ' ', - 'post_name' => 'extra', - 'meta' => array( - ), - ), - array( - 'post_title' => 'R', - 'post_name' => 'r', - 'meta' => array( - ), - ), - array( - 'post_title' => 'H', - 'post_name' => 'h', - 'meta' => array( - ), - ), - array( - 'post_title' => 'E', - 'post_name' => 'e', - 'meta' => array( - ), - ), - ), - // Outcomes - 'sp_outcome' => array( - array( - 'post_title' => 'Win', - 'post_name' => 'w', - 'meta' => array( - ), - ), - array( - 'post_title' => 'Loss', - 'post_name' => 'l', - 'meta' => array( - ), - ), - ), - ), - ), - 'basketball' => array( - 'name' => __( 'Basketball', 'sportspress' ), - 'terms' => array( - // Positions - 'sp_position' => array( - array( - 'name' => 'Point Guard', - 'slug' => 'pointguard', - ), - array( - 'name' => 'Shooting Guard', - 'slug' => 'shootingguard', - ), - array( - 'name' => 'Small Forward', - 'slug' => 'smallforward', - ), - array( - 'name' => 'Power Forward', - 'slug' => 'powerforward', - ), - array( - 'name' => 'Center', - 'slug' => 'center', - ), - ), - ), - 'posts' => array( - // Results - 'sp_result' => array( - array( - 'post_title' => '1', - 'post_name' => 'one', - ), - array( - 'post_title' => '2', - 'post_name' => 'two', - ), - array( - 'post_title' => '3', - 'post_name' => 'three', - ), - array( - 'post_title' => '4', - 'post_name' => 'four', - ), - array( - 'post_title' => 'OT', - 'post_name' => 'ot', - ), - array( - 'post_title' => 'T', - 'post_name' => 't', - ), - ), - // Outcomes - 'sp_outcome' => array( - array( - 'post_title' => 'W', - 'post_name' => 'w', - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - ), - ), - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - ), - ), - array( - 'post_title' => 'Pct', - 'post_name' => 'pct', - 'meta' => array( - 'sp_equation' => '$w / $eventsplayed * 100', - ), - ), - array( - 'post_title' => 'GB', - 'post_name' => 'gb', - 'meta' => array( - 'sp_equation' => '( $wmax + $l - $w - $lmax ) / 2', - ), - ), - array( - 'post_title' => 'L10', - 'post_name' => 'lten', - 'meta' => array( - 'sp_equation' => '$last10', - ), - ), - array( - 'post_title' => 'Streak', - 'post_name' => 'streak', - 'meta' => array( - 'sp_equation' => '$streak', - ), - ), - array( - 'post_title' => 'PF', - 'post_name' => 'pf', - 'meta' => array( - 'sp_equation' => '$tfor', - ), - ), - array( - 'post_title' => 'PA', - 'post_name' => 'pa', - 'meta' => array( - 'sp_equation' => '$tagainst', - ), - ), - array( - 'post_title' => 'DIFF', - 'post_name' => 'diff', - 'meta' => array( - 'sp_equation' => '$tfor - $tagainst', - ), - ), - ), - // Player Metrics - 'sp_metric' => array( - array( - 'post_title' => 'Height', - 'post_name' => 'height', - ), - array( - 'post_title' => 'Weight', - 'post_name' => 'weight', - ), - array( - 'post_title' => 'Experience', - 'post_name' => 'experience', - ), - ), - // Player Performance - 'sp_performance' => array( - array( - 'post_title' => 'MIN', - 'post_name' => 'min', - ), - array( - 'post_title' => 'FGM', - 'post_name' => 'fgm', - ), - array( - 'post_title' => 'FGA', - 'post_name' => 'fga', - ), - array( - 'post_title' => '3PM', - 'post_name' => '3pm', - ), - array( - 'post_title' => '3PA', - 'post_name' => '3pa', - ), - array( - 'post_title' => 'FTM', - 'post_name' => 'ftm', - ), - array( - 'post_title' => 'FTA', - 'post_name' => 'fta', - ), - array( - 'post_title' => 'OFF', - 'post_name' => 'off', - ), - array( - 'post_title' => 'DEF', - 'post_name' => 'def', - ), - array( - 'post_title' => 'REB', - 'post_name' => 'reb', - ), - array( - 'post_title' => 'AST', - 'post_name' => 'ast', - ), - array( - 'post_title' => 'STL', - 'post_name' => 'stl', - ), - array( - 'post_title' => 'BLK', - 'post_name' => 'blk', - ), - array( - 'post_title' => 'TO', - 'post_name' => 'to', - ), - array( - 'post_title' => 'PF', - 'post_name' => 'pf', - ), - array( - 'post_title' => 'PTS', - 'post_name' => 'pts', - ), - ), - ), - ), - 'cricket' => array( - 'name' => __( 'Cricket', 'sportspress' ), - 'posts' => array( - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'M', - 'post_name' => 'm', - 'meta' => array( - 'sp_equation' => '$eventsplayed', - ), - ), - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - ), - ), - array( - 'post_title' => 'T', - 'post_name' => 't', - 'meta' => array( - 'sp_equation' => '$t', - ), - ), - array( - 'post_title' => 'N/R', - 'post_name' => 'nr', - 'meta' => array( - 'sp_equation' => '$nr', - ), - ), - array( - 'post_title' => 'Pts', - 'post_name' => 'pts', - 'meta' => array( - 'sp_equation' => '$w * 2 + $nr', - 'sp_priority' => '1', - 'sp_order' => 'DESC', - ), - ), - array( - 'post_title' => 'RR', - 'post_name' => 'rr', - 'meta' => array( - 'sp_equation' => '( $rfor / $oagainst ) - ( $ragainst / $ofor )', - ), - ), - ), - // Performance - 'sp_performance' => array( - ), - // Results - 'sp_result' => array( - ), - // Outcomes - 'sp_outcome' => array( - ), - ), - ), - 'football' => array( - 'name' => __( 'American Football', 'sportspress' ), - 'terms' => array( - // Positions - 'sp_position' => array( - array( - 'name' => 'Quarterback', - 'slug' => 'quarterback', - ), - array( - 'name' => 'Running Back', - 'slug' => 'runningback', - ), - array( - 'name' => 'Wide Receiver', - 'slug' => 'widereceiver', - ), - array( - 'name' => 'Tight End', - 'slug' => 'tightend', - ), - array( - 'name' => 'Defensive Lineman', - 'slug' => 'defensivelineman', - ), - array( - 'name' => 'Linebacker', - 'slug' => 'linebacker', - ), - array( - 'name' => 'Defensive Back', - 'slug' => 'defensiveback', - ), - array( - 'name' => 'Kickoff Kicker', - 'slug' => 'kickoffkicker', - ), - array( - 'name' => 'Kick Returner', - 'slug' => 'kickreturner', - ), - array( - 'name' => 'Punter', - 'slug' => 'punter', - ), - array( - 'name' => 'Punt Returner', - 'slug' => 'puntreturner', - ), - array( - 'name' => 'Field Goal Kicker', - 'slug' => 'fieldgoalkicker', - ), - ), - ), - 'posts' => array( - // Results - 'sp_result' => array( - array( - 'post_title' => '1', - 'post_name' => 'one', - ), - array( - 'post_title' => '2', - 'post_name' => 'two', - ), - array( - 'post_title' => '3', - 'post_name' => 'three', - ), - array( - 'post_title' => '4', - 'post_name' => 'four', - ), - array( - 'post_title' => 'TD', - 'post_name' => 'td', - ), - array( - 'post_title' => 'T', - 'post_name' => 't', - ), - ), - // Outcomes - 'sp_outcome' => array( - array( - 'post_title' => 'Win', - 'post_name' => 'w', - ), - array( - 'post_title' => 'Loss', - 'post_name' => 'l', - ), - array( - 'post_title' => 'Tie', - 'post_name' => 't', - ), - ), - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - ), - ), - array( - 'post_title' => 'T', - 'post_name' => 't', - 'meta' => array( - 'sp_equation' => '$t', - ), - ), - array( - 'post_title' => 'Pct', - 'post_name' => 'pct', - 'meta' => array( - 'sp_equation' => '$w / $eventsplayed', - ), - ), - array( - 'post_title' => 'PF', - 'post_name' => 'pf', - 'meta' => array( - 'sp_equation' => '$tfor', - ), - ), - array( - 'post_title' => 'PA', - 'post_name' => 'pa', - 'meta' => array( - 'sp_equation' => '$tagainst', - ), - ), - array( - 'post_title' => 'Net Pts', - 'post_name' => 'netpts', - 'meta' => array( - 'sp_equation' => '$tfor - $tagainst', - ), - ), - array( - 'post_title' => 'TD', - 'post_name' => 'td', - 'meta' => array( - 'sp_equation' => '$td', - ), - ), - array( - 'post_title' => 'Strk', - 'post_name' => 'strk', - 'meta' => array( - 'sp_equation' => '$streak', - ), - ), - array( - 'post_title' => 'Last 5', - 'post_name' => 'last5', - 'meta' => array( - 'sp_equation' => '$last5', - ), - ), - ), - // Player Metrics - 'sp_metric' => array( - array( - 'post_title' => 'Height', - 'post_name' => 'height', - ), - array( - 'post_title' => 'Weight', - 'post_name' => 'weight', - ), - ), - // Player Performance - 'sp_performance' => array( - array( - 'post_title' => 'Comp', - 'post_name' => 'comp', - ), - array( - 'post_title' => 'Att', - 'post_name' => 'att', - ), - array( - 'post_title' => 'Pct', - 'post_name' => 'pct', - ), - array( - 'post_title' => 'Att/G', - 'post_name' => 'attg', - ), - array( - 'post_title' => 'Rec', - 'post_name' => 'rec', - ), - array( - 'post_title' => 'Comb', - 'post_name' => 'comb', - ), - array( - 'post_title' => 'Total', - 'post_name' => 'total', - ), - array( - 'post_title' => 'Ast', - 'post_name' => 'ast', - ), - array( - 'post_title' => 'Sck', - 'post_name' => 'scktackles', - ), - array( - 'post_title' => 'SFTY', - 'post_name' => 'sfty', - ), - array( - 'post_title' => 'PDef', - 'post_name' => 'pdef', - ), - array( - 'post_title' => 'TDs', - 'post_name' => 'tds', - ), - array( - 'post_title' => 'KO', - 'post_name' => 'ko', - ), - array( - 'post_title' => 'Ret', - 'post_name' => 'ret', - ), - array( - 'post_title' => 'Punts', - 'post_name' => 'punts', - ), - array( - 'post_title' => 'Yds', - 'post_name' => 'yds', - ), - array( - 'post_title' => 'Net Yds', - 'post_name' => 'netyds', - ), - array( - 'post_title' => 'Avg', - 'post_name' => 'avg', - ), - array( - 'post_title' => 'Net Avg', - 'post_name' => 'netavg', - ), - array( - 'post_title' => 'Blk', - 'post_name' => 'blk', - ), - array( - 'post_title' => 'OOB', - 'post_name' => 'oob', - ), - array( - 'post_title' => 'Dn', - 'post_name' => 'dn', - ), - array( - 'post_title' => 'IN 20', - 'post_name' => 'in20', - ), - array( - 'post_title' => 'TB', - 'post_name' => 'tb', - ), - array( - 'post_title' => 'FC', - 'post_name' => 'fc', - ), - array( - 'post_title' => 'Ret', - 'post_name' => 'retpunt', - ), - array( - 'post_title' => 'RetY', - 'post_name' => 'rety', - ), - array( - 'post_title' => 'Yds/G', - 'post_name' => 'ydsg', - ), - array( - 'post_title' => 'TD', - 'post_name' => 'TD', - ), - array( - 'post_title' => 'Int', - 'post_name' => 'int', - ), - array( - 'post_title' => '1st', - 'post_name' => 'first', - ), - array( - 'post_title' => '1st%', - 'post_name' => 'firstpct', - ), - array( - 'post_title' => 'Lng', - 'post_name' => 'lng', - ), - array( - 'post_title' => '20+', - 'post_name' => 'twentyplus', - ), - array( - 'post_title' => '40+', - 'post_name' => 'fourtyplus', - ), - array( - 'post_title' => 'Sck', - 'post_name' => 'sck', - ), - array( - 'post_title' => 'Rate', - 'post_name' => 'rate', - ), - array( - 'post_title' => 'FUM', - 'post_name' => 'fum', - ), - array( - 'post_title' => 'FF', - 'post_name' => 'ff', - ), - array( - 'post_title' => 'Rec', - 'post_name' => 'recfum', - ), - array( - 'post_title' => 'TD', - 'post_name' => 'tdfum', - ), - array( - 'post_title' => 'Avg', - 'post_name' => 'avgpunt', - ), - array( - 'post_title' => 'Lng', - 'post_name' => 'lngpunt', - ), - array( - 'post_title' => 'TD', - 'post_name' => 'tdpunt', - ), - array( - 'post_title' => '20+', - 'post_name' => 'twentypluspunt', - ), - array( - 'post_title' => '40+', - 'post_name' => 'fourtypluspunt', - ), - array( - 'post_title' => 'FC', - 'post_name' => 'fcpunt', - ), - array( - 'post_title' => 'FUM', - 'post_name' => 'fumpunt', - ), - array( - 'post_title' => 'OSK', - 'post_name' => 'osk', - ), - array( - 'post_title' => 'OSKR', - 'post_name' => 'oskr', - ), - ), - ), - ), - 'footy' => array( - 'name' => __( 'Australian Rules Football', 'sportspress' ), - 'posts' => array( - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'P', - 'post_name' => 'p', - 'meta' => array( - 'sp_equation' => '$eventsplayed', - ) - ), - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - ) - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - ) - ), - array( - 'post_title' => 'D', - 'post_name' => 'd', - 'meta' => array( - 'sp_equation' => '$d', - ) - ), - array( - 'post_title' => 'F', - 'post_name' => 'f', - 'meta' => array( - 'sp_equation' => '$ptsfor', - ) - ), - array( - 'post_title' => 'A', - 'post_name' => 'a', - 'meta' => array( - 'sp_equation' => '$ptsagainst', - ) - ), - array( - 'post_title' => 'Pct', - 'post_name' => 'pct', - 'meta' => array( - 'sp_equation' => '( $w / $eventsplayed ) * 10 * 10', - ) - ), - array( - 'post_title' => 'Pts', - 'post_name' => 'pts', - 'meta' => array( - 'sp_equation' => '$pts', - ) - ) - ), - // Performance - 'sp_performance' => array( - ), - // Results - 'sp_result' => array( - ), - // Outcomes - 'sp_outcome' => array( - ), - ), - ), - 'gaming' => array( - 'name' => __( 'Competitive Gaming', 'sportspress' ), - 'posts' => array( - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - ), - ), - array( - 'post_title' => 'Pct', - 'post_name' => 'pct', - 'meta' => array( - 'sp_equation' => '$w / $eventsplayed', - ), - ), - array( - 'post_title' => 'Strk', - 'post_name' => 'strk', - 'meta' => array( - 'sp_equation' => '$strk', - ), - ), - array( - 'post_title' => 'XP', - 'post_name' => 'xp', - 'meta' => array( - 'sp_equation' => '$xp', - ), - ), - array( - 'post_title' => 'Rep', - 'post_name' => 'rep', - 'meta' => array( - 'sp_equation' => '$rep / $eventsplayed', - ), - ), - array( - 'post_title' => 'Ping', - 'post_name' => 'ping', - 'meta' => array( - 'sp_equation' => '$ping / $eventsplayed', - ), - ), - ), - // Performance - 'sp_performance' => array( - ), - // Results - 'sp_result' => array( - ), - // Outcomes - 'sp_outcome' => array( - ), - ), - ), - 'golf' => array( - 'name' => __( 'Golf', 'sportspress' ), - 'posts' => array( - // Table Columns - 'sp_column' => array( - ), - // Performance - 'sp_performance' => array( - array( - 'post_title' => 'Events', - 'post_name' => 'events', - ), - array( - 'post_title' => 'Avg', - 'post_name' => 'avg', - ), - array( - 'post_title' => 'Total', - 'post_name' => 'total', - ), - array( - 'post_title' => 'PL', - 'post_name' => 'lost', - ), - array( - 'post_title' => 'PG', - 'post_name' => 'gained', - ), - ), - // Results - 'sp_result' => array( - ), - // Outcomes - 'sp_outcome' => array( - ), - ), - ), - 'hockey' => array( - 'name' => __( 'Hockey', 'sportspress' ), - 'posts' => array( - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'GP', - 'post_name' => 'gp', - 'meta' => array( - 'sp_equation' => '$eventsplayed', - ), - ), - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - ), - ), - array( - 'post_title' => 'OT', - 'post_name' => 'ot', - 'meta' => array( - 'sp_equation' => '$ot', - ), - ), - array( - 'post_title' => 'P', - 'post_name' => 'p', - 'meta' => array( - 'sp_equation' => '$w * 2 + $ot', - ), - ), - array( - 'post_title' => 'GF', - 'post_name' => 'gf', - 'meta' => array( - 'sp_equation' => '$gfor', - ), - ), - array( - 'post_title' => 'GA', - 'post_name' => 'ga', - 'meta' => array( - 'sp_equation' => '$gagainst', - ), - ), - array( - 'post_title' => 'Strk', - 'post_name' => 'strk', - 'meta' => array( - 'sp_equation' => '$streak', - ), - ), - ), - // Performance - 'sp_performance' => array( - ), - // Results - 'sp_result' => array( - ), - // Outcomes - 'sp_outcome' => array( - array( - 'post_title' => 'Win', - 'post_name' => 'w' - ), - array( - 'post_title' => 'Loss', - 'post_name' => 'l' - ), - array( - 'post_title' => 'Overtime', - 'post_name' => 'ot' - ), - ), - ), - ), - 'racing' => array( - 'name' => __( 'Racing', 'sportspress' ), - 'posts' => array( - // Table Columns - 'sp_column' => array( - ), - // Performance - 'sp_performance' => array( - array( - 'post_title' => 'Pts', - 'post_name' => 'pts', - ), - array( - 'post_title' => 'B', - 'post_name' => 'b', - ), - array( - 'post_title' => 'S', - 'post_name' => 's', - ), - array( - 'post_title' => 'W', - 'post_name' => 'w', - ), - array( - 'post_title' => 'DNF', - 'post_name' => 'dnf', - ), - ), - // Results - 'sp_result' => array( - ), - // Outcomes - 'sp_outcome' => array( - ), - ), - ), - 'rugby' => array( - 'name' => __( 'Rugby', 'sportspress' ), - 'posts' => array( - // Results - 'sp_result' => array( - array( - 'post_title' => 'Points', - 'post_name' => 'points', - ), - array( - 'post_title' => 'Bonus', - 'post_name' => 'bonus', - ), - ), - // Outcomes - 'sp_outcome' => array( - array( - 'post_title' => 'Win', - 'post_name' => 'w', - ), - array( - 'post_title' => 'Draw', - 'post_name' => 'd', - ), - array( - 'post_title' => 'Loss', - 'post_name' => 'l', - ), - ), - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'P', - 'post_name' => 'p', - 'meta' => array( - 'sp_equation' => '$eventsplayed', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'D', - 'post_name' => 'd', - 'meta' => array( - 'sp_equation' => '$d', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'B', - 'post_name' => 'b', - 'meta' => array( - 'sp_equation' => '$bonus', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'F', - 'post_name' => 'f', - 'meta' => array( - 'sp_equation' => '$pointsfor', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'A', - 'post_name' => 'a', - 'meta' => array( - 'sp_equation' => '$pointsagainst', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => '+/-', - 'post_name' => 'pd', - 'meta' => array( - 'sp_equation' => '$pointsfor - $pointsagainst', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'Pts', - 'post_name' => 'pts', - 'meta' => array( - 'sp_equation' => '( $w + $bonus ) * 2 + $d', - 'sp_precision' => 0, - 'sp_priority' => '1', - 'sp_order' => 'DESC', - ), - ), - ), - // Player Metrics - 'sp_metric' => array( - array( - 'post_title' => 'Height', - 'post_name' => 'height', - ), - array( - 'post_title' => 'Weight', - 'post_name' => 'weight', - ), - ), - // Player Performance - 'sp_performance' => array( - array( - 'post_title' => 'Points', - 'post_name' => 'points', - ), - array( - 'post_title' => 'Tries', - 'post_name' => 'tries', - ), - array( - 'post_title' => 'Conversions', - 'post_name' => 'conversions', - ), - array( - 'post_title' => 'Penalty Goals', - 'post_name' => 'penaltygoals', - ), - array( - 'post_title' => 'Drop Goals', - 'post_name' => 'dropgoals', - ), - ), - ), - ), - 'soccer' => array( - '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( - // Results - 'sp_result' => array( - array( - 'post_title' => '1st Half', - 'post_name' => 'firsthalf', - ), - array( - 'post_title' => '2nd Half', - 'post_name' => 'secondhalf', - ), - array( - 'post_title' => 'Goals', - 'post_name' => 'goals', - ), - ), - // Outcomes - 'sp_outcome' => array( - array( - 'post_title' => 'Win', - 'post_name' => 'w', - ), - array( - 'post_title' => 'Draw', - 'post_name' => 'd', - ), - array( - 'post_title' => 'Loss', - 'post_name' => 'l', - ), - ), - // Table Columns - 'sp_column' => array( - array( - 'post_title' => 'P', - 'post_name' => 'p', - 'meta' => array( - 'sp_equation' => '$eventsplayed', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'W', - 'post_name' => 'w', - 'meta' => array( - 'sp_equation' => '$w', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'D', - 'post_name' => 'd', - 'meta' => array( - 'sp_equation' => '$d', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'L', - 'post_name' => 'l', - 'meta' => array( - 'sp_equation' => '$l', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'F', - 'post_name' => 'f', - 'meta' => array( - 'sp_equation' => '$goalsfor', - 'sp_precision' => 0, - 'sp_priority' => '3', - 'sp_order' => 'DESC', - ), - ), - array( - 'post_title' => 'A', - 'post_name' => 'a', - 'meta' => array( - 'sp_equation' => '$goalsagainst', - 'sp_precision' => 0, - ), - ), - array( - 'post_title' => 'GD', - 'post_name' => 'gd', - 'meta' => array( - 'sp_equation' => '$goalsfor - $goalsagainst', - 'sp_precision' => 0, - 'sp_priority' => '2', - 'sp_order' => 'DESC', - ), - ), - array( - 'post_title' => 'Pts', - 'post_name' => 'pts', - 'meta' => array( - 'sp_equation' => '$w * 3 + $d', - 'sp_precision' => 0, - 'sp_priority' => '1', - 'sp_order' => 'DESC', - ), - ), - ), - // Player Metrics - 'sp_metric' => array( - array( - 'post_title' => 'Height', - 'post_name' => 'height', - 'tax_input' => array( - 'sp_position' => array( - 'goalkeeper', - 'defender', - 'midfielder', - 'forward', - ), - ), - ), - array( - 'post_title' => 'Weight', - 'post_name' => 'weight', - 'tax_input' => array( - 'sp_position' => array( - 'goalkeeper', - 'defender', - 'midfielder', - 'forward', - ), - ), - ), - ), - // Player Performance - 'sp_performance' => array( - array( - 'post_title' => 'Goals', - 'post_name' => 'goals', - ), - array( - 'post_title' => 'Assists', - 'post_name' => 'assists', - ), - array( - 'post_title' => 'Yellow Cards', - 'post_name' => 'yellowcards', - ), - array( - 'post_title' => 'Red Cards', - 'post_name' => 'redcards', - ), - ), - ), - ), - 'custom' => array( - 'name' => __( 'Custom', 'sportspress' ), - ), - )); -} - /** * Get an array of text options per context. * @return array