Automatically load importers, overview, and widgets
This commit is contained in:
@@ -98,20 +98,3 @@ class SP_Settings_Players extends SP_Settings_Page {
|
||||
endif;
|
||||
|
||||
return new SP_Settings_Players();
|
||||
|
||||
/*
|
||||
array(
|
||||
'title' => __( 'Templates', 'sportspress' ),
|
||||
'type' => 'templates',
|
||||
'options' => array(
|
||||
'details' => array(
|
||||
'title' => __( 'Details', 'sportspress' ),
|
||||
'default' => 'yes',
|
||||
),
|
||||
'statistics' => array(
|
||||
'title' => __( 'Statistics', 'sportspress' ),
|
||||
'default' => 'yes',
|
||||
),
|
||||
),
|
||||
),
|
||||
*/
|
||||
@@ -23,32 +23,6 @@ class SP_Modules {
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->data = apply_filters( 'sportspress_modules', array(
|
||||
'general' => array(
|
||||
'tutorials' => array(
|
||||
'label' => __( 'Tutorials', 'sportspress' ),
|
||||
'icon' => 'dashicons dashicons-video-alt3',
|
||||
),
|
||||
'overview' => array(
|
||||
'label' => __( 'Overview', 'sportspress' ),
|
||||
'icon' => 'dashicons dashicons-networking',
|
||||
),
|
||||
'widgets' => array(
|
||||
'label' => __( 'Widgets', 'sportspress' ),
|
||||
'icon' => 'dashicons dashicons-admin-generic',
|
||||
),
|
||||
'importers' => array(
|
||||
'label' => __( 'Importers', 'sportspress' ),
|
||||
'icon' => 'sp-icon-import',
|
||||
),
|
||||
'twitter' => array(
|
||||
'label' => __( 'Twitter', 'sportspress' ),
|
||||
'class' => 'SportsPress_Twitter',
|
||||
'action' => __( 'Tweet #SportsPress', 'sportspress' ),
|
||||
'link' => 'http://tboy.co/tweet',
|
||||
'tip' => __( 'Help spread the word by tweeting with #SportsPress and get the Twitter module for free.', 'sportspress' ),
|
||||
'icon' => 'dashicons dashicons-twitter',
|
||||
),
|
||||
),
|
||||
'event' => array(
|
||||
'calendars' => array(
|
||||
'label' => __( 'Calendars', 'sportspress' ),
|
||||
@@ -108,6 +82,18 @@ class SP_Modules {
|
||||
),
|
||||
),
|
||||
'other' => array(
|
||||
'tutorials' => array(
|
||||
'label' => __( 'Tutorials', 'sportspress' ),
|
||||
'icon' => 'dashicons dashicons-video-alt3',
|
||||
),
|
||||
'twitter' => array(
|
||||
'label' => __( 'Twitter', 'sportspress' ),
|
||||
'class' => 'SportsPress_Twitter',
|
||||
'action' => __( 'Tweet #SportsPress', 'sportspress' ),
|
||||
'link' => 'http://tboy.co/tweet',
|
||||
'tip' => __( 'Help spread the word by tweeting with #SportsPress and get the Twitter module for free.', 'sportspress' ),
|
||||
'icon' => 'dashicons dashicons-twitter',
|
||||
),
|
||||
'branding' => array(
|
||||
'label' => __( 'Branding', 'sportspress' ),
|
||||
'class' => 'SportsPress_Branding',
|
||||
|
||||
@@ -57,6 +57,4 @@ class SportsPress_Importers {
|
||||
|
||||
endif;
|
||||
|
||||
if ( get_option( 'sportspress_load_importers_module', 'yes' ) == 'yes' ) {
|
||||
new SportsPress_Importers();
|
||||
}
|
||||
new SportsPress_Importers();
|
||||
|
||||
@@ -399,6 +399,4 @@ class SportsPress_Overview {
|
||||
|
||||
endif;
|
||||
|
||||
if ( get_option( 'sportspress_load_overview_module', 'yes' ) == 'yes' ) {
|
||||
new SportsPress_Overview();
|
||||
}
|
||||
new SportsPress_Overview();
|
||||
|
||||
@@ -57,6 +57,4 @@ class SportsPress_Widgets {
|
||||
|
||||
endif;
|
||||
|
||||
if ( get_option( 'sportspress_load_widgets_module', 'yes' ) == 'yes' ) {
|
||||
new SportsPress_Widgets();
|
||||
}
|
||||
new SportsPress_Widgets();
|
||||
|
||||
Reference in New Issue
Block a user