id = 'modules'; $this->label = __( 'Modules', 'sportspress' ); $this->sections = apply_filters( 'sportspress_module_sections', array( 'general' => __( 'General', 'sportspress' ), 'event' => __( 'Events', 'sportspress' ), 'team' => __( 'Teams', 'sportspress' ), 'player_staff' => __( 'Players', 'sportspress' ) . ' & ' . __( 'Staff', 'sportspress' ), 'admin' => __( 'Dashboard', 'sportspress' ), 'other' => __( 'Other', 'sportspress' ), )); add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); add_action( 'sportspress_settings_' . $this->id, array( $this, 'output' ) ); add_action( 'sportspress_settings_save_' . $this->id, array( $this, 'save' ) ); } /** * Output modules * * @access public * @return void */ public function output() { ?>
<?php _e( 'SportsPress Pro', 'sportspress' ); ?>

stylesheet ) { ?>

array( 'icon' => 'sp-icon-book', 'label' => __( 'Documentation', 'sportspress' ), 'links' => array( 'http://tboy.co/installation' => __( 'Getting Started', 'sportspress' ), 'http://tboy.co/manuals' => __( 'Manuals', 'sportspress' ), 'http://tboy.co/videos' => __( 'Videos', 'sportspress' ), ), ), 'help' => array( 'icon' => 'dashicons dashicons-heart', 'label' => __( 'Help', 'sportspress' ), 'links' => array( 'http://tboy.co/forums' => __( 'Support Forums', 'sportspress' ), 'http://tboy.co/ideas' => __( 'Feature Requests', 'sportspress' ), ), ), 'social' => array( 'icon' => 'dashicons dashicons-share', 'label' => __( 'Connect', 'sportspress' ), 'links' => array( 'http://tboy.co/twitter' => __( 'Twitter', 'sportspress' ), 'http://tboy.co/facebook' => __( 'Facebook', 'sportspress' ), 'http://tboy.co/youtube' => __( 'YouTube', 'sportspress' ), 'http://tboy.co/gplus' => __( 'Google+', 'sportspress' ), ), ), 'developers' => array( 'icon' => 'dashicons dashicons-editor-code', 'label' => __( 'Developers', 'sportspress' ), 'links' => array( 'http://tboy.co/developers' => __( 'Reference', 'sportspress' ), 'http://tboy.co/slack' => __( 'Slack', 'sportspress' ), 'http://tboy.co/github' => __( 'GitHub', 'sportspress' ), ), ), ); if ( class_exists( 'SportsPress_Pro' ) ) { $categories['help']['links']['http://support.themeboy.com/'] = __( 'Premium Support', 'sportspress' ); } else { $categories['help']['links']['http://tboy.co/pro'] = '' . __( 'Premium Support', 'sportspress' ) . ''; } $categories = apply_filters( 'sportspress_modules_welcome_links', $categories ); if ( sizeof( $categories ) ) { ?>
$category ) { ?>

modules->data as $section => $modules ) { ?> $module ) { ?>
sections, $section, __( 'Modules', 'sportspress' ) ); ?>
>

modules->data as $sections => $modules ) { foreach ( $modules as $id => $module ) { $name = 'sportspress_load_' . $id . '_module'; update_option( $name, isset( $_POST[ $name ] ) ? 'yes' : 'no' ); } } flush_rewrite_rules(); } } endif; return new SP_Settings_Modules();