Remove mode setting and unused thumbnail sizes

This commit is contained in:
Brian Miyaji
2014-08-14 18:54:55 +10:00
parent 64fab4eb2d
commit 4fe9525a8a
19 changed files with 137 additions and 234 deletions

View File

@@ -53,17 +53,6 @@ class SP_Settings_General extends SP_Settings_Page {
'options' => $presets,
),
array(
'title' => __( 'Mode', 'sportspress' ),
'id' => 'sportspress_mode',
'default' => 'team',
'type' => 'select',
'options' => array(
'team' => _x( 'Team', 'mode select', 'sportspress' ),
'player' => _x( 'Individual', 'mode select', 'sportspress' ),
),
),
array(
'title' => __( 'Google Maps', 'sportspress' ),
'id' => 'sportspress_map_type',
@@ -141,6 +130,15 @@ class SP_Settings_General extends SP_Settings_Page {
'desc_tip' => __( 'This will enable a script allowing the tables to be sortable.', 'sportspress' ),
),
array(
'desc' => __( 'Scrollable tables', 'sportspress' ),
'id' => 'sportspress_enable_scrollable_tables',
'default' => 'yes',
'type' => 'checkbox',
'checkboxgroup' => '',
'desc_tip' => __( 'This will enable a script allowing the tables to be scrollable.', 'sportspress' ),
),
array(
'desc' => __( 'Live countdowns', 'sportspress' ),
'id' => 'sportspress_enable_live_countdowns',

View File

@@ -57,19 +57,15 @@ class SP_Settings_Players extends SP_Settings_Page {
'default' => 'yes',
'type' => 'checkbox',
),
);
if ( SP()->mode == 'team' ):
$settings[] = array(
array(
'title' => __( 'Teams', 'sportspress' ),
'desc' => __( 'Link teams', 'sportspress' ),
'id' => 'sportspress_list_link_teams',
'default' => 'no',
'type' => 'checkbox',
);
endif;
),
$settings = array_merge( $settings, array(
array(
'title' => __( 'Pagination', 'sportspress' ),
'desc' => __( 'Paginate', 'sportspress' ),
@@ -92,7 +88,7 @@ class SP_Settings_Players extends SP_Settings_Page {
),
array( 'type' => 'sectionend', 'id' => 'list_options' ),
)); // End player settings
); // End player settings
return apply_filters( 'sportspress_player_settings', $settings );
}