Move league tables and players lists into modules

This commit is contained in:
Brian Miyaji
2015-01-28 14:37:21 +11:00
parent 87baaf7288
commit 52882399c6
9 changed files with 371 additions and 191 deletions

View File

@@ -11,15 +11,6 @@ $options = array(
),
);
if ( 'yes' == get_option( 'sportspress_load_league_tables_module', 'yes' ) ) {
$options['table'] = array( 'table' );
}
if ( 'yes' == get_option( 'sportspress_load_player_lists_module', 'yes' ) ) {
$options['player'][] = 'list';
$options['player'][] = 'gallery';
}
$options = apply_filters( 'sportspress_shortcodes', $options );
foreach ( $options as $name => $group ) {