Move general modules to new section

This commit is contained in:
Brian Miyaji
2015-03-15 15:46:39 +11:00
parent 3a2a2b770b
commit 94e92f9972

View File

@@ -23,6 +23,32 @@ 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' ),
@@ -82,26 +108,6 @@ class SP_Modules {
),
),
'other' => array(
'tutorials' => array(
'label' => __( 'Tutorials', 'sportspress' ),
'icon' => 'dashicons dashicons-video-alt3',
),
'widgets' => array(
'label' => __( 'Widgets', 'sportspress' ),
'icon' => 'dashicons dashicons-welcome-widgets-menus',
),
'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',
),
'branding' => array(
'label' => __( 'Branding', 'sportspress' ),
'class' => 'SportsPress_Branding',