Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Templates
League Game
league_game_data.tpl.php
, prints the result of a game, if it is a teaser, shows different view.
<?php
<div class="league_game-body league_game-body-<?php print $view_mode ?>">
<?php if ($view_mode == 'teaser'): ?>
<p><span class="team_a"><?php print $team_a ?></span> - <span class="team_b"><?php print $team_b ?></span></p>
<?php else: ?>
<table>
<thead>
<th><?php print $team_a ?></th>
<th><?php print $team_b ?></th>
</thead>
<tr>
<td><span class="band-left"> <?php print $emblem_a ?></span><span class="score-<?php print $score_a ?>"><?php print $score_a ?></span></td>
<td><span class="score-<?php print $score_b ?>"><?php print $score_b ?></span><span class="band-right"><?php print $emblem_b ?></span></td>
</tr>
</table>
<?php endif; ?>
</div>
?>
league_game.tpl.php
, print a League Game entity.
<?php
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>>
<a href="<?php print $url; ?>"><?php print $title; ?></a>
</h2>
<?php endif; ?>
<div class="content"<?php print $content_attributes; ?>>
<?php
print render($content);
?>
</div>
</div>
?>
League Person
league_person.tpl.php
, print a League Person entity.
<?php
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>>
<a href="<?php print $url; ?>"><?php print $title; ?></a>
</h2>
<?php endif; ?>
<div class="content"<?php print $content_attributes; ?>>
<?php
print render($content);
?>
</div>
</div>
?>
Events
league_event.tpl.php
, print a list of events.
<?php
<div id="event-game-<?php print render($game); ?>-<?php print render($team); ?>" class="league-event-stream league-event-stream-<?php print render($team); ?>">
<h4><?php print render($label); ?></h4>
<dl class="content">
<?php foreach ($items as $delta => $item): ?>
<?php print render($item); ?>
<?php endforeach; ?>
</dl>
</div>
?>
league_event_data.tpl.php
, print the single event on list of events.
<?php
<dt class="<?php print $icon ?>"><?php print $minute ?></dt>
<dd> <?php print $player ?> </dd>
?>
Minutes
league_minute.tpl.php
, print a list of minutes.
<?php
<?php if (!$empty): ?>
<div id="minute-game-<?php print render($game); ?>" class="league-minute-stream">
<h3><?php print render($label); ?></h3>
<dl class="content">
<?php foreach ($items as $delta => $item): ?>
<?php print render($item); ?>
<?php endforeach; ?>
</dl>
</div>
<?php endif; ?>
?>
league_minute_data.tpl.php
, print a single minute for the list of minutes.
<?php
<dt class="<?php print $icon ?>"><?php print $minute ?></dt>
<dd> <?php print $comment ?> </dd>
?>