Changeset 3351605
- Timestamp:
- 08/28/2025 01:27:27 AM (7 months ago)
- Location:
- team-rosters/trunk
- Files:
-
- 1 added
- 5 edited
-
css/mstw-tr-styles.css (modified) (1 diff)
-
lang/team-rosters.pot (modified) (20 diffs)
-
mstw-team-rosters.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
-
theme-templates/single-player-nonce.php (added)
-
theme-templates/single-player.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
team-rosters/trunk/css/mstw-tr-styles.css
r3240856 r3351605 110 110 div.mstw-tr-roster-player-image img { 111 111 max-height : 125px; 112 max-width : 125px; 112 113 margin : 0 12px; 113 114 } -
team-rosters/trunk/lang/team-rosters.pot
r3319253 r3351605 3 3 msgstr "" 4 4 "Project-Id-Version: MSTW Team Rosters\n" 5 "POT-Creation-Date: 2025-0 6-24 22:11-0500\n"5 "POT-Creation-Date: 2025-08-22 11:20-0500\n" 6 6 "PO-Revision-Date: 2025-02-14 15:57-0600\n" 7 7 "Last-Translator: \n" … … 162 162 msgstr "" 163 163 164 #: includes/mstw-tr-admin.php:620 mstw-team-rosters.php:7 50164 #: includes/mstw-tr-admin.php:620 mstw-team-rosters.php:771 165 165 msgid "AJAX Error: invalid action." 166 166 msgstr "" 167 167 168 #: includes/mstw-tr-admin.php:626 mstw-team-rosters.php:7 56168 #: includes/mstw-tr-admin.php:626 mstw-team-rosters.php:777 169 169 msgid "AJAX Error: no action found." 170 170 msgstr "" … … 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:41 1468 #: includes/mstw-tr-roster-tables-class.php:410 469 469 #: includes/mstw-tr-utility-functions.php:920 470 470 #: includes/mstw-tr-utility-functions.php:921 … … 481 481 #: includes/mstw-tr-player-cpt-admin.php:122 482 482 #: includes/mstw-tr-player-cpt-admin.php:128 483 #: includes/mstw-tr-roster-tables-class.php:41 2483 #: includes/mstw-tr-roster-tables-class.php:411 484 484 #: includes/mstw-tr-utility-functions.php:924 485 485 #: includes/mstw-tr-utility-functions.php:925 … … 494 494 #: includes/mstw-tr-csv-import-class.php:478 495 495 #: includes/mstw-tr-player-cpt-admin.php:123 496 #: includes/mstw-tr-roster-tables-class.php:41 3496 #: includes/mstw-tr-roster-tables-class.php:412 497 497 #: includes/mstw-tr-utility-functions.php:928 498 498 #: includes/mstw-tr-utility-functions.php:929 … … 876 876 #: includes/mstw-tr-roster-table-settings.php:94 877 877 #: includes/mstw-tr-roster-table-settings.php:221 878 #: includes/mstw-tr-roster-tables-class.php:54 7878 #: includes/mstw-tr-roster-tables-class.php:545 879 879 #: includes/mstw-tr-team-roster-admin-class.php:46 880 880 #: includes/mstw-tr-utility-functions.php:380 … … 885 885 #: includes/mstw-tr-roster-table-settings.php:93 886 886 #: includes/mstw-tr-roster-table-settings.php:220 887 #: includes/mstw-tr-roster-tables-class.php:54 8887 #: includes/mstw-tr-roster-tables-class.php:546 888 888 #: includes/mstw-tr-team-roster-admin-class.php:47 889 889 #: includes/mstw-tr-utility-functions.php:381 … … 1326 1326 1327 1327 #: includes/mstw-tr-roster-table-settings.php:164 1328 #: includes/mstw-tr-roster-tables-class.php:5 501328 #: includes/mstw-tr-roster-tables-class.php:548 1329 1329 msgid "Class/Year" 1330 1330 msgstr "" … … 1452 1452 msgstr "" 1453 1453 1454 #: includes/mstw-tr-roster-tables-class.php:25 51454 #: includes/mstw-tr-roster-tables-class.php:254 1455 1455 #: includes/mstw-tr-utility-functions.php:787 1456 1456 msgid "No player photo found." 1457 1457 msgstr "" 1458 1458 1459 #: includes/mstw-tr-roster-tables-class.php:4 101459 #: includes/mstw-tr-roster-tables-class.php:409 1460 1460 msgid "--" 1461 1461 msgstr "" 1462 1462 1463 #: includes/mstw-tr-roster-tables-class.php:54 61463 #: includes/mstw-tr-roster-tables-class.php:544 1464 1464 #: includes/mstw-tr-utility-functions.php:382 1465 1465 msgid "Jersey Number" 1466 1466 msgstr "" 1467 1467 1468 #: includes/mstw-tr-roster-tables-class.php:54 91468 #: includes/mstw-tr-roster-tables-class.php:547 1469 1469 msgid "Hometown" 1470 1470 msgstr "" 1471 1471 1472 #: includes/mstw-tr-roster-tables-class.php:57 81472 #: includes/mstw-tr-roster-tables-class.php:576 1473 1473 msgid "Sort Roster" 1474 1474 msgstr "" 1475 1475 1476 #: includes/mstw-tr-roster-tables-class.php:61 41476 #: includes/mstw-tr-roster-tables-class.php:612 1477 1477 msgid "Roster" 1478 1478 msgstr "" 1479 1479 1480 #: includes/mstw-tr-settings.php: 501480 #: includes/mstw-tr-settings.php:49 1481 1481 msgid "Team Rosters Plugin Settings" 1482 1482 msgstr "" 1483 1483 1484 #: includes/mstw-tr-settings.php:13 91484 #: includes/mstw-tr-settings.php:138 1485 1485 msgid "Save Changes" 1486 1486 msgstr "" 1487 1487 1488 #: includes/mstw-tr-settings.php:14 11488 #: includes/mstw-tr-settings.php:140 1489 1489 msgid "Reset Defaults" 1490 1490 msgstr "" 1491 1491 1492 #: includes/mstw-tr-settings.php:15 71492 #: includes/mstw-tr-settings.php:156 1493 1493 msgid "Roster Table Fields & Columns" 1494 1494 msgstr "" 1495 1495 1496 #: includes/mstw-tr-settings.php:15 8 includes/mstw-tr-settings.php:1941496 #: includes/mstw-tr-settings.php:157 includes/mstw-tr-settings.php:193 1497 1497 msgid "Roster Tables" 1498 1498 msgstr "" 1499 1499 1500 #: includes/mstw-tr-settings.php:15 9 includes/mstw-tr-settings.php:1991500 #: includes/mstw-tr-settings.php:158 includes/mstw-tr-settings.php:198 1501 1501 msgid "Roster Table Colors" 1502 1502 msgstr "" 1503 1503 1504 #: includes/mstw-tr-settings.php:1 60 includes/mstw-tr-settings.php:2041504 #: includes/mstw-tr-settings.php:159 includes/mstw-tr-settings.php:203 1505 1505 msgid "Player Profiles & Galleries" 1506 1506 msgstr "" 1507 1507 1508 #: includes/mstw-tr-settings.php:18 91508 #: includes/mstw-tr-settings.php:188 1509 1509 msgid "Data Fields & Columns" 1510 1510 msgstr "" 1511 1511 1512 #: includes/mstw-tr-settings.php:220 1513 msgid "Data Fields & Columns Settings:" 1514 msgstr "" 1515 1512 1516 #: includes/mstw-tr-settings.php:221 1513 msgid "Data Fields & Columns Settings:"1514 msgstr ""1515 1516 #: includes/mstw-tr-settings.php:2221517 1517 msgid "" 1518 1518 "This screen controls the visibility of data fields/columns, the order of " … … 1521 1521 msgstr "" 1522 1522 1523 #: includes/mstw-tr-settings.php:22 31523 #: includes/mstw-tr-settings.php:222 1524 1524 msgid "" 1525 1525 "Note that these settings apply to ALL roster and player displays (tables, " … … 1528 1528 msgstr "" 1529 1529 1530 #: includes/mstw-tr-settings.php:22 4 includes/mstw-tr-settings.php:2321531 #: includes/mstw-tr-settings.php:25 81530 #: includes/mstw-tr-settings.php:223 includes/mstw-tr-settings.php:231 1531 #: includes/mstw-tr-settings.php:257 1532 1532 msgid "See the Team Rosters Users Manual for more documentation." 1533 1533 msgstr "" 1534 1534 1535 #: includes/mstw-tr-settings.php:228 1536 msgid "Roster Tables Settings:" 1537 msgstr "" 1538 1535 1539 #: includes/mstw-tr-settings.php:229 1536 msgid "Roster Tables Settings:"1537 msgstr ""1538 1539 #: includes/mstw-tr-settings.php:2301540 1540 msgid "" 1541 1541 "This screen provides controls for fields in the roster tables (mstw-tr-" … … 1544 1544 msgstr "" 1545 1545 1546 #: includes/mstw-tr-settings.php:23 11546 #: includes/mstw-tr-settings.php:230 1547 1547 msgid "" 1548 1548 "Note that these settings apply to ALL roster tables/roster tables v2 on the " … … 1551 1551 msgstr "" 1552 1552 1553 #: includes/mstw-tr-settings.php:238 1554 msgid "Roster Table Color Settings:" 1555 msgstr "" 1556 1553 1557 #: includes/mstw-tr-settings.php:239 1554 msgid "Roster Table Color Settings:"1555 msgstr ""1556 1557 #: includes/mstw-tr-settings.php:2401558 1558 msgid "" 1559 1559 "This screen controls the colors for the roster tables/roster tables version " … … 1563 1563 1564 1564 #. translators: %1$s/%2$s: HTML elements that shouldn't be translated 1565 #: includes/mstw-tr-settings.php:24 31565 #: includes/mstw-tr-settings.php:242 1566 1566 #, php-format 1567 1567 msgid "" … … 1572 1572 1573 1573 #. translators: %1$s/%2$s: HTML elements that shouldn't be translated 1574 #: includes/mstw-tr-settings.php:24 61574 #: includes/mstw-tr-settings.php:245 1575 1575 #, php-format 1576 1576 msgid "" … … 1579 1579 msgstr "" 1580 1580 1581 #: includes/mstw-tr-settings.php:24 71581 #: includes/mstw-tr-settings.php:246 1582 1582 msgid "" 1583 1583 "See the Team Rosters Users Manual for more information on these settings." 1584 1584 msgstr "" 1585 1585 1586 #: includes/mstw-tr-settings.php:254 1587 msgid "Player Profiles & Galleries Settings:" 1588 msgstr "" 1589 1586 1590 #: includes/mstw-tr-settings.php:255 1587 msgid "Player Profiles & Galleries Settings:"1588 msgstr ""1589 1590 #: includes/mstw-tr-settings.php:2561591 1591 msgid "" 1592 1592 "This screen provides controls for some data elements and colors of the " … … 1594 1594 msgstr "" 1595 1595 1596 #: includes/mstw-tr-settings.php:25 71596 #: includes/mstw-tr-settings.php:256 1597 1597 msgid "" 1598 1598 "Note that these settings apply to ALL player profiles and galleries on the " … … 1602 1602 msgstr "" 1603 1603 1604 #: includes/mstw-tr-settings.php:2 901604 #: includes/mstw-tr-settings.php:289 1605 1605 msgid "Rpster Table data fields & columns settings reset to defaults." 1606 1606 msgstr "" 1607 1607 1608 #: includes/mstw-tr-settings.php:29 71608 #: includes/mstw-tr-settings.php:296 1609 1609 msgid "Roster table settings reset to defaults." 1610 1610 msgstr "" 1611 1611 1612 #: includes/mstw-tr-settings.php:30 11612 #: includes/mstw-tr-settings.php:300 1613 1613 msgid "Roster table color settings reset to defaults." 1614 1614 msgstr "" 1615 1615 1616 #: includes/mstw-tr-settings.php:30 51616 #: includes/mstw-tr-settings.php:304 1617 1617 msgid "Player profile & gallery settings reset to defaults." 1618 1618 msgstr "" 1619 1619 1620 #: includes/mstw-tr-settings.php:32 31620 #: includes/mstw-tr-settings.php:322 1621 1621 msgid "Data fields & columns settings updated." 1622 1622 msgstr "" 1623 1623 1624 1624 #. translators: %1$s/%2$s: key/value that had error 1625 #: includes/mstw-tr-settings.php:34 6 includes/mstw-tr-settings.php:4291625 #: includes/mstw-tr-settings.php:345 includes/mstw-tr-settings.php:428 1626 1626 #, php-format 1627 1627 msgid "Error with %1$s = '%2$s'. Reset to previous value." 1628 1628 msgstr "" 1629 1629 1630 #: includes/mstw-tr-settings.php:35 81630 #: includes/mstw-tr-settings.php:357 1631 1631 msgid "Roster tables settings updated." 1632 1632 msgstr "" 1633 1633 1634 1634 #. translators: $s: key that had error 1635 #: includes/mstw-tr-settings.php:38 5 includes/mstw-tr-settings.php:4501635 #: includes/mstw-tr-settings.php:384 includes/mstw-tr-settings.php:449 1636 1636 #, php-format 1637 1637 msgid "Error: %s reset to the default." 1638 1638 msgstr "" 1639 1639 1640 #: includes/mstw-tr-settings.php:39 31640 #: includes/mstw-tr-settings.php:392 1641 1641 msgid "Roster table colors settings updated." 1642 1642 msgstr "" 1643 1643 1644 #: includes/mstw-tr-settings.php:45 81644 #: includes/mstw-tr-settings.php:457 1645 1645 msgid "Player profiles & galleries settings updated." 1646 1646 msgstr "" … … 1852 1852 1853 1853 #: includes/mstw-tr-utility-functions.php:347 1854 #: theme-templates/single-player.php:267 1854 #: theme-templates/single-player-nonce.php:275 1855 #: theme-templates/single-player.php:268 1855 1856 msgid "Player Bio" 1856 1857 msgstr "" … … 2206 2207 msgstr "" 2207 2208 2208 #: theme-templates/single-player.php:37 theme-templates/single-player.php:41 2209 #: theme-templates/single-player-nonce.php:44 2210 #: theme-templates/single-player-nonce.php:48 2209 2211 msgid "fatal error encountered in single-player" 2210 2212 msgstr "" 2211 2213 2212 #: theme-templates/single-player.php:78 2214 #: theme-templates/single-player-nonce.php:86 2215 #: theme-templates/single-player.php:79 2213 2216 msgid "Unspecified" 2214 2217 msgstr "" 2215 2218 2216 #: theme-templates/single-player.php:79 2219 #: theme-templates/single-player-nonce.php:87 2220 #: theme-templates/single-player.php:80 2217 2221 msgid "unknown" 2218 2222 msgstr "" 2219 2223 2220 #: theme-templates/single-player.php:154 2224 #: theme-templates/single-player-nonce.php:162 2225 #: theme-templates/single-player.php:155 2221 2226 msgid "Update Player" 2222 2227 msgstr "" -
team-rosters/trunk/mstw-team-rosters.php
r3319253 r3351605 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. 16 * Version: 4.8.2 7 7 * Requires at least: 3.4.2 8 8 * Requires PHP: 5.6 … … 294 294 // filter is now part of the init action - mstw_tr_init() 295 295 // add_filter( "single_template", "mstw_tr_single_player_template", 11 ); 296 // 297 // As of version 4.8.2 we are re-locating everything to /theme/team-rosters/ 298 // but the old stuff still works 296 299 // 297 300 … … 301 304 302 305 if ( $post->post_type == 'mstw_tr_player' ) { 303 $custom_single_template = get_stylesheet_directory( ) . '/single-player.php'; 304 $plugin_single_template = dirname( __FILE__ ) . '/theme-templates/single-player.php'; 305 306 if ( file_exists( $custom_single_template ) ) { 307 $single_template = $custom_single_template; 308 } 309 else if ( file_exists( $plugin_single_template ) ) { 310 $single_template = $plugin_single_template; 306 $custom_single_template_new = get_stylesheet_directory( ) . '/team-rosters/single-player.php'; 307 $custom_single_template_old = get_stylesheet_directory( ) . '/single-player.php'; 308 309 310 if ( file_exists( $custom_single_template_new ) ) { 311 $single_template = $custom_single_template_new; 312 } 313 else if ( file_exists( $custom_single_template_old ) ) { 314 $single_template = $custom_single_template_old; 315 } 316 else { 317 $single_template = dirname( __FILE__ ) . '/theme-templates/single-player.php'; 318 311 319 } 312 320 } //End: if ( $post->post_type ... 313 321 314 322 return $single_template; 315 323 … … 327 335 328 336 function mstw_tr_taxonomy_team_template( $template ) { 329 //mstw_log_msg( 'mstw_tr_taxonomy_team_template:' );337 mstw_log_msg( 'mstw_tr_taxonomy_team_template:' ); 330 338 331 339 if ( 'mstw_tr_team' == get_query_var( 'taxonomy' ) ) { 332 $custom_taxonomy_template = get_stylesheet_directory( ) . '/taxonomy-team.php'; 333 $plugin_taxonomy_template = dirname( __FILE__ ) . '/theme-templates/taxonomy-team.php'; 334 335 if ( file_exists( $custom_taxonomy_template ) ) { 336 $template = $custom_taxonomy_template; 337 } 338 else if ( file_exists( $plugin_taxonomy_template ) ) { 339 $template = $plugin_taxonomy_template; 340 $custom_taxonomy_template_new = get_stylesheet_directory( ) . '/team-rosters/taxonomy-team.php'; 341 $custom_taxonomy_template_old = get_stylesheet_directory( ) . '/taxonomy-team.php'; 342 343 if ( file_exists( $custom_taxonomy_template_new ) ) { 344 $template = $custom_taxonomy_template_new; 345 346 } else if ( file_exists( $custom_taxonomy_template_old ) ) { 347 $template = $custom_taxonomy_template_old; 348 349 } else { 350 $template = dirname( __FILE__ ) . '/theme-templates/taxonomy-team.php'; 351 340 352 } 341 353 } 354 355 mstw_log_msg( "team_taxonomy = $template" ); 342 356 343 357 return $template; … … 603 617 // Check if a custom stylesheet exists in the current theme's directory; 604 618 // if so, enqueue it too. it MUST be named mstw-tr-custom-styles.css 605 $custom_stylesheet = get_stylesheet_directory( ) . '/mstw-tr-custom-styles.css'; 606 607 if ( file_exists( $custom_stylesheet ) ) { 608 $custom_stylesheet_url = get_stylesheet_directory_uri( ) . '/mstw-tr-custom-styles.css'; 609 //wp_register_style( 'mstw_tr_custom_style', $custom_stylesheet_url ); 610 //wp_enqueue_style( 'mstw_tr_custom_style' ); 619 $custom_stylesheet_new = get_stylesheet_directory( ) . '/team-rosters/mstw-tr-custom-styles.css'; 620 $custom_stylesheet_old = get_stylesheet_directory( ) . '/mstw-tr-custom-styles.css'; 621 622 if ( file_exists( $custom_stylesheet_new ) ) { 623 $custom_stylesheet_url = get_stylesheet_directory_uri( ) . '/team-rosters/mstw-tr-custom-styles.css'; 611 624 wp_enqueue_style( 'mstw_tr_custom_style', 612 625 $custom_stylesheet_url, … … 615 628 'all' 616 629 ); 630 } else if ( file_exists( $custom_stylesheet_old ) ) { 631 $custom_stylesheet_url = get_stylesheet_directory_uri( ) . '/mstw-tr-custom-styles.css'; 632 wp_enqueue_style( 'mstw_tr_custom_style', 633 $custom_stylesheet_url, 634 array( ), 635 '4.9', 636 'all' 637 ); 617 638 } 618 639 -
team-rosters/trunk/readme.txt
r3319253 r3351605 5 5 Requires at least: 3.4.2 6 6 Tested up to: 6.8 7 Stable tag: 4.8. 17 Stable tag: 4.8.2 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.2 == 46 * Fixed problems with the single player profile created by the security fixes. [See the Customizing the Team Rosters Plugin in the users manuals.](http://shoalsummitsolutions.com/tr-customizing) 44 47 45 48 == 4.8.1 == -
team-rosters/trunk/theme-templates/single-player.php
r3319253 r3351605 30 30 //$nonce = mstw_safe_get( 'mstw-tr-nonce', $_GET, '' ); 31 31 32 if ( isset( $_GET['mstw-tr-nonce'] ) ) {32 /*if ( isset( $_GET['mstw-tr-nonce'] ) ) { 33 33 //$safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_GET, '' ); 34 34 //$safeNonce = $_GET[ 'mstw-tr-nonce' ]; … … 41 41 die( esc_html__('fatal error encountered in single-player', 'team-rosters' ) ); 42 42 } 43 */ 43 44 44 45
Note: See TracChangeset
for help on using the changeset viewer.