Custom matchtable
-
Hi Kolja, Please check my small code modifications in matches.php.
It is usable? There is something that would be conflicting laeguemanager?
I’m not a programmer prefer to ask.
Thank you very much for checking.
The result of adjustments see the. picture
https://jnko.eu/wp-content/uploads/matches.png<table class='leaguemanager matchtable' summary='' title='<?php echo __( 'Match Plan', 'leaguemanager' )." ".$league->title ?>'> <tr> <th class='match'><?php _e( 'Match', 'leaguemanager' ) ?></th> <th class='score'><?php _e( 'Score', 'leaguemanager' ) ?></th> <th class='match'><?php _e( 'Match', 'leaguemanager' ) ?></th> </tr> <?php foreach ( $matches AS $match ) : ?> <?php $The_Home_team = "<br class='logos'><img class='home_logo' src='".$teams[$match->home_team]['logo']."' alt='' /></br>".$The_Home_team = $teams[$match->home_team]['title']; ?> <?php $The_Away_team = "<br class='logos'><img class='away_logo' src='".$teams[$match->away_team]['logo']."' alt='' /></br>".$The_Away_team = $teams[$match->away_team]['title']; ?> <?php if ( $leaguemanager->isHomeTeamMatch( $match->home_team, $match->away_team, $teams ) ) : ?> <?php endif; ?> <tr class='<?php echo $match->class ?>'> <td class='match' style='text-align:center; font-size: 15px;'><?php echo $The_Home_team ?> </td> <td class='match' style='text-align:center; margin: 20px; font-size: 20px;'><?php echo $match->homeScore."-".$match->awayScore ?><br /><?php echo '<p style="font-size: 12px; font-style: italic;">'.$match->date." ".$match->start_time.'</p>' ?> </td> <td class='match' style='text-align:center; font-size: 15px;'><?php echo $The_Away_team ?></td> </tr> <?php endforeach; ?> </table>
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Custom matchtable’ is closed to new replies.