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() { if ( empty( $_GET['page'] ) ) { return; } $welcome_page_name = __( 'About SportsPress', 'sportspress' ); $welcome_page_title = __( 'Welcome to SportsPress', 'sportspress' ); switch ( $_GET['page'] ) { case 'sp-about' : $page = add_dashboard_page( $welcome_page_title, $welcome_page_name, 'manage_options', 'sp-about', array( $this, 'about_screen' ) ); add_action( 'admin_print_styles-'. $page, array( $this, 'admin_css' ) ); break; case 'sp-credits' : $page = add_dashboard_page( $welcome_page_title, $welcome_page_name, 'manage_options', 'sp-credits', array( $this, 'credits_screen' ) ); add_action( 'admin_print_styles-'. $page, array( $this, 'admin_css' ) ); break; case 'sp-translators' : $page = add_dashboard_page( $welcome_page_title, $welcome_page_name, 'manage_options', 'sp-translators', array( $this, 'translators_screen' ) ); add_action( 'admin_print_styles-'. $page, array( $this, 'admin_css' ) ); break; } } /** * 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-credits' ); remove_submenu_page( 'index.php', 'sp-translators' ); } /** * Into text/links shown on all about pages. * * @access private * @return void */ private function intro() { // Flush after upgrades if ( ! empty( $_GET['sp-updated'] ) || ! empty( $_GET['sp-installed'] ) ) flush_rewrite_rules(); // Get major version number $version = explode( '.', SP()->version, 3 ); unset( $version[2] ); $display_version = implode( '.', $version ); ?>
A match day can be added to any event and displayed directly inside the event details section. It can also be used as a filter for shortcodes and widgets.
For undecided, postponed, and cancelled events, a status can be displayed in place of the time. Leave the status alone to display the actual time of the event.
You can now can enter the time of goals or any other statistic for each player, and display them directly within the box score section of event pages.
Simply drag and drop any of the layout items to automatically group them into tabs. This will make your templates more compact and intuitive.
Display the teams playing using an inline layout or as a block section, with logos on either side and the date and time/results in the middle.
We also added a dropdown above the player details box which allows your visitors to quickly switch to another player's profile.
A new, simpler importer has been added for quickly scheduling events. Supports CSV files generated by LeagueLobster.
If you've enabled the Tutorials module, all SportsPress users will now be able to access them from the dashboard.
The REST API has been updated to support meta query vars, allowing you to retrieve data for a specific team or player.
Contribute to SportsPress.', 'sportspress' ), 'https://github.com/ThemeBoy/SportsPress/blob/master/CONTRIBUTING.md' ); ?>
Add a Sport Preset.', 'sportspress' ), 'http://tboy.co/preset' ); ?>
Translate SportsPress.', 'sportspress' ), 'https://www.transifex.com/projects/p/sportspress/' ); ?>
array(
'albpower',
),
'العربية' => array(
'Abdulelah',
'elgolden',
'hushiea',
),
'Հայերեն' => array(
'ArtakEVN',
),
'বাংলা' => array(
'alisiddique',
),
'Bosanski' => array(
'etcloki',
),
'Български' => array(
'alltimecams',
'den_zlateva',
),
'简体中文' => array(
'dic_2008',
'mobking',
),
'繁體中文' => array(
'wah826',
),
'Hrvatski' => array(
'etcloki',
'i__k',
'iojvan',
'vlinicx',
),
'Čeština' => array(
'eifelstudio',
'thegreat',
),
'Nederlands' => array(
'demoyer',
'paulcoppen',
'poelie',
'SilverXp',
'valentijnreza',
),
'Suomi' => array(
'hanro',
'Hermanni',
'JuKi',
'Taurus',
),
'Français' => array(
'francois53',
'fredodq',
'HuguesD',
'MohamedZ',
'wolforg',
),
'Deutsch' => array(
'alexander.salomon99',
'Bhelpful2',
'chr86',
'deckerweb',
'denkuhn',
'FollowCandyPanda',
'green_big_frog',
'King3R',
'Tandor',
'tkausch',
),
'Ελληνικά' => array(
'filippos.sdr',
'Spirossmil',
),
'Íslenska' => array(
'ValliFudd',
),
'Italiano' => array(
'eNnvi',
'Flubber89',
'GhiMax',
'joegalaxy66',
'massimo.marra',
'sododesign',
'violaud',
'webby1973',
'xFrAx',
),
'日本語' => array(
'aylaview',
),
'한국어' => array(
'jikji96',
),
'Македонски' => array(
'doncer',
),
'Norsk bokmål' => array(
'jenymoen',
'Laislebai',
'm4rsal',
'sijo',
'slappfiskene.no',
'vetsmi',
),
'فارسی' => array(
'mahdi12',
),
'Polski' => array(
'Elmister',
'karimjarro',
'krisop',
),
'Português do Brasil' => array(
'AugustoNeto',
'Ferenan',
'lfrodines',
'Ozias',
'pgbenini',
'rochester',
),
'Português' => array(
'Andrew_Melim',
'nagashitw',
),
'Română' => array(
'GonerSTUDIO',
'tyby94',
),
'Русский' => array(
'elrawys',
'kanakoff',
'sashaCZ',
'Selskei',
'SmilyCarrot',
'zzcs',
),
'Српски језик' => array(
'etcloki',
),
'Slovenščina' => array(
'Ales70',
'BOCo',
'cofeman.sl',
'matiqos',
),
'Español' => array(
'albertone',
'diego.battistella',
'elarequi',
'EmiDelCaz',
'edesl',
'fernandori',
'GonerSTUDIO',
'i1m3a7n92',
'latixns',
'opticadeharo',
'popeosorio',
),
'Svenska' => array(
'fiiz',
'JensZ',
),
'தமிழ்' => array(
'chinnz25',
),
'Türkçe' => array(
'ALooNeBoy87',
'ceyhunulas',
'GuneshGamza95',
'muhahmetkara',
'overbite',
),
'Українська' => array(
'ViktoriaRuzhylo',
),
'Tiếng Việt' => array(
'bizover',
),
'ಕನ್ನಡ' => array(
'Paramamithra',
),
'ไทย' => array(
'Xyteton',
),
);
$languages = array_keys( $translators );
shuffle( $languages );
$translation_teams = array();
foreach ( $languages as $language ):
$handles = $translators[ $language ];
$team = '' . $language . ' ' . __( 'by', 'sportspress' ) . ' ';
$team_members = array();
foreach ( $handles as $handle ):
$team_members[] = '' . $handle . '';
endforeach;
$members = implode( ', ', $team_members );
$team .= $members;
$team .= '';
$translation_teams[] = $team;
endforeach;
echo implode( '
', $translation_teams );
?>