From 3eba75ca36f12b0fccd5272b79d72a21a563a5cc Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 14 Aug 2014 19:34:18 +1000 Subject: [PATCH] Group table scripts in general settings --- .../settings/class-sp-settings-general.php | 54 +++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/includes/admin/settings/class-sp-settings-general.php b/includes/admin/settings/class-sp-settings-general.php index f1693bf6..3e1828f6 100644 --- a/includes/admin/settings/class-sp-settings-general.php +++ b/includes/admin/settings/class-sp-settings-general.php @@ -113,38 +113,11 @@ class SP_Settings_General extends SP_Settings_Page { array( 'title' => __( 'Scripts', 'sportspress' ), - 'desc' => __( 'Responsive tables', 'sportspress' ), - 'id' => 'sportspress_enable_responsive_tables', - 'default' => 'yes', - 'type' => 'checkbox', - 'checkboxgroup' => 'start', - 'desc_tip' => __( 'This will enable a script allowing the tables to be responsive.', 'sportspress' ), - ), - - array( - 'desc' => __( 'Sortable tables', 'sportspress' ), - 'id' => 'sportspress_enable_sortable_tables', - 'default' => 'yes', - 'type' => 'checkbox', - 'checkboxgroup' => '', - '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', 'default' => 'yes', 'type' => 'checkbox', - 'checkboxgroup' => '', + 'checkboxgroup' => 'start', 'desc_tip' => __( 'This will enable a script allowing the countdowns to be animated.', 'sportspress' ), ), @@ -156,6 +129,31 @@ class SP_Settings_General extends SP_Settings_Page { 'checkboxgroup' => 'end', 'desc_tip' => __( 'This will enable a shortcode menu to be displayed in the visual editor.', 'sportspress' ), ), + + array( + 'title' => __( 'Tables', 'sportspress' ), + 'desc' => __( 'Responsive', 'sportspress' ), + 'id' => 'sportspress_enable_responsive_tables', + 'default' => 'yes', + 'type' => 'checkbox', + 'checkboxgroup' => 'start', + ), + + array( + 'desc' => __( 'Sortable', 'sportspress' ), + 'id' => 'sportspress_enable_sortable_tables', + 'default' => 'yes', + 'type' => 'checkbox', + 'checkboxgroup' => '', + ), + + array( + 'desc' => __( 'Scrollable', 'sportspress' ), + 'id' => 'sportspress_enable_scrollable_tables', + 'default' => 'yes', + 'type' => 'checkbox', + 'checkboxgroup' => 'end', + ), array( 'title' => __( 'Header Offset', 'sportspress' ),