plugin = 'sportspress/sportspress.php'; add_action( 'admin_menu', array( $this, 'admin_menus') ); add_action( 'admin_head', array( $this, 'admin_head' ) ); add_action( 'admin_init', array( $this, 'welcome' ) ); } /** * Add admin menus/screens * * @access public * @return void */ public function admin_menus() { $welcome_page_title = __( 'Welcome to SportsPress', 'sportspress' ); // About $about = add_dashboard_page( $welcome_page_title, $welcome_page_title, 'manage_options', 'sp-about', array( $this, 'about_screen' ) ); add_action( 'admin_print_styles-'. $about, array( $this, 'admin_css' ) ); } /** * admin_css function. * * @access public * @return void */ public function admin_css() { wp_enqueue_style( 'sportspress-activation', plugins_url( '/assets/css/activation.css', SP_PLUGIN_FILE ), array(), SP_VERSION ); } /** * Add styles just for this page, and remove dashboard page links. * * @access public * @return void */ public function admin_head() { remove_submenu_page( 'index.php', 'sp-about' ); remove_submenu_page( 'index.php', 'sp-translators' ); // Badge for welcome page $badge_url = SP()->plugin_url() . '/assets/images/welcome/sp-badge.png'; ?> version, 0, 3 ); ?>

version ); ?>

Tweet

intro(); ?>

countries->continents; ?>

'sportspress_sport', 'default' => 'soccer', 'type' => 'select', 'class' => $class, 'options' => $sport_options, )); SP_Admin_Settings::output_fields( $settings ); ?>

Translate SportsPress.', 'sportspress' ); ?>

' . $handle . ''; endforeach; ?>