grunk
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Shashin] Can't any Google album anymoreThanks for the tips , that works 🙂
Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Baseball widget and templateMerci pour l’auto réponse 🙂
Ca pourra peut être nous servir aussi , club français aussi (duc-baseball.org) on affiche pour le moment que les résultat baseball/softball senior donc en %Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Baseball widget and templateI reply to myself :
To customize the display of the widget and the standing i just edit the standing-*.php in the template folder :
1 – Create the following folder /wp-content/theme/your-theme/leaguemanager
2 – Past the required standing file. (ie : i’m using only compact so i copied standing-compact.php from plugin/leaguemanager/template/
3 – Edit the previous file.In my case i did this change :
<tr> <th class="num"><?php echo _c( 'Pos|Position', 'leaguemanager' ) ?></th> <th class="num"> </th> <?php if ( $league->show_logo ) : ?> <th class="logo"> </th> <?php endif; ?> <th><?php _e( 'Team', 'leaguemanager' ) ?></th> <?php if ( 1 == $league->standings['pld'] ) : ?> <th class="num">G</th> <?php endif; ?> <th class="num">W</th> <th class="num">L</th> <th class="num">%</th> </tr> <?php if ( $teams ) : ?> <?php foreach( $teams AS $team ) : ?> <tr class='<?php echo $team->class ?>'> <td class='rank'><?php echo $team->rank ?></td> <td class="num"><?php echo $team->status ?></td> <?php if ( $league->show_logo ) : ?> <td class="logo"> <?php if ( $team->logo != '' ) : ?> <img src='<?php echo $team->logoURL ?>' alt='<?php _e('Logo','leaguemanager') ?>' title='<?php _e('Logo','leaguemanager')." ".$team->title ?>' /> <?php endif; ?> </td> <?php endif; ?> <td><?php echo $team->title ?></td> <?php if ( 1 == $league->standings['pld'] ) : ?> <td class='num'><?php echo $team->done_matches ?></td> <td class='num'><?php echo $team->won_matches ?></td> <td class='num'><?php echo $team->lost_matches ?></td> <td class='num'><?php echo round($team->won_matches/$team->done_matches,3) ?></td> <?php endif; ?> </tr>That’s it ! You can now enjoy your new standings and widget 🙂
Viewing 3 replies - 1 through 3 (of 3 total)