Plugin Directory

Changeset 3351605


Ignore:
Timestamp:
08/28/2025 01:27:27 AM (7 months ago)
Author:
MarkODonnell
Message:

Releasing version 4.8.2

Location:
team-rosters/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • team-rosters/trunk/css/mstw-tr-styles.css

    r3240856 r3351605  
    110110div.mstw-tr-roster-player-image img {
    111111    max-height : 125px;
     112max-width    : 125px;
    112113    margin     : 0 12px;
    113114}
  • team-rosters/trunk/lang/team-rosters.pot

    r3319253 r3351605  
    33msgstr ""
    44"Project-Id-Version: MSTW Team Rosters\n"
    5 "POT-Creation-Date: 2025-06-24 22:11-0500\n"
     5"POT-Creation-Date: 2025-08-22 11:20-0500\n"
    66"PO-Revision-Date: 2025-02-14 15:57-0600\n"
    77"Last-Translator: \n"
     
    162162msgstr ""
    163163
    164 #: includes/mstw-tr-admin.php:620 mstw-team-rosters.php:750
     164#: includes/mstw-tr-admin.php:620 mstw-team-rosters.php:771
    165165msgid "AJAX Error: invalid action."
    166166msgstr ""
    167167
    168 #: includes/mstw-tr-admin.php:626 mstw-team-rosters.php:756
     168#: includes/mstw-tr-admin.php:626 mstw-team-rosters.php:777
    169169msgid "AJAX Error: no action found."
    170170msgstr ""
     
    466466#: includes/mstw-tr-player-cpt-admin.php:121
    467467#: includes/mstw-tr-player-cpt-admin.php:127
    468 #: includes/mstw-tr-roster-tables-class.php:411
     468#: includes/mstw-tr-roster-tables-class.php:410
    469469#: includes/mstw-tr-utility-functions.php:920
    470470#: includes/mstw-tr-utility-functions.php:921
     
    481481#: includes/mstw-tr-player-cpt-admin.php:122
    482482#: includes/mstw-tr-player-cpt-admin.php:128
    483 #: includes/mstw-tr-roster-tables-class.php:412
     483#: includes/mstw-tr-roster-tables-class.php:411
    484484#: includes/mstw-tr-utility-functions.php:924
    485485#: includes/mstw-tr-utility-functions.php:925
     
    494494#: includes/mstw-tr-csv-import-class.php:478
    495495#: includes/mstw-tr-player-cpt-admin.php:123
    496 #: includes/mstw-tr-roster-tables-class.php:413
     496#: includes/mstw-tr-roster-tables-class.php:412
    497497#: includes/mstw-tr-utility-functions.php:928
    498498#: includes/mstw-tr-utility-functions.php:929
     
    876876#: includes/mstw-tr-roster-table-settings.php:94
    877877#: includes/mstw-tr-roster-table-settings.php:221
    878 #: includes/mstw-tr-roster-tables-class.php:547
     878#: includes/mstw-tr-roster-tables-class.php:545
    879879#: includes/mstw-tr-team-roster-admin-class.php:46
    880880#: includes/mstw-tr-utility-functions.php:380
     
    885885#: includes/mstw-tr-roster-table-settings.php:93
    886886#: includes/mstw-tr-roster-table-settings.php:220
    887 #: includes/mstw-tr-roster-tables-class.php:548
     887#: includes/mstw-tr-roster-tables-class.php:546
    888888#: includes/mstw-tr-team-roster-admin-class.php:47
    889889#: includes/mstw-tr-utility-functions.php:381
     
    13261326
    13271327#: includes/mstw-tr-roster-table-settings.php:164
    1328 #: includes/mstw-tr-roster-tables-class.php:550
     1328#: includes/mstw-tr-roster-tables-class.php:548
    13291329msgid "Class/Year"
    13301330msgstr ""
     
    14521452msgstr ""
    14531453
    1454 #: includes/mstw-tr-roster-tables-class.php:255
     1454#: includes/mstw-tr-roster-tables-class.php:254
    14551455#: includes/mstw-tr-utility-functions.php:787
    14561456msgid "No player photo found."
    14571457msgstr ""
    14581458
    1459 #: includes/mstw-tr-roster-tables-class.php:410
     1459#: includes/mstw-tr-roster-tables-class.php:409
    14601460msgid "--"
    14611461msgstr ""
    14621462
    1463 #: includes/mstw-tr-roster-tables-class.php:546
     1463#: includes/mstw-tr-roster-tables-class.php:544
    14641464#: includes/mstw-tr-utility-functions.php:382
    14651465msgid "Jersey Number"
    14661466msgstr ""
    14671467
    1468 #: includes/mstw-tr-roster-tables-class.php:549
     1468#: includes/mstw-tr-roster-tables-class.php:547
    14691469msgid "Hometown"
    14701470msgstr ""
    14711471
    1472 #: includes/mstw-tr-roster-tables-class.php:578
     1472#: includes/mstw-tr-roster-tables-class.php:576
    14731473msgid "Sort Roster"
    14741474msgstr ""
    14751475
    1476 #: includes/mstw-tr-roster-tables-class.php:614
     1476#: includes/mstw-tr-roster-tables-class.php:612
    14771477msgid "Roster"
    14781478msgstr ""
    14791479
    1480 #: includes/mstw-tr-settings.php:50
     1480#: includes/mstw-tr-settings.php:49
    14811481msgid "Team Rosters Plugin Settings"
    14821482msgstr ""
    14831483
    1484 #: includes/mstw-tr-settings.php:139
     1484#: includes/mstw-tr-settings.php:138
    14851485msgid "Save Changes"
    14861486msgstr ""
    14871487
    1488 #: includes/mstw-tr-settings.php:141
     1488#: includes/mstw-tr-settings.php:140
    14891489msgid "Reset Defaults"
    14901490msgstr ""
    14911491
    1492 #: includes/mstw-tr-settings.php:157
     1492#: includes/mstw-tr-settings.php:156
    14931493msgid "Roster Table Fields & Columns"
    14941494msgstr ""
    14951495
    1496 #: includes/mstw-tr-settings.php:158 includes/mstw-tr-settings.php:194
     1496#: includes/mstw-tr-settings.php:157 includes/mstw-tr-settings.php:193
    14971497msgid "Roster Tables"
    14981498msgstr ""
    14991499
    1500 #: includes/mstw-tr-settings.php:159 includes/mstw-tr-settings.php:199
     1500#: includes/mstw-tr-settings.php:158 includes/mstw-tr-settings.php:198
    15011501msgid "Roster Table Colors"
    15021502msgstr ""
    15031503
    1504 #: includes/mstw-tr-settings.php:160 includes/mstw-tr-settings.php:204
     1504#: includes/mstw-tr-settings.php:159 includes/mstw-tr-settings.php:203
    15051505msgid "Player Profiles & Galleries"
    15061506msgstr ""
    15071507
    1508 #: includes/mstw-tr-settings.php:189
     1508#: includes/mstw-tr-settings.php:188
    15091509msgid "Data Fields & Columns"
    15101510msgstr ""
    15111511
     1512#: includes/mstw-tr-settings.php:220
     1513msgid "Data Fields & Columns Settings:"
     1514msgstr ""
     1515
    15121516#: includes/mstw-tr-settings.php:221
    1513 msgid "Data Fields & Columns Settings:"
    1514 msgstr ""
    1515 
    1516 #: includes/mstw-tr-settings.php:222
    15171517msgid ""
    15181518"This screen controls the visibility of data fields/columns, the order of "
     
    15211521msgstr ""
    15221522
    1523 #: includes/mstw-tr-settings.php:223
     1523#: includes/mstw-tr-settings.php:222
    15241524msgid ""
    15251525"Note that these settings apply to ALL roster and player displays (tables, "
     
    15281528msgstr ""
    15291529
    1530 #: includes/mstw-tr-settings.php:224 includes/mstw-tr-settings.php:232
    1531 #: includes/mstw-tr-settings.php:258
     1530#: includes/mstw-tr-settings.php:223 includes/mstw-tr-settings.php:231
     1531#: includes/mstw-tr-settings.php:257
    15321532msgid "See the Team Rosters Users Manual for more documentation."
    15331533msgstr ""
    15341534
     1535#: includes/mstw-tr-settings.php:228
     1536msgid "Roster Tables Settings:"
     1537msgstr ""
     1538
    15351539#: includes/mstw-tr-settings.php:229
    1536 msgid "Roster Tables Settings:"
    1537 msgstr ""
    1538 
    1539 #: includes/mstw-tr-settings.php:230
    15401540msgid ""
    15411541"This screen provides controls for fields in the roster tables (mstw-tr-"
     
    15441544msgstr ""
    15451545
    1546 #: includes/mstw-tr-settings.php:231
     1546#: includes/mstw-tr-settings.php:230
    15471547msgid ""
    15481548"Note that these settings apply to ALL roster tables/roster tables v2 on the "
     
    15511551msgstr ""
    15521552
     1553#: includes/mstw-tr-settings.php:238
     1554msgid "Roster Table Color Settings:"
     1555msgstr ""
     1556
    15531557#: includes/mstw-tr-settings.php:239
    1554 msgid "Roster Table Color Settings:"
    1555 msgstr ""
    1556 
    1557 #: includes/mstw-tr-settings.php:240
    15581558msgid ""
    15591559"This screen controls the colors for the roster tables/roster tables version "
     
    15631563
    15641564#. translators: %1$s/%2$s: HTML elements that shouldn't be translated
    1565 #: includes/mstw-tr-settings.php:243
     1565#: includes/mstw-tr-settings.php:242
    15661566#, php-format
    15671567msgid ""
     
    15721572
    15731573#. translators: %1$s/%2$s: HTML elements that shouldn't be translated
    1574 #: includes/mstw-tr-settings.php:246
     1574#: includes/mstw-tr-settings.php:245
    15751575#, php-format
    15761576msgid ""
     
    15791579msgstr ""
    15801580
    1581 #: includes/mstw-tr-settings.php:247
     1581#: includes/mstw-tr-settings.php:246
    15821582msgid ""
    15831583"See the Team Rosters Users Manual for more information on these settings."
    15841584msgstr ""
    15851585
     1586#: includes/mstw-tr-settings.php:254
     1587msgid "Player Profiles & Galleries Settings:"
     1588msgstr ""
     1589
    15861590#: includes/mstw-tr-settings.php:255
    1587 msgid "Player Profiles & Galleries Settings:"
    1588 msgstr ""
    1589 
    1590 #: includes/mstw-tr-settings.php:256
    15911591msgid ""
    15921592"This screen provides controls for some data elements and colors of the "
     
    15941594msgstr ""
    15951595
    1596 #: includes/mstw-tr-settings.php:257
     1596#: includes/mstw-tr-settings.php:256
    15971597msgid ""
    15981598"Note that these settings apply to ALL player profiles and galleries on the "
     
    16021602msgstr ""
    16031603
    1604 #: includes/mstw-tr-settings.php:290
     1604#: includes/mstw-tr-settings.php:289
    16051605msgid "Rpster Table data fields & columns settings reset to defaults."
    16061606msgstr ""
    16071607
    1608 #: includes/mstw-tr-settings.php:297
     1608#: includes/mstw-tr-settings.php:296
    16091609msgid "Roster table settings reset to defaults."
    16101610msgstr ""
    16111611
    1612 #: includes/mstw-tr-settings.php:301
     1612#: includes/mstw-tr-settings.php:300
    16131613msgid "Roster table color settings reset to defaults."
    16141614msgstr ""
    16151615
    1616 #: includes/mstw-tr-settings.php:305
     1616#: includes/mstw-tr-settings.php:304
    16171617msgid "Player profile & gallery settings reset to defaults."
    16181618msgstr ""
    16191619
    1620 #: includes/mstw-tr-settings.php:323
     1620#: includes/mstw-tr-settings.php:322
    16211621msgid "Data fields & columns settings updated."
    16221622msgstr ""
    16231623
    16241624#. translators: %1$s/%2$s: key/value that had error
    1625 #: includes/mstw-tr-settings.php:346 includes/mstw-tr-settings.php:429
     1625#: includes/mstw-tr-settings.php:345 includes/mstw-tr-settings.php:428
    16261626#, php-format
    16271627msgid "Error with %1$s = '%2$s'. Reset to previous value."
    16281628msgstr ""
    16291629
    1630 #: includes/mstw-tr-settings.php:358
     1630#: includes/mstw-tr-settings.php:357
    16311631msgid "Roster tables settings updated."
    16321632msgstr ""
    16331633
    16341634#. translators: $s: key that had error
    1635 #: includes/mstw-tr-settings.php:385 includes/mstw-tr-settings.php:450
     1635#: includes/mstw-tr-settings.php:384 includes/mstw-tr-settings.php:449
    16361636#, php-format
    16371637msgid "Error: %s reset to the default."
    16381638msgstr ""
    16391639
    1640 #: includes/mstw-tr-settings.php:393
     1640#: includes/mstw-tr-settings.php:392
    16411641msgid "Roster table colors settings updated."
    16421642msgstr ""
    16431643
    1644 #: includes/mstw-tr-settings.php:458
     1644#: includes/mstw-tr-settings.php:457
    16451645msgid "Player profiles & galleries settings updated."
    16461646msgstr ""
     
    18521852
    18531853#: 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
    18551856msgid "Player Bio"
    18561857msgstr ""
     
    22062207msgstr ""
    22072208
    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
    22092211msgid "fatal error encountered in single-player"
    22102212msgstr ""
    22112213
    2212 #: theme-templates/single-player.php:78
     2214#: theme-templates/single-player-nonce.php:86
     2215#: theme-templates/single-player.php:79
    22132216msgid "Unspecified"
    22142217msgstr ""
    22152218
    2216 #: theme-templates/single-player.php:79
     2219#: theme-templates/single-player-nonce.php:87
     2220#: theme-templates/single-player.php:80
    22172221msgid "unknown"
    22182222msgstr ""
    22192223
    2220 #: theme-templates/single-player.php:154
     2224#: theme-templates/single-player-nonce.php:162
     2225#: theme-templates/single-player.php:155
    22212226msgid "Update Player"
    22222227msgstr ""
  • team-rosters/trunk/mstw-team-rosters.php

    r3319253 r3351605  
    44 * Plugin URI:   http://shoalsummitsolutions.com
    55 * Description:  Manage & display team rosters. Front end displays include roster tables, player galleries, and single player profiles.
    6  * Version:      4.8.1
     6 * Version:      4.8.2
    77 * Requires at least: 3.4.2
    88 * Requires PHP: 5.6
     
    294294 // filter is now part of the init action - mstw_tr_init()
    295295 // 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
    296299 //
    297300 
     
    301304   
    302305    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           
    311319        }
    312320    } //End: if ( $post->post_type ...
    313      
     321       
    314322    return $single_template;
    315323         
     
    327335 
    328336 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:' );
    330338
    331339    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       
    340352        }   
    341353    }
     354   
     355    mstw_log_msg( "team_taxonomy = $template" );
    342356         
    343357    return $template;
     
    603617    // Check if a custom stylesheet exists in the current theme's directory;
    604618    // 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';
    611624        wp_enqueue_style( 'mstw_tr_custom_style',
    612625                                            $custom_stylesheet_url,
     
    615628                                            'all'
    616629                                             );
     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                                                 );
    617638    }
    618639   
  • team-rosters/trunk/readme.txt

    r3319253 r3351605  
    55Requires at least: 3.4.2
    66Tested up to: 6.8
    7 Stable tag: 4.8.1
     7Stable tag: 4.8.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343== 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)
    4447
    4548== 4.8.1 ==
  • team-rosters/trunk/theme-templates/single-player.php

    r3319253 r3351605  
    3030    //$nonce = mstw_safe_get( 'mstw-tr-nonce', $_GET, '' );
    3131   
    32     if ( isset( $_GET['mstw-tr-nonce'] ) ) {
     32    /*if ( isset( $_GET['mstw-tr-nonce'] ) ) {
    3333        //$safeNonce = mstw_really_safe_get( 'mstw-tr-nonce', $_GET, '' );
    3434        //$safeNonce = $_GET[ 'mstw-tr-nonce' ];
     
    4141        die( esc_html__('fatal error encountered in single-player', 'team-rosters' ) );
    4242    }
     43    */
    4344   
    4445   
Note: See TracChangeset for help on using the changeset viewer.