From bec7a43b42e9e51f9a9e3f48f853d010228c5e3a Mon Sep 17 00:00:00 2001
From: Savvas Hadjigeorgiou ' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . ' ' . sprintf( esc_html__( 'Events need to be defined with columns in a specific order (3+ columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/events-sample.csv' ) . ' ' . sprintf( esc_html__( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . ' ' . sprintf( __( 'Events need to be defined with columns in a specific order (3+ columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/events-sample.csv' ) . ' ' . sprintf( __( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . '
- ' . sprintf( __( 'Import complete - imported %1$s rows and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . '
+ ' . sprintf( esc_html__( 'Import complete - imported %1$s rows and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . '
' . __( 'All done!', 'sportspress' ) . ' $event,
@@ -153,7 +153,7 @@ if ( class_exists( 'WP_Importer' ) ) {
),
'post.php'
)
- ) . '">' . __( 'View Event', 'sportspress' ) . '' . '
' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; - echo '' . sprintf( __( 'Box scores need to be defined with columns in a specific order. Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/event-performance-sample.csv' ) . '
'; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; + echo '' . sprintf( __( 'Box scores need to be defined with columns in a specific order. Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/event-performance-sample.csv' ) . '
'; wp_import_upload_form( add_query_arg( $args, 'admin.php' ) ); } else { - echo '' . sprintf( __( 'Select %s', 'sportspress' ), __( 'Event', 'sportspress' ) ) . '
'; + echo '' . sprintf( esc_html__( 'Select %s', 'sportspress' ), esc_html__( 'Event', 'sportspress' ) ) . '
'; } echo ''; @@ -203,10 +203,10 @@ if ( class_exists( 'WP_Importer' ) ) {| - - + + @@ -214,7 +214,7 @@ if ( class_exists( 'WP_Importer' ) ) { | |||||||||||||
|
- ' . sprintf( __( 'Import complete - imported %1$s events and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . ' + ' . sprintf( esc_html__( 'Import complete - imported %1$s events and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . ' '; $this->import_end(); @@ -270,7 +270,7 @@ if ( class_exists( 'WP_Importer' ) ) { * Performs post-import cleanup of files and the cache */ function import_end() { - echo '' . __( 'All done!', 'sportspress' ) . ' ' . __( 'View Fixtures', 'sportspress' ) . '' . ' '; + echo '' . esc_html__( 'All done!', 'sportspress' ) . ' ' . esc_html__( 'View Fixtures', 'sportspress' ) . '' . ' '; do_action( 'import_end' ); } @@ -283,8 +283,8 @@ if ( class_exists( 'WP_Importer' ) ) { */ function greet() { echo '';
- echo ' ';
@@ -301,18 +301,18 @@ if ( class_exists( 'WP_Importer' ) ) {
' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . ' '; - echo '' . sprintf( __( 'Fixtures need to be defined with columns in a specific order (4+ columns). Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/fixtures-sample.csv' ) . ' '; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . ' '; + echo '' . sprintf( __( 'Fixtures need to be defined with columns in a specific order (4+ columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/fixtures-sample.csv' ) . ' '; echo '' . sprintf( __( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . ' '; wp_import_upload_form( 'admin.php?import=sp_fixture_csv&step=1' ); echo '
|