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' ); ?>

<?php _e( 'SportsPress TV', 'sportspress' ); ?>

  1. ', '' ), __( 'Follow [link]@ThemeBoy[/link] on Twitter.','sportspress' ) ); ?>
  2. ', '' ), __( 'Help spread the word by tweeting with [link]#SportsPress[/link] and get the Twitter module for free.','sportspress' ) ); ?>
  3. ', '' ), __( '[link]Get the download link[/link].', 'sportspress' ) ); ?>

  1. ★★★★★', '', '' ), __( 'Add your [stars] on [link]wordpress.org[/link] and get the Birthdays module for free.','sportspress' ) ); ?>
  2. ', '' ), __( '[link]Get the download link[/link].', 'sportspress' ) ); ?>

stylesheet ) { ?>

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();