Changeset 3319253
- Timestamp:
- 06/28/2025 08:59:56 PM (8 months ago)
- Location:
- team-rosters/trunk
- Files:
-
- 18 edited
-
includes/mstw-tr-admin.php (modified) (18 diffs)
-
includes/mstw-tr-csv-import-class.php (modified) (27 diffs)
-
includes/mstw-tr-player-cpt-admin.php (modified) (5 diffs)
-
includes/mstw-tr-roster-table.php (modified) (3 diffs)
-
includes/mstw-tr-roster-tables-class.php (modified) (12 diffs)
-
includes/mstw-tr-settings.php (modified) (5 diffs)
-
includes/mstw-tr-team-roster-admin-class.php (modified) (12 diffs)
-
includes/mstw-tr-team-tax-admin-class.php (modified) (3 diffs)
-
includes/mstw-tr-utility-functions.php (modified) (8 diffs)
-
includes/mstw-utility-functions.php (modified) (10 diffs)
-
js/tr-manage-rosters.js (modified) (5 diffs)
-
js/tr-sort-roster-table.js (modified) (1 diff)
-
js/tr-team-roster-2-ajax.js (modified) (1 diff)
-
lang/team-rosters.pot (modified) (65 diffs)
-
mstw-team-rosters.php (modified) (17 diffs)
-
readme.txt (modified) (2 diffs)
-
theme-templates/single-player.php (modified) (5 diffs)
-
theme-templates/taxonomy-team.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
team-rosters/trunk/includes/mstw-tr-admin.php
r3270053 r3319253 158 158 159 159 wp_register_style( 'players-screen-styles', plugins_url( 'css/mstw-tr-admin-styles.css', dirname( __FILE__ ) ), array(), '4.8' ); 160 //mstw_log_msg( plugins_url( 'mstw-tr-admin-styles.css', __FILE__ ) ); 161 //mstw_tr_load_admin_styles( ); 162 163 //ob_start(); 164 165 160 166 161 } //End: mstw_tr_admin_init() 167 162 } … … 244 239 plugins_url( 'css/mstw-tr-admin-styles.css', dirname( __FILE__ ) ), 245 240 array( ), 246 '4.9', 247 array( ) 241 '4.9' 248 242 ); 249 243 … … 258 252 plugins_url( 'team-rosters/js/tr-another-media.js' ), 259 253 array( ), 260 '4.9', 261 array( )254 '4.9', 255 array( 'in_footer' => true ) 262 256 ); 263 257 … … 277 271 array( ) 278 272 ); 273 274 wp_localize_script( 'tr-manage-rosters', 'mstw_tr_manage_rosters_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ajax-nonce' ) ) ); 279 275 } 280 276 281 277 // 282 278 // If it's the Manage Teams screen, enqueue the script to load team … … 286 282 plugins_url( 'js/tr-manage-teams.js', dirname( __FILE__ ) ), 287 283 array( ), 288 '4.9', 289 array( )284 '4.9', 285 array( 'in_footer' => true ) 290 286 ); 291 287 … … 297 293 array( ), 298 294 '4.9', 299 array( )295 array( 'in_footer' => true ) 300 296 ); 301 297 } … … 309 305 310 306 wp_enqueue_script( 'mstw-tr-color-picker', 311 plugins_url( 'team-rosters/js/tr-color-settings.js' ), array( 'wp-color-picker' ), '4.8', true ); 307 plugins_url( 'team-rosters/js/tr-color-settings.js' ), 308 array( 'wp-color-picker' ), 309 '4.8', 310 array( 'in_footer' => true ) 311 ); 312 312 313 313 wp_enqueue_script( 'mstw-tr-confirm-reset', 314 plugins_url( 'team-rosters/js/tr-confirm-reset.js' ), array( 'wp-color-picker' ), '4.8', true ); 314 plugins_url( 'team-rosters/js/tr-confirm-reset.js' ), 315 array( 'wp-color-picker' ), 316 '4.8', 317 array( 'in_footer' => true ) 318 ); 315 319 } 316 320 … … 339 343 return $actions; 340 344 } //End: mstw_tr_bulk_actions() 341 }342 343 // ----------------------------------------------------------------344 // Add a filter the All Teams screen based on the Leagues Taxonomy345 //add_action('restrict_manage_posts','mstw_tr_restrict_manage_posts');346 347 function mstw_tr_restrict_manage_posts( ) {348 global $typenow;349 350 if ( $typenow=='mstw_tr_player' ){351 // Trying to find current selection352 $selected = isset( $_REQUEST[$mstw_tr_team] ) ? $_REQUEST[$mstw_tr_team] : '';353 354 $args = array(355 'show_option_all' => 'All Teams',356 'taxonomy' => 'mstw_tr_team',357 'name' => 'mstw_tr_team',358 'orderby' => 'name',359 'selected' => $_GET['mstw_tr_team'],360 'show_count' => true,361 'hide_empty' => true,362 );363 wp_dropdown_categories( $args );364 }365 }366 367 //add_action( 'request', 'mstw_tr_request' );368 function mstw_tr_request( $request ) {369 //mstw_log_msg( 'mstw_tr_request:' );370 371 if ( is_admin( ) && $GLOBALS['PHP_SELF'] == '/wp-admin/edit.php' && isset( $request['post_type'] ) && $request['post_type']=='mstw_tr_player' ) {372 $request['term'] = get_term( $request['mstw_tr_player'], 'mstw_tr_team', OBJECT )->name;373 }374 return $request;375 345 } 376 346 … … 610 580 function mstw_tr_set_option_page_capabilities( $capability ) { 611 581 //mstw_log_msg( 'mstw_tr_set_option_page_capabilities:' ); 582 612 583 $capability = 'edit_mstw_tr_settings'; 613 return $capability; //'edit_mstw_tr_settings'; // 584 return $capability; 585 614 586 } //End mstw_tr_set_option_page_capabilities() 615 587 } … … 626 598 function mstw_tr_ajax_callback ( ) { 627 599 //mstw_log_msg( 'mstw_tr_ajax_callback:' ); 600 //mstw_log_msg( $_POST ); 628 601 629 602 global $wpdb; //this provides access to the WP DB 630 603 631 if ( array_key_exists( 'real_action', $_POST ) ) { 632 633 $action = $_POST['real_action']; 634 604 $action = mstw_safe_get( 'real_action', $_POST, '' ); 605 606 if ( '' != $action ) { 635 607 switch( $action ) { 636 608 case 'change_current_team': … … 644 616 645 617 default: 646 mstw_log_msg( "Error: Invalid action, $action, on page: " . $_POST['page'] ); 618 $postPage = mstw_safe_get( 'page', $_POST, 'unknown' ); 619 mstw_log_msg( "Error: Invalid action, $action, on page: $postPage" ); 647 620 $response['error'] = __( 'AJAX Error: invalid action.', 'team-rosters' ); 648 621 break; … … 673 646 //mstw_log_msg( 'mstw_tr_ajax_change_team:' ); 674 647 //$_POST should be global 648 //mstw_log_msg( '$_POST' ); 649 //mstw_log_msg( $_POST ); 675 650 676 651 $response = array( 'response' => 'team', … … 678 653 'error' => '' 679 654 ); 680 681 if ( array_key_exists( 'current_team', $_POST ) ) { 682 683 $current_team = $_POST['current_team']; 655 656 $current_team = mstw_safe_get( 'current_team', $_POST, '' ); 657 658 if ( '' != $current_team ) { 659 660 $current_team = mstw_safe_get( 'current_team', $_POST, '' ); 684 661 685 662 mstw_tr_set_current_team( $current_team ); … … 713 690 //mstw_log_msg( 'mstw_tr_ajax_add_team:' ); 714 691 //$_POST should be global 692 //mstw_log_msg( '$_POST' ); 693 //mstw_log_msg( $_POST ); 715 694 716 695 $response = array( 'response' => 'team', … … 719 698 ); 720 699 721 if ( array_key_exists( 'current_team', $_POST ) ) {722 723 $current_team = $_POST['current_team'];724 700 701 $current_team = mstw_safe_get( 'current_team', $_POST, '' ); 702 703 if ( '' != $current_team ) { 725 704 mstw_tr_set_current_team( $current_team ); 726 727 705 $response['current_team'] = $current_team; 728 706 … … 730 708 // we've got a problem 731 709 mstw_log_msg( "AJAX Error: No league provided to handler." ); 732 733 710 $response['error'] = __( 'AJAX Error: No league provided to handler.', 'team-rosters' ); 734 735 711 } //End: if ( array_key_exists( 'current_team', $_POST ) ) 736 712 … … 776 752 // 777 753 function mstw_tr_get_current_post_type( ) { 778 754 //mstw_log_msg( 'mstw_tr_get_current_post_type:' ); 755 779 756 global $post, $typenow, $current_screen; 780 757 … … 788 765 return $current_screen->post_type; 789 766 790 elseif( isset( $_REQUEST['post_type'] ) ) 791 return sanitize_key( $_REQUEST['post_type'] ); 792 793 else 794 return null; 795 767 //elseif( isset( $_REQUEST['post_type'] ) ) 768 else { 769 if ( isset( $_REQUEST['mstw-tr-nonce'] ) ) { 770 if ( false == wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST[ 'mstw-tr-nonce' ] ) ), 'edit-players' ) ) { 771 mstw_log_msg( "mstw_tr_get_current_post_type: invalid nonce" ); 772 die( esc_html__('fatal error encountered in team rosters', 'team-rosters' ) ); 773 } 774 } else { 775 mstw_log_msg( "mstw_tr_get_current_post_type: nonce not found" ); 776 die( esc_html__('fatal error encountered in team Rosters', 'team-rosters' ) ); 777 } 778 779 $postType = mstw_safe_get( 'post_type', $_REQUEST, null ); 780 //return sanitize_key( $postType ); 781 return $postType; 782 } 783 796 784 } //End: mstw_tr_get_current_post_type( ) 797 785 -
team-rosters/trunk/includes/mstw-tr-csv-import-class.php
r3270053 r3319253 65 65 // 66 66 function form( ) { 67 //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.form:" ); 67 //mstw_log_msg( "MSTW_TR_ImporterPlugin.form:" ); 68 //mstw_log_msg( $_POST ); 68 69 69 70 // check & cleanup the returned $_POST values 70 71 $submit_value = $this->process_option( 'submit', 0, $_POST, false ); 71 72 $import_team = $this->process_option( 'csv_import_team', 0, $_POST, false ); 72 //mstw_ tr_log_msg( "import team: $import_team" );73 //mstw_log_msg( "import team: $import_team" ); 73 74 74 75 //$csv_teams_import = $this->process_option( 'csv_teams_import', 0, $_POST, false ); 75 76 $move_photos = $this->process_option( 'csv_move_photos', 0, $_POST, true ); 76 77 77 if ( 'POST' == $_SERVER['REQUEST_METHOD']) {78 if ( 'POST' == mstw_safe_get( 'REQUEST_METHOD', $_SERVER, '' ) ) { 78 79 $this->post( compact( 'submit_value', 'import_team', 'move_photos' ) ); 79 80 } … … 183 184 184 185 function print_messages() { 185 //mstw_ tr_log_msg( "MSTW_TR_ImporterPlugin.print_messages:" );186 //mstw_log_msg( "MSTW_TR_ImporterPlugin.print_messages:" ); 186 187 187 188 if ( !empty( $this->log ) ) { ?> … … 219 220 // 220 221 function post( $options ) { 221 //mstw_tr_log_msg( "MSTW_TR_ImporterPlugin.post:" ); 222 //mstw_log_msg( "MSTW_TR_ImporterPlugin.post:" ); 223 //mstw_log_msg( $_POST ); 222 224 223 225 if ( !$options ) { 224 mstw_ tr_log_msg( 'Houston, we have a problem ... no $options' );226 mstw_log_msg( 'Houston, we have a problem ... no $options' ); 225 227 return; 226 228 } … … 231 233 if ( isset( $_POST['mstw-tr-nonce'] ) ) { 232 234 //wp_verify_nonce( sanitize_key( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 233 $safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) );235 $safeNonce = sanitize_text_field( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 234 236 if ( !wp_verify_nonce( $safeNonce, 'import-teams' ) ) { 235 237 mstw_tr_add_admin_notice( 'error', __( 'Problem encountered with CSV file. Exiting.', 'team-rosters' ) ); … … 253 255 if ( isset( $_POST['mstw-tr-nonce'] ) ) { 254 256 //wp_verify_nonce( sanitize_key( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 255 $safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 256 257 if ( !wp_verify_nonce( $safeNonce, 'import-teams' ) ) { 257 //$safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 258 $safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_POST, '' ); 259 260 if ( !wp_verify_nonce( $safeNonce, 'import-players' ) ) { 258 261 mstw_tr_add_admin_notice( 'error', __( 'Problem encountered with CSV file. Exiting.', 'team-rosters' ) ); 259 262 mstw_log_msg( 'MSTW_TR_CSV_IMPORT_CLASS.post: Problem encountered loading CSV file; bad nonce. Exiting.' ); … … 274 277 275 278 default: 276 mstw_ tr_log_msg( 'Error encountered in post() method. $submit_value = ' . $submit_value . '. Exiting' );279 mstw_log_msg( 'Error encountered in post() method. $submit_value = ' . $submit_value . '. Exiting' ); 277 280 return; 278 281 break; … … 286 289 $csv = new MSTW_CSV_DataSource; 287 290 288 $file = $_FILES[$file_id]['tmp_name']; 291 //$file = $_FILES[$file_id]['tmp_name']; 292 $filesFileID = mstw_safe_get( $file_id, $_FILES, null ); 293 294 $file = mstw_safe_get( 'tmp_name', $filesFileID, '' ); 295 289 296 if ( !$this->stripBOM( $file ) ) { 290 297 $this -> print_messages( ); … … 293 300 294 301 if ( !$csv -> load( $file ) ) { 295 //mstw_ tr_log_msg( "logging failure to load file" );302 //mstw_log_msg( "logging failure to load file" ); 296 303 $this->log['error'][] = sprintf( 297 304 /* translators: %s: filename */ … … 309 316 foreach ( $csv -> connect( ) as $csv_data ) { 310 317 if ( empty( $csv_data ) or !$csv_data ) { 311 mstw_ tr_log_msg( 'No CSV data. $csv_data is empty.' );318 mstw_log_msg( 'No CSV data. $csv_data is empty.' ); 312 319 } 313 320 … … 336 343 337 344 default: 338 mstw_ tr_log_msg( 'Oops, something went wrong with file ID: ' . $file_id );345 mstw_log_msg( 'Oops, something went wrong with file ID: ' . $file_id ); 339 346 break; 340 347 } … … 355 362 /* translators: %1$s 'record' or 'records' skipped %*/ 356 363 _n( 'Skipped %1$s record.', 'Skipped %1$s records.', $skipped, 'team-rosters' ), $skipped ); 357 $this->log['error'][] = "<b>{$admin_notice}</b>"; 364 //$this->log['error'][] = "<b>{$admin_notice}</b>"; 365 $this->log['error'][] = $admin_notice; 358 366 } 359 367 … … 362 370 /* translators: %1$s/%2$s 'record' or 'records' processed */ 363 371 _n( 'Imported %1$s record in %2$.2f seconds.', 'Imported %1$s records in %2$.2f seconds.', $imported, 'team-rosters' ), $imported, $exec_time ); 364 $this->log['notice'][] = "<b>{$admin_notice}</b>"; 372 //$this->log['notice'][] = "<b>{$admin_notice}</b>"; 373 $this->log['notice'][] = $admin_notice; 365 374 366 375 $this->print_messages(); … … 372 381 // 373 382 function create_post( $data, $options ) { 374 //mstw_ tr_log_msg( 'MSTW_TR_ImporterPlugin.create_post:' );375 //mstw_ tr_log_msg( $data );376 //mstw_ tr_log_msg( $options );383 //mstw_log_msg( 'MSTW_TR_ImporterPlugin.create_post:' ); 384 //mstw_log_msg( $data ); 385 //mstw_log_msg( $options ); 377 386 378 387 $data = array_merge( $this->defaults, $data ); … … 415 424 416 425 default: 417 mstw_ tr_log_msg( 'Whoa horsie ... submit_value = ' . $options[ 'submit_value'] );426 mstw_log_msg( 'Whoa horsie ... submit_value = ' . $options[ 'submit_value'] ); 418 427 $this->log['error']["type-{$type}"] = sprintf( 419 428 /* translators: %s: import type */ … … 441 450 // Add the specified team taxonomy, if provided 442 451 if ( $post_id ) { 443 //mstw_ tr_log_msg( "Trying to add import_team tax" );444 //mstw_ tr_log_msg( "for player " . convert_chars( $temp_title ) );452 //mstw_log_msg( "Trying to add import_team tax" ); 453 //mstw_log_msg( "for player " . convert_chars( $temp_title ) ); 445 454 if ( array_key_exists( 'import_team', $options ) && !empty( $options['import_team' ] ) && $options['import_team' ] > 0 ) { 446 455 $term = get_term_by( 'id', $options['import_team'], 'mstw_tr_team' ); … … 557 566 //Check for errors downloading 558 567 if( is_wp_error( $temp_photo ) ) { 559 mstw_ tr_log_msg( "Error downloading: $v" );560 mstw_ tr_log_msg( $temp_photo );568 mstw_log_msg( "Error downloading: $v" ); 569 mstw_log_msg( $temp_photo ); 561 570 } 562 571 else { … … 570 579 //Check for sideload errors 571 580 if( is_wp_error( $id ) ) { 572 mstw_ tr_log_msg( "Error loading file to media library: $temp_photo" );573 mstw_ tr_log_msg( $id );581 mstw_log_msg( "Error loading file to media library: $temp_photo" ); 582 mstw_log_msg( $id ); 574 583 } 575 584 else { … … 578 587 579 588 if( $post_meta_id === false ) { 580 mstw_ tr_log_msg( "Failed to set thumbnail for post $post_id" );589 mstw_log_msg( "Failed to set thumbnail for post $post_id" ); 581 590 } 582 591 } … … 589 598 if( $thumbnail_id and $thumbnail_id != -1 ) { 590 599 if( set_post_thumbnail( $post_id, $thumbnail_id ) === false ) { 591 mstw_ tr_log_msg( 'Failed to set_post_thumbnail. Post= ' . $post_id . ' thumbnail= ' . $thumbnail_id );600 mstw_log_msg( 'Failed to set_post_thumbnail. Post= ' . $post_id . ' thumbnail= ' . $thumbnail_id ); 592 601 } 593 602 } 594 603 else { 595 mstw_ tr_log_msg( 'No file found in the media library: ' . $thumbnail_id );604 mstw_log_msg( 'No file found in the media library: ' . $thumbnail_id ); 596 605 } 597 606 } … … 601 610 default: 602 611 // bad column header 603 mstw_ tr_log_msg( 'Unrecognized game data field: ' . $k );612 mstw_log_msg( 'Unrecognized game data field: ' . $k ); 604 613 break; 605 614 … … 653 662 // 654 663 function create_team_taxonomy_term( $data, $options, $imported ) { 655 //mstw_ tr_log_msg( "MSTW_TR_ImporterPlugin:create_team_taxonomy_term:" );656 //mstw_ tr_log_msg( "data:" );657 //mstw_ tr_log_msg( $data );658 //mstw_ tr_log_msg( "options:" );659 //mstw_ tr_log_msg( $options );664 //mstw_log_msg( "MSTW_TR_ImporterPlugin:create_team_taxonomy_term:" ); 665 //mstw_log_msg( "data:" ); 666 //mstw_log_msg( $data ); 667 //mstw_log_msg( "options:" ); 668 //mstw_log_msg( $options ); 660 669 661 670 $retval = 0; … … 709 718 710 719 if ( is_wp_error( $result ) ) { 711 mstw_ tr_log_msg( 'Error inserting term ... ' );712 mstw_ tr_log_msg( $result );720 mstw_log_msg( 'Error inserting term ... ' ); 721 mstw_log_msg( $result ); 713 722 $retval = 0; 714 723 } 715 724 else { 716 //mstw_ tr_log_msg( 'Term inserted ... ID= ' . $result['term_id'] );725 //mstw_log_msg( 'Term inserted ... ID= ' . $result['term_id'] ); 717 726 // 718 727 // If it exists, the SS team link will be added as term meta data … … 747 756 // 748 757 function stripBOM( $fname ) { 749 //mstw_ tr_log_msg( "MSTW_TR_ImporterPlugin.stripBOM:" );758 //mstw_log_msg( "MSTW_TR_ImporterPlugin.stripBOM:" ); 750 759 751 760 $res = @fopen( $fname, 'rb' ); … … 759 768 $contents = file_get_contents( $fname ); 760 769 if ( false === $contents ) { 761 trigger_error( 'Failed to get file contents.', E_USER_WARNING ); 770 //trigger_error( 'Failed to get file contents.', E_USER_WARNING ); 771 mstw_log_msg( esc_html__( 'Failed to get file contents.' , 'team-rosters' ) ); 762 772 } 763 773 $contents = substr($contents, 3); … … 765 775 766 776 if (false === $success) { 767 trigger_error( 'Failed to put file contents.', E_USER_WARNING ); 777 //trigger_error( 'Failed to put file contents.', E_USER_WARNING ); 778 mstw_log_msg( esc_html__( 'Failed to get file contents.' , 'team-rosters' ) ); 768 779 } 769 780 … … 794 805 // 795 806 function add_help( ) { 796 //mstw_ tr_log_msg( "MSTW_TR_ImporterPlugin.add_help:" );807 //mstw_log_msg( "MSTW_TR_ImporterPlugin.add_help:" ); 797 808 798 809 $screen = get_current_screen( ); 799 //mstw_ tr_log_msg( $screen );810 //mstw_log_msg( $screen ); 800 811 801 812 // All TR help screen have the same sidebar … … 817 828 818 829 function csv_import_help_content ( ) { 819 //mstw_ tr_log_msg( "MSTW_TR_ImporterPlugin.add_help:" );830 //mstw_log_msg( "MSTW_TR_ImporterPlugin.add_help:" ); 820 831 ?> 821 832 <p><?php esc_html_e( 'This screen allows the import of teams and players from files in CSV format. Sample file formats are available in the Users Manual (link below).', 'team-rosters' ) ?></p> -
team-rosters/trunk/includes/mstw-tr-player-cpt-admin.php
r3270053 r3319253 39 39 <p class='player-bio-admin-head'><?php esc_html_e( 'Player Bio:', 'team-rosters' ) ?></p> 40 40 <?php 41 //wp_nonce_field( 'single-player', 'mstw-tr-nonce' ); 41 42 } 42 43 } //End: mstw_tr_build_player_screen … … 336 337 if ( $_POST['post_type'] == 'mstw_tr_player' ) { 337 338 update_post_meta( $post_id, 'player_first_name', 338 wp_strip_all_tags( $_POST['player_first_name']) );339 wp_strip_all_tags( mstw_safe_get( 'player_first_name', $_POST, '' ) ) ); 339 340 340 341 update_post_meta( $post_id, 'player_last_name', 341 wp_strip_all_tags( $_POST['player_last_name']) );342 wp_strip_all_tags( mstw_safe_get( 'player_last_name', $_POST, '' ) ) ); 342 343 343 344 update_post_meta( $post_id, 'player_number', 344 wp_strip_all_tags( $_POST['player_number']) );345 wp_strip_all_tags( mstw_safe_get( 'player_number', $_POST, '' ) ) ); 345 346 346 347 update_post_meta( $post_id, 'player_position', 347 wp_strip_all_tags( $_POST['player_position']) );348 wp_strip_all_tags( mstw_safe_get( 'player_position', $_POST, '' ) ) ); 348 349 349 350 update_post_meta( $post_id, 'player_position_long', 350 wp_strip_all_tags( $_POST['player_position_long']) );351 wp_strip_all_tags( mstw_safe_get( 'player_position_long', $_POST, '' ) ) ); 351 352 352 353 update_post_meta( $post_id, 'player_height', 353 354 //$_POST['player_height'] ); 354 wp_strip_all_tags( $_POST['player_height']) );355 wp_strip_all_tags( mstw_safe_get( 'player_height', $_POST, '' ) ) ); 355 356 356 357 update_post_meta( $post_id, 'player_weight', 357 wp_strip_all_tags( $_POST['player_weight']) );358 wp_strip_all_tags( mstw_safe_get( 'player_weight', $_POST, '' ) ) ); 358 359 359 360 update_post_meta( $post_id, 'player_year', 360 wp_strip_all_tags( $_POST['player_year']) );361 wp_strip_all_tags( mstw_safe_get( 'player_year', $_POST, '' ) ) ); 361 362 362 363 update_post_meta( $post_id, 'player_year_long', 363 wp_strip_all_tags( $_POST['player_year_long']) );364 wp_strip_all_tags( mstw_safe_get( 'player_year_long', $_POST, '' ) ) ); 364 365 365 366 update_post_meta( $post_id, 'player_experience', 366 wp_strip_all_tags( $_POST['player_experience']) );367 wp_strip_all_tags( mstw_safe_get( 'player_experience', $_POST, '' ) ) ); 367 368 368 369 update_post_meta( $post_id, 'player_age', 369 wp_strip_all_tags( $_POST['player_age']) );370 wp_strip_all_tags( mstw_safe_get( 'player_age', $_POST, '' ) ) ); 370 371 371 372 update_post_meta( $post_id, 'player_home_town', 372 wp_strip_all_tags( $_POST['player_home_town']) );373 wp_strip_all_tags( mstw_safe_get( 'player_home_town', $_POST, '' ) ) ); 373 374 374 375 update_post_meta( $post_id, 'player_last_school', 375 wp_strip_all_tags( $_POST['player_last_school']) );376 wp_strip_all_tags( mstw_safe_get( 'player_last_school', $_POST, '' ) ) ); 376 377 377 378 update_post_meta( $post_id, 'player_country', 378 wp_strip_all_tags( $_POST['player_country']) );379 wp_strip_all_tags( mstw_safe_get( 'player_country', $_POST, '' ) ) ); 379 380 380 381 update_post_meta( $post_id, 'player_bats', 381 wp_strip_all_tags( $_POST['player_bats']) );382 wp_strip_all_tags( mstw_safe_get( 'player_bats', $_POST, 'R' ) ) ); 382 383 383 384 update_post_meta( $post_id, 'player_throws', 384 wp_strip_all_tags( $_POST['player_throws']) );385 wp_strip_all_tags( mstw_safe_get( 'player_throws', $_POST, 'R' ) ) ); 385 386 386 387 update_post_meta( $post_id, 'player_other', 387 wp_strip_all_tags( $_POST['player_other']) );388 wp_strip_all_tags( mstw_safe_get( 'player_other', $_POST, '' ) ) ); 388 389 389 390 } //End: if ( $_POST['post_type'] == 'mstw_tr_player' ) … … 519 520 520 521 if( !function_exists( 'mstw_tr_restrict_players_by_team' ) ) { 521 function mstw_tr_restrict_players_by_team( ) { 522 function mstw_tr_restrict_players_by_team ( ) { 523 //mstw_log_msg( 'mstw_tr_restrict_players_by_team:' ); 524 522 525 global $typenow; 523 526 //global $wp_query; 524 527 525 528 if( $typenow == 'mstw_tr_player' ) { 529 530 wp_nonce_field( 'single-player', 'mstw-tr-nonce' ); 531 //wp_nonce_field( plugins_url(__FILE__), 'mstw_tr_player_nonce' ); 526 532 527 533 $taxonomy_slugs = array( 'mstw_tr_team' ); … … 544 550 //check against the last $_GET to show the current selection 545 551 if ( array_key_exists( $tax_slug, $_GET ) ) { 546 $selected = ( $_GET[$tax_slug] == $term->slug ) ? ' selected ="selected"' : '';552 $selected = ( $_GET[$tax_slug] == $term->slug ) ? ' selected' : ''; 547 553 } 548 554 else { … … 550 556 } 551 557 ?> 552 <option value='<?php echo esc_html( $term->slug . $selected ) ?>' > <?php echo esc_html( $term->name . '(' . $term->count . ')' ) ?> </option> 558 <option value='<?php echo esc_html( $term->slug )?>' <?php echo esc_html( $selected) ?>> <?php echo esc_html( $term->name . '(' . $term->count . ')' ) ?> </option> 559 553 560 <?php 554 561 } -
team-rosters/trunk/includes/mstw-tr-roster-table.php
r3240856 r3319253 127 127 128 128 $test_output = mstw_tr_build_roster_table_header( $roster_type, $attribs, $fieldOrder ); 129 //mstw_log_msg( $test_output );130 131 129 $output .= $test_output; 132 130 … … 489 487 if( !function_exists( 'mstw_tr_add_player_name' ) ) { 490 488 function mstw_tr_add_player_name( $post, $args ) { 489 mstw_log_msg( 'mstw_tr_add_player_name:' ); 491 490 492 491 switch( $args['name_format'] ) { … … 508 507 509 508 if ( $args['links_to_profiles'] ) { 509 510 /*$playerURL = mstw_tr_build_player_url( $post->ID, $player_id ); 511 512 $nonceURL = wp_nonce_url( get_permalink( $player_id ), 'single-player', 'mstw-tr-nonce' ); 513 $nonceURL .= '&position='. $post->ID; 514 515 mstw_log_msg( '$nonceURL=' ); 516 mstw_log_msg( $nonceURL ); 517 */ 518 519 $playerLink = mstw_tr_build_player_link_html( $playerURL, get_the_post_thumbnail( $player_id, array( $table_photo_width, $table_photo_height ) ) ); 520 521 510 522 $player_html = '<a href="' . get_permalink($post->ID) . '?roster_type=' . $args['roster_type'] . '" '; 523 mstw_log_msg( '$player_html=' ); 524 mstw_log_msg( $player_html ); 511 525 $player_html .= '>' . $player_name . '</a>'; 512 526 } -
team-rosters/trunk/includes/mstw-tr-roster-tables-class.php
r3270053 r3319253 64 64 // merge the shortcode arguments and the settings/options 65 65 $attribs = $this -> processAtts( $args, $shortcode ); 66 66 67 67 ob_start( ); 68 68 69 69 ?> 70 <div class='mstw-tr-roster-table-container mstw-tr-roster-table-container-<?php echo esc_ html( $teamSlug )?>' id='mstw-tr-roster-table-container-<?php echo esc_html( $tableID ) ?>'>70 <div class='mstw-tr-roster-table-container mstw-tr-roster-table-container-<?php echo esc_attr( $teamSlug )?>' id='mstw-tr-roster-table-container-<?php echo esc_attr( $tableID ) ?>'> 71 71 <?php $noControls = $this -> safeGet( 'no_controls', $args, null ); 72 //mstw_log_msg( "noControls= $noControls" ); 73 72 74 73 if ( null === $noControls ) { ?> 75 <!--<div class='mstw-tr-roster-title-controls mstw-tr-roster-title-controls-<?php //echo $teamSlug ?>'>--> 76 <?php //echo $this -> build_roster_title( $teamSlug, $attribs ); ?> 77 <div class='roster-sort-controls roster-sort-controls-<?php echo esc_html( $teamSlug ) ?> MSTW-flex-row'> 74 <div class='roster-sort-controls roster-sort-controls-<?php echo esc_attr( $teamSlug ) ?> MSTW-flex-row'> 78 75 <?php 79 // build_roster_sort_controls buffers the output so I am escaping earlier th en here76 // build_roster_sort_controls buffers the output so I am escaping earlier than here 80 77 $controls_escaped = $this -> build_roster_sort_controls( $teamSlug, $attribs, $args, $argsStr, $tableID ); 81 78 echo $controls_escaped; 82 //echo $this -> build_roster_sort_controls( $teamSlug, $attribs, $args, $argsStr, $tableID );83 79 ?> 84 80 </div> … … 87 83 } ?> 88 84 89 <div class= 'mstw-tr-roster-players mstw-tr-roster-players-<?php echo esc_ html( $teamSlug )?>' id='mstw-tr-roster-players-<?php echo esc_html( $tableID ) ?>'>85 <div class= 'mstw-tr-roster-players mstw-tr-roster-players-<?php echo esc_attr( $teamSlug )?>' id='mstw-tr-roster-players-<?php echo esc_attr( $tableID ) ?>'> 90 86 <?php 91 87 // get the players … … 126 122 127 123 ?> 128 <ul class='mstw-tr-roster-player-list mstw-tr-roster-player-list-<?php echo esc_ html( $teamSlug ) ?> mstw-tr-roster-player-list-<?php echo esc_html( $tableID ) ?>'>124 <ul class='mstw-tr-roster-player-list mstw-tr-roster-player-list-<?php echo esc_attr( $teamSlug ) ?> mstw-tr-roster-player-list-<?php echo esc_attr( $tableID ) ?>'> 129 125 130 126 <!-- Why is this needed ?? --> … … 144 140 ?> 145 141 <li class='mstw-tr-roster-player'> 146 <div class='mstw-tr-roster-player-container mstw-tr-roster-player-container-<?php echo esc_ html( $teamSlug ) ?> MSTW-flex-row'>142 <div class='mstw-tr-roster-player-container mstw-tr-roster-player-container-<?php echo esc_attr( $teamSlug ) ?> MSTW-flex-row'> 147 143 148 144 <?php //PRIMARY INFO COLUMN ?> … … 166 162 <div class='mstw-tr-roster-player-number-name MSTW-uppercase'> 167 163 <?php 168 $playerNameLink_escaped = $this -> buildPlayerName( $player, $teamSlug, $attribs, 1 ); 164 $playerNameLink_escaped = $this -> buildPlayerName( $player, $teamSlug, $attribs, 1 ); 169 165 $playerNumber = get_post_meta( $player->ID, 'player_number', true ); 170 166 ?> … … 184 180 <div class='mstw-tr-roster-player-bio'> 185 181 <?php $playerLink = get_permalink( $player->ID ) . '?roster_type=' . $this -> safeGet( 'roster_type', $attribs, 'custom' ) . '&' . 'team=' . $teamSlug . '"'; ?> 186 <a href="<?php echo esc_ html( $playerLink ) ?>"> FULL BIO</a>182 <a href="<?php echo esc_url( $playerLink ) ?>"> FULL BIO</a> 187 183 188 184 </div> … … 311 307 312 308 if ( $addProfileLink ) { 313 $paramStr = ' ?roster_type=' . $options['roster_type'];309 $paramStr = '&roster_type=' . $options['roster_type']; 314 310 if ( $teamSlug ) { 315 311 $paramStr .= "&team=$teamSlug"; 316 312 } 317 $ret_html = '<a href="' . esc_url( get_permalink( $player->ID ) ) . esc_html( $paramStr ) . '" '; 318 $ret_html .= '>' . esc_html( $player_name ) . '</a>'; 319 320 //$ret_html = get_permalink( $player->ID ) . $paramStr . '" '; 321 //$ret_html .= '>' . $player_html; 313 314 $nonceURL = wp_nonce_url( get_permalink( $player->ID ), 'single-player', 'mstw-tr-nonce' ); 315 $nonceURL .= $paramStr; 316 317 $ret_html = '<a href="' . esc_url( $nonceURL ) . '" > ' . esc_html( $player_name ) . '</a>'; 318 322 319 } 323 320 else { 324 $ret_html = $player_name;321 $ret_html = esc_html( $player_name ); 325 322 326 323 } … … 453 450 // 454 451 function get_field_key( $rosterType, $fldNbr ) { 455 //mstw_log_msg( " get_field_key:" );452 //mstw_log_msg( "MSTW_ROSTER_TABLE.get_field_key:" ); 456 453 457 454 $conversionTable = array( 'high-school' => … … 487 484 function processAtts( $atts, $shortcode ) { 488 485 //mstw_log_msg( "MSTW_ROSTER_TABLE.processAtts: shortcode= $shortcode" ); 489 //mstw_log_msg( "Passed atts: " );490 //mstw_log_msg( $atts );491 486 492 487 switch( $shortcode ) { … … 546 541 function build_roster_sort_controls( $team, $attribs, $args, $argsStr = '', $tableID = '' ) { 547 542 //mstw_log_msg( "MSTW_ROSTER_TABLE.build_roster_sort_control: team: $team , argsStr: $argsStr, tableID: $tableID" ); 548 549 // jersey # | name | position | hometown | class-year 543 550 544 $choices = array( 'numeric' => __( 'Jersey Number', 'team-rosters' ), 551 545 'alpha-first' => __( 'First Name', 'team-rosters' ), … … 562 556 ?> 563 557 <form id='tr-sort-controls' class='MSTW-flex-row' > 564 <input type='hidden' id='roster-team' value='<?php echo esc_ html( $team ) ?>'/>565 <input type="hidden" id='tableID' value="<?php echo esc_ html( $tableID ) ?>" />566 <input type="hidden" id='args_<?php echo esc_ html( $tableID ) ?>' value="<?php echo esc_html( $argsStr )?>" />558 <input type='hidden' id='roster-team' value='<?php echo esc_attr( $team ) ?>'/> 559 <input type="hidden" id='tableID' value="<?php echo esc_attr( $tableID ) ?>" /> 560 <input type="hidden" id='args_<?php echo esc_attr( $tableID ) ?>' value="<?php echo esc_attr( $argsStr )?>" /> 567 561 568 562 <div class='tr-sort-menu'> 569 <select name='tr-sort-menu' id='tr-sort-menu_<?php echo esc_ html( $tableID ) ?>'>563 <select name='tr-sort-menu' id='tr-sort-menu_<?php echo esc_attr( $tableID ) ?>'> 570 564 <?php 571 565 foreach( $choices as $slug => $label ) { 572 566 $selected = ( $currentSortOrder == $slug ) ? 'selected="selected"' : ''; 573 567 ?> 574 <option value=<?php echo esc_ html( "$slug $selected" ) ?>> <?php echo esc_html( $label ) ?></option>568 <option value=<?php echo esc_attr( "$slug $selected" ) ?>> <?php echo esc_html( $label ) ?></option> 575 569 <?php 576 570 } … … 580 574 581 575 <div class='tr-sort-button'> 582 <input type='button' class='secondary tr-sort-submit' id='<?php echo esc_ html( $tableID ) ?>' name='<?php echo esc_html( $team )?>' value=<?php esc_html_e( 'Sort Roster', 'team-rosters' ) ?>/>576 <input type='button' class='secondary tr-sort-submit' id='<?php echo esc_attr( $tableID ) ?>' name='<?php echo esc_attr( $team )?>' value=<?php esc_attr_e( 'Sort Roster', 'team-rosters' ) ?>/> 583 577 </div> 584 578 -
team-rosters/trunk/includes/mstw-tr-settings.php
r3270053 r3319253 27 27 function mstw_tr_settings_page( ) { 28 28 //mstw_log_msg( "mstw_tr_settings_page:" ); 29 //mstw_log_msg( $_GET ); 29 30 30 31 global $pagenow; … … 35 36 include_once 'mstw-tr-player-profiles-galleries-settings.php'; 36 37 37 //mstw_tr_data_fields_columns_setup( );38 38 mstw_tr_data_fields_setup( ); 39 //mstw_tr_data_fields_center_setup( );40 39 41 40 mstw_tr_roster_table_setup( ); … … 52 51 <?php 53 52 //Get or set the current tab - default to first/main settings tab 54 $current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'data-fields-columns-tab' ); 53 $current_tab = mstw_really_safe_get( 'tab', $_GET, 'data-fields-columns-tab' ); 54 //$current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'data-fields-columns-tab' ); 55 55 56 56 $tabsArray = array( 'data-fields-columns-tab', … … 133 133 <table class="form-table"> 134 134 <!-- Add a spacer row --> 135 <tr><td><input type='hidden' name='current_tab' id='current_tab' value='<?php echo esc_ html( $current_tab ) ?>' /></td></tr>135 <tr><td><input type='hidden' name='current_tab' id='current_tab' value='<?php echo esc_attr( $current_tab ) ?>' /></td></tr> 136 136 <tr> 137 137 <td> 138 <input name="Submit" type="submit" class="button-primary" value="<?php esc_ html_e( 'Save Changes', 'team-rosters' ) ?>" />139 140 <input type="submit" class="button-secondary" id="reset_btn" name="<?php echo esc_ html( $options_name ) ?>" onclick="tr_confirm_reset_defaults()" value="<?php esc_html_e( 'Reset Defaults', 'team-rosters' ) ?>" />138 <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'team-rosters' ) ?>" /> 139 140 <input type="submit" class="button-secondary" id="reset_btn" name="<?php echo esc_attr( $options_name ) ?>" onclick="tr_confirm_reset_defaults()" value="<?php esc_attr_e( 'Reset Defaults', 'team-rosters' ) ?>" /> 141 141 </td> 142 142 </tr> … … 277 277 } 278 278 279 // Get current tab so we know what fields to validate and save 280 // Default to first/main settings tab 281 $current_tab = ( isset( $_POST['current_tab'] ) ) ? $_POST['current_tab'] : 'data-fields-columns-tab'; 282 279 $current_tab = mstw_really_safe_get( 'current_tab', $_POST, 'data-fields-columns-tab' ); 280 283 281 //check if the reset button was pressed and confirmed 284 282 //array_key_exists() returns true for null, isset does not -
team-rosters/trunk/includes/mstw-tr-team-roster-admin-class.php
r3270053 r3319253 110 110 // We do the heavy lifting in the post( ) method 111 111 // 112 if ( 'POST' == $_SERVER['REQUEST_METHOD'] ) { 113 114 $submit_value = array_key_exists( 'submit', $_POST ) ? wp_unslash( $_POST[ 'submit' ] ) : null; 112 $requestMethod = mstw_safe_get( 'REQUEST_METHOD', $_SERVER, '' ); 113 114 if ( 'POST' == $requestMethod ) { 115 116 $submit_value = mstw_safe_get( 'submit', $_POST, null ); 117 118 //$submit_value = array_key_exists( 'submit', $_POST ) ? wp_unslash( $_POST[ 'submit' ] ) : null; 115 119 116 120 $this->post( compact( 'submit_value' ) ); … … 135 139 // 136 140 $current_team = mstw_tr_get_current_team( ); 137 //mstw_log_msg( 'Current Team: ' . $current_team );138 141 139 142 $paged = ( array_key_exists( 'paged', $_GET ) ) ? absint( $_GET['paged'] ) : 1; … … 157 160 158 161 <form id="manage-roster" class="add:the-list: validate" method="post" enctype="multipart/form-data" action=""> 159 162 <?php wp_nonce_field( 'add-edit-players', 'mstw-tr-nonce' ); ?> 163 160 164 <div class="alignleft actions mstw-tr-controls"> 161 165 <?php … … 172 176 </h1> 173 177 </div> <!-- .alignleft actions mstw-lm-controls --> 174 </form> <!-- # bracket-builder-->178 </form> <!-- #manage-roster--> 175 179 <?php return; ?> 176 180 177 <?php181 <?php 178 182 } else { 179 183 //echo admin_url( 'admin.php?page=manage-team-rosters' ); … … 216 220 $this -> build_roster_table_header( ); 217 221 if ( $edit ) { 218 $this -> build_roster_table_body( $players_list ); 219 $submit_button_label = __( 'Update Roster', 'team-rosters' ); 220 222 $this -> build_roster_table_body( $players_list ); 223 $submit_button_label = __( 'Update Roster', 'team-rosters' ); 221 224 } else { 222 $this -> build_add_players_table_body( ); 223 $submit_button_label = __( 'Add Players', 'team-rosters' ); 224 225 $this -> build_add_players_table_body( ); 226 $submit_button_label = __( 'Add Players', 'team-rosters' ); 225 227 } 226 228 … … 228 230 229 231 <!-- Submit button --> 230 <?php wp_nonce_field( 'add-edit-players', 'mstw-tr-nonce' ); ?>232 <?php //wp_nonce_field( 'add-edit-players', 'mstw-tr-nonce' ); ?> 231 233 <tbody> 232 234 <tr> … … 245 247 </tbody> 246 248 247 </table> 248 249 </form> 249 </table> <!-- #edit-teams --> 250 251 </form> <!-- #manage-roster --> 250 252 251 253 <?php … … 502 504 ?> 503 505 <span class="tr-paginate-links"> 504 <?php echo wp_kses_post( paginate_links( $args ) ); ?> 506 <?php if ( !is_null( paginate_links( $args ) ) ) { 507 echo wp_kses_post( paginate_links( $args ) ); 508 }?> 509 510 <?php //echo wp_kses_post( paginate_links( $args ) ); ?> 505 511 </span> 506 512 … … 655 661 function post( $options ) { 656 662 //mstw_log_msg( 'MSTW_TR_TEAM_ROSTERS_ADMIN.post:' ); 663 //mstw_log_msg( $_POST ); 657 664 // 658 665 //first, do a few checks on form 659 666 // 660 667 661 if ( isset( $_POST['mstw-tr-nonce'] ) ) { 662 //wp_verify_nonce( sanitize_key( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 663 $safeNonce = wp_esc_key( wp_unslash( $_POST['mstw-tr-nonce'] ) ); 664 668 $safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_POST, '' ); 669 670 if ( "" != $safeNonce ) { 665 671 if ( !wp_verify_nonce( $safeNonce, 'add-edit-players' ) ) { 666 mstw_tr_add_admin_notice( 'error', __( 'Problem encountered updating roster. Exiting.', 'team-rosters' ) );667 672 mstw_log_msg( 'MSTW_TR_TEAM_ROSTERS_ADMIN.post: Problem encountered updating roster; bad nonce. Exiting.' ); 673 //die( esc_html__( 'Fatal error encountered updating roster -verification.', 'team-rosters' ) ); 668 674 return; 669 675 } 670 676 671 677 } else { 672 mstw_tr_add_admin_notice( 'error', __( 'Problem encountered updating roster. Exiting.', 'team-rosters' ) );673 678 mstw_log_msg( 'MSTW_TR_TEAM_ROSTERS_ADMIN.post: Problem encountered updating roster; nonce missing. Exiting.' ); 679 //die( esc_html__( 'Fatal error encountered updating roster -missin.', 'team-rosters' ) ); 674 680 return; 675 681 … … 691 697 692 698 } else { 693 $team_slug = array_shift( $_POST ); //return 1st value and remove 1st element694 699 $playerArray = $_POST; 695 700 $trashNonce = array_shift( $playerArray ); //nonce is 1st value - trash 701 $trashRef = array_shift( $playerArray ); //referrer is 2nd value - trash 702 //return 1st value and remove 1st element 703 $team_slug = array_shift( $playerArray ); 704 696 705 // Count for admin message 697 706 $nbr_updated = 0; … … 707 716 708 717 $playerArray = array_slice( $playerArray, $nbrFields + 1 ); 709 718 710 719 $result = $this -> process_player( $player_slug, $team_slug, $playerData ); 711 720 … … 881 890 function update_player( $player_id, $player_slug, $team_slug, $first_name, $last_name, $playerData ) { 882 891 //mstw_log_msg( "MSTW_TR_TEAM_ROSTERS_ADMIN.update_player:" ); 883 //mstw_log_msg( "player id: $player_id , slug: $player_slug , team: $team_slug" ); 884 892 885 893 if ( '' != $player_slug ) { 886 894 $player_obj = get_page_by_path( $player_slug, OBJECT, 'mstw_tr_player' ); -
team-rosters/trunk/includes/mstw-tr-team-tax-admin-class.php
r3270053 r3319253 296 296 function create_team_meta( $term_id, $tt_id ){ 297 297 //mstw_log_msg( 'MSTW_TR_TEAM_TAX_ADMIN.create_team_meta:' ); 298 //mstw_log_msg( "term_id= $term_id || tt_id= $tt_id" ); 299 298 300 299 $key = 'ss_team_link'; 301 if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) {302 303 $res = update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] );304 300 $postKey = mstw_safe_get( $key, $_POST, -1 ); 301 302 if ( -1 != $postKey ) { 303 $res = update_term_meta( $term_id, 'tr_team_link', $postKey ); 305 304 $res = update_term_meta( $term_id, 'tr_link_source', 'mstw_ss_team' ); 306 307 return; 308 305 return; 309 306 } 310 307 311 308 $key = 'lm_team_link'; 312 if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) { 313 314 $res = update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] ); 315 316 $res = update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' ); 317 318 return; 319 309 $postKey = mstw_safe_get( $key, $_POST, -1 ); 310 311 if ( -1 != $postKey ) { 312 $res = update_term_meta( $term_id, 'tr_team_link', $postKey ); 313 $res = update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' ); 320 314 } 321 315 … … 333 327 // 334 328 function edit_team_meta( $term_id, $tt_id ) { 335 //mstw_log_msg( 'MSTW_TR_TEAM_TAX_ADMIN.edit_team_meta:' ); 336 //mstw_log_msg( '$term_id= ' . $term_id ); 337 //mstw_log_msg( '$tt_id= ' . $tt_id ); 338 329 mstw_log_msg( 'MSTW_TR_TEAM_TAX_ADMIN.edit_team_meta:' ); 330 mstw_log_msg( $_POST ); 331 339 332 $key = 'ss_team_link'; 340 if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) { 341 342 update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] ); 333 $postKey = mstw_safe_get( $key, $_POST, -1 ); 334 335 if ( -1 != $postKey ) { 336 337 update_term_meta( $term_id, 'tr_team_link', $postKey ); 343 338 update_term_meta( $term_id, 'tr_link_source', 'mstw_ss_team' ); 344 339 … … 346 341 347 342 $key = 'lm_team_link'; 348 if ( array_key_exists( $key, $_POST ) && ( -1 != $_POST[ $key ] ) ) {349 350 update_term_meta( $term_id, 'tr_team_link', $_POST[ $key ] );351 update_term_meta( $term_id, 'tr_ link_source', 'mstw_lm_team');352 343 $postKey = mstw_safe_get( $key, $_POST, -1 ); 344 345 if ( -1 != $postKey ) { 346 update_term_meta( $term_id, 'tr_team_link', $postKey ); 347 update_term_meta( $term_id, 'tr_link_source', 'mstw_lm_team' ); 353 348 } else { 354 355 349 update_term_meta( $term_id, 'tr_team_link', -1 ); 356 350 update_term_meta( $term_id, 'tr_link_source', '' ); -
team-rosters/trunk/includes/mstw-tr-utility-functions.php
r3270053 r3319253 126 126 // None. Outputs to WP error_log 127 127 // 128 if ( !function_exists( 'mstw_log_msg' ) ) {128 /*if ( !function_exists( 'mstw_log_msg' ) ) { 129 129 function mstw_log_msg( $msg ) { 130 130 if ( WP_DEBUG === true ) { … … 141 141 } //End: mstw_log_msg( ) 142 142 } 143 */ 143 144 144 145 // ---------------------------------------------------------------- … … 591 592 if ( !function_exists( 'mstw_tr_build_gallery' ) ) { 592 593 function mstw_tr_build_gallery( $team_slug, $roster_type, $options ) { 593 //mstw_ tr_log_msg( 'mstw_tr_build_gallery:' );594 //mstw_log_msg( 'mstw_tr_build_gallery:' ); 594 595 595 596 // Set the sort field … … 824 825 //mstw_log_msg( "mstw_tr_build_player_name: name_format= " . $options[ 'name_format' ] ); 825 826 826 $first_name = get_post_meta( $player->ID, 'player_first_name', true );827 $last_name = get_post_meta( $player->ID, 'player_last_name', true );827 $first_name = get_post_meta( $player->ID, 'player_first_name', true ); 828 $last_name = get_post_meta( $player->ID, 'player_last_name', true ); 828 829 829 830 switch ( $options['name_format'] ) { … … 847 848 if( $display != 'profile' ) { 848 849 if ( $options['links_to_profiles'] ) { 849 $paramStr = '?roster_type=' . $options['roster_type']; 850 // this has a ? need an & since nonce is already there 851 //$paramStr = '?roster_type=' . $options['roster_type']; 852 $paramStr = '&roster_type=' . $options['roster_type']; 850 853 if ( $teamSlug ) { 851 854 $paramStr .= "&team=$teamSlug"; 852 855 } 853 if ( 'custom' == $options['roster_type'] /*&& $last_name == "Havlicek"*/) {856 if ( 'custom' == $options['roster_type'] ) { 854 857 $serialArgs = base64_encode( serialize( $options ) ); 855 858 $paramStr .= "&args=$serialArgs"; 856 859 } 857 860 858 $player_html = '<a href="' . get_permalink( $player->ID ) . $paramStr . '" '; 859 $player_html .= '>' . $player_name . '</a>'; 861 if ( $last_name == "Roth" ) { 862 $nonceURL = wp_nonce_url( get_permalink( $player->ID ), 'single-player', 'mstw-tr-nonce' ); 863 $nonceURL .= $paramStr; 864 } 865 866 $nonceURL = wp_nonce_url( get_permalink( $player->ID ), 'single-player', 'mstw-tr-nonce' ); 867 $player_html = '<a href="' . $nonceURL . $paramStr . '">' . $player_name . '</a>';; 868 860 869 } 861 870 } … … 1265 1274 1266 1275 //for testing only 1267 // $this ->set_current_team( '' );1276 //mstw_tr_set_current_team( '' ); 1268 1277 1269 1278 $current_team = get_option( 'tr-current-team', '' ); 1279 1280 //mstw_log_msg( "mstw_tr_get_current_team: current_team = $current_team" ); 1270 1281 1271 1282 // We should get a current team, but in case we don't we'll take the … … 1847 1858 1848 1859 default: 1849 mstw_ tr_log_msg( "CONTROL TYPE $type NOT RECOGNIZED." );1860 mstw_log_msg( "CONTROL TYPE $type NOT RECOGNIZED." ); 1850 1861 echo "CONTROL TYPE ", esc_html( $type ), " NOT RECOGNIZED."; 1851 1862 break; … … 2023 2034 2024 2035 } //End: mstw_tr_build_settings_field() 2036 } 2037 2038 /*---------------------------------------------------------------------------------*/ 2039 // 44. mstw_tr_build_player_link_html: 2040 // ARGUMENTS: 2041 // RETURNS : 2042 // 2043 if ( !function_exists( 'mstw_tr_build_player_link_html' ) ) { 2044 function mstw_tr_build_player_link_html( $playerURL, $playerDisplay ) { 2045 //mstw_log_msg( "mstw_tr_build_player_link_html:" ); 2046 2047 $playerHTML = '<a href="' . $playerURL . '">' . $playerDisplay . '</a>'; 2048 2049 return $playerHTML; 2050 2051 } //End: mstw_tr_build_player_link_html( ) 2052 } 2053 2054 /*---------------------------------------------------------------------------------*/ 2055 // 45. mstw_tr_build_player_url: 2056 // ARGUMENTS: 2057 // RETURNS : 2058 // 2059 if ( !function_exists( 'mstw_tr_build_player_url' ) ) { 2060 function mstw_tr_build_player_url( $postID, $playerID ) { 2061 //mstw_log_msg( "mstw_tr_build_player_url:" ); 2062 2063 $nonceURL = wp_nonce_url( get_permalink( $playerID ), 'single-player', 'mstw-tr-nonce' ); 2064 $nonceURL .= '&position='. $postID; 2065 2066 return $nonceURL; 2067 } //End: mstw_tr_build_player_url() 2025 2068 } 2026 2069 -
team-rosters/trunk/includes/mstw-utility-functions.php
r3270053 r3319253 26 26 * 1. mstw_log_msg - writes debug messages to /wp-content/debug.log 27 27 * if the WP_DEBUG settings in wp-config are correct 28 * 2. mstw_requires_wordpress_version - checks for the right WordPress version28 * 2. mstw_requires_wordpress_version - removed from team rosters 29 29 * 3. mstw_safe_ref - prevents uninitialized string errors 30 * 3.1 mstw_safe_get - Safely get value for a key from an array 30 * 3.1 mstw_safe_get - Safely get value for a key from an array 31 * 3.2 mstw_really_safe_get - safely get data from array that makes PCP happy :) 31 32 * 4. mstw_build_css_rule - builds css rules from an array of options 32 33 * generally from get_option() without errors … … 88 89 // 89 90 /* 90 * Removed from team rosters version91 * Removed from team rosters plugin 91 92 */ 92 93 … … 119 120 function mstw_safe_get( $needle, $haystack, $default = '' ) { 120 121 //mstw_log_msg( "mstw_safe_get: needle= $needle" haystack= $haystack" ); 121 122 122 123 if ( array_key_exists( $needle, $haystack ) ) { 123 124 return $haystack[ $needle ]; … … 130 131 } //End: mstw_safe_get( ) 131 132 } 133 134 //-------------------------------------------------------------------------------- 135 // 3.2 mstw_really_safe_get - safely get data from array that makes PCP happy :) 136 // unslashes and sanitizes the array field - used primarily with $_POST and 137 // $_GET to satisify PCP recommended practices 138 // ARGUMENTS: 139 // $needle - a (candidate) array key 140 // $haystack - an array 141 // $default - returned if $needle is not (a key) in $haystack 142 // 143 // RETURNS 144 // $haystack[ $needle ] if $needle exists as a key. $default otherwise. 145 // 146 if ( !function_exists ( 'mstw_really_safe_get' ) ) { 147 function mstw_really_safe_get( $needle, $haystack, $default = '' ) { 148 //mstw_log_msg( "mstw_really_safe_get:" ); 149 150 if ( isset( $haystack[ $needle ] ) ) { 151 return sanitize_text_field( wp_unslash( $haystack[ $needle ] ) ); 152 } 153 else { 154 return $default; 155 156 } 157 158 } //End: mstw_really_safe_get( ) 159 } 160 132 161 133 162 //------------------------------------------------------------------------------ … … 263 292 // 264 293 /* 265 * Removed from team rosters version294 * Removed from team rosters plugin version 266 295 */ 267 296 … … 358 387 update_post_meta( $post_id, $key, esc_url( $url ) ); 359 388 360 } else { 389 } 390 else { 361 391 // url is not valid, display an error message (dont' update DB) 362 392 $notice .= ' ' . $url; … … 365 395 } 366 396 } 367 } //End: mstw_validate_url( )397 } //End: mstw_validate_url() 368 398 } 369 399 … … 377 407 // http://themergency.com/wordpress-tip-get-post-type-in-admin/ 378 408 // 409 /* 379 410 if ( !function_exists( 'mstw_get_current_post_type' ) ) { 380 411 function mstw_get_current_post_type( ) { … … 393 424 * Processing form data without nonce verification. 394 425 * This utility function is just trying to find a post type?? 395 */426 396 427 elseif( isset( $_REQUEST['post_type'] ) ) 397 428 return sanitize_key( $_REQUEST['post_type'] ); … … 402 433 } //End: mstw_get_current_post_type( ) 403 434 } 435 */ 404 436 405 437 //------------------------------------------------------------------------------- -
team-rosters/trunk/js/tr-manage-rosters.js
r2749375 r3319253 5 5 * 6 6 * MSTW Wordpress Plugins (http://shoalsummitsolutions.com) 7 * Copyright 2017-2 2Mark O'Donnell ([email protected])7 * Copyright 2017-25 Mark O'Donnell ([email protected]) 8 8 * 9 9 * This program is distributed in the hope that it will be useful, … … 13 13 14 14 jQuery(document).ready( function( $ ) { 15 //alert( "Doc is ready" );16 15 //console.log( "Doc is ready" ); 17 16 … … 20 19 // 21 20 $( '#current-team' ).change( function( event ) { 22 //alert( 'tr-manage-rosters.js tourney changed ... id= ' + event.target.id ); 23 //console.log( 'tr-manage-rosters.js tourney changed ... id= ' + event.target.id ); 24 //alert( 'tourney: ' + this.value ); 21 //console.log( 'tr-manage-rosters.js team changed ... id= ' + event.target.id ); 25 22 26 23 var data = { … … 31 28 }; 32 29 33 jQuery.post( ajaxurl, data, function( response ) {34 // alert( 'Got this from the server: ' + response );30 jQuery.post( mstw_tr_manage_rosters_ajax.ajaxurl, data, function( response ) { 31 //console_log( 'Got this from the server: ' + response ); 35 32 var object = jQuery.parseJSON( response ); 36 33 … … 39 36 } 40 37 else { 41 // alert( "Current team updated" );38 //console_log( "Current team updated" ); 42 39 } 43 40 -
team-rosters/trunk/js/tr-sort-roster-table.js
r2832676 r3319253 3 3 * 4 4 * MSTW Wordpress Plugins (http://shoalsummitsolutions.com) 5 * Copyright 2020-2 2Mark O'Donnell ([email protected])5 * Copyright 2020-25 Mark O'Donnell ([email protected]) 6 6 * 7 7 * This program is free software: you can redistribute it and/or modify -
team-rosters/trunk/js/tr-team-roster-2-ajax.js
r2767507 r3319253 1 1 // tr-team-roster-2-ajax.js 2 2 // JavaScript to sort team roster - mstw-tr-roster-2 shortcode (mstw-tr-roster-tables-class.php) 3 // 3 /* 4 * MSTW Wordpress Plugins (http://shoalsummitsolutions.com) 5 * Copyright 2017-25 Mark O'Donnell ([email protected]) 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 */ 4 11 5 12 jQuery(document).ready( function( $ ) { -
team-rosters/trunk/lang/team-rosters.pot
r3240856 r3319253 3 3 msgstr "" 4 4 "Project-Id-Version: MSTW Team Rosters\n" 5 "POT-Creation-Date: 2025-0 2-14 15:58-0600\n"5 "POT-Creation-Date: 2025-06-24 22:11-0500\n" 6 6 "PO-Revision-Date: 2025-02-14 15:57-0600\n" 7 7 "Last-Translator: \n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 13 "X-Generator: Poedit 3. 5\n"13 "X-Generator: Poedit 3.6\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" 16 16 "X-Poedit-WPHeader: mstw-team-rosters.php\n" 17 17 "X-Poedit-SourceCharset: UTF-8\n" 18 "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" 19 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;" 20 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n" 18 "X-Poedit-KeywordsList: " 19 "__;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n" 21 20 "X-Poedit-SearchPath-0: .\n" 22 21 "X-Poedit-SearchPathExcluded-0: *.min.js\n" … … 26 25 msgstr "" 27 26 28 #: includes/mstw-tr-admin.php:390 includes/mstw-tr-admin.php:391 27 #. Plugin Name of the plugin/theme 28 #: includes/mstw-tr-admin.php:359 includes/mstw-tr-admin.php:360 29 29 msgid "Team Rosters" 30 30 msgstr "" 31 31 32 #: includes/mstw-tr-admin.php: 408 includes/mstw-tr-admin.php:40933 #: includes/mstw-tr-cpts.php:120 includes/mstw-tr-csv-import-class.php:9 634 #: includes/mstw-tr-team-tax-admin-class.php:3 9432 #: includes/mstw-tr-admin.php:377 includes/mstw-tr-admin.php:378 33 #: includes/mstw-tr-cpts.php:120 includes/mstw-tr-csv-import-class.php:98 34 #: includes/mstw-tr-team-tax-admin-class.php:385 35 35 msgid "Teams" 36 36 msgstr "" 37 37 38 #: includes/mstw-tr-admin.php: 42938 #: includes/mstw-tr-admin.php:398 39 39 msgid "All Players" 40 40 msgstr "" 41 41 42 #: includes/mstw-tr-admin.php: 430 includes/mstw-tr-player-cpt-admin.php:63142 #: includes/mstw-tr-admin.php:399 includes/mstw-tr-player-cpt-admin.php:639 43 43 msgid "Manage Players" 44 44 msgstr "" 45 45 46 #: includes/mstw-tr-admin.php:4 5247 #: includes/mstw-tr-team-roster-admin-class.php:2 3348 #: includes/mstw-tr-team-roster-admin-class.php: 70946 #: includes/mstw-tr-admin.php:421 47 #: includes/mstw-tr-team-roster-admin-class.php:226 48 #: includes/mstw-tr-team-roster-admin-class.php:693 49 49 msgid "Add Players" 50 50 msgstr "" 51 51 52 #: includes/mstw-tr-admin.php:4 5352 #: includes/mstw-tr-admin.php:422 53 53 msgid "Add Players to Rosters" 54 54 msgstr "" 55 55 56 #: includes/mstw-tr-admin.php:4 67 includes/mstw-tr-admin.php:46856 #: includes/mstw-tr-admin.php:436 includes/mstw-tr-admin.php:437 57 57 msgid "Edit Rosters" 58 58 msgstr "" 59 59 60 #: includes/mstw-tr-admin.php:4 87 includes/mstw-tr-admin.php:48860 #: includes/mstw-tr-admin.php:456 includes/mstw-tr-admin.php:457 61 61 msgid "Settings" 62 62 msgstr "" 63 63 64 #: includes/mstw-tr-admin.php:5 66 includes/mstw-tr-admin.php:56964 #: includes/mstw-tr-admin.php:512 includes/mstw-tr-admin.php:515 65 65 msgid "Player updated." 66 66 msgstr "" 67 67 68 #: includes/mstw-tr-admin.php:5 6768 #: includes/mstw-tr-admin.php:513 69 69 msgid "Custom field updated." 70 70 msgstr "" 71 71 72 #: includes/mstw-tr-admin.php:5 6872 #: includes/mstw-tr-admin.php:514 73 73 msgid "Custom field deleted." 74 74 msgstr "" 75 75 76 #: includes/mstw-tr-admin.php:5 7076 #: includes/mstw-tr-admin.php:516 77 77 msgid "Player restored to revision" 78 78 msgstr "" 79 79 80 #: includes/mstw-tr-admin.php:5 7180 #: includes/mstw-tr-admin.php:517 81 81 msgid "Player published." 82 82 msgstr "" 83 83 84 #: includes/mstw-tr-admin.php:5 7284 #: includes/mstw-tr-admin.php:518 85 85 msgid "Player saved." 86 86 msgstr "" 87 87 88 #: includes/mstw-tr-admin.php:5 7388 #: includes/mstw-tr-admin.php:519 89 89 msgid "Player submitted." 90 90 msgstr "" 91 91 92 #: includes/mstw-tr-admin.php:5 7492 #: includes/mstw-tr-admin.php:520 93 93 msgid "Player scheduled for publication." 94 94 msgstr "" 95 95 96 #: includes/mstw-tr-admin.php:5 7596 #: includes/mstw-tr-admin.php:521 97 97 msgid "Player draft updated." 98 98 msgstr "" 99 99 100 100 #. translators: %s: count of players updated 101 #: includes/mstw-tr-admin.php:5 91101 #: includes/mstw-tr-admin.php:537 102 102 #, php-format 103 103 msgid "%s player updated." … … 107 107 108 108 #. translators: %s: count of players deleted 109 #: includes/mstw-tr-admin.php:5 93109 #: includes/mstw-tr-admin.php:539 110 110 #, php-format 111 111 msgid "%s player not updated, somebody is editing it." … … 115 115 116 116 #. translators: %s: count of players deleted 117 #: includes/mstw-tr-admin.php:5 95117 #: includes/mstw-tr-admin.php:541 118 118 #, php-format 119 119 msgid "%s player permanently deleted." … … 123 123 124 124 #. translators: %s: count of players moved to trash 125 #: includes/mstw-tr-admin.php:5 97125 #: includes/mstw-tr-admin.php:543 126 126 #, php-format 127 127 msgid "%s player moved to the Trash." … … 131 131 132 132 #. translators: %s: count of players restored from trash 133 #: includes/mstw-tr-admin.php:5 99133 #: includes/mstw-tr-admin.php:545 134 134 #, php-format 135 135 msgid "%s player restored from the Trash." … … 138 138 msgstr[1] "" 139 139 140 #: includes/mstw-tr-admin.php: 617140 #: includes/mstw-tr-admin.php:563 141 141 msgid "Team added." 142 142 msgstr "" 143 143 144 #: includes/mstw-tr-admin.php: 618144 #: includes/mstw-tr-admin.php:564 145 145 msgid "Team deleted." 146 146 msgstr "" 147 147 148 #: includes/mstw-tr-admin.php: 619148 #: includes/mstw-tr-admin.php:565 149 149 msgid "Team updated." 150 150 msgstr "" 151 151 152 #: includes/mstw-tr-admin.php: 620152 #: includes/mstw-tr-admin.php:566 153 153 msgid "Team not added." 154 154 msgstr "" 155 155 156 #: includes/mstw-tr-admin.php: 621156 #: includes/mstw-tr-admin.php:567 157 157 msgid "Team not updated." 158 158 msgstr "" 159 159 160 #: includes/mstw-tr-admin.php: 622160 #: includes/mstw-tr-admin.php:568 161 161 msgid "Teams deleted." 162 162 msgstr "" 163 163 164 #: includes/mstw-tr-admin.php:6 79 mstw-team-rosters.php:764164 #: includes/mstw-tr-admin.php:620 mstw-team-rosters.php:750 165 165 msgid "AJAX Error: invalid action." 166 166 msgstr "" 167 167 168 #: includes/mstw-tr-admin.php:6 85 mstw-team-rosters.php:769168 #: includes/mstw-tr-admin.php:626 mstw-team-rosters.php:756 169 169 msgid "AJAX Error: no action found." 170 170 msgstr "" 171 171 172 #: includes/mstw-tr-admin.php: 726 includes/mstw-tr-admin.php:766172 #: includes/mstw-tr-admin.php:670 includes/mstw-tr-admin.php:710 173 173 msgid "AJAX Error: No league provided to handler." 174 174 msgstr "" 175 175 176 #: includes/mstw-tr-admin.php:874 176 #: includes/mstw-tr-admin.php:772 177 msgid "fatal error encountered in team rosters" 178 msgstr "" 179 180 #: includes/mstw-tr-admin.php:776 181 msgid "fatal error encountered in team Rosters" 182 msgstr "" 183 184 #: includes/mstw-tr-admin.php:818 177 185 msgid "Team Rosters - Quick Start" 178 186 msgstr "" 179 187 180 #: includes/mstw-tr-admin.php:8 77188 #: includes/mstw-tr-admin.php:821 181 189 msgid "" 182 190 "At least one team must exist before anything can be displayed via the " … … 185 193 msgstr "" 186 194 187 #: includes/mstw-tr-admin.php:8 78195 #: includes/mstw-tr-admin.php:822 188 196 msgid "" 189 197 "After creating one or more teams, players must be added to them. Players may " … … 192 200 msgstr "" 193 201 194 #: includes/mstw-tr-admin.php:8 79202 #: includes/mstw-tr-admin.php:823 195 203 msgid "" 196 204 "Multiple players may be added to a roster via this screen. While the same " … … 199 207 msgstr "" 200 208 201 #: includes/mstw-tr-admin.php:8 80209 #: includes/mstw-tr-admin.php:824 202 210 msgid "" 203 211 "Entire rosters may be edited or updated via this screen. While the same data " … … 206 214 msgstr "" 207 215 208 #: includes/mstw-tr-admin.php:8 81216 #: includes/mstw-tr-admin.php:825 209 217 msgid "" 210 218 "Provides a rich set of controls for ROSTER TABLES, ROSTER GALLERIES, and " … … 212 220 msgstr "" 213 221 214 #: includes/mstw-tr-admin.php:8 82222 #: includes/mstw-tr-admin.php:826 215 223 msgid "" 216 224 "Provides the ability to upload Teams and Players (including player photos) " … … 220 228 msgstr "" 221 229 222 #: includes/mstw-tr-admin.php:8 90230 #: includes/mstw-tr-admin.php:834 223 231 #, php-format 224 232 msgid "" … … 232 240 233 241 #: includes/mstw-tr-cpts.php:39 includes/mstw-tr-cpts.php:84 234 #: includes/mstw-tr-cpts.php:86 includes/mstw-tr-csv-import-class.php:14 5235 #: includes/mstw-tr-team-tax-admin-class.php:22 5242 #: includes/mstw-tr-cpts.php:86 includes/mstw-tr-csv-import-class.php:141 243 #: includes/mstw-tr-team-tax-admin-class.php:226 236 244 msgid "Players" 237 245 msgstr "" … … 293 301 msgstr "" 294 302 295 #: includes/mstw-tr-cpts.php:112 includes/mstw-tr-team-tax-admin-class.php:39 9303 #: includes/mstw-tr-cpts.php:112 includes/mstw-tr-team-tax-admin-class.php:390 296 304 msgid "Edit Team" 297 305 msgstr "" … … 325 333 msgstr "" 326 334 327 #: includes/mstw-tr-csv-import-class.php:8 6335 #: includes/mstw-tr-csv-import-class.php:87 328 336 msgid "Import CSV Files" 329 337 msgstr "" 330 338 331 #: includes/mstw-tr-csv-import-class.php: 89332 #: includes/mstw-tr-team-roster-admin-class.php:1 27339 #: includes/mstw-tr-csv-import-class.php:90 340 #: includes/mstw-tr-team-roster-admin-class.php:131 333 341 msgid "Read the contextual help tab on the top right of this screen." 334 342 msgstr "" 335 343 336 #: includes/mstw-tr-csv-import-class.php: 99344 #: includes/mstw-tr-csv-import-class.php:101 337 345 msgid "Teams CSV file:" 338 346 msgstr "" 339 347 340 #: includes/mstw-tr-csv-import-class.php:10 6341 #: includes/mstw-tr-csv-import-class.php:23 6348 #: includes/mstw-tr-csv-import-class.php:108 349 #: includes/mstw-tr-csv-import-class.php:231 342 350 msgid "Import Teams" 343 351 msgstr "" 344 352 345 353 #. translators: %1s: HTML newline that should not be translated 346 #: includes/mstw-tr-csv-import-class.php:14 9354 #: includes/mstw-tr-csv-import-class.php:145 347 355 #, php-format 348 356 msgid "" … … 354 362 msgstr "" 355 363 356 #: includes/mstw-tr-csv-import-class.php:15 5364 #: includes/mstw-tr-csv-import-class.php:151 357 365 msgid "Select Team to Import:" 358 366 msgstr "" 359 367 360 #: includes/mstw-tr-csv-import-class.php:15 8368 #: includes/mstw-tr-csv-import-class.php:154 361 369 msgid "" 362 370 "This team will be used as the default if there is no entry for a player in " … … 364 372 msgstr "" 365 373 366 #: includes/mstw-tr-csv-import-class.php:1 62374 #: includes/mstw-tr-csv-import-class.php:158 367 375 msgid "Move Player Photos:" 368 376 msgstr "" 369 377 370 #: includes/mstw-tr-csv-import-class.php:16 5378 #: includes/mstw-tr-csv-import-class.php:161 371 379 msgid "" 372 380 "If checked, photo files will be imported from their current locations to the " … … 375 383 msgstr "" 376 384 377 #: includes/mstw-tr-csv-import-class.php:16 9385 #: includes/mstw-tr-csv-import-class.php:165 378 386 msgid "Players CSV file:" 379 387 msgstr "" 380 388 381 #: includes/mstw-tr-csv-import-class.php:1 72389 #: includes/mstw-tr-csv-import-class.php:168 382 390 msgid "Select the CSV players file to import." 383 391 msgstr "" 384 392 385 #: includes/mstw-tr-csv-import-class.php:239 393 #: includes/mstw-tr-csv-import-class.php:237 394 #: includes/mstw-tr-csv-import-class.php:242 395 #: includes/mstw-tr-csv-import-class.php:261 396 #: includes/mstw-tr-csv-import-class.php:267 397 msgid "Problem encountered with CSV file. Exiting." 398 msgstr "" 399 400 #: includes/mstw-tr-csv-import-class.php:250 386 401 msgid "team" 387 402 msgstr "" 388 403 389 #: includes/mstw-tr-csv-import-class.php:2 39404 #: includes/mstw-tr-csv-import-class.php:250 390 405 msgid "teams" 391 406 msgstr "" 392 407 393 #: includes/mstw-tr-csv-import-class.php:2 42394 #: includes/mstw-tr-csv-import-class.php:3 54408 #: includes/mstw-tr-csv-import-class.php:253 409 #: includes/mstw-tr-csv-import-class.php:391 395 410 msgid "Import Players" 396 411 msgstr "" 397 412 398 #: includes/mstw-tr-csv-import-class.php:2 45413 #: includes/mstw-tr-csv-import-class.php:275 399 414 msgid "player" 400 415 msgstr "" 401 416 402 #: includes/mstw-tr-csv-import-class.php:2 45417 #: includes/mstw-tr-csv-import-class.php:275 403 418 msgid "players" 404 419 msgstr "" 405 420 406 421 #. translators: %s: filename 407 #: includes/mstw-tr-csv-import-class.php: 271422 #: includes/mstw-tr-csv-import-class.php:305 408 423 #, php-format 409 424 msgid "Failed to load file %s, aborting." … … 411 426 412 427 #. translators: %1$s 'record' or 'records' skipped % 413 #: includes/mstw-tr-csv-import-class.php:3 26428 #: includes/mstw-tr-csv-import-class.php:363 414 429 #, php-format 415 430 msgid "Skipped %1$s record." … … 419 434 420 435 #. translators: %1$s/%2$s 'record' or 'records' processed 421 #: includes/mstw-tr-csv-import-class.php:3 35436 #: includes/mstw-tr-csv-import-class.php:371 422 437 #, php-format 423 438 msgid "Imported %1$s record in %2$.2f seconds." … … 426 441 msgstr[1] "" 427 442 428 #: includes/mstw-tr-csv-import-class.php: 378443 #: includes/mstw-tr-csv-import-class.php:415 429 444 msgid "No first or last name." 430 445 msgstr "" 431 446 432 #: includes/mstw-tr-csv-import-class.php: 384447 #: includes/mstw-tr-csv-import-class.php:421 433 448 msgid "No title imported" 434 449 msgstr "" 435 450 436 451 #. translators: %s: import type 437 #: includes/mstw-tr-csv-import-class.php: 392452 #: includes/mstw-tr-csv-import-class.php:429 438 453 #, php-format 439 454 msgid "Unknown import type \"%s\"." 440 455 msgstr "" 441 456 442 #: includes/mstw-tr-csv-import-class.php:433 443 #: includes/mstw-tr-csv-import-class.php:446 444 #: includes/mstw-tr-player-cpt-admin.php:119 445 #: includes/mstw-tr-player-cpt-admin.php:125 446 msgid "----" 447 msgstr "" 448 449 #: includes/mstw-tr-csv-import-class.php:435 450 #: includes/mstw-tr-csv-import-class.php:448 457 #: includes/mstw-tr-csv-import-class.php:470 458 #: includes/mstw-tr-csv-import-class.php:483 451 459 #: includes/mstw-tr-player-cpt-admin.php:120 452 460 #: includes/mstw-tr-player-cpt-admin.php:126 453 #: includes/mstw-tr-roster-tables-class.php:412 454 #: includes/mstw-tr-utility-functions.php:919 455 #: includes/mstw-tr-utility-functions.php:920 456 msgid "R" 457 msgstr "" 458 459 #: includes/mstw-tr-csv-import-class.php:436 460 #: includes/mstw-tr-csv-import-class.php:449 461 msgid "r" 462 msgstr "" 463 464 #: includes/mstw-tr-csv-import-class.php:438 465 #: includes/mstw-tr-csv-import-class.php:451 461 msgid "----" 462 msgstr "" 463 464 #: includes/mstw-tr-csv-import-class.php:472 465 #: includes/mstw-tr-csv-import-class.php:485 466 466 #: includes/mstw-tr-player-cpt-admin.php:121 467 467 #: includes/mstw-tr-player-cpt-admin.php:127 468 #: includes/mstw-tr-roster-tables-class.php:411 469 #: includes/mstw-tr-utility-functions.php:920 470 #: includes/mstw-tr-utility-functions.php:921 471 msgid "R" 472 msgstr "" 473 474 #: includes/mstw-tr-csv-import-class.php:473 475 #: includes/mstw-tr-csv-import-class.php:486 476 msgid "r" 477 msgstr "" 478 479 #: includes/mstw-tr-csv-import-class.php:475 480 #: includes/mstw-tr-csv-import-class.php:488 481 #: includes/mstw-tr-player-cpt-admin.php:122 482 #: includes/mstw-tr-player-cpt-admin.php:128 483 #: includes/mstw-tr-roster-tables-class.php:412 484 #: includes/mstw-tr-utility-functions.php:924 485 #: includes/mstw-tr-utility-functions.php:925 486 msgid "L" 487 msgstr "" 488 489 #: includes/mstw-tr-csv-import-class.php:476 490 #: includes/mstw-tr-csv-import-class.php:489 491 msgid "l" 492 msgstr "" 493 494 #: includes/mstw-tr-csv-import-class.php:478 495 #: includes/mstw-tr-player-cpt-admin.php:123 468 496 #: includes/mstw-tr-roster-tables-class.php:413 469 #: includes/mstw-tr-utility-functions.php:923470 #: includes/mstw-tr-utility-functions.php:924471 msgid "L"472 msgstr ""473 474 #: includes/mstw-tr-csv-import-class.php:439475 #: includes/mstw-tr-csv-import-class.php:452476 msgid "l"477 msgstr ""478 479 #: includes/mstw-tr-csv-import-class.php:441480 #: includes/mstw-tr-player-cpt-admin.php:122481 #: includes/mstw-tr-roster-tables-class.php:414482 #: includes/mstw-tr-utility-functions.php:927483 497 #: includes/mstw-tr-utility-functions.php:928 498 #: includes/mstw-tr-utility-functions.php:929 484 499 msgid "B" 485 500 msgstr "" 486 501 487 #: includes/mstw-tr-csv-import-class.php:4 42502 #: includes/mstw-tr-csv-import-class.php:479 488 503 msgid "b" 489 504 msgstr "" 490 505 491 #: includes/mstw-tr-csv-import-class.php: 675506 #: includes/mstw-tr-csv-import-class.php:715 492 507 msgid "No team name or slug found." 493 508 msgstr "" 494 509 510 #: includes/mstw-tr-csv-import-class.php:771 511 #: includes/mstw-tr-csv-import-class.php:778 512 msgid "Failed to get file contents." 513 msgstr "" 514 495 515 #. translators: %s: filename 496 #: includes/mstw-tr-csv-import-class.php:7 50516 #: includes/mstw-tr-csv-import-class.php:792 497 517 #, php-format 498 518 msgid "Failed to open file: %s." 499 519 msgstr "" 500 520 501 #: includes/mstw-tr-csv-import-class.php: 775521 #: includes/mstw-tr-csv-import-class.php:817 502 522 msgid "CSV Import" 503 523 msgstr "" 504 524 505 #: includes/mstw-tr-csv-import-class.php: 790525 #: includes/mstw-tr-csv-import-class.php:832 506 526 msgid "" 507 527 "This screen allows the import of teams and players from files in CSV format. " … … 509 529 msgstr "" 510 530 511 #: includes/mstw-tr-csv-import-class.php: 792531 #: includes/mstw-tr-csv-import-class.php:834 512 532 msgid "To import teams, simply choose the CSV file and click \"Import Teams\"." 513 533 msgstr "" 514 534 515 #: includes/mstw-tr-csv-import-class.php: 794535 #: includes/mstw-tr-csv-import-class.php:836 516 536 msgid "" 517 537 "To import players, first select the CSV file containing the players, then " … … 519 539 msgstr "" 520 540 521 #: includes/mstw-tr-csv-import-class.php: 797541 #: includes/mstw-tr-csv-import-class.php:839 522 542 msgid "Select an existing team. Players will be addeded to that team." 523 543 msgstr "" 524 544 525 #: includes/mstw-tr-csv-import-class.php: 798545 #: includes/mstw-tr-csv-import-class.php:840 526 546 msgid "" 527 547 "Don't elect an existing team, and provide the team(s) in the player_teams " … … 530 550 msgstr "" 531 551 532 #: includes/mstw-tr-csv-import-class.php: 799552 #: includes/mstw-tr-csv-import-class.php:841 533 553 msgid "" 534 554 "Choose whether you want the player photos (provided in the CSV file) to be " … … 539 559 msgstr "" 540 560 541 #: includes/mstw-tr-csv-import-class.php:8 02561 #: includes/mstw-tr-csv-import-class.php:844 542 562 msgid "" 543 563 "NOTE THAT IT CAN TAKE A SIGNFICANT AMOUNT OF TIME TO IMPORT PLAYERS. In " … … 546 566 msgstr "" 547 567 548 #: includes/mstw-tr-csv-import-class.php:8 04568 #: includes/mstw-tr-csv-import-class.php:846 549 569 msgid "See the plugin Users Manual on shoalsummitsolutions.com" 550 570 msgstr "" 551 571 552 #: includes/mstw-tr-data-fields-columns-settings.php:4 6572 #: includes/mstw-tr-data-fields-columns-settings.php:44 553 573 msgid "Data Fields Labels" 554 574 msgstr "" 555 575 556 #: includes/mstw-tr-data-fields-columns-settings.php: 60576 #: includes/mstw-tr-data-fields-columns-settings.php:58 557 577 msgid "Photo Label:" 558 578 msgstr "" 559 579 560 #: includes/mstw-tr-data-fields-columns-settings.php: 61580 #: includes/mstw-tr-data-fields-columns-settings.php:59 561 581 msgid "(Default: Photo)" 562 582 msgstr "" 563 583 564 #: includes/mstw-tr-data-fields-columns-settings.php: 71584 #: includes/mstw-tr-data-fields-columns-settings.php:69 565 585 msgid "Name Label:" 566 586 msgstr "" 567 587 568 #: includes/mstw-tr-data-fields-columns-settings.php:7 2588 #: includes/mstw-tr-data-fields-columns-settings.php:70 569 589 msgid "(Default: Name)" 570 590 msgstr "" 571 591 572 #: includes/mstw-tr-data-fields-columns-settings.php:8 2592 #: includes/mstw-tr-data-fields-columns-settings.php:80 573 593 msgid "Number Label:" 574 594 msgstr "" 575 595 576 #: includes/mstw-tr-data-fields-columns-settings.php:8 3596 #: includes/mstw-tr-data-fields-columns-settings.php:81 577 597 msgid "(Default: Nbr)" 578 598 msgstr "" 579 599 580 #: includes/mstw-tr-data-fields-columns-settings.php:9 3600 #: includes/mstw-tr-data-fields-columns-settings.php:91 581 601 msgid "Position Label:" 582 602 msgstr "" 583 603 584 #: includes/mstw-tr-data-fields-columns-settings.php:9 4604 #: includes/mstw-tr-data-fields-columns-settings.php:92 585 605 msgid "(Default: Pos)" 586 606 msgstr "" 587 607 588 #: includes/mstw-tr-data-fields-columns-settings.php:10 4608 #: includes/mstw-tr-data-fields-columns-settings.php:102 589 609 msgid "Height Label:" 590 610 msgstr "" 591 611 592 #: includes/mstw-tr-data-fields-columns-settings.php:10 5612 #: includes/mstw-tr-data-fields-columns-settings.php:103 593 613 msgid "(Default: Ht)" 594 614 msgstr "" 595 615 596 #: includes/mstw-tr-data-fields-columns-settings.php:11 5616 #: includes/mstw-tr-data-fields-columns-settings.php:113 597 617 msgid "Weight Label:" 598 618 msgstr "" 599 619 600 #: includes/mstw-tr-data-fields-columns-settings.php:11 6620 #: includes/mstw-tr-data-fields-columns-settings.php:114 601 621 msgid "(Default: Wt)" 602 622 msgstr "" 603 623 604 #: includes/mstw-tr-data-fields-columns-settings.php:12 6624 #: includes/mstw-tr-data-fields-columns-settings.php:124 605 625 msgid "Year Label:" 606 626 msgstr "" 607 627 608 #: includes/mstw-tr-data-fields-columns-settings.php:12 7628 #: includes/mstw-tr-data-fields-columns-settings.php:125 609 629 msgid "(Default: Year)" 610 630 msgstr "" 611 631 612 #: includes/mstw-tr-data-fields-columns-settings.php:13 7632 #: includes/mstw-tr-data-fields-columns-settings.php:135 613 633 msgid "Experience Label:" 614 634 msgstr "" 615 635 616 #: includes/mstw-tr-data-fields-columns-settings.php:13 8636 #: includes/mstw-tr-data-fields-columns-settings.php:136 617 637 msgid "(Default: Exp)" 618 638 msgstr "" 619 639 620 #: includes/mstw-tr-data-fields-columns-settings.php:14 8640 #: includes/mstw-tr-data-fields-columns-settings.php:146 621 641 msgid "Age Label:" 622 642 msgstr "" 623 643 624 #: includes/mstw-tr-data-fields-columns-settings.php:14 9644 #: includes/mstw-tr-data-fields-columns-settings.php:147 625 645 msgid "(Default: Age)" 626 646 msgstr "" 627 647 628 #: includes/mstw-tr-data-fields-columns-settings.php:15 9648 #: includes/mstw-tr-data-fields-columns-settings.php:157 629 649 msgid "Home Town Label:" 630 650 msgstr "" 631 651 632 #: includes/mstw-tr-data-fields-columns-settings.php:1 60652 #: includes/mstw-tr-data-fields-columns-settings.php:158 633 653 msgid "(Default: Home Town)" 634 654 msgstr "" 635 655 636 #: includes/mstw-tr-data-fields-columns-settings.php:1 70656 #: includes/mstw-tr-data-fields-columns-settings.php:168 637 657 msgid "Last School Label:" 638 658 msgstr "" 639 659 640 #: includes/mstw-tr-data-fields-columns-settings.php:1 71660 #: includes/mstw-tr-data-fields-columns-settings.php:169 641 661 msgid "(Default: Last School)" 642 662 msgstr "" 643 663 644 #: includes/mstw-tr-data-fields-columns-settings.php:1 81664 #: includes/mstw-tr-data-fields-columns-settings.php:179 645 665 msgid "Country Label:" 646 666 msgstr "" 647 667 648 #: includes/mstw-tr-data-fields-columns-settings.php:18 2668 #: includes/mstw-tr-data-fields-columns-settings.php:180 649 669 msgid "(Default: Country)" 650 670 msgstr "" 651 671 652 #: includes/mstw-tr-data-fields-columns-settings.php:19 2672 #: includes/mstw-tr-data-fields-columns-settings.php:190 653 673 msgid "Bats/Throws Label:" 654 674 msgstr "" 655 675 656 #: includes/mstw-tr-data-fields-columns-settings.php:19 3676 #: includes/mstw-tr-data-fields-columns-settings.php:191 657 677 msgid "(Default: Bat/Thw)" 658 678 msgstr "" 659 679 660 #: includes/mstw-tr-data-fields-columns-settings.php:20 3680 #: includes/mstw-tr-data-fields-columns-settings.php:201 661 681 msgid "Other Info Label:" 662 682 msgstr "" 663 683 664 #: includes/mstw-tr-data-fields-columns-settings.php:20 4684 #: includes/mstw-tr-data-fields-columns-settings.php:202 665 685 msgid "(Default: Other)" 666 686 msgstr "" 667 687 668 #: includes/mstw-tr-data-fields-columns-settings.php:22 5688 #: includes/mstw-tr-data-fields-columns-settings.php:223 669 689 msgid "Visibility" 670 690 msgstr "" 671 691 672 #: includes/mstw-tr-data-fields-columns-settings.php:23 9673 #: includes/mstw-tr-data-fields-columns-settings.php:30 5674 #: includes/mstw-tr-data-fields-columns-settings.php:31 6675 #: includes/mstw-tr-data-fields-columns-settings.php:32 7676 #: includes/mstw-tr-data-fields-columns-settings.php:33 8677 #: includes/mstw-tr-data-fields-columns-settings.php:34 9678 #: includes/mstw-tr-data-fields-columns-settings.php:3 60679 #: includes/mstw-tr-data-fields-columns-settings.php:3 71680 #: includes/mstw-tr-data-fields-columns-settings.php:38 2692 #: includes/mstw-tr-data-fields-columns-settings.php:237 693 #: includes/mstw-tr-data-fields-columns-settings.php:303 694 #: includes/mstw-tr-data-fields-columns-settings.php:314 695 #: includes/mstw-tr-data-fields-columns-settings.php:325 696 #: includes/mstw-tr-data-fields-columns-settings.php:336 697 #: includes/mstw-tr-data-fields-columns-settings.php:347 698 #: includes/mstw-tr-data-fields-columns-settings.php:358 699 #: includes/mstw-tr-data-fields-columns-settings.php:369 700 #: includes/mstw-tr-data-fields-columns-settings.php:380 681 701 msgid "(Default: Hide)" 682 702 msgstr "" 683 703 684 #: includes/mstw-tr-data-fields-columns-settings.php:2 50704 #: includes/mstw-tr-data-fields-columns-settings.php:248 685 705 msgid "(Always shown.)" 686 706 msgstr "" 687 707 688 #: includes/mstw-tr-data-fields-columns-settings.php:2 61689 #: includes/mstw-tr-data-fields-columns-settings.php:27 2690 #: includes/mstw-tr-data-fields-columns-settings.php:28 3691 #: includes/mstw-tr-data-fields-columns-settings.php:29 4708 #: includes/mstw-tr-data-fields-columns-settings.php:259 709 #: includes/mstw-tr-data-fields-columns-settings.php:270 710 #: includes/mstw-tr-data-fields-columns-settings.php:281 711 #: includes/mstw-tr-data-fields-columns-settings.php:292 692 712 msgid "(Default: Show)" 693 713 msgstr "" 694 714 695 #: includes/mstw-tr-data-fields-columns-settings.php:40 3715 #: includes/mstw-tr-data-fields-columns-settings.php:401 696 716 msgid "Order" 697 717 msgstr "" 698 718 699 #: includes/mstw-tr-data-fields-columns-settings.php:41 7719 #: includes/mstw-tr-data-fields-columns-settings.php:415 700 720 msgid "(Default: 1)" 701 721 msgstr "" 702 722 703 #: includes/mstw-tr-data-fields-columns-settings.php:42 8723 #: includes/mstw-tr-data-fields-columns-settings.php:426 704 724 msgid "(Default: 2)" 705 725 msgstr "" 706 726 707 #: includes/mstw-tr-data-fields-columns-settings.php:43 9727 #: includes/mstw-tr-data-fields-columns-settings.php:437 708 728 msgid "(Default: 3)" 709 729 msgstr "" 710 730 711 #: includes/mstw-tr-data-fields-columns-settings.php:4 50731 #: includes/mstw-tr-data-fields-columns-settings.php:448 712 732 msgid "(Default: 4)" 713 733 msgstr "" 714 734 715 #: includes/mstw-tr-data-fields-columns-settings.php:4 61735 #: includes/mstw-tr-data-fields-columns-settings.php:459 716 736 msgid "(Default: 5)" 717 737 msgstr "" 718 738 719 #: includes/mstw-tr-data-fields-columns-settings.php:47 2739 #: includes/mstw-tr-data-fields-columns-settings.php:470 720 740 msgid "(Default: 6)" 721 741 msgstr "" 722 742 723 #: includes/mstw-tr-data-fields-columns-settings.php:48 3743 #: includes/mstw-tr-data-fields-columns-settings.php:481 724 744 msgid "(Default: 7)" 725 745 msgstr "" 726 746 727 #: includes/mstw-tr-data-fields-columns-settings.php:49 4747 #: includes/mstw-tr-data-fields-columns-settings.php:492 728 748 msgid "(Default: 8)" 729 749 msgstr "" 730 750 731 #: includes/mstw-tr-data-fields-columns-settings.php:50 5751 #: includes/mstw-tr-data-fields-columns-settings.php:503 732 752 msgid "(Default: 9)" 733 753 msgstr "" 734 754 735 #: includes/mstw-tr-data-fields-columns-settings.php:51 6755 #: includes/mstw-tr-data-fields-columns-settings.php:514 736 756 msgid "(Default: 10)" 737 757 msgstr "" 738 758 739 #: includes/mstw-tr-data-fields-columns-settings.php:52 7759 #: includes/mstw-tr-data-fields-columns-settings.php:525 740 760 msgid "(Default: 11)" 741 761 msgstr "" 742 762 743 #: includes/mstw-tr-data-fields-columns-settings.php:53 8763 #: includes/mstw-tr-data-fields-columns-settings.php:536 744 764 msgid "(Default: 12)" 745 765 msgstr "" 746 766 747 #: includes/mstw-tr-data-fields-columns-settings.php:54 9767 #: includes/mstw-tr-data-fields-columns-settings.php:547 748 768 msgid "(Default: 13)" 749 769 msgstr "" 750 770 751 #: includes/mstw-tr-data-fields-columns-settings.php:5 60771 #: includes/mstw-tr-data-fields-columns-settings.php:558 752 772 msgid "(Default: 14)" 753 773 msgstr "" 754 774 755 #: includes/mstw-tr-data-fields-columns-settings.php:578 756 msgid "Field Labels. " 757 msgstr "" 758 759 #: includes/mstw-tr-player-cpt-admin.php:38 775 #: includes/mstw-tr-player-cpt-admin.php:39 760 776 msgid "Player Bio:" 761 777 msgstr "" 762 778 763 #: includes/mstw-tr-player-cpt-admin.php:5 2779 #: includes/mstw-tr-player-cpt-admin.php:55 764 780 msgid "Player Photo" 765 781 msgstr "" 766 782 767 #: includes/mstw-tr-player-cpt-admin.php:7 6783 #: includes/mstw-tr-player-cpt-admin.php:79 768 784 msgid "Set featured image" 769 785 msgstr "" 770 786 771 #: includes/mstw-tr-player-cpt-admin.php:7 6787 #: includes/mstw-tr-player-cpt-admin.php:79 772 788 msgid "Set Player Photo" 773 789 msgstr "" 774 790 775 #: includes/mstw-tr-player-cpt-admin.php: 78791 #: includes/mstw-tr-player-cpt-admin.php:81 776 792 msgid "Remove featured image" 777 793 msgstr "" 778 794 779 #: includes/mstw-tr-player-cpt-admin.php: 78795 #: includes/mstw-tr-player-cpt-admin.php:81 780 796 msgid "Remove Player Photo" 781 797 msgstr "" 782 798 783 #: includes/mstw-tr-player-cpt-admin.php:9 3799 #: includes/mstw-tr-player-cpt-admin.php:96 784 800 msgid "Player Data" 785 801 msgstr "" 786 802 787 #: includes/mstw-tr-player-cpt-admin.php:17 7803 #: includes/mstw-tr-player-cpt-admin.php:178 788 804 msgid "First Name:" 789 805 msgstr "" 790 806 791 #: includes/mstw-tr-player-cpt-admin.php:18 5807 #: includes/mstw-tr-player-cpt-admin.php:186 792 808 msgid "Last Name:" 793 809 msgstr "" 794 810 795 #: includes/mstw-tr-player-cpt-admin.php:23 6811 #: includes/mstw-tr-player-cpt-admin.php:237 796 812 msgid "" 797 813 "This field is intended for the player's year in school, for example, \"So\", " … … 800 816 msgstr "" 801 817 802 #: includes/mstw-tr-player-cpt-admin.php:24 4818 #: includes/mstw-tr-player-cpt-admin.php:245 803 819 msgid "" 804 820 "This field is intended for the player's year or class in school, for " … … 807 823 msgstr "" 808 824 809 #: includes/mstw-tr-player-cpt-admin.php:25 2825 #: includes/mstw-tr-player-cpt-admin.php:253 810 826 msgid "" 811 827 "This field is intended to be the player's experience, for example, \"3 " … … 814 830 msgstr "" 815 831 816 #: includes/mstw-tr-player-cpt-admin.php:26 8832 #: includes/mstw-tr-player-cpt-admin.php:269 817 833 msgid "" 818 834 "This field is typically combined with the last school in US college and high " … … 820 836 msgstr "" 821 837 822 #: includes/mstw-tr-player-cpt-admin.php:27 6838 #: includes/mstw-tr-player-cpt-admin.php:277 823 839 msgid "" 824 840 "This field is typically combined with the home town in US college and high " … … 827 843 msgstr "" 828 844 829 #: includes/mstw-tr-player-cpt-admin.php:28 4845 #: includes/mstw-tr-player-cpt-admin.php:285 830 846 msgid "" 831 847 "This field is intended for international teams, but it could changed to " … … 833 849 msgstr "" 834 850 835 #: includes/mstw-tr-player-cpt-admin.php:29 0851 #: includes/mstw-tr-player-cpt-admin.php:291 836 852 msgid "Bats:" 837 853 msgstr "" 838 854 839 #: includes/mstw-tr-player-cpt-admin.php:29 1855 #: includes/mstw-tr-player-cpt-admin.php:292 840 856 msgid "" 841 857 "This is a baseball specific field, but it could be used for cricket, say. It " … … 843 859 msgstr "" 844 860 845 #: includes/mstw-tr-player-cpt-admin.php:29 7861 #: includes/mstw-tr-player-cpt-admin.php:298 846 862 msgid "Throws:" 847 863 msgstr "" 848 864 849 #: includes/mstw-tr-player-cpt-admin.php:29 8865 #: includes/mstw-tr-player-cpt-admin.php:299 850 866 msgid "" 851 867 "This is a baseball specific field. It is combined with the \"Bats\" field in " … … 853 869 msgstr "" 854 870 855 #: includes/mstw-tr-player-cpt-admin.php:30 6871 #: includes/mstw-tr-player-cpt-admin.php:307 856 872 msgid "This field is a spare. It is intended to be re-purposed by site admins." 857 873 msgstr "" … … 860 876 #: includes/mstw-tr-roster-table-settings.php:94 861 877 #: includes/mstw-tr-roster-table-settings.php:221 862 #: includes/mstw-tr-roster-tables-class.php:5 65878 #: includes/mstw-tr-roster-tables-class.php:547 863 879 #: includes/mstw-tr-team-roster-admin-class.php:46 864 #: includes/mstw-tr-utility-functions.php:3 79880 #: includes/mstw-tr-utility-functions.php:380 865 881 msgid "First Name" 866 882 msgstr "" … … 869 885 #: includes/mstw-tr-roster-table-settings.php:93 870 886 #: includes/mstw-tr-roster-table-settings.php:220 871 #: includes/mstw-tr-roster-tables-class.php:5 66887 #: includes/mstw-tr-roster-tables-class.php:548 872 888 #: includes/mstw-tr-team-roster-admin-class.php:47 873 #: includes/mstw-tr-utility-functions.php:38 0889 #: includes/mstw-tr-utility-functions.php:381 874 890 msgid "Last Name" 875 891 msgstr "" … … 879 895 msgstr "" 880 896 881 #: includes/mstw-tr-player-cpt-admin.php:54 0897 #: includes/mstw-tr-player-cpt-admin.php:545 882 898 msgid "Show All Teams" 883 899 msgstr "" 884 900 885 #: includes/mstw-tr-player-cpt-admin.php:6 36901 #: includes/mstw-tr-player-cpt-admin.php:644 886 902 msgid "Add/Edit Player" 887 903 msgstr "" 888 904 889 #: includes/mstw-tr-player-cpt-admin.php:6 59905 #: includes/mstw-tr-player-cpt-admin.php:667 890 906 msgid "" 891 907 "This screen provides a list of selected data fields for all players. The " … … 893 909 msgstr "" 894 910 895 #: includes/mstw-tr-player-cpt-admin.php:66 1911 #: includes/mstw-tr-player-cpt-admin.php:669 896 912 msgid "" 897 913 "To add a player, click the \"Add New Player\" button at the top of the " … … 900 916 msgstr "" 901 917 902 #: includes/mstw-tr-player-cpt-admin.php:6 63918 #: includes/mstw-tr-player-cpt-admin.php:671 903 919 msgid "To edit a player, roll over the \"Name\" field and selecte \"Edit\"." 904 920 msgstr "" 905 921 906 #: includes/mstw-tr-player-cpt-admin.php:6 65922 #: includes/mstw-tr-player-cpt-admin.php:673 907 923 msgid "" 908 924 "To delete a player, roll over the \"Name\" field and selecte \"Trash\". Note " … … 912 928 msgstr "" 913 929 914 #: includes/mstw-tr-player-cpt-admin.php:6 67915 #: includes/mstw-tr-player-cpt-admin.php:6 87930 #: includes/mstw-tr-player-cpt-admin.php:675 931 #: includes/mstw-tr-player-cpt-admin.php:695 916 932 msgid "See the Data Entry - Players man page for more details." 917 933 msgstr "" 918 934 919 #: includes/mstw-tr-player-cpt-admin.php:6 73935 #: includes/mstw-tr-player-cpt-admin.php:681 920 936 msgid "" 921 937 "Title. The player title should always be entered. However, it does not " … … 923 939 msgstr "" 924 940 925 #: includes/mstw-tr-player-cpt-admin.php:6 75941 #: includes/mstw-tr-player-cpt-admin.php:683 926 942 msgid "" 927 943 "First Name and Last Name. At least one of these fields should be entered; " … … 929 945 msgstr "" 930 946 931 #: includes/mstw-tr-player-cpt-admin.php:6 77932 #: includes/mstw-tr-player-cpt-admin.php:6 79947 #: includes/mstw-tr-player-cpt-admin.php:685 948 #: includes/mstw-tr-player-cpt-admin.php:687 933 949 msgid "" 934 950 "Use the Manage Teams metabox to add a player to one or more teams; " … … 936 952 msgstr "" 937 953 938 #: includes/mstw-tr-player-cpt-admin.php:68 1954 #: includes/mstw-tr-player-cpt-admin.php:689 939 955 msgid "" 940 956 "Use the Player Photo metabox to add a player photo from the Media Gallery." 941 957 msgstr "" 942 958 943 #: includes/mstw-tr-player-cpt-admin.php:6 83959 #: includes/mstw-tr-player-cpt-admin.php:691 944 960 msgid "" 945 961 "Use the Player Bio metabox to add a player profile/bio. Note that you can " … … 947 963 msgstr "" 948 964 949 #: includes/mstw-tr-player-cpt-admin.php:6 85965 #: includes/mstw-tr-player-cpt-admin.php:693 950 966 msgid "" 951 967 "Delete a player by clicking the \"Move to Trash\" link in the Publish " … … 953 969 msgstr "" 954 970 955 #: includes/mstw-tr-player-cpt-admin.php:7 07971 #: includes/mstw-tr-player-cpt-admin.php:715 956 972 msgid "" 957 973 "This screen allows updating the status of all games in a league and season." 958 974 msgstr "" 959 975 960 #: includes/mstw-tr-player-cpt-admin.php:7 08976 #: includes/mstw-tr-player-cpt-admin.php:716 961 977 msgid "Select a LEAGUE and SEASON then press the Update Games Table button." 962 978 msgstr "" 963 979 964 #: includes/mstw-tr-player-cpt-admin.php:7 09980 #: includes/mstw-tr-player-cpt-admin.php:717 965 981 msgid "Enter the status in information for each game." 966 982 msgstr "" 967 983 968 #: includes/mstw-tr-player-cpt-admin.php:71 0984 #: includes/mstw-tr-player-cpt-admin.php:718 969 985 msgid "See the Update Games man page for more details." 970 986 msgstr "" … … 1158 1174 #: includes/mstw-tr-roster-table-settings.php:65 1159 1175 #: includes/mstw-tr-roster-table-settings.php:202 1160 #: includes/mstw-tr-utility-functions.php:1954 1161 #: includes/mstw-tr-utility-functions.php:1969 1162 #: includes/mstw-tr-utility-functions.php:1979 1163 #: includes/mstw-tr-utility-functions.php:1999 1164 #: includes/mstw-tr-utility-functions.php:2007 1165 #: includes/mstw-tr-utility-functions.php:2018 1166 #: includes/mstw-utility-functions.php:522 1167 #: includes/mstw-utility-functions.php:537 1168 #: includes/mstw-utility-functions.php:547 1169 #: includes/mstw-utility-functions.php:567 1170 #: includes/mstw-utility-functions.php:575 1171 #: includes/mstw-utility-functions.php:586 1176 #: includes/mstw-tr-utility-functions.php:1938 1177 #: includes/mstw-tr-utility-functions.php:1953 1178 #: includes/mstw-tr-utility-functions.php:1963 1179 #: includes/mstw-tr-utility-functions.php:1983 1180 #: includes/mstw-tr-utility-functions.php:1991 1181 #: includes/mstw-tr-utility-functions.php:2002 1172 1182 msgid "Custom" 1173 1183 msgstr "" … … 1316 1326 1317 1327 #: includes/mstw-tr-roster-table-settings.php:164 1318 #: includes/mstw-tr-roster-tables-class.php:5 681328 #: includes/mstw-tr-roster-tables-class.php:550 1319 1329 msgid "Class/Year" 1320 1330 msgstr "" 1321 1331 1322 1332 #: includes/mstw-tr-roster-table-settings.php:165 1323 #: includes/mstw-tr-utility-functions.php:38 71333 #: includes/mstw-tr-utility-functions.php:388 1324 1334 msgid "Class/Year (long format)" 1325 1335 msgstr "" 1326 1336 1327 1337 #: includes/mstw-tr-roster-table-settings.php:166 1328 #: includes/mstw-tr-utility-functions.php:38 81338 #: includes/mstw-tr-utility-functions.php:389 1329 1339 msgid "Experience" 1330 1340 msgstr "" 1331 1341 1332 1342 #: includes/mstw-tr-roster-table-settings.php:167 1333 #: includes/mstw-tr-utility-functions.php:21 71334 #: includes/mstw-tr-utility-functions.php:3 891335 #: includes/mstw-tr-utility-functions.php:45 81336 #: includes/mstw-tr-utility-functions.php:50 21337 #: includes/mstw-tr-utility-functions.php:54 81343 #: includes/mstw-tr-utility-functions.php:218 1344 #: includes/mstw-tr-utility-functions.php:390 1345 #: includes/mstw-tr-utility-functions.php:459 1346 #: includes/mstw-tr-utility-functions.php:503 1347 #: includes/mstw-tr-utility-functions.php:549 1338 1348 msgid "Age" 1339 1349 msgstr "" 1340 1350 1341 1351 #: includes/mstw-tr-roster-table-settings.php:168 1342 #: includes/mstw-tr-utility-functions.php:22 11343 #: includes/mstw-tr-utility-functions.php:39 01344 #: includes/mstw-tr-utility-functions.php:46 01345 #: includes/mstw-tr-utility-functions.php:50 61346 #: includes/mstw-tr-utility-functions.php:55 01352 #: includes/mstw-tr-utility-functions.php:222 1353 #: includes/mstw-tr-utility-functions.php:391 1354 #: includes/mstw-tr-utility-functions.php:461 1355 #: includes/mstw-tr-utility-functions.php:507 1356 #: includes/mstw-tr-utility-functions.php:551 1347 1357 msgid "Home Town" 1348 1358 msgstr "" 1349 1359 1350 1360 #: includes/mstw-tr-roster-table-settings.php:169 1351 #: includes/mstw-tr-utility-functions.php:22 51352 #: includes/mstw-tr-utility-functions.php:39 11353 #: includes/mstw-tr-utility-functions.php:46 21354 #: includes/mstw-tr-utility-functions.php:50 81355 #: includes/mstw-tr-utility-functions.php:55 21361 #: includes/mstw-tr-utility-functions.php:226 1362 #: includes/mstw-tr-utility-functions.php:392 1363 #: includes/mstw-tr-utility-functions.php:463 1364 #: includes/mstw-tr-utility-functions.php:509 1365 #: includes/mstw-tr-utility-functions.php:553 1356 1366 msgid "Last School" 1357 1367 msgstr "" 1358 1368 1359 1369 #: includes/mstw-tr-roster-table-settings.php:170 1360 #: includes/mstw-tr-utility-functions.php:2 291361 #: includes/mstw-tr-utility-functions.php:39 21362 #: includes/mstw-tr-utility-functions.php:46 41363 #: includes/mstw-tr-utility-functions.php:51 01364 #: includes/mstw-tr-utility-functions.php:55 61370 #: includes/mstw-tr-utility-functions.php:230 1371 #: includes/mstw-tr-utility-functions.php:393 1372 #: includes/mstw-tr-utility-functions.php:465 1373 #: includes/mstw-tr-utility-functions.php:511 1374 #: includes/mstw-tr-utility-functions.php:557 1365 1375 msgid "Country" 1366 1376 msgstr "" 1367 1377 1368 1378 #: includes/mstw-tr-roster-table-settings.php:172 1369 #: includes/mstw-tr-utility-functions.php:39 51370 #: includes/mstw-tr-utility-functions.php:46 81371 #: includes/mstw-tr-utility-functions.php:51 41372 #: includes/mstw-tr-utility-functions.php:56 01379 #: includes/mstw-tr-utility-functions.php:396 1380 #: includes/mstw-tr-utility-functions.php:469 1381 #: includes/mstw-tr-utility-functions.php:515 1382 #: includes/mstw-tr-utility-functions.php:561 1373 1383 msgid "Other Info" 1374 1384 msgstr "" … … 1437 1447 1438 1448 #. translators: %s: team slug 1439 #: includes/mstw-tr-roster-table.php:14 61449 #: includes/mstw-tr-roster-table.php:143 1440 1450 #, php-format 1441 1451 msgid "No players found on team: %s" 1442 1452 msgstr "" 1443 1453 1444 #: includes/mstw-tr-roster-tables-class.php:25 61445 #: includes/mstw-tr-utility-functions.php:78 81454 #: includes/mstw-tr-roster-tables-class.php:255 1455 #: includes/mstw-tr-utility-functions.php:787 1446 1456 msgid "No player photo found." 1447 1457 msgstr "" 1448 1458 1449 #: includes/mstw-tr-roster-tables-class.php:41 11459 #: includes/mstw-tr-roster-tables-class.php:410 1450 1460 msgid "--" 1451 1461 msgstr "" 1452 1462 1453 #: includes/mstw-tr-roster-tables-class.php:5 641454 #: includes/mstw-tr-utility-functions.php:38 11463 #: includes/mstw-tr-roster-tables-class.php:546 1464 #: includes/mstw-tr-utility-functions.php:382 1455 1465 msgid "Jersey Number" 1456 1466 msgstr "" 1457 1467 1458 #: includes/mstw-tr-roster-tables-class.php:5 671468 #: includes/mstw-tr-roster-tables-class.php:549 1459 1469 msgid "Hometown" 1460 1470 msgstr "" 1461 1471 1462 #: includes/mstw-tr-roster-tables-class.php:5 961472 #: includes/mstw-tr-roster-tables-class.php:578 1463 1473 msgid "Sort Roster" 1464 1474 msgstr "" 1465 1475 1466 #: includes/mstw-tr-roster-tables-class.php:6 341476 #: includes/mstw-tr-roster-tables-class.php:614 1467 1477 msgid "Roster" 1468 1478 msgstr "" … … 1472 1482 msgstr "" 1473 1483 1474 #: includes/mstw-tr-settings.php:13 81484 #: includes/mstw-tr-settings.php:139 1475 1485 msgid "Save Changes" 1476 1486 msgstr "" 1477 1487 1478 #: includes/mstw-tr-settings.php:14 01488 #: includes/mstw-tr-settings.php:141 1479 1489 msgid "Reset Defaults" 1480 1490 msgstr "" 1481 1491 1482 #: includes/mstw-tr-settings.php:15 61492 #: includes/mstw-tr-settings.php:157 1483 1493 msgid "Roster Table Fields & Columns" 1484 1494 msgstr "" 1485 1495 1486 #: includes/mstw-tr-settings.php:15 7includes/mstw-tr-settings.php:1941496 #: includes/mstw-tr-settings.php:158 includes/mstw-tr-settings.php:194 1487 1497 msgid "Roster Tables" 1488 1498 msgstr "" 1489 1499 1490 #: includes/mstw-tr-settings.php:15 8includes/mstw-tr-settings.php:1991500 #: includes/mstw-tr-settings.php:159 includes/mstw-tr-settings.php:199 1491 1501 msgid "Roster Table Colors" 1492 1502 msgstr "" 1493 1503 1494 #: includes/mstw-tr-settings.php:1 59includes/mstw-tr-settings.php:2041504 #: includes/mstw-tr-settings.php:160 includes/mstw-tr-settings.php:204 1495 1505 msgid "Player Profiles & Galleries" 1496 1506 msgstr "" … … 1592 1602 msgstr "" 1593 1603 1604 #: includes/mstw-tr-settings.php:290 1605 msgid "Rpster Table data fields & columns settings reset to defaults." 1606 msgstr "" 1607 1594 1608 #: includes/mstw-tr-settings.php:297 1595 msgid "Rpster Table data fields & columns settings reset to defaults."1596 msgstr ""1597 1598 #: includes/mstw-tr-settings.php:3041599 1609 msgid "Roster table settings reset to defaults." 1600 1610 msgstr "" 1601 1611 1602 #: includes/mstw-tr-settings.php:30 81612 #: includes/mstw-tr-settings.php:301 1603 1613 msgid "Roster table color settings reset to defaults." 1604 1614 msgstr "" 1605 1615 1606 #: includes/mstw-tr-settings.php:3 121616 #: includes/mstw-tr-settings.php:305 1607 1617 msgid "Player profile & gallery settings reset to defaults." 1608 1618 msgstr "" 1609 1619 1610 #: includes/mstw-tr-settings.php:3 301620 #: includes/mstw-tr-settings.php:323 1611 1621 msgid "Data fields & columns settings updated." 1612 1622 msgstr "" 1613 1623 1614 1624 #. translators: %1$s/%2$s: key/value that had error 1615 #: includes/mstw-tr-settings.php:3 53 includes/mstw-tr-settings.php:4391625 #: includes/mstw-tr-settings.php:346 includes/mstw-tr-settings.php:429 1616 1626 #, php-format 1617 1627 msgid "Error with %1$s = '%2$s'. Reset to previous value." 1618 1628 msgstr "" 1619 1629 1620 #: includes/mstw-tr-settings.php:3 651630 #: includes/mstw-tr-settings.php:358 1621 1631 msgid "Roster tables settings updated." 1622 1632 msgstr "" 1623 1633 1624 1634 #. translators: $s: key that had error 1625 #: includes/mstw-tr-settings.php:3 94 includes/mstw-tr-settings.php:4601635 #: includes/mstw-tr-settings.php:385 includes/mstw-tr-settings.php:450 1626 1636 #, php-format 1627 1637 msgid "Error: %s reset to the default." 1628 1638 msgstr "" 1629 1639 1630 #: includes/mstw-tr-settings.php: 4021640 #: includes/mstw-tr-settings.php:393 1631 1641 msgid "Roster table colors settings updated." 1632 1642 msgstr "" 1633 1643 1634 #: includes/mstw-tr-settings.php:4 681644 #: includes/mstw-tr-settings.php:458 1635 1645 msgid "Player profiles & galleries settings updated." 1636 1646 msgstr "" 1637 1647 1638 1648 #: includes/mstw-tr-team-roster-admin-class.php:58 1639 #: includes/mstw-tr-utility-functions.php:39 31649 #: includes/mstw-tr-utility-functions.php:394 1640 1650 msgid "Bats" 1641 1651 msgstr "" 1642 1652 1643 1653 #: includes/mstw-tr-team-roster-admin-class.php:59 1644 #: includes/mstw-tr-utility-functions.php:39 41654 #: includes/mstw-tr-utility-functions.php:395 1645 1655 msgid "Throws" 1646 1656 msgstr "" 1647 1657 1648 #: includes/mstw-tr-team-roster-admin-class.php:17 91658 #: includes/mstw-tr-team-roster-admin-class.php:174 1649 1659 msgid "Create a team before editting it's roster." 1650 1660 msgstr "" 1651 1661 1652 #: includes/mstw-tr-team-roster-admin-class.php:1 941662 #: includes/mstw-tr-team-roster-admin-class.php:189 1653 1663 msgid "Change Team" 1654 1664 msgstr "" 1655 1665 1656 #: includes/mstw-tr-team-roster-admin-class.php: 2041666 #: includes/mstw-tr-team-roster-admin-class.php:198 1657 1667 msgid "" 1658 1668 "Caution! This button will update the table with the selected team roster " … … 1661 1671 msgstr "" 1662 1672 1663 #: includes/mstw-tr-team-roster-admin-class.php:2 121673 #: includes/mstw-tr-team-roster-admin-class.php:206 1664 1674 msgid "" 1665 1675 "Enter players for the selected team. No data will be processed on or after " … … 1667 1677 msgstr "" 1668 1678 1669 #: includes/mstw-tr-team-roster-admin-class.php:22 91670 #: includes/mstw-tr-team-roster-admin-class.php: 7081679 #: includes/mstw-tr-team-roster-admin-class.php:223 1680 #: includes/mstw-tr-team-roster-admin-class.php:692 1671 1681 msgid "Update Roster" 1672 1682 msgstr "" 1673 1683 1674 #: includes/mstw-tr-team-roster-admin-class.php:6 911675 msgid "Problem encountered updating games. Exiting."1676 msgstr "" 1677 1678 #: includes/mstw-tr-team-roster-admin-class.php: 7151684 #: includes/mstw-tr-team-roster-admin-class.php:685 1685 msgid "Problem encountered updating roster; $options array missing. Exiting." 1686 msgstr "" 1687 1688 #: includes/mstw-tr-team-roster-admin-class.php:696 1679 1689 msgid "Error: No team specified for roster update." 1680 1690 msgstr "" 1681 1691 1682 #: includes/mstw-tr-team-roster-admin-class.php: 10571692 #: includes/mstw-tr-team-roster-admin-class.php:981 1683 1693 msgid "" 1684 1694 "Use this screen to edit the players on a roster in bulk - up to 20 at time. " … … 1686 1696 msgstr "" 1687 1697 1688 #: includes/mstw-tr-team-roster-admin-class.php: 10591698 #: includes/mstw-tr-team-roster-admin-class.php:983 1689 1699 msgid "" 1690 1700 "While players can be edited on this screen much faster than the Manage " … … 1694 1704 msgstr "" 1695 1705 1696 #: includes/mstw-tr-team-roster-admin-class.php:10 811706 #: includes/mstw-tr-team-roster-admin-class.php:1003 1697 1707 msgid "" 1698 1708 "Use this screen to add players to rosters in bulk - up to 20 at time. First " … … 1700 1710 msgstr "" 1701 1711 1702 #: includes/mstw-tr-team-roster-admin-class.php:10 831712 #: includes/mstw-tr-team-roster-admin-class.php:1005 1703 1713 msgid "" 1704 1714 "While players can be added on this screen much faster than the Manage " … … 1706 1716 msgstr "" 1707 1717 1708 #: includes/mstw-tr-team-roster-admin-class.php:10 861718 #: includes/mstw-tr-team-roster-admin-class.php:1008 1709 1719 msgid "The Player Title will be set to \"First_Name Last_Name." 1710 1720 msgstr "" 1711 1721 1712 #: includes/mstw-tr-team-roster-admin-class.php:10 871722 #: includes/mstw-tr-team-roster-admin-class.php:1009 1713 1723 msgid "The Player Slug will be set to \"first_name-last_name." 1714 1724 msgstr "" 1715 1725 1716 #: includes/mstw-tr-team-roster-admin-class.php:10 881726 #: includes/mstw-tr-team-roster-admin-class.php:1010 1717 1727 msgid "" 1718 1728 "Each Player will be added to only the selected team. Use the Manage Players " … … 1720 1730 msgstr "" 1721 1731 1722 #: includes/mstw-tr-team-roster-admin-class.php:10 891732 #: includes/mstw-tr-team-roster-admin-class.php:1011 1723 1733 msgid "Use the Manage Players screen to add Player Photos and Player Profiles." 1724 1734 msgstr "" 1725 1735 1726 #: includes/mstw-tr-team-roster-admin-class.php:10 921736 #: includes/mstw-tr-team-roster-admin-class.php:1014 1727 1737 msgid "See the MSTW Team Rosters users manual for more details." 1728 1738 msgstr "" 1729 1739 1730 #: includes/mstw-tr-team-tax-admin-class.php:22 41740 #: includes/mstw-tr-team-tax-admin-class.php:225 1731 1741 msgid "Team Name" 1732 1742 msgstr "" 1733 1743 1734 #: includes/mstw-tr-team-tax-admin-class.php:22 61744 #: includes/mstw-tr-team-tax-admin-class.php:227 1735 1745 msgid "Slug" 1736 1746 msgstr "" 1737 1747 1738 #: includes/mstw-tr-team-tax-admin-class.php:22 71748 #: includes/mstw-tr-team-tax-admin-class.php:228 1739 1749 msgid "Team Source" 1740 1750 msgstr "" 1741 1751 1742 #: includes/mstw-tr-team-tax-admin-class.php:26 01752 #: includes/mstw-tr-team-tax-admin-class.php:261 1743 1753 msgid "None" 1744 1754 msgstr "" 1745 1755 1746 #: includes/mstw-tr-team-tax-admin-class.php:4 331756 #: includes/mstw-tr-team-tax-admin-class.php:424 1747 1757 msgid "This screen provides management (add, edit, delete) of teams." 1748 1758 msgstr "" 1749 1759 1750 #: includes/mstw-tr-team-tax-admin-class.php:4 341760 #: includes/mstw-tr-team-tax-admin-class.php:425 1751 1761 msgid "" 1752 1762 "Each team may be linked to a team in the MSTW Schedules & Scoreboards or the " … … 1755 1765 msgstr "" 1756 1766 1757 #: includes/mstw-tr-team-tax-admin-class.php:4 351767 #: includes/mstw-tr-team-tax-admin-class.php:426 1758 1768 msgid "" 1759 1769 "Teams may be added on this page. They may also be added in bulk via the CSV " … … 1761 1771 msgstr "" 1762 1772 1763 #: includes/mstw-tr-team-tax-admin-class.php:4 361773 #: includes/mstw-tr-team-tax-admin-class.php:427 1764 1774 msgid "" 1765 1775 "Roll over a team name, and select \"Edit\" to modify the data for an " … … 1767 1777 msgstr "" 1768 1778 1769 #: includes/mstw-tr-team-tax-admin-class.php:4 371779 #: includes/mstw-tr-team-tax-admin-class.php:428 1770 1780 msgid "" 1771 1781 "Roll over a team name, and select \"Delete\" to remove a team. Any players " … … 1774 1784 msgstr "" 1775 1785 1786 #: includes/mstw-tr-team-tax-admin-class.php:430 1776 1787 #: includes/mstw-tr-team-tax-admin-class.php:439 1777 #: includes/mstw-tr-team-tax-admin-class.php:4481778 1788 msgid "See the Data Entry - Teams man page for more details." 1779 1789 msgstr "" 1780 1790 1781 #: includes/mstw-tr-team-tax-admin-class.php:4 461791 #: includes/mstw-tr-team-tax-admin-class.php:437 1782 1792 msgid "Use this screen to modify the information for an existing team." 1783 1793 msgstr "" 1784 1794 1785 #: includes/mstw-tr-utility-functions.php:18 41786 #: includes/mstw-tr-utility-functions.php:44 61787 #: includes/mstw-tr-utility-functions.php:49 01788 #: includes/mstw-tr-utility-functions.php:53 61795 #: includes/mstw-tr-utility-functions.php:185 1796 #: includes/mstw-tr-utility-functions.php:447 1797 #: includes/mstw-tr-utility-functions.php:491 1798 #: includes/mstw-tr-utility-functions.php:537 1789 1799 msgid "Nbr" 1790 1800 msgstr "" 1791 1801 1792 #: includes/mstw-tr-utility-functions.php:1 891802 #: includes/mstw-tr-utility-functions.php:190 1793 1803 msgid "Name" 1794 1804 msgstr "" 1795 1805 1796 #: includes/mstw-tr-utility-functions.php:19 31806 #: includes/mstw-tr-utility-functions.php:194 1797 1807 msgid "Photo" 1798 1808 msgstr "" 1799 1809 1800 #: includes/mstw-tr-utility-functions.php:19 71801 #: includes/mstw-tr-utility-functions.php:44 81802 #: includes/mstw-tr-utility-functions.php:49 21803 #: includes/mstw-tr-utility-functions.php:53 81810 #: includes/mstw-tr-utility-functions.php:198 1811 #: includes/mstw-tr-utility-functions.php:449 1812 #: includes/mstw-tr-utility-functions.php:493 1813 #: includes/mstw-tr-utility-functions.php:539 1804 1814 msgid "Pos" 1805 1815 msgstr "" 1806 1816 1807 #: includes/mstw-tr-utility-functions.php:20 11808 #: includes/mstw-tr-utility-functions.php:45 01809 #: includes/mstw-tr-utility-functions.php:49 41810 #: includes/mstw-tr-utility-functions.php:54 01817 #: includes/mstw-tr-utility-functions.php:202 1818 #: includes/mstw-tr-utility-functions.php:451 1819 #: includes/mstw-tr-utility-functions.php:495 1820 #: includes/mstw-tr-utility-functions.php:541 1811 1821 msgid "Ht" 1812 1822 msgstr "" 1813 1823 1814 #: includes/mstw-tr-utility-functions.php:20 51815 #: includes/mstw-tr-utility-functions.php:45 21816 #: includes/mstw-tr-utility-functions.php:49 61817 #: includes/mstw-tr-utility-functions.php:54 21824 #: includes/mstw-tr-utility-functions.php:206 1825 #: includes/mstw-tr-utility-functions.php:453 1826 #: includes/mstw-tr-utility-functions.php:497 1827 #: includes/mstw-tr-utility-functions.php:543 1818 1828 msgid "Wt" 1819 1829 msgstr "" 1820 1830 1821 #: includes/mstw-tr-utility-functions.php:2 091831 #: includes/mstw-tr-utility-functions.php:210 1822 1832 msgid "Year" 1823 1833 msgstr "" 1824 1834 1825 #: includes/mstw-tr-utility-functions.php:21 31826 #: includes/mstw-tr-utility-functions.php:45 61827 #: includes/mstw-tr-utility-functions.php:50 01828 #: includes/mstw-tr-utility-functions.php:54 61835 #: includes/mstw-tr-utility-functions.php:214 1836 #: includes/mstw-tr-utility-functions.php:457 1837 #: includes/mstw-tr-utility-functions.php:501 1838 #: includes/mstw-tr-utility-functions.php:547 1829 1839 msgid "Exp" 1830 1840 msgstr "" 1831 1841 1832 #: includes/mstw-tr-utility-functions.php:23 31833 #: includes/mstw-tr-utility-functions.php:46 61834 #: includes/mstw-tr-utility-functions.php:51 21835 #: includes/mstw-tr-utility-functions.php:55 81842 #: includes/mstw-tr-utility-functions.php:234 1843 #: includes/mstw-tr-utility-functions.php:467 1844 #: includes/mstw-tr-utility-functions.php:513 1845 #: includes/mstw-tr-utility-functions.php:559 1836 1846 msgid "Bat/Thw" 1837 1847 msgstr "" 1838 1848 1839 #: includes/mstw-tr-utility-functions.php:23 71849 #: includes/mstw-tr-utility-functions.php:238 1840 1850 msgid "Other" 1841 1851 msgstr "" 1842 1852 1843 #: includes/mstw-tr-utility-functions.php:34 61844 #: theme-templates/single-player.php:2 441853 #: includes/mstw-tr-utility-functions.php:347 1854 #: theme-templates/single-player.php:267 1845 1855 msgid "Player Bio" 1846 1856 msgstr "" 1847 1857 1848 #: includes/mstw-tr-utility-functions.php:38 21858 #: includes/mstw-tr-utility-functions.php:383 1849 1859 msgid "Position (abbrev)" 1850 1860 msgstr "" 1851 1861 1852 #: includes/mstw-tr-utility-functions.php:38 31862 #: includes/mstw-tr-utility-functions.php:384 1853 1863 msgid "Position (long format)" 1854 1864 msgstr "" 1855 1865 1856 #: includes/mstw-tr-utility-functions.php:38 41866 #: includes/mstw-tr-utility-functions.php:385 1857 1867 msgid "Height" 1858 1868 msgstr "" 1859 1869 1860 #: includes/mstw-tr-utility-functions.php:38 51870 #: includes/mstw-tr-utility-functions.php:386 1861 1871 msgid "Weight" 1862 1872 msgstr "" 1863 1873 1864 #: includes/mstw-tr-utility-functions.php:38 61874 #: includes/mstw-tr-utility-functions.php:387 1865 1875 msgid "Class/Year (abbrev)" 1866 1876 msgstr "" 1867 1877 1868 #: includes/mstw-tr-utility-functions.php:45 41869 #: includes/mstw-tr-utility-functions.php:49 81870 #: includes/mstw-tr-utility-functions.php:54 41878 #: includes/mstw-tr-utility-functions.php:455 1879 #: includes/mstw-tr-utility-functions.php:499 1880 #: includes/mstw-tr-utility-functions.php:545 1871 1881 msgid "Yr" 1872 1882 msgstr "" … … 1878 1888 msgstr "" 1879 1889 1880 #: includes/mstw-tr-utility-functions.php:13 521890 #: includes/mstw-tr-utility-functions.php:1338 1881 1891 msgid "For more information:" 1882 1892 msgstr "" 1883 1893 1884 #: includes/mstw-tr-utility-functions.php:13 541894 #: includes/mstw-tr-utility-functions.php:1340 1885 1895 msgid "MSTW Team Rosters Users Manual" 1886 1896 msgstr "" 1887 1897 1888 #: includes/mstw-tr-utility-functions.php:13 561898 #: includes/mstw-tr-utility-functions.php:1342 1889 1899 msgid "See MSTW Team Rosters in Action" 1890 1900 msgstr "" 1891 1901 1892 #: includes/mstw-tr-utility-functions.php:13 581902 #: includes/mstw-tr-utility-functions.php:1344 1893 1903 msgid "MSTW Team Rosters on WordPress.org" 1894 1904 msgstr "" 1895 1905 1896 #: includes/mstw-tr-utility-functions.php:13 601906 #: includes/mstw-tr-utility-functions.php:1346 1897 1907 msgid "Need more help? Want to contribute? Register for MSTW Gold Support" 1898 1908 msgstr "" 1899 1909 1900 #: includes/mstw-tr-utility-functions.php:1722 1901 #: includes/mstw-utility-functions.php:348 1910 #: includes/mstw-tr-utility-functions.php:1708 1902 1911 msgid "Default Field" 1903 1912 msgstr "" 1904 1913 1905 #: includes/mstw-tr-utility-functions.php:1723 1906 #: includes/mstw-utility-functions.php:349 1914 #: includes/mstw-tr-utility-functions.php:1709 1907 1915 msgid "Default Label" 1908 1916 msgstr "" 1909 1917 1918 #: includes/mstw-tr-utility-functions.php:1931 1919 msgid "Show" 1920 msgstr "" 1921 1922 #: includes/mstw-tr-utility-functions.php:1932 1923 msgid "Hide" 1924 msgstr "" 1925 1926 #: includes/mstw-tr-utility-functions.php:1939 1927 msgid "Tuesday, 07 April 01:15 pm" 1928 msgstr "" 1929 1930 #: includes/mstw-tr-utility-functions.php:1940 1931 msgid "Tuesday, 7 April 01:15 pm" 1932 msgstr "" 1933 1934 #: includes/mstw-tr-utility-functions.php:1941 1935 msgid "Tuesday, 07 April 1:15 pm" 1936 msgstr "" 1937 1938 #: includes/mstw-tr-utility-functions.php:1942 1939 msgid "Tuesday, 7 April 1:15 pm" 1940 msgstr "" 1941 1942 #: includes/mstw-tr-utility-functions.php:1943 1943 #: includes/mstw-tr-utility-functions.php:1944 1944 msgid "Tuesday, 7 April 13:15" 1945 msgstr "" 1946 1947 #: includes/mstw-tr-utility-functions.php:1945 1948 msgid "07 April 13:15" 1949 msgstr "" 1950 1951 #: includes/mstw-tr-utility-functions.php:1946 1952 msgid "7 April 13:15" 1953 msgstr "" 1954 1910 1955 #: includes/mstw-tr-utility-functions.php:1947 1911 #: includes/mstw-utility-functions.php:515 1912 msgid "Show" 1956 msgid "07 April 01:15 pm" 1913 1957 msgstr "" 1914 1958 1915 1959 #: includes/mstw-tr-utility-functions.php:1948 1916 #: includes/mstw-utility-functions.php:516 1917 msgid "Hide" 1918 msgstr "" 1919 1920 #: includes/mstw-tr-utility-functions.php:1955 1921 #: includes/mstw-utility-functions.php:523 1922 msgid "Tuesday, 07 April 01:15 pm" 1923 msgstr "" 1924 1925 #: includes/mstw-tr-utility-functions.php:1956 1926 #: includes/mstw-utility-functions.php:524 1927 msgid "Tuesday, 7 April 01:15 pm" 1960 msgid "7 April 01:15 pm" 1928 1961 msgstr "" 1929 1962 1930 1963 #: includes/mstw-tr-utility-functions.php:1957 1931 #: includes/mstw-utility-functions.php:525 1932 msgid "Tuesday, 07 April 1:15 pm" 1933 msgstr "" 1934 1935 #: includes/mstw-tr-utility-functions.php:1958 1936 #: includes/mstw-utility-functions.php:526 1937 msgid "Tuesday, 7 April 1:15 pm" 1938 msgstr "" 1939 1940 #: includes/mstw-tr-utility-functions.php:1959 1941 #: includes/mstw-tr-utility-functions.php:1960 1942 #: includes/mstw-utility-functions.php:527 1943 #: includes/mstw-utility-functions.php:528 1944 msgid "Tuesday, 7 April 13:15" 1945 msgstr "" 1946 1947 #: includes/mstw-tr-utility-functions.php:1961 1948 #: includes/mstw-utility-functions.php:529 1949 msgid "07 April 13:15" 1950 msgstr "" 1951 1952 #: includes/mstw-tr-utility-functions.php:1962 1953 #: includes/mstw-utility-functions.php:530 1954 msgid "7 April 13:15" 1955 msgstr "" 1956 1957 #: includes/mstw-tr-utility-functions.php:1963 1958 #: includes/mstw-utility-functions.php:531 1959 msgid "07 April 01:15 pm" 1960 msgstr "" 1961 1962 #: includes/mstw-tr-utility-functions.php:1964 1963 #: includes/mstw-utility-functions.php:532 1964 msgid "7 April 01:15 pm" 1964 msgid "Formats for 7 April 2013 13:15." 1965 msgstr "" 1966 1967 #: includes/mstw-tr-utility-functions.php:1968 1968 msgid "07 Apr 2013" 1969 msgstr "" 1970 1971 #: includes/mstw-tr-utility-functions.php:1969 1972 msgid "7 Apr 2013" 1973 msgstr "" 1974 1975 #: includes/mstw-tr-utility-functions.php:1970 1976 msgid "Tues, 07 Apr 2013" 1977 msgstr "" 1978 1979 #: includes/mstw-tr-utility-functions.php:1971 1980 msgid "Tues, 7 Apr 13" 1981 msgstr "" 1982 1983 #: includes/mstw-tr-utility-functions.php:1972 1984 msgid "Tuesday, 7 Apr" 1965 1985 msgstr "" 1966 1986 1967 1987 #: includes/mstw-tr-utility-functions.php:1973 1968 #: includes/mstw-utility-functions.php:541 1969 msgid "Formats for 7 April 2013 13:15." 1970 msgstr "" 1971 1972 #: includes/mstw-tr-utility-functions.php:1984 1973 #: includes/mstw-utility-functions.php:552 1974 msgid "07 Apr 2013" 1975 msgstr "" 1976 1977 #: includes/mstw-tr-utility-functions.php:1985 1978 #: includes/mstw-utility-functions.php:553 1979 msgid "7 Apr 2013" 1988 msgid "Tuesday, 07 April 2013" 1989 msgstr "" 1990 1991 #: includes/mstw-tr-utility-functions.php:1974 1992 msgid "Tuesday, 7 April 2013" 1993 msgstr "" 1994 1995 #: includes/mstw-tr-utility-functions.php:1975 1996 msgid "Tues, 07 Apr" 1997 msgstr "" 1998 1999 #: includes/mstw-tr-utility-functions.php:1976 2000 msgid "Tues, 7 Apr" 2001 msgstr "" 2002 2003 #: includes/mstw-tr-utility-functions.php:1977 2004 msgid "07 Apr" 2005 msgstr "" 2006 2007 #: includes/mstw-tr-utility-functions.php:1978 2008 msgid "7 Apr" 1980 2009 msgstr "" 1981 2010 1982 2011 #: includes/mstw-tr-utility-functions.php:1986 1983 #: includes/mstw-utility-functions.php:554 1984 msgid "Tues, 07 Apr 2013" 1985 msgstr "" 1986 1987 #: includes/mstw-tr-utility-functions.php:1987 1988 #: includes/mstw-utility-functions.php:555 1989 msgid "Tues, 7 Apr 13" 1990 msgstr "" 1991 1992 #: includes/mstw-tr-utility-functions.php:1988 1993 #: includes/mstw-utility-functions.php:556 1994 msgid "Tuesday, 7 Apr" 1995 msgstr "" 1996 1997 #: includes/mstw-tr-utility-functions.php:1989 1998 #: includes/mstw-utility-functions.php:557 1999 msgid "Tuesday, 07 April 2013" 2000 msgstr "" 2001 2002 #: includes/mstw-tr-utility-functions.php:1990 2003 #: includes/mstw-utility-functions.php:558 2004 msgid "Tuesday, 7 April 2013" 2005 msgstr "" 2006 2007 #: includes/mstw-tr-utility-functions.php:1991 2008 #: includes/mstw-utility-functions.php:559 2009 msgid "Tues, 07 Apr" 2012 msgid "Formats for 7 Apr 2013. Default: 2013-04-07" 2010 2013 msgstr "" 2011 2014 2012 2015 #: includes/mstw-tr-utility-functions.php:1992 2013 #: includes/mstw-utility-functions.php:560 2014 msgid "Tues, 7 Apr" 2016 msgid "08:00 (24hr)" 2015 2017 msgstr "" 2016 2018 2017 2019 #: includes/mstw-tr-utility-functions.php:1993 2018 #: includes/mstw-utility-functions.php:561 2019 msgid "07 Apr" 2020 msgid "8:00 (24hr)" 2020 2021 msgstr "" 2021 2022 2022 2023 #: includes/mstw-tr-utility-functions.php:1994 2023 #: includes/mstw-utility-functions.php:5622024 msgid "7 Apr"2025 msgstr ""2026 2027 #: includes/mstw-tr-utility-functions.php:20022028 #: includes/mstw-utility-functions.php:5702029 msgid "Formats for 7 Apr 2013. Default: 2013-04-07"2030 msgstr ""2031 2032 #: includes/mstw-tr-utility-functions.php:20082033 #: includes/mstw-utility-functions.php:5762034 msgid "08:00 (24hr)"2035 msgstr ""2036 2037 #: includes/mstw-tr-utility-functions.php:20092038 #: includes/mstw-utility-functions.php:5772039 msgid "8:00 (24hr)"2040 msgstr ""2041 2042 #: includes/mstw-tr-utility-functions.php:20102043 #: includes/mstw-utility-functions.php:5782044 2024 msgid "08:00 am" 2045 2025 msgstr "" 2046 2026 2047 #: includes/mstw-tr-utility-functions.php:2011 2048 #: includes/mstw-utility-functions.php:579 2027 #: includes/mstw-tr-utility-functions.php:1995 2049 2028 msgid "08:00 AM" 2050 2029 msgstr "" 2051 2030 2052 #: includes/mstw-tr-utility-functions.php:2012 2053 #: includes/mstw-utility-functions.php:580 2031 #: includes/mstw-tr-utility-functions.php:1996 2054 2032 msgid "8:00 am" 2055 2033 msgstr "" 2056 2034 2057 #: includes/mstw-tr-utility-functions.php:2013 2058 #: includes/mstw-utility-functions.php:581 2035 #: includes/mstw-tr-utility-functions.php:1997 2059 2036 msgid "8:00 AM" 2060 2037 msgstr "" 2061 2038 2062 #: includes/mstw-tr-utility-functions.php:2021 2063 #: includes/mstw-utility-functions.php:589 2039 #: includes/mstw-tr-utility-functions.php:2005 2064 2040 msgid "Formats for eight in the morning. Default: 08:00" 2065 2041 msgstr "" 2066 2042 2067 #: includes/mstw-tr-utility-functions.php:2120 2068 msgid "Default" 2069 msgstr "" 2070 2071 #: includes/mstw-tr-utility-functions.php:2160 2072 msgid "Baseball" 2073 msgstr "" 2074 2075 #: includes/mstw-tr-utility-functions.php:2161 2076 msgid "Baseball-MLB" 2077 msgstr "" 2078 2079 #: includes/mstw-tr-utility-functions.php:2162 2080 msgid "Basketball" 2081 msgstr "" 2082 2083 #: includes/mstw-tr-utility-functions.php:2163 2084 msgid "Mens Basketball" 2085 msgstr "" 2086 2087 #: includes/mstw-tr-utility-functions.php:2164 2088 #: includes/mstw-tr-utility-functions.php:2165 2089 msgid "Womens Basketball" 2090 msgstr "" 2091 2092 #: includes/mstw-tr-utility-functions.php:2167 2093 msgid "Competitive Cheer" 2094 msgstr "" 2095 2096 #: includes/mstw-tr-utility-functions.php:2169 2097 msgid "Cross Country" 2098 msgstr "" 2099 2100 #: includes/mstw-tr-utility-functions.php:2170 2101 msgid "Mens Cross Country" 2102 msgstr "" 2103 2104 #: includes/mstw-tr-utility-functions.php:2171 2105 msgid "Womens Cross Country" 2106 msgstr "" 2107 2108 #: includes/mstw-tr-utility-functions.php:2173 2109 msgid "Field Hockey" 2110 msgstr "" 2111 2112 #: includes/mstw-tr-utility-functions.php:2174 2113 msgid "Football" 2114 msgstr "" 2115 2116 #: includes/mstw-tr-utility-functions.php:2175 2117 msgid "Football-NCAA" 2118 msgstr "" 2119 2120 #: includes/mstw-tr-utility-functions.php:2176 2121 msgid "Football-NFL" 2122 msgstr "" 2123 2124 #: includes/mstw-tr-utility-functions.php:2178 2125 msgid "Golf" 2126 msgstr "" 2127 2128 #: includes/mstw-tr-utility-functions.php:2179 2129 msgid "Mens Golf" 2130 msgstr "" 2131 2132 #: includes/mstw-tr-utility-functions.php:2180 2133 msgid "Womens Golf" 2134 msgstr "" 2135 2136 #: includes/mstw-tr-utility-functions.php:2182 2137 msgid "Gymnastics" 2138 msgstr "" 2139 2140 #: includes/mstw-tr-utility-functions.php:2184 2141 msgid "Ice Hockey" 2142 msgstr "" 2143 2144 #: includes/mstw-tr-utility-functions.php:2185 2145 msgid "Ice Hockey-NHL" 2146 msgstr "" 2147 2148 #: includes/mstw-tr-utility-functions.php:2187 2149 msgid "Lacrosse" 2150 msgstr "" 2151 2152 #: includes/mstw-tr-utility-functions.php:2188 2153 msgid "Mens Lacrosse" 2154 msgstr "" 2155 2156 #: includes/mstw-tr-utility-functions.php:2189 2157 msgid "Womens Lacrosse" 2158 msgstr "" 2159 2160 #: includes/mstw-tr-utility-functions.php:2191 2161 msgid "Rugby" 2162 msgstr "" 2163 2164 #: includes/mstw-tr-utility-functions.php:2193 2165 msgid "Soccer" 2166 msgstr "" 2167 2168 #: includes/mstw-tr-utility-functions.php:2194 2169 msgid "Mens Soccer" 2170 msgstr "" 2171 2172 #: includes/mstw-tr-utility-functions.php:2195 2173 msgid "Womens Soccer" 2174 msgstr "" 2175 2176 #: includes/mstw-tr-utility-functions.php:2196 2177 msgid "Soccer-Premier League" 2178 msgstr "" 2179 2180 #: includes/mstw-tr-utility-functions.php:2198 2181 msgid "Softball" 2182 msgstr "" 2183 2184 #: includes/mstw-tr-utility-functions.php:2200 2185 msgid "Swimming & Diving" 2186 msgstr "" 2187 2188 #: includes/mstw-tr-utility-functions.php:2201 2189 msgid "Mens Swimming" 2190 msgstr "" 2191 2192 #: includes/mstw-tr-utility-functions.php:2202 2193 msgid "Womens Swimming" 2194 msgstr "" 2195 2196 #: includes/mstw-tr-utility-functions.php:2204 2197 msgid "Tennis" 2198 msgstr "" 2199 2200 #: includes/mstw-tr-utility-functions.php:2205 2201 msgid "Mens Tennis" 2202 msgstr "" 2203 2204 #: includes/mstw-tr-utility-functions.php:2206 2205 msgid "Womens Tennis" 2206 msgstr "" 2207 2208 #: includes/mstw-tr-utility-functions.php:2208 2209 msgid "Track & Field" 2210 msgstr "" 2211 2212 #: includes/mstw-tr-utility-functions.php:2209 2213 msgid "Mens Track" 2214 msgstr "" 2215 2216 #: includes/mstw-tr-utility-functions.php:2210 2217 msgid "Womens Track" 2218 msgstr "" 2219 2220 #: includes/mstw-tr-utility-functions.php:2211 2221 msgid "Volleyball" 2222 msgstr "" 2223 2224 #: includes/mstw-tr-utility-functions.php:2213 2225 msgid "Mens Volleyball" 2226 msgstr "" 2227 2228 #: includes/mstw-tr-utility-functions.php:2214 2229 msgid "Womens Volleyball" 2230 msgstr "" 2231 2232 #: includes/mstw-tr-utility-functions.php:2216 2233 msgid "Water Polo" 2234 msgstr "" 2235 2236 #: includes/mstw-utility-functions.php:182 2043 #: includes/mstw-utility-functions.php:198 2237 2044 msgid "Mon" 2238 2045 msgstr "" 2239 2046 2240 #: includes/mstw-utility-functions.php:1 832047 #: includes/mstw-utility-functions.php:199 2241 2048 msgid "Tue" 2242 2049 msgstr "" 2243 2050 2244 #: includes/mstw-utility-functions.php: 1842051 #: includes/mstw-utility-functions.php:200 2245 2052 msgid "Wed" 2246 2053 msgstr "" 2247 2054 2248 #: includes/mstw-utility-functions.php: 1852055 #: includes/mstw-utility-functions.php:201 2249 2056 msgid "Thr" 2250 2057 msgstr "" 2251 2058 2252 #: includes/mstw-utility-functions.php: 1862059 #: includes/mstw-utility-functions.php:202 2253 2060 msgid "Fri" 2254 2061 msgstr "" 2255 2062 2256 #: includes/mstw-utility-functions.php: 1872063 #: includes/mstw-utility-functions.php:203 2257 2064 msgid "Sat" 2258 2065 msgstr "" 2259 2066 2260 #: includes/mstw-utility-functions.php: 1882067 #: includes/mstw-utility-functions.php:204 2261 2068 msgid "Sun" 2262 2069 msgstr "" 2263 2070 2264 #: includes/mstw-utility-functions.php: 1912071 #: includes/mstw-utility-functions.php:207 2265 2072 msgid "Monday" 2266 2073 msgstr "" 2267 2074 2268 #: includes/mstw-utility-functions.php: 1922075 #: includes/mstw-utility-functions.php:208 2269 2076 msgid "Tuesday" 2270 2077 msgstr "" 2271 2078 2272 #: includes/mstw-utility-functions.php: 1932079 #: includes/mstw-utility-functions.php:209 2273 2080 msgid "Wednesday" 2274 2081 msgstr "" 2275 2082 2276 #: includes/mstw-utility-functions.php: 1942083 #: includes/mstw-utility-functions.php:210 2277 2084 msgid "Thursday" 2278 2085 msgstr "" 2279 2086 2280 #: includes/mstw-utility-functions.php: 1952087 #: includes/mstw-utility-functions.php:211 2281 2088 msgid "Friday" 2282 2089 msgstr "" 2283 2090 2284 #: includes/mstw-utility-functions.php: 1962091 #: includes/mstw-utility-functions.php:212 2285 2092 msgid "Saturday" 2286 2093 msgstr "" 2287 2094 2288 #: includes/mstw-utility-functions.php: 1972095 #: includes/mstw-utility-functions.php:213 2289 2096 msgid "Sunday" 2290 2097 msgstr "" 2291 2098 2292 #: includes/mstw-utility-functions.php:2 002099 #: includes/mstw-utility-functions.php:216 2293 2100 msgid "January" 2294 2101 msgstr "" 2295 2102 2296 #: includes/mstw-utility-functions.php:2 012103 #: includes/mstw-utility-functions.php:217 2297 2104 msgid "February" 2298 2105 msgstr "" 2299 2106 2300 #: includes/mstw-utility-functions.php:2 022107 #: includes/mstw-utility-functions.php:218 2301 2108 msgid "March" 2302 2109 msgstr "" 2303 2110 2304 #: includes/mstw-utility-functions.php:2 032111 #: includes/mstw-utility-functions.php:219 2305 2112 msgid "April" 2306 2113 msgstr "" 2307 2114 2308 #: includes/mstw-utility-functions.php:2 042309 #: includes/mstw-utility-functions.php:2 182115 #: includes/mstw-utility-functions.php:220 2116 #: includes/mstw-utility-functions.php:234 2310 2117 msgid "May" 2311 2118 msgstr "" 2312 2119 2313 #: includes/mstw-utility-functions.php:2 052120 #: includes/mstw-utility-functions.php:221 2314 2121 msgid "June" 2315 2122 msgstr "" 2316 2123 2317 #: includes/mstw-utility-functions.php:2 062124 #: includes/mstw-utility-functions.php:222 2318 2125 msgid "July" 2319 2126 msgstr "" 2320 2127 2321 #: includes/mstw-utility-functions.php:2 072128 #: includes/mstw-utility-functions.php:223 2322 2129 msgid "August" 2323 2130 msgstr "" 2324 2131 2325 #: includes/mstw-utility-functions.php:2 082132 #: includes/mstw-utility-functions.php:224 2326 2133 msgid "September" 2327 2134 msgstr "" 2328 2135 2329 #: includes/mstw-utility-functions.php:2 092136 #: includes/mstw-utility-functions.php:225 2330 2137 msgid "October" 2331 2138 msgstr "" 2332 2139 2333 #: includes/mstw-utility-functions.php:2 102140 #: includes/mstw-utility-functions.php:226 2334 2141 msgid "November" 2335 2142 msgstr "" 2336 2143 2337 #: includes/mstw-utility-functions.php:2 112144 #: includes/mstw-utility-functions.php:227 2338 2145 msgid "December" 2339 2146 msgstr "" 2340 2147 2341 #: includes/mstw-utility-functions.php:2 142148 #: includes/mstw-utility-functions.php:230 2342 2149 msgid "Jan" 2343 2150 msgstr "" 2344 2151 2345 #: includes/mstw-utility-functions.php:2 152152 #: includes/mstw-utility-functions.php:231 2346 2153 msgid "Feb" 2347 2154 msgstr "" 2348 2155 2349 #: includes/mstw-utility-functions.php:2 162156 #: includes/mstw-utility-functions.php:232 2350 2157 msgid "Mar" 2351 2158 msgstr "" 2352 2159 2353 #: includes/mstw-utility-functions.php:2 172160 #: includes/mstw-utility-functions.php:233 2354 2161 msgid "Apr" 2355 2162 msgstr "" 2356 2163 2357 #: includes/mstw-utility-functions.php:2 192164 #: includes/mstw-utility-functions.php:235 2358 2165 msgid "Jun" 2359 2166 msgstr "" 2360 2167 2361 #: includes/mstw-utility-functions.php:2 202168 #: includes/mstw-utility-functions.php:236 2362 2169 msgid "Jul" 2363 2170 msgstr "" 2364 2171 2365 #: includes/mstw-utility-functions.php:2 212172 #: includes/mstw-utility-functions.php:237 2366 2173 msgid "Aug" 2367 2174 msgstr "" 2368 2175 2369 #: includes/mstw-utility-functions.php:2 222176 #: includes/mstw-utility-functions.php:238 2370 2177 msgid "Sep" 2371 2178 msgstr "" 2372 2179 2373 #: includes/mstw-utility-functions.php:2 232180 #: includes/mstw-utility-functions.php:239 2374 2181 msgid "Oct" 2375 2182 msgstr "" 2376 2183 2377 #: includes/mstw-utility-functions.php:2 242184 #: includes/mstw-utility-functions.php:240 2378 2185 msgid "Nov" 2379 2186 msgstr "" 2380 2187 2381 #: includes/mstw-utility-functions.php:2 252188 #: includes/mstw-utility-functions.php:241 2382 2189 msgid "Dec" 2383 2190 msgstr "" 2384 2191 2385 2192 #. translators: %s: plugin name & version 2386 #: mstw-team-rosters.php:1 492193 #: mstw-team-rosters.php:150 2387 2194 #, php-format 2388 2195 msgid "" … … 2391 2198 msgstr "" 2392 2199 2393 #: mstw-team-rosters.php:17 22200 #: mstw-team-rosters.php:173 2394 2201 msgid "MSTW Admin" 2395 2202 msgstr "" 2396 2203 2397 #: mstw-team-rosters.php:20 12204 #: mstw-team-rosters.php:202 2398 2205 msgid "MSTW Team Rosters Admin" 2399 2206 msgstr "" 2400 2207 2401 #: theme-templates/single-player.php:61 2208 #: theme-templates/single-player.php:37 theme-templates/single-player.php:41 2209 msgid "fatal error encountered in single-player" 2210 msgstr "" 2211 2212 #: theme-templates/single-player.php:78 2402 2213 msgid "Unspecified" 2403 2214 msgstr "" 2404 2215 2405 #: theme-templates/single-player.php: 622216 #: theme-templates/single-player.php:79 2406 2217 msgid "unknown" 2407 2218 msgstr "" 2408 2219 2409 #: theme-templates/single-player.php:1 282220 #: theme-templates/single-player.php:154 2410 2221 msgid "Update Player" 2411 2222 msgstr "" 2412 2223 2413 # . Plugin Name of the plugin/theme2414 msgid " MSTW Team Rosters"2224 #: theme-templates/taxonomy-team.php:81 2225 msgid "Not Found" 2415 2226 msgstr "" 2416 2227 -
team-rosters/trunk/mstw-team-rosters.php
r3270053 r3319253 4 4 * Plugin URI: http://shoalsummitsolutions.com 5 5 * Description: Manage & display team rosters. Front end displays include roster tables, player galleries, and single player profiles. 6 * Version: 4.8 6 * Version: 4.8.1 7 7 * Requires at least: 3.4.2 8 8 * Requires PHP: 5.6 … … 79 79 // ---------------------------------------------------------------- 80 80 // add ajax action for the manage rosters screen 81 // mstw_ bb_ajax_callback( ) is in mstw-bb-admin.php81 // mstw_tr_ajax_callback( ) is in mstw-tr-admin.php 82 82 // 83 83 add_action( 'wp_ajax_team_rosters', 'mstw_tr_ajax_callback' ); … … 112 112 113 113 function mstw_tr_register_activation_hook( ) { 114 // Need mstw-tr-utility-functions.php for mstw_tr_log_msg() 114 // mstw_log_msg( 'mstw_tr_register_activation_hook:' ); 115 115 116 require_once( plugin_dir_path( __FILE__ ) . 'includes/mstw-tr-utility-functions.php' ); 116 117 … … 149 150 __( '%1$s requires WordPress %2$s or higher, and has been deactivated! Please upgrade WordPress and try again.', 'team-rosters' ), $plugin_data['Name'], $version ); 150 151 151 die( $die_msg);152 die( esc_html( $die_msg ) ); 152 153 153 154 } … … 189 190 } 190 191 else 191 mstw_ tr_log_msg( "Oops, failed to add MSTW Admin role. Already exists?" );192 mstw_log_msg( "Oops, failed to add MSTW Admin role. Already exists?" ); 192 193 193 194 // … … 213 214 } 214 215 else { 215 mstw_ tr_log_msg( "Oops, failed to add MSTW Schedules & Scoreboards Admin role. Already exists?" );216 mstw_log_msg( "Oops, failed to add MSTW Schedules & Scoreboards Admin role. Already exists?" ); 216 217 } 217 218 … … 280 281 else { 281 282 $role_name = ( $role_name == null ) ? 'null' : $role_name; 282 mstw_ tr_log_msg( 'Bad args passed to mstw_tr_add_caps( ). $role_name = ' . $role_name . ' and $role_obj = null' );283 mstw_log_msg( 'Bad args passed to mstw_tr_add_caps( ). $role_name = ' . $role_name . ' and $role_obj = null' ); 283 284 } 284 285 … … 380 381 // Roster Table settings 381 382 // 382 echo ".mstw-tr-table thead tr th { \n";383 echo mstw_tr_build_css_rule( $options, 'table_head_text', 'color');384 echo mstw_tr_build_css_rule( $options, 'table_head_bkgd', 'background-color');385 echo "} \n";386 387 echo "h1.mstw-tr-roster-title { \n";388 echo mstw_tr_build_css_rule( $options, 'table_title_color', 'color');389 echo "} \n";390 391 echo '.mstw-tr-table tbody tr:nth-child(odd) td {';//'tr.mstw-tr-odd {';392 echo mstw_tr_build_css_rule( $options, 'table_odd_row_text', 'color');393 echo mstw_tr_build_css_rule( $options, 'table_odd_row_bkgd', 'background-color');394 echo '}';395 396 echo '.mstw-tr-table tbody tr:nth-child(even) td {' ; //'tr.mstw-tr-even {';397 echo mstw_tr_build_css_rule( $options, 'table_even_row_text', 'color');398 echo mstw_tr_build_css_rule( $options, 'table_even_row_bkgd', 'background-color');399 echo '}';400 401 echo ".mstw-tr-table tbody tr:nth-child(even) td a,402 .mstw-tr-table tbody tr:nth-child(odd) td a { \n" ;403 echo mstw_tr_build_css_rule( $options, 'table_links_color', 'color');404 echo "} \n";405 406 echo '.mstw-tr-table tbody tr td,407 .mstw-tr-table tbody tr td {' ;408 echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-top-color');409 echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-bottom-color');410 echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-left-color');411 echo mstw_tr_build_css_rule( $options, 'table_border_color', 'border-right-color');412 echo '}';413 414 echo '.mstw-tr-table tbody tr td img {';415 echo mstw_tr_build_css_rule( $options, 'table_photo_width', 'width', 'px');416 echo mstw_tr_build_css_rule( $options, 'table_photo_height', 'height', 'px');417 echo '}';383 echo wp_kses_post( ".mstw-tr-table thead tr th { \n" ); 384 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_head_text', 'color' ) ); 385 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_head_bkgd', 'background-color' ) ); 386 echo wp_kses_post( "} \n" ); 387 388 echo wp_kses_post( "h1.mstw-tr-roster-title { \n" ); 389 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_title_color', 'color' ) ); 390 echo wp_kses_post( "} \n"); 391 392 echo wp_kses_post( ".mstw-tr-table tbody tr:nth-child(odd) td { \n" ); 393 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_odd_row_text', 'color' ) ); 394 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_odd_row_bkgd', 'background-color' ) ); 395 echo wp_kses_post( '}' ); 396 397 echo wp_kses_post( '.mstw-tr-table tbody tr:nth-child(even) td {' ); 398 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_even_row_text', 'color' ) ); 399 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_even_row_bkgd', 'background-color' ) ); 400 echo wp_kses_post( '}' ); 401 402 echo wp_kses_post( ".mstw-tr-table tbody tr:nth-child(even) td a, 403 .mstw-tr-table tbody tr:nth-child(odd) td a { \n" ); 404 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_links_color', 'color' ) ); 405 echo wp_kses_post( "} \n" ); 406 407 echo wp_kses_post( '.mstw-tr-table tbody tr td, 408 .mstw-tr-table tbody tr td {' ); 409 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-top-color' ) ); 410 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-bottom-color' ) ); 411 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-left-color' ) ); 412 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_border_color', 'border-right-color' ) ); 413 echo wp_kses_post( '}' ); 414 415 echo wp_kses_post( '.mstw-tr-table tbody tr td img {' ); 416 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_photo_width', 'width', 'px' ) ); 417 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_photo_height', 'height', 'px' ) ); 418 echo wp_kses_post( '}' ); 418 419 419 420 // 420 421 // Roster Table 2 Settings 421 422 // 422 echo "div.roster-sort-controls h1.mstw-tr-roster-title { \n";423 echo mstw_tr_build_css_rule( $options, 'table2_title_color', 'color');424 echo "} \n";425 426 echo "div.mstw-tr-roster-player-bio a, div.mstw-tr-roster-player-number-name h3.player-name a { \n";427 echo mstw_tr_build_css_rule( $options, 'table2_links_color', 'color');428 echo "} \n";429 430 echo '.mstw-tr-roster-player-pertinents .mstw-tr-roster-player-number-name span.jersey {';431 echo mstw_tr_build_css_rule( $options, 'table2_jersey_text', 'color');432 echo mstw_tr_build_css_rule( $options, 'table2_jersey_bkgd', 'background-color');433 echo '}';434 435 echo 'li.mstw-tr-roster-player:nth-child(even) div.mstw-tr-roster-player-container {';436 echo mstw_tr_build_css_rule( $options, 'table2_even_row_text', 'color');437 echo mstw_tr_build_css_rule( $options, 'table2_even_row_bkgd', 'background-color');438 echo '}';439 440 echo 'li.mstw-tr-roster-player:nth-child(odd) div.mstw-tr-roster-player-container {';441 echo mstw_tr_build_css_rule( $options, 'table2_odd_row_text', 'color');442 echo mstw_tr_build_css_rule( $options, 'table2_odd_row_bkgd', 'background-color');443 echo '}';423 echo wp_kses_post( "div.roster-sort-controls h1.mstw-tr-roster-title { \n" ); 424 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_title_color', 'color' ) ); 425 echo wp_kses_post( "} \n" ); 426 427 echo wp_kses_post( "div.mstw-tr-roster-player-bio a, div.mstw-tr-roster-player-number-name h3.player-name a { \n" ); 428 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_links_color', 'color' ) ); 429 echo wp_kses_post( "} \n" ); 430 431 echo wp_kses_post( '.mstw-tr-roster-player-pertinents .mstw-tr-roster-player-number-name span.jersey {' ); 432 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_jersey_text', 'color' ) ); 433 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_jersey_bkgd', 'background-color' ) ); 434 echo wp_kses_post( '}' ); 435 436 echo wp_kses_post( 'li.mstw-tr-roster-player:nth-child(even) div.mstw-tr-roster-player-container {' ); 437 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_even_row_text', 'color' ) ); 438 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_even_row_bkgd', 'background-color' ) ); 439 echo wp_kses_post( '}' ); 440 441 echo wp_kses_post( 'li.mstw-tr-roster-player:nth-child(odd) div.mstw-tr-roster-player-container {' ); 442 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_odd_row_text', 'color' ) ); 443 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table2_odd_row_bkgd', 'background-color' ) ); 444 echo wp_kses_post( '}' ); 444 445 445 446 // 446 447 // Player Profile Settings 447 448 // 448 echo ".player-header { \n";449 echo mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color');450 echo "} \n";451 452 echo "#player-name-nbr { \n";453 echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color');454 echo "} \n";455 456 echo "table#player-info-table { \n";457 echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color');458 echo "} \n";459 460 echo ".player-bio { \n";461 echo mstw_tr_build_css_rule( $options, 'sp_bio_border_color', 'border-color');462 echo '}';463 464 echo ".player-bio h1, .player-bio h2, .player-bio h3 { \n";465 echo mstw_tr_build_css_rule( $options, 'sp_bio_header_color', 'color');466 echo "}\n";467 468 echo ".player-bio { \n";469 echo mstw_tr_build_css_rule( $options, 'sp_bio_text_color', 'color');470 echo "}\n";471 472 echo ".player-bio { \n";473 echo mstw_tr_build_css_rule( $options, 'sp_bio_bkgd_color', 'background-color');474 echo "}\n";475 476 echo "h1.player-head-title, .player-team-title { \n";477 echo mstw_tr_build_css_rule( $options, 'table_title_color', 'color');478 echo "}\n";479 480 echo "h1.mstw_tr_roster_title { \n";481 echo mstw_tr_build_css_rule( $options, 'table_title_color', 'color');482 echo "}\n";483 484 echo "div#player-photo img, div#team-logo img { \n";485 echo mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px');486 echo mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px');487 echo "}\n";488 489 echo "table#player-info { \n";490 echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color');491 echo "}\n";449 echo wp_kses_post( ".player-header { \n" ); 450 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' ) ); 451 echo wp_kses_post( "} \n" ); 452 453 echo wp_kses_post( "#player-name-nbr { \n" ); 454 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) ); 455 echo wp_kses_post( "} \n" ); 456 457 echo wp_kses_post( "table#player-info-table { \n" ); 458 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) ); 459 echo wp_kses_post( "} \n" ); 460 461 echo wp_kses_post( ".player-bio { \n" ); 462 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_border_color', 'border-color' ) ); 463 echo wp_kses_post( '}' ); 464 465 echo wp_kses_post( ".player-bio h1, .player-bio h2, .player-bio h3 { \n" ); 466 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_header_color', 'color' ) ); 467 echo wp_kses_post( "}\n" ); 468 469 echo wp_kses_post( ".player-bio { \n" ); 470 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_text_color', 'color' ) ); 471 echo wp_kses_post( "}\n" ); 472 473 echo wp_kses_post( ".player-bio { \n" ); 474 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_bio_bkgd_color', 'background-color' ) ); 475 echo wp_kses_post( "}\n" ); 476 477 echo wp_kses_post( "h1.player-head-title, .player-team-title { \n" ); 478 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_title_color', 'color' ) ); 479 echo wp_kses_post( "}\n" ); 480 481 echo wp_kses_post( "h1.mstw_tr_roster_title { \n" ); 482 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'table_title_color', 'color' ) ); 483 echo wp_kses_post( "}\n" ); 484 485 echo wp_kses_post( "div#player-photo img, div#team-logo img { \n" ); 486 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' ) ); 487 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' ) ); 488 echo wp_kses_post( "}\n" ); 489 490 echo wp_kses_post( "table#player-info { \n" ); 491 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) ); 492 echo wp_kses_post( "}\n" ); 492 493 493 494 // 494 495 // Player Gallery Settings 495 496 // 496 echo ".player-tile { \n"; 497 echo mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' ); 498 echo "} \n"; 499 500 //echo ".player-tile { \n"; 501 // echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ); 502 //echo "} \n"; 503 504 echo ".player-tile img { \n"; 505 echo mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' ); 506 echo mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' ); 507 echo "} \n"; 508 509 echo ".player-name-number { \n"; 510 echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ); 511 512 echo "} \n"; 513 514 echo ".player-name-number .player-name a:link, .player-name-number .player-name a:visited { \n"; 515 echo mstw_tr_build_css_rule( $options, 'gallery_links_color', 'color' ); 516 echo "}\n"; 517 518 echo ".player-info-container table.player-info { \n"; 519 echo mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ); 520 echo "}\n"; 521 522 523 524 echo '</style>'; 497 echo wp_kses_post( ".player-tile { \n" ); 498 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_bkgd_color', 'background-color' ) ); 499 echo wp_kses_post( "} \n" ); 500 501 echo wp_kses_post( ".player-tile img { \n" ); 502 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_width', 'width', 'px' ) ); 503 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_image_height', 'height', 'px' ) ); 504 echo wp_kses_post( "} \n" ); 505 506 echo wp_kses_post( ".player-name-number { \n" ); 507 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) ); 508 echo wp_kses_post( "} \n" ); 509 510 echo wp_kses_post( ".player-name-number .player-name a:link, .player-name-number .player-name a:visited { \n" ); 511 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'gallery_links_color', 'color' ) ); 512 echo wp_kses_post( "}\n" ); 513 514 echo wp_kses_post( ".player-info-container table.player-info { \n" ); 515 echo wp_kses_post( mstw_tr_build_css_rule( $options, 'sp_main_text_color', 'color' ) ); 516 echo wp_kses_post( "}\n" ); 517 518 519 520 echo wp_kses_post( '</style>' ); 525 521 526 522 } … … 558 554 559 555 // Need the team slug to set query 560 $uri_array = explode( '/', $_SERVER['REQUEST_URI'] ); 556 $requestURI = mstw_safe_get( 'REQUEST_URI', $_SERVER, '' ); 557 $uri_array = explode( '/', $requestURI ); 561 558 $team_slug = $uri_array[sizeof( $uri_array )-2]; 562 559 … … 582 579 } //End: mstw_tr_get_posts() 583 580 584 // ----------------------------------------------------------------585 // Deactivate, request upgrade, and exit if WP version is not right586 587 //add_action( 'admin_init', 'mstw_tr_requires_wp_ver' );588 589 function mstw_tr_requires_wp_ver() {590 //mstw_log_msg( "mstw_tr_requires_wp_ver:" );591 global $wp_version;592 593 $plugin = plugin_basename( __FILE__ );594 $plugin_data = get_plugin_data( __FILE__, false );595 596 if ( version_compare($wp_version, "4.0", "<" ) ) {597 if( is_plugin_active($plugin) ) {598 deactivate_plugins( $plugin );599 wp_die( "'".$plugin_data['Name']."' requires WordPress 3.4.2 or higher, and has been deactivated!600 Please upgrade WordPress and try again.<br /><br />Back to <a href='".admin_url()."'>WordPress admin</a>." );601 }602 }603 }604 605 581 // ---------------------------------------------------------------- 606 582 // Load the CSS styles and Java scripts … … 608 584 add_action( 'wp_enqueue_scripts', 'mstw_tr_enqueue_styles' ); 609 585 610 function mstw_tr_enqueue_styles( ) {586 function mstw_tr_enqueue_styles( ) { 611 587 //mstw_log_msg( "mstw_tr_enqueue_styles:" ); 612 588 … … 631 607 if ( file_exists( $custom_stylesheet ) ) { 632 608 $custom_stylesheet_url = get_stylesheet_directory_uri( ) . '/mstw-tr-custom-styles.css'; 633 wp_register_style( 'mstw_tr_custom_style', $custom_stylesheet_url );634 wp_enqueue_style( 'mstw_tr_custom_style' );609 //wp_register_style( 'mstw_tr_custom_style', $custom_stylesheet_url ); 610 //wp_enqueue_style( 'mstw_tr_custom_style' ); 635 611 wp_enqueue_style( 'mstw_tr_custom_style', 636 612 $custom_stylesheet_url, … … 681 657 682 658 //wp_localize_script( 'multi-team-schedule-ajax', 'mstw_multi_team_schedule_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); 683 wp_localize_script( 'tr-sort-roster-2', 'mstw_tr_sort_roster_2_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );659 wp_localize_script( 'tr-sort-roster-2', 'mstw_tr_sort_roster_2_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ajax-nonce' ) ) ); 684 660 685 661 … … 695 671 function mstw_tr_add_feat_img( ) { 696 672 //mstw_log_msg( "mstw_tr_add_feat_img:" ); 673 697 674 if ( !current_theme_supports( 'post-thumbnails' ) ) { 698 675 add_theme_support( 'post-thumbnails' ); … … 739 716 function mstw_tr_sort_roster_ajax_callback ( ) { 740 717 //mstw_log_msg( 'mstw_tr_sort_roster_ajax_callback:' ); 741 718 //mstw_log_msg( $_POST ); 719 742 720 $response = array( 743 721 'response' => 'sorted', … … 749 727 if ( array_key_exists( 'real_action', $_POST ) ) { 750 728 751 $action = $_POST['real_action'];729 $action = mstw_safe_get( 'real_action', $_POST, 'sort_roster' ); 752 730 753 731 switch( $action ) { 754 732 case 'sort_roster': 755 $team = $_POST[ 'team' ];733 $team = mstw_safe_get( 'team', $_POST, '' ); 756 734 757 $table_id = $_POST[ 'table_id' ];735 $table_id = mstw_safe_get( 'table_id', $_POST, '' ); 758 736 $response[ 'table_id' ] = $table_id; 759 737 760 $args_str = stripslashes( $_POST[ 'args_str' ]);738 $args_str = stripslashes( mstw_safe_get( 'args_str', $_POST, '' ) ); 761 739 762 $sort_value = $_POST[ 'sort_value' ];740 $sort_value = mstw_safe_get( 'sort_value', $_POST, 'numeric' ); 763 741 764 742 $html = do_shortcode( "[mstw_tr_roster_2 $args_str table_id=$table_id no_controls=1 sort_order=$sort_value ]" ); … … 768 746 769 747 default: 770 mstw_log_msg( "Error: Invalid action, $action, on page: " . $_POST['page'] ); 771 $response['error'] = __( 'AJAX Error: invalid action.', 'team-rosters' ); 748 if (isset( $_POST['page'] ) ) { 749 mstw_log_msg( "Error: Invalid action, $action, on page: " . sanitize_text_field( wp_unslash( $_POST['page'] ) ) ); 750 $response['error'] = __( 'AJAX Error: invalid action.', 'team-rosters' ); 751 } 772 752 break; 773 753 } -
team-rosters/trunk/readme.txt
r3270053 r3319253 4 4 Tags: sports,teams,rosters,players,team rosters 5 5 Requires at least: 3.4.2 6 Tested up to: 6. 77 Stable tag: 4.8 6 Tested up to: 6.8 7 Stable tag: 4.8.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 45 == 4.8.1 == 46 * Re-corrected security issues identified by the Wordpress team. 44 47 45 48 = 4.8 = -
team-rosters/trunk/theme-templates/single-player.php
r3270053 r3319253 25 25 26 26 //mstw_log_msg( 'single-player.php' ); 27 27 //mstw_log_msg( $_GET ); 28 29 //Validate the nonce 30 //$nonce = mstw_safe_get( 'mstw-tr-nonce', $_GET, '' ); 31 32 if ( isset( $_GET['mstw-tr-nonce'] ) ) { 33 //$safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_GET, '' ); 34 //$safeNonce = $_GET[ 'mstw-tr-nonce' ]; 35 if ( false == wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET[ 'mstw-tr-nonce' ] ) ), 'single-player' ) ) { 36 mstw_log_msg( "single-player: invalid nonce" ); 37 die( esc_html__('fatal error encountered in single-player', 'team-rosters' ) ); 38 } 39 } else { 40 mstw_log_msg( "single-player: nonce not found" ); 41 die( esc_html__('fatal error encountered in single-player', 'team-rosters' ) ); 42 } 43 44 28 45 // Get the settings from the admin page 29 46 $options = get_option( 'mstw_tr_options' ); … … 34 51 // Set the roster format based on the page args & plugin settings 35 52 $roster_type = ( isset( $_GET['roster_type'] ) && $_GET['roster_type'] != '' ) ? 36 $_GET['roster_type']:53 sanitize_text_field( wp_unslash( $_GET['roster_type'] ) ) : 37 54 $options['roster_type']; 38 55 39 $team_slug = ( isset( $_GET['team'] ) && $_GET['team']!= '' ) ?40 $_GET['team']:56 $team_slug = ( isset( $_GET['team'] ) && sanitize_text_field( wp_unslash( $_GET['team'] ) ) != '' ) ? 57 sanitize_text_field( wp_unslash( $_GET['team'] ) ) : 41 58 ''; 42 59 … … 65 82 66 83 if ( 'custom' == $roster_type ) { 67 $argsStr = ( isset( $_GET['args'] ) && $_GET['args']!= '' ) ?68 $_GET['args']:84 $argsStr = ( isset( $_GET['args'] ) && sanitize_text_field( wp_unslash( $_GET['args'] ) ) != '' ) ? 85 sanitize_text_field( wp_unslash( $_GET['args'] ) ) : 69 86 ''; 87 $newArgsStr = mstw_safe_get( 'args', $_GET, '' ); 88 89 //mstw_log_msg( 'argsStr:' ); 90 //mstw_log_msg( $argsStr ); 91 //mstw_log_msg( 'newArgsStr:' ); 92 //mstw_log_msg( $newArgsStr ); 93 70 94 71 95 if ( '' != $argsStr ) { … … 107 131 <div class="player-select-controls MSTW-flex-row alignwide"> 108 132 <?php 109 $formAction = get_site_url( null, "player/{$post->post_name}/?roster_type=$roster_type&team=$team_slug" ); 133 $nonce = wp_create_nonce( 'single-player' ); 134 $formAction = get_site_url( null, "player/{$post->post_name}/?roster_type=$roster_type&team=$team_slug&mstw-tr-nonce=$nonce" ); 110 135 if ( 'custom' == $roster_type ) { 111 136 $serialArgs = base64_encode( serialize( $options ) ); … … 115 140 116 141 <form id="single-player-profile" method="POST" action= "<?php echo esc_url( $formAction ); ?>"> 142 <?php wp_nonce_field( 'single-player', 'mstw-tr-nonce' ); ?> 117 143 <input type='hidden' name='current-player' id='current-player' value= <?php echo esc_html( $post->post_name ) ?> /> 118 144 <div class="player-select-list ms-control"> -
team-rosters/trunk/theme-templates/taxonomy-team.php
r3270053 r3319253 23 23 get_header( ); 24 24 25 $siteURL = "//".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; 25 if ( !isset( $_SERVER['REQUEST_URI'] ) or !isset( $_SERVER['HTTP_HOST'] ) ) { 26 mstw_log_msg( '$_SERVER[REQUEST_URI] or $_SERVER[HTTP_HOST] is not set. Returning nada' ); 27 return; 28 } 26 29 30 $requestURI = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 31 $httpHost = esc_url_raw( wp_unslash( $_SERVER['HTTP_HOST'] ) ); 32 $siteURL = "//" . $httpHost . $requestURI; 27 33 $parsedURL = wp_parse_url( $siteURL, PHP_URL_QUERY ); 28 34 … … 73 79 74 80 // figure out the team name - for the title (if shown) and for team-based styles 75 $uri_array = explode( '/', $_SERVER['REQUEST_URI'] ); 76 $team_slug = $uri_array[sizeof( $uri_array )-2]; 77 $term = get_term_by( 'slug', $team_slug, 'mstw_tr_team' ); 78 $team_name = $term->name; 81 $team_name = __('Not Found', 'team-rosters' ); 82 83 if ( isset( $_SERVER['REQUEST_URI'] ) ) { 84 $requestURI = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 85 $uri_array = explode( '/', $requestURI ); 86 /*mstw_log_msg( 'uri array' ); 87 mstw_log_msg( $uri_array ); 88 $us_uri_array = explode( '/', wp_unslash( $_SERVER['REQUEST_URI'] ) ); 89 mstw_log_msg( 'unslashed uri array' ); 90 mstw_log_msg( $us_uri_array ); 91 */ 92 $team_slug = $uri_array[sizeof( $uri_array )-2]; 93 $term = get_term_by( 'slug', $team_slug, 'mstw_tr_team' ); 94 $team_name = $term->name; 95 } 79 96 ?> 80 97
Note: See TracChangeset
for help on using the changeset viewer.