UBC Okanagan

Saskatchewan

Sun, Sep. 22, 2019
2:00 PM CST

Live statistics will be available at the start of the event in:


Overview

UBC Okanagan

Team Record Conf. Record Last Game
0-0 0-0 ${visitorStats.lastGame.APResult} at ${visitorStats.lastGame.opponent.name}

Saskatchewan

Team Record Conf. Record Last Game
0-0 0-0 ${homeStats.lastGame.APResult} at ${homeStats.lastGame.opponent.name}

Team Comparison

Shots-per Game

0.0
0.0

SOG percentage

0.0
0.0

Saves per game

0.0
0.0

Save percentage

.000
.000

0.00GPG0.00
0.00GAA0.00
UBC Okanagan (based on 0 games)
Saskatchewan (based on 0 games)

Key Contributors


Points

Tyler Dhillon
10
Ekior-Dourde Mieyefa
Christian Taylor
10
Fraser McLeod

Goals

Tyler Dhillon
10
Ekior-Dourde Mieyefa
Sam McDonald
10
Marcus Baxter

Assists

Christian Taylor
10
Ekior-Dourde Mieyefa
Tyler Dhillon
00
Marcus Baxter

Goals Against Average

There was a problem with a Velocity script
Pagestatcrew-soxml-template
ErrorError invoking method 'get(java.lang.Integer)' in java.util.ArrayList at statcrew-soxml-template[line 404, column 90]
Page source:
1: #if ($stats.view == "pt")
2:     $website.include("options")
3: 
4:     ## This is for testability purposes.
5:     #set ($pregame = $stats.pregame)
6:     #set ($startTime = $document.getRootElement().valueOf("network/@startTime"))
7:     #if ($document.getRootElement().valueOf("network/@tba") == 'Y')
8:         #set ($tba = true)
9:     #else
10:         #set ($tba = false)
11:     #end
12:     #set ($location = $document.getRootElement().valueOf("network/@location"))
13:     #set ($localDate = $document.getRootElement().valueOf("network/@localDate"))
14:     #set ($localTime = $document.getRootElement().valueOf("network/@localTime"))
15: 	#set ($hasVideo = false)
16: 	#if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
17: 		#set ($hasVideo = true)
18: 	#end
19:     #if ($location != '')
20:         #set ($neutral = true)
21:     #else
22:         #set ($neutral = false)
23:     #end
24:     #if ($request.getParameter("paused") == 'y')
25:         #set ($paused = true)
26:     #else
27:         #set ($paused = false)
28:     #end
29: 
30:     #if ($pregame)
31:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
32:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
33: 
34:         #if ($!options.get("primetime_preview_hide").equalsIgnoreCase("hide"))
35:             #set ($shouldStatsShow = false)
36:         #else
37:             #set ($shouldStatsShow = $preview.shouldStatsShow($homeTeamId,$visitorTeamId))
38:         #end
39:     #end
40: 
41:     <head>
42:         <script type="text/javascript" src='$website.cdn("/info/jquery-2.1.1.js")'></script>
43:         <script type="text/javascript" src='$website.cdn("/info/notifications/jquery.noty.packaged.min.js")'></script>
44:         <script type="text/javascript" src='$website.cdn("/info/dataTables/js/jquery.dataTables.js")'></script>
45:         <script type="text/javascript" src='$website.cdn("/info/momentjs/moment.js")'></script>
46:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/full_screen_api.js")'></script>
47:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/flipclock.min.js")'></script>
48: 
49:         $website.addCss($website.cdn("/info/dataTables/css/jquery.dataTables.css"))
50:         $website.addCss($website.cdn("/info/primetime3/css/flipclock.css"))
51: 
52:         <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
53: 
54:         <script type="text/javascript">var jQuery_2_1 = $.noConflict(true);</script>
55:         <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
56:         <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
57: 
58:         <script src="/info/primetime3/js/highcharts.js"></script>
59:         <script src="/info/primetime3/js/highcharts-more.js"></script>
60:         <script src="/info/primetime3/js/solid-gauge.js"></script>
61: 
62:         <script type="text/javascript" src="/info/primetime3/js/pt3-preview-charts.js"></script>
63: 
64:         $website.addCss("/info/primetime3/css/pt3-styles.css")
65:         $website.addCss("/info/primetime3/css/pt3-soccer-icons.css")
66:         $website.addCss("/info/primetime3/css/pt3-field-hockey-icons.css")
67: 
68:         $website.addCss("/info/primetime3/css/pt3-responsive.css")
69: 
70:         <script type="text/javascript" src="/info/primetime3/js/restive.js"></script>
71:         <script type="text/javascript" src="/info/primetime3/js/pt3-restive.js"></script>
72: 
73:         <script type="text/javascript">
74:             var conf = new Object();
75:             conf.locale = '${locale}';
76:             conf.videoProvider = '${videoProvider}';
77:             conf.videoId = '${videoId}';
78:             conf.eventId = '$document.valueOf("sogame/network/@eventId")';
79:             conf.eventIdHashCode = '$eventIdHashCode';
80:             conf.visitorTeamLogo = '$stats.visitorTeamLogo';
81:             conf.homeTeamLogo = '$stats.homeTeamLogo';
82:             conf.visitorTeamColor = '#121212';
83:             conf.homeTeamColor = '#6D6D6D';
84:             conf.startTime = '$startTime';
85:             conf.pregame = $pregame;
86:             conf.tba = $tba;
87:             conf.localDate = '$localDate';
88:             conf.localTime = '$localTime';
89:             conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
90:             conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
91:             conf.currentDate = new Date();
92:             conf.statusFinal = $stats.final;
93:             conf.neutral = $neutral;
94:             conf.paused = $paused;
95: 
96:             conf.visitorTeamLighterColor = $.fn.increase_brightness(conf.visitorTeamColor, 30);
97:             conf.homeTeamLighterColor = $.fn.increase_brightness(conf.homeTeamColor, 30);
98:         </script>
99: 
100:         <script type="text/javascript" src="/info/primetime3/js/pt3-boxscore-client.js"></script>
101:         <script type="text/javascript" src="/info/primetime3/js/pt3-soc-template.js"></script>
102:     </head>
103: 
104:     #if ($pregame && !$shouldStatsShow)
105:         <div id="primetime-wrapper" class="primetime-pre-game primetime-soccer primetime-wrapper clearfix">
106:             <div class="primetime-overflow clearfix">
107:                 <div id="primetime-header" class="grid-row">
108:                     <div class="grid-col grid-col-hdr">
109: 
110:                         <div class="pt-header clearfix">
111:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
112:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
113:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
114:                             </div>
115: 
116:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
117:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
118:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
119:                             </div>
120: 
121:                             <div class="pt-match-scoreboard clearfix">
122:                                 <div class="pt-mtach-info pt-pregame">
123:                                     <center>
124:                                         <div>
125:                                             $localDate <br>
126:                                             #if ($tba)
127:                                                 TBA
128:                                             #else
129:                                                 $localTime
130:                                             #end
131:                                         </div>
132:                                     </center>
133:                                 </div>
134:                             </div>
135:                         </div>
136:                     </div>
137:                 </div>
138:                 <div class="grid-row-container clearfix">
139:                     <div class="grid-row">
140:                         <div class="content">
141:                             <div class="pt-last-play clearfix" style="display: none">
142:                                 <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
143:                                     This event doesn't have a set start time, but PrimeTime will be available once the event begins.
144:                                 </span>
145:                             </div>
146:                             <div class="text">
147:                                 <h3>
148:                                     Live statistics will be available at the start of the event in:
149:                                 </h3>
150:                                 <center>
151:                                     <div class="clock"></div><br/>
152:                                     #if ($tba)
153:                                         Days
154:                                     #end
155:                                 </center>
156:                             </div>
157:                         </div>
158:                     </div>
159:                     <div class="pt-game-info grid-row clearfix">
160:                         <div class="pt-tabs-panes clearfix">
161:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
162:                                 <div id="divGameInformation" class="grid-row">
163:                                     <div class="grid-col grid-col-gi grid-col1">
164:                                         <h3 class="grid-title">
165:                                             Game Information
166:                                         </h3>
167:                                         <div class="grid-content clearfix">
168:                                             <div class="pt-game-information clearfix">
169:                                                 <div class="pt-row clearfix">
170:                                                     <center>
171:                                                         <div class="game-location pt-col">
172:                                                         <span class="date">
173:                                                             $localDate<br />
174:                                                             #if ($tba)
175:                                                                 TBA
176:                                                             #else
177:                                                                 $localTime
178:                                                             #end
179:                                                         </span>
180:                                                             <h3>Date & Time</h3>
181:                                                         </div>
182:                                                         #if ($location != '')
183:                                                             <div class="game-venue pt-col">
184:                                                         <span class="venue">
185:                                                             $location<br />
186:                                                             (Neutral)
187:                                                         </span>
188:                                                                 <h3>Location</h3>
189:                                                             </div>
190:                                                         #end
191:                                                     </center>
192:                                                 </div>
193:                                             </div>
194:                                         </div>
195:                                     </div>
196:                                 </div>
197:                             </div>
198:                         </div>
199:                     </div>
200:                 </div>
201: 
202:                 <div id="primetime-footer" class="grid-row">
203:                     <div class="grid-col grid-col-ftr">
204:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
205:                     </div>
206:                 </div>
207:             </div>
208:             ## GENERAL INFORMATION
209:         </div>
210:     #elseif ($pregame && $shouldStatsShow)
211:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
212:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
213: 
214:         #set ($teamStats = ["sha", "sogpt", "svpg", "svpt", "gfa", "gaa"])
215:         #set ($teamStatsLabels = {"sha": "Shots-per Game", "sogpt": "SOG percentage", "svpg": "Saves per game", "svpt": "Save percentage", "gfa":"GPG", "gaa": "GAA"})
216:         #set ($topStats = ["p", "g", "a", "gaa"])
217: 
218:         #set ($visitorStats = $preview.getTeam($visitorTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
219:         #set ($homeStats = $preview.getTeam($homeTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
220: 
221:         <div id="primetime-wrapper" class="primetime-pre-game primetime-soccer clearfix">
222:             <div class="primetime-overflow clearfix">
223:                 <div id="primetime-header" class="grid-row">
224:                 <div class="grid-col grid-col-hdr">
225:                     <div class="pt-header clearfix">
226:                         <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
227:                             <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
228:                             <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
229:                         </div>
230: 
231:                         <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
232:                             <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
233:                             <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
234:                         </div>
235: 
236:                         <div class="pt-match-scoreboard clearfix">
237:                             <div class="pt-mtach-info pt-pregame">
238:                                 <center>
239:                                     <div>
240:                                         $localDate <br>
241:                                         #if ($tba)
242:                                             TBA
243:                                         #else
244:                                             $localTime
245:                                         #end
246:                                     </div>
247:                                 </center>
248:                             </div>
249:                         </div>
250:                     </div>
251:                 </div>
252:             </div>
253:                 <div class="grid-row-container clearfix">
254:                     <div class="grid-row preview">
255:                         <div class="content">
256:                             <div class="pt-last-play clearfix" style="display: none">
257:                                 <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
258:                                     This event doesn't have a set start time, but PrimeTime will be available once the event begins.
259:                                 </span>
260:                             </div>
261:                             <div class="text">
262:                                 <h3>
263:                                     Live statistics will be available at the start of the event in:
264:                                 </h3>
265:                                 <center>
266:                                     <div class="clock"></div><br/>
267:                                     #if ($tba)
268:                                         Days
269:                                     #end
270:                                 </center>
271:                             </div>
272:                         </div>
273:                     </div>
274: 
275:                     <!-- Team Overview -->
276:                     <div class="grid-row pt-overview">
277:                         <h2>Overview</h2>
278:                         <div class="grid-col grid-col-e grid-col2 background-black">
279:                             <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
280:                             <div class="container clearfix pt-live-action">
281:                                 <table>
282:                                     <thead>
283:                                     <tr>
284:                                         <th>Team Record</th>
285:                                         <th>Conf. Record</th>
286:                                         <th>Last Game</th>
287:                                     </tr>
288:                                     </thead>
289:                                     <tbody>
290:                                     <tr>
291:                                         <td>${visitorStats.overallRecord}</td>
292:                                         <td>${visitorStats.conferenceRecord}</td>
293:                                         <td style="text-align: center">
294:                                             ${visitorStats.lastGame.APResult}
295:                                             <span>
296:                                             #if ($visitorStats.lastGame.neutralSite.length() > 0 || $visitorStats.lastGame.home)
297:                                                 vs.
298:                                             #else
299:                                                 at
300:                                             #end
301:                                                 ${visitorStats.lastGame.opponent.name}
302:                                         </span>
303:                                         </td>
304:                                     </tr>
305:                                     </tbody>
306:                                 </table>
307:                             </div>
308:                             <br />
309:                         </div>
310:                         <div class="grid-col grid-col-e grid-col2 background-gray">
311:                             <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
312:                             <div class="pt-live-action">
313:                                 <table>
314:                                     <thead>
315:                                     <tr>
316:                                         <th>Team Record</th>
317:                                         <th>Conf. Record</th>
318:                                         <th>Last Game</th>
319:                                     </tr>
320:                                     </thead>
321:                                     <tbody>
322:                                     <tr>
323:                                         <td>${homeStats.overallRecord}</td>
324:                                         <td>${homeStats.conferenceRecord}</td>
325:                                         <td style="text-align: center">
326:                                             ${homeStats.lastGame.APResult}
327:                                             <span>
328:                                             #if ($homeStats.lastGame.neutralSite.length() > 0 || $homeStats.lastGame.home)
329:                                                 vs.
330:                                             #else
331:                                                 at
332:                                             #end
333:                                                 ${homeStats.lastGame.opponent.name}
334:                                         </span>
335:                                         </td>
336:                                     </tr>
337:                                     </tbody>
338:                                 </table>
339:                             </div>
340:                             <br />
341:                         </div>
342:                     </div>
343: 
344:                     <!-- Team Comaprison -->
345:                     <div class="grid-row">
346:                         <div class="grid-col team-compare">
347:                             <h2>Team Comparison</h2>
348: 
349:                             <div class="charts-line">
350:                                 <div class="charts-inner">
351:                                     #foreach ($i in [0..3])
352:                                         #set ($key = $teamStats[$i])
353:                                         <div class="chart-container">
354:                                             <h3>${teamStatsLabels[$key]}</h3>
355:                                             <div class="stats-chart ts-$key"></div>
356:                                             <div class="stats-values">
357:                                                 #set ($visValue = ${formatter.formatNumber($visitorStats.teamStats[$key], $formats.get($key))})
358:                                                 #set ($homeValue = ${formatter.formatNumber($homeStats.teamStats[$key], $formats.get($key))})
359:                                                 <div class="stats-value visitor">$visValue</div>
360:                                                 <div class="stats-value home">$homeValue</div>
361:                                             </div>
362:                                         </div>
363:                                     #end
364:                                 </div>
365:                             </div>
366: 
367:                             <br/>
368: 
369:                             <div class="game-leaders">
370:                                 <div class="top">
371:                                     <div class="charts">
372:                                         #foreach ($i in [4..5])
373:                                             #set ($key = $teamStats[$i])
374:                                             #set ($visValue = ${formatter.formatNumber($visitorStats.teamStats[$key], $formats.get($key))})
375:                                             #set ($homeValue = ${formatter.formatNumber($homeStats.teamStats[$key], $formats.get($key))})
376:                                                 <div class="chart">
377:                                                     <div class="stats-chart visitor $key"></div>
378:                                                     <div class="label"><span>$visValue</span><span class="title">${teamStatsLabels[$key]}</span><span>$homeValue</span></div>
379:                                                     <div class="stats-chart home $key"></div>
380:                                                 </div>
381:                                         #end
382:                                     </div>
383:                                 </div>
384:                             </div>
385:                             <div class="legend grid-col clearfix">
386:                                 <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
387:                                 <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
388:                             </div>
389:                         </div>
390:                     </div>
391: 
392:                     <!-- Key Contributors -->
393:                     <div class="grid-row">
394:                         <div class="grid-col grid-col1 game-leaders grid-col">
395:                             <h2>Key Contributors</h2>
396:                             #macro (gameLeaders $category $label $visitorPlayers $homePlayers $quantityPlayers $displayFormat)
397:                                 #set ($quantityPlayers = $quantityPlayers - 1)
398:                                 <div class="game-leaders">
399:                                     <br/>
400:                                     <h3>$label</h3>
401:                                     <div class="grid-col top1">
402:                                         <div class="grid-col charts">
403:                                             #foreach ($i in [0..$quantityPlayers])
404:                                                 #set ($visitorTopPlayer = $visitorPlayers[$i])
405:                                                 #set ($homeTopPlayer = $homePlayers[$i])
406:                                                 <div class="grid-col chart">
407:                                                     <div class="stats-player visitor">
408:                                                         <div class="player-name">${visitorTopPlayer.firstName} ${visitorTopPlayer.lastName}</div>
409:                                                         <div class="stats-chart visitor ${category}-top${i}"></div>
410:                                                     </div>
411:                                                     <!-- Using the format '#' directly since the wyg has set 0.0 as format on the stats metadata object -->
412:                                                     <div class="label"><span>${formatter.formatNumber($visitorTopPlayer.stats[$category], $displayFormat)}</span><span class="title"></span><span>${formatter.formatNumber($homeTopPlayer.stats[$category], $displayFormat)}</span></div>
413:                                                     <div class="stats-player home">
414:                                                         <div class="player-name">${homeTopPlayer.firstName} ${homeTopPlayer.lastName}</div>
415:                                                         <div class="stats-chart home ${category}-top${i}"></div>
416:                                                     </div>
417:                                                 </div>
418:                                             #end
419:                                         </div>
420:                                     </div>
421:                                 </div>
422:                             #end
423: 
424:                             #gameLeaders('p' 'Points' $visitorStats.topStats['p'] $homeStats.topStats['p'] 2 $formats.get('p'))
425:                             #gameLeaders('g' 'Goals' $visitorStats.topStats['g'] $homeStats.topStats['g'] 2 $formats.get('g'))
426:                             #gameLeaders('a' 'Assists' $visitorStats.topStats['a'] $homeStats.topStats['a'] 2 $formats.get('a'))
427:                             #gameLeaders('gaa' 'Goals Against Average' $visitorStats.topStats['gaa'] $homeStats.topStats['gaa'] 1 $formats.get('gaa'))
428: 
429:                             <div class="legend grid-col clearfix">
430:                                 <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
431:                                 <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
432:                             </div>
433:                         </div>
434:                     </div>
435: 
436:                     <!-- Game Information -->
437:                     <div class="pt-game-info grid-row clearfix">
438:                         <div class="pt-tabs-panes clearfix">
439:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
440:                                 <div id="divGameInformation" class="grid-row">
441:                                     <div class="grid-col grid-col-gi grid-col1">
442:                                         <h2 class="grid-title">
443:                                             Game Information
444:                                         </h2>
445:                                         <div class="grid-content clearfix">
446:                                             <div class="pt-game-information clearfix">
447:                                                 <div class="pt-row clearfix">
448:                                                     <center>
449:                                                         <div class="game-location pt-col">
450:                                                                 <span class="date">
451:                                                                     $localDate<br />
452:                                                                     #if ($tba)
453:                                                                         TBA
454:                                                                     #else
455:                                                                         $localTime
456:                                                                     #end
457:                                                                 </span>
458:                                                             <h3>Date & Time</h3>
459:                                                         </div>
460:                                                         #if ($location != '')
461:                                                             <div class="game-venue pt-col">
462:                                                                 <span class="venue">
463:                                                                     $location<br />
464:                                                                     (Neutral)
465:                                                                 </span>
466:                                                                 <h3>Location</h3>
467:                                                             </div>
468:                                                         #end
469:                                                     </center>
470:                                                 </div>
471:                                             </div>
472:                                         </div>
473:                                     </div>
474:                                 </div>
475:                             </div>
476:                         </div>
477:                     </div>
478:                 </div>
479: 
480:                 <div id="primetime-footer" class="grid-row">
481:                 <div class="grid-col grid-col-ftr">
482:                     <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
483:                 </div>
484:             </div>
485:             </div>
486:             <script type="text/javascript">
487:             (function($) {
488:                 $(document).ready(function() {
489:                     Highcharts.setOptions({
490:                         colors: [conf.homeTeamColor, conf.visitorTeamColor]
491:                     });
492: 
493:                     #foreach ($i in [0..3])
494:                         #set ($key = $teamStats[$i])
495:                         #set ($visValue = ${visitorStats.teamStats[$key]})
496:                         #set ($homeValue = ${homeStats.teamStats[$key]})
497:                         $.fn.buildDonutChart('.stats-chart.ts-$key', $visValue, $homeValue);
498:                     #end
499: 
500:                     #foreach ($i in [4..5])
501:                         #set ($key = $teamStats[$i])
502:                         #set ($visValue = ${visitorStats.teamStats[$key]})
503:                         #set ($homeValue = ${homeStats.teamStats[$key]})
504:                         $.fn.buildVisitorBarChart('.top .visitor.$key', $visValue, 4.0, conf.visitorTeamLighterColor);
505:                         $.fn.buildHomeBarChart('.top .home.$key', $homeValue, 4.0, conf.homeTeamLighterColor);
506:                     #end
507: 
508:                     // Key Contributors
509:                     #macro (playerStatsScript $category $visitorPlayers $homePlayers $visitorLimit $homeLimit $playersLimit)
510:                         #set ($playersLimit = $playersLimit - 1)
511:                         #foreach ($i in [0..$playersLimit])
512:                             #set ($visitorTopPlayer = $visitorPlayers[$i])
513:                             #set ($homeTopPlayer = $homePlayers[$i])
514:                             $.fn.buildVisitorBarChart('.${category}-top${i}.visitor', ${visitorTopPlayer.stats[$category]}, $visitorLimit, conf.visitorTeamLighterColor);
515:                             $.fn.buildHomeBarChart('.${category}-top${i}.home', ${homeTopPlayer.stats[$category]}, $homeLimit, conf.homeTeamLighterColor);
516:                         #end
517:                     #end
518: 
519:                     #playerStatsScript('p' $visitorStats.topStats['p'] $homeStats.topStats['p'] 55 55 2)
520:                     #playerStatsScript('g' $visitorStats.topStats['g'] $homeStats.topStats['g'] 25 25 2)
521:                     #playerStatsScript('a' $visitorStats.topStats['a'] $homeStats.topStats['a'] 25 25 2)
522:                     #playerStatsScript('gaa' $visitorStats.topStats['gaa'] $homeStats.topStats['gaa'] 15 15 1)
523: 
524:                     $('.stats-value.visitor').css("background-color", conf.visitorTeamColor);
525:                     $('.stats-value.visitor.light').css("background-color", conf.visitorTeamLighterColor);
526:                     $('.stats-value.home').css("background-color", conf.homeTeamColor);
527:                     $('.stats-value.home.light').css("background-color", conf.homeTeamLighterColor);
528:                 });
529:             })(jQuery);
530:         </script>
531:         </div>
532:     #else
533:         <div id="primetime-wrapper" class="primetime-soccer primetime-wrapper clearfix">
534: 
535:             <div class="primetime-overflow clearfix">
536:                 ## HEADER
537:                 <div id="primetime-header" class="grid-row">
538:                     <div class="grid-col grid-col-hdr">
539: 
540:                         <div class="primetime-screen-controls clearfix"> 
541:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a> 
542:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a> 
543:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
544:                         </div>
545: 
546:                         <div class="pt-header clearfix">
547: 
548:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
549:                                     class="team-record visitor-team-record"></span>
550:                                 <h3 class="team-name visitor-team-name"></h3>
551:                             </div>
552: 
553:                             <div class="pt-team pt-team-home home-team-color">
554:                                 <span class="team-record home-team-record"></span>
555:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
556:                                 <h3 class="team-name home-team-name"></h3>
557:                             </div>
558: 
559:                             <div class="pt-match-scoreboard clearfix">
560:                                 <p class="team-score visitor-team-score"></p>
561:                                 <p class="team-score home-team-score"></p>
562: 
563:                                 <div class="pt-mtach-info">
564:                                     <span class="time scoreboard-time"></span><br />
565:                                     <span class="period scoreboard-period" style="width: 100%"></span>
566:                                 </div>
567: 
568:                             </div>
569: 
570:                             <div id="pt-page-nav" class="pt-page-nav">
571: 								<a href="#" class="pt-menu">Menu</a>
572:                             	<ul class="clearfix">
573:                                     <li><a href="#live-action-title" data-stroke="1" data-id="#live-action-title">Live Action</a></li>
574:                             		<li><a href="#line-score-title" data-stroke="2" data-id="#line-score-title">Line Score</a></li>
575:                             		## <li><a href="#social-sharing-title" data-id="social-sharing-title">Social Sharing</a></li>
576:                             		<li><a href="#scoring-plays-title" data-stroke="3" data-id="#scoring-plays-title" data-tab-id="#stats-tabs">Scoring Plays</a></li>
577:                             		<li><a href="#team-comparison-title" data-stroke="4" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
578:                             		<li><a href="#individual-stats-title" data-stroke="5" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
579:                             		<li><a href="#game-info-title" data-stroke="6" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
580:                             		<li><a href="#play-by-play-title" data-stroke="7" data-id="#play-by-play-title" data-tab-id="#pbp-tabs">Play by Play</a></li>
581:                             	</ul>
582:                             </div>
583: 
584:                         </div>
585: 
586:                     </div>
587:                 </div>
588:                 ## PRIMETIME HEADER 
589: 
590: 				## GRID ROW CONTAINER
591:                 <div class="grid-row-container clearfix">
592: 
593:                 ## GRID ROW
594: 				#set ($gridRowClass = "grid-row no-video")
595: 				#if ($hasVideo)
596: 					#set ($gridRowClass = "grid-row")
597: 				#end
598: 				
599:                 <div id="firstPanelRow" class="$gridRowClass">
600: 
601: 				#set ($gridCounter = 0)
602: 				
603: 				#if ($hasVideo)	
604: 					#set ($gridCounter = $gridCounter + 1)
605:                     <div class="grid-col grid-col-v grid-col${gridCounter}">
606:                         <h3 id="video-field-title" class="grid-title">Broadcast<span class="close">x</span></h3>
607:                         <div class="grid-content clearfix">
608:                             <div class='embed-container'>
609: 
610:                             </div>
611:                         </div>
612:                         ## GRID CONTENT
613:                     </div>
614:                     ## VIDEO COL
615: 				#end
616: 
617: 					#set ($gridCounter = $gridCounter + 1)
618:                     <div class="grid-col grid-col-cd grid-col${gridCounter}">
619:                         <h3 id="live-action-title" class="grid-title">
620:                             Live Action<span class="close">x</span>
621:                         </h3>
622:                         <div class="grid-content clearfix">
623:                             <div class="clearfix">
624:                                 <div class="container clearfix pt-live-action">
625:                                     <table>
626:                                         <thead>
627:                                             <tr>
628:                                                 <th>Time</th>
629:                                                 <th>Action</th>
630:                                                 <th>Plays</th>
631:                                             </tr>
632:                                         </thead>
633:                                         <tbody>
634:                                         </tbody>
635:                                     </table>
636:                                 </div>
637:                             </div>
638:                         </div>
639:                     </div>
640:                 </div>
641: 
642: ## COMMENT THE TIMELINE AND TIMEPLAY CODE
643: #*
644:                 <div class="grid-row">
645:                     <div class="grid-col pt-timeline grid-col-tl grid-col3">
646:                         <h3 id="timeline-title" class="grid-title">
647:                             Timeline<span class="close">x</span>
648:                         </h3>
649:                         <div class="grid-content clearfix ">
650:                             <div class="pt-timeline-logos">
651:                                 <img class="team-logo visitor-team-logo" /><br />
652:                                 <img class="team-logo home-team-logo" />
653:                             </div>
654:                             <div class="pt-timeline-times">
655:                             </div>
656:                         </div>
657:                     </div>
658:                 </div>
659: 
660:                 <div class="grid-row">
661:                     <div class="grid-col pt-timeline-plays grid-col-tp grid-col4">
662: 						<h3 id="timeline-plays-title" class="grid-title">
663:                     		Timeline Plays<span class="close">x</span>
664:                     	</h3>
665:                         <div class="grid-content clearfix">
666:                         </div>
667:                     </div>
668:                 </div>
669: *#
670:                 <div class="grid-row">
671: 					#set ($gridCounter = $gridCounter + 1)
672:                     <div class="grid-col grid-col-bs grid-col${gridCounter}">
673:                         <h3 id="line-score-title" class="grid-title">
674:                             Line Score<span class="close">x</span>
675:                         </h3>
676:                         <div class="grid-content clearfix">
677:                             <div class="pt-line-score clearfix">
678:                                 <table id="scoreByPeriod">
679:                                     <thead>
680:                                         <tr>
681:                                             <th></th>
682:                                         </tr>
683:                                     </thead>
684:                                     <tbody>
685:                                         <tr class="visitor">
686:                                             <td><img src="" alt=""
687:                                                 class="team-logo visitor-team-logo" />
688:                                                 <span class="team-name visitor-team-name"></span></td>
689:                                         </tr>
690:                                         <tr class="home">
691:                                             <td><img src="" alt=""
692:                                                 class="team-logo home-team-logo" />
693:                                                 <span class="team-name home-team-name"></span></td>
694:                                         </tr>
695:                                     </tbody>
696:                                 </table>
697: 
698:                             </div>
699:                         </div>
700:                         ## GRID CONTENT
701:                     </div>
702:                     ## LINE SCORE
703: 					
704: 					## SOCIAL
705: 					#*
706: 					#set ($gridCounter = $gridCounter + 1)
707:                     <div class="grid-col grid-col-ls grid-col${gridCounter}">
708:                         <h3 id="social-sharing-title" class="grid-title">
709:                             Social Sharing<span class="close">x</span>
710:                         </h3>
711:                         <div class="grid-content clearfix">
712:                             <div class="pt-last-score clearfix">
713: 
714:                             </div>
715:                         </div>
716:                         ## GRID CONTENT
717:                     </div>
718: 					*#
719:                     ## SOCIAL
720:                 </div>
721:                 ## GRID ROW ## TABS
722:                 <div class="pt-game-info clearfix">
723: 
724:                     <ul class="pt-tabs clearfix">
725:                         <li class="current"><a href="#stats-tabs">Statistics</a></li>
726:                         <li><a href="#pbp-tabs">Play By Play</a></li>
727:                     </ul>
728: 
729:                     <div class="pt-tabs-panes clearfix">
730:                         <div id="stats-tabs" class="pt-tabs-pane clearfix">
731: 
732:                             ## GRID ROW
733:                             <div class="grid-row">
734: 								#set ($gridCounter = $gridCounter + 1)
735:                                 <div class="grid-col grid-col-sp grid-col${gridCounter}">
736:                                     <h3 id="scoring-plays-title" class="grid-title">
737:                                         Scoring Plays<span class="close">x</span>
738:                                     </h3>
739:                                     <div class="grid-content clearfix">
740:                                         <div id="scoringPlayList" class="pt-scoring-plays clearfix">
741:                                         </div>
742:                                     </div>
743:                                     ## GRID CONTENT
744: 
745:                                 </div>
746:                                 ## SCRING PLAY
747:                             </div>
748:                             ## GRID ROW ##GRID ROW
749:                             <div class="grid-row">
750: 								#set ($gridCounter = $gridCounter + 1)
751:                                 <div class="grid-col grid-col-tc grid-col${gridCounter}">
752:                                     <h3 id="team-comparison-title" class="grid-title">
753:                                         Team Comparison<span class="close">x</span>
754:                                     </h3>
755:                                     <div class="grid-content clearfix">
756:                                         <div class="pt-team-compare clearfix">
757:                                             <table id="teamCompare">
758:                                                 <thead>
759:                                                     <tr>
760:                                                         <th><img src="" alt="" class="team-logo visitor-team-logo" /><br />
761:                                                             <span class="team-name visitor-team-name"></span></th>
762:                                                         <th> <span></span></th>
763:                                                         <th><img src="" alt="" class="team-logo home-team-logo" /><br />
764:                                                             <span class="team-name home-team-name"></span></th>
765:                                                     </tr>
766:                                                 </thead>
767: 
768:                                                 <tbody>
769:                                                     <tr class="stats-shots">
770:                                                         <td></td>
771:                                                         <td class="stats-cat">Shots</td>
772:                                                         <td></td>
773:                                                     </tr>
774: 
775:                                                     <tr class="stats-sog">
776:                                                         <td></td>
777:                                                         <td class="stats-cat">SOG</td>
778:                                                         <td></td>
779:                                                     </tr>
780: 
781:                                                     <tr class="stats-saves">
782:                                                         <td></td>
783:                                                         <td class="stats-cat">Saves</td>
784:                                                         <td></td>
785:                                                     </tr>
786: 
787:                                                     <tr class="stats-corners">
788:                                                         <td></td>
789:                                                         <td class="stats-cat">Corners</td>
790:                                                         <td></td>
791:                                                     </tr>
792: 
793:                                                     <tr class="stats-offsides">
794:                                                         <td></td>
795:                                                         <td class="stats-cat">Offsides</td>
796:                                                         <td></td>
797:                                                     </tr>
798: 
799:                                                     <tr class="stats-fouls">
800:                                                         <td></td>
801:                                                         <td class="stats-cat">Fouls</td>
802:                                                         <td></td>
803:                                                     </tr>
804: 
805:                                                     <tr class="stats-yc">
806:                                                         <td></td>
807:                                                         <td class="stats-cat">YC</td>
808:                                                         <td></td>
809:                                                     </tr>
810: 
811:                                                     <tr class="stats-rc">
812:                                                         <td></td>
813:                                                         <td class="stats-cat">RC</td>
814:                                                         <td></td>
815:                                                     </tr>
816:                                                 </tbody>
817: 
818:                                             </table>
819:                                         </div>
820:                                     </div>
821:                                     ## GRID CONTENT
822:                                 </div>
823:                                 ## TEAM COMPARE
824:                             </div>
825:                             ## GRID ROW ## GRID ROW
826:                             <div class="grid-row">
827: 								#set ($gridCounter = $gridCounter + 1)
828:                                 <div class="grid-col grid-col-is grid-col${gridCounter}">
829:                                     <h3 id="individual-stats-title" class="grid-title">
830:                                         Individual Stats<span class="close">x</span>
831:                                     </h3>
832:                                     <div class="grid-content clearfix">
833:                                         <div class="pt-team-stats clearfix">
834: 
835:                                             <div id="visitorTeamIndividualStats"
836:                                                 class="pt-team-col pt-stats-team active clearfix">
837: 
838:                                                 <div class="pt-team clearfix">
839:                                                     <img src="" alt=""
840:                                                         class="team-logo visitor-team-logo active" />
841:                                                     <h3 class="team-name visitor-team-name"></h3>
842:                                                 </div>
843: 
844:                                                 <div class="pt-stats-tabs clearfix">
845:                                                     <div class="pt-panes clearfix">
846:                                                         <div id="vOffenseTab" class="pt-pane pt-pane1 clearfix">
847: 
848:                                                             <div class="pt-row">
849:                                                                 <table class="goalieStats display"> <!-- goalies -->
850:                                                                     <thead>
851:                                                                         <tr>
852:                                                                             <th>#</th>
853:                                                                             <th>Goalkeepers</th>
854:                                                                             <th>SOG</th>
855:                                                                             <th>GA</th>
856:                                                                             <th>SV</th>
857:                                                                             <th>MIN</th>
858:                                                                         </tr>
859:                                                                     </thead>
860:                                                                     <tbody>
861: 
862:                                                                     </tbody>
863:                                                                 </table>
864:                                                             </div>
865: 
866:                                                             <div class="pt-row">
867:                                                                 <table class="startersStats display"> <!-- starters -->
868:                                                                     <thead>
869:                                                                         <tr>
870:                                                                             <th>#</th>
871:                                                                             <th>Starters</th>
872:                                                                             <th>Pos</th>
873:                                                                             <th>Sh</th>
874:                                                                             <th>Sog</th>
875:                                                                             <th>G</th>
876:                                                                             <th>A</th>
877:                                                                             <th class="dsCell">DS</th>
878:                                                                         </tr>
879:                                                                     </thead>
880:                                                                     <tbody>
881: 
882:                                                                     </tbody>
883:                                                                 </table>
884:                                                             </div>
885:                                                             <div class="pt-row">
886:                                                                 <table class="substitutesStats display"> <!-- substitutes -->
887:                                                                     <thead>
888:                                                                         <tr>
889:                                                                             <th>#</th>
890:                                                                             <th>Substitutes</th>
891:                                                                             <th>Pos</th>
892:                                                                             <th>Sh</th>
893:                                                                             <th>Sog</th>
894:                                                                             <th>G</th>
895:                                                                             <th>A</th>
896:                                                                             <th class="dsCell">DS</th>
897:                                                                         </tr>
898:                                                                     </thead>
899:                                                                     <tbody>
900: 
901:                                                                     </tbody>
902:                                                                 </table>
903:                                                             </div>
904:                                                         </div>
905:                                                     </div>
906:                                                 </div>
907:                                             </div>
908: 
909:                                             <div id="homeTeamIndividualStats" class="pt-team-col pt-stats-team clearfix">
910: 
911:                                                 <div class="pt-team clearfix">
912:                                                     <img src="" alt=""
913:                                                         class="team-logo home-team-logo active" />
914:                                                     <h3 class="team-name home-team-name"></h3>
915:                                                 </div>
916: 
917:                                                 <div class="pt-stats-tabs clearfix">
918: 
919:                                                     <div class="pt-panes clearfix">
920:                                                         <div class="pt-pane clearfix">
921: 
922:                                                             <div class="pt-row">
923:                                                                 <table class="goalieStats display"> <!-- goalies -->
924:                                                                     <thead>
925:                                                                         <tr>
926:                                                                             <th>#</th>
927:                                                                             <th>Goalkeepers</th>
928:                                                                             <th>SOG</th>
929:                                                                             <th>GA</th>
930:                                                                             <th>SV</th>
931:                                                                             <th>MIN</th>
932:                                                                         </tr>
933:                                                                     </thead>
934:                                                                     <tbody>
935: 
936:                                                                     </tbody>
937:                                                                 </table>
938:                                                             </div>
939: 
940:                                                             <div class="pt-row">
941:                                                                 <table class="startersStats display"> <!-- starters -->
942:                                                                     <thead>
943:                                                                         <tr>
944:                                                                             <th>#</th>
945:                                                                             <th>Starters</th>
946:                                                                             <th>Pos</th>
947:                                                                             <th>Sh</th>
948:                                                                             <th>Sog</th>
949:                                                                             <th>G</th>
950:                                                                             <th>A</th>
951:                                                                             <th class="dsCell">DS</th>
952:                                                                         </tr>
953:                                                                     </thead>
954:                                                                     <tbody>
955: 
956:                                                                     </tbody>
957:                                                                 </table>
958:                                                             </div>
959:                                                             <div class="pt-row">
960:                                                                 <table class="substitutesStats display"> <!-- substitutes -->
961:                                                                     <thead>
962:                                                                         <tr>
963:                                                                             <th>#</th>
964:                                                                             <th>Substitutes</th>
965:                                                                             <th>Pos</th>
966:                                                                             <th>Sh</th>
967:                                                                             <th>Sog</th>
968:                                                                             <th>G</th>
969:                                                                             <th>A</th>
970:                                                                             <th class="dsCell">DS</th>
971:                                                                         </tr>
972:                                                                     </thead>
973:                                                                     <tbody>
974:                                                                     </tbody>
975:                                                                 </table>
976:                                                             </div>
977: 
978:                                                         </div>
979:                                                     </div>
980:                                                 </div>
981:                                             </div>
982: 
983:                                         </div>
984:                                     </div>
985:                                     ## GRID CONTENT
986:                                 </div>
987:                                 ## INDIVISUAL STATS
988:                             </div>
989:                             ## GRID ROW ## GRID ROW
990:                             <div class="grid-row">
991: 								#set ($gridCounter = $gridCounter + 1)
992:                                 <div class="grid-col grid-col-gi grid-col${gridCounter}">
993:                                     <h3 id="game-info-title" class="grid-title">
994:                                         Game Information<span class="close">x</span>
995:                                     </h3>
996:                                     <div class="grid-content clearfix">
997:                                         <div class="pt-game-information clearfix">
998: 
999:                                             <div class="pt-row clearfix">
1000:                                                 <center>
1001:                                                 <div class="date-time pt-col">
1002:                                                     <span id="gameInformationDate" class="date"></span>
1003:                                                     <span id="gameInformationTime" class="time"></span>
1004:                                                     <h3>Date & Time</h3>
1005:                                                 </div>
1006: 
1007:                                                 <div class="game-location pt-col">
1008:                                                     <span id="gameInformationLocation" class="location"></span>
1009:                                                     <h3>Location</h3>
1010:                                                 </div>
1011: 
1012:                                                 <div class="game-venue pt-col">
1013:                                                     <span id="gameInformationVenue" class="venue"></span>
1014:                                                     <h3>Venue</h3>
1015:                                                 </div>
1016: 
1017:                                                 <div class="weather pt-col">
1018: 
1019:                                                     <div class="weather-condition">
1020:                                                         <span id="gameInformationTemperature"
1021:                                                             class="temp"></span>
1022:                                                         <span id="gameInformationCondition" class="condition"></span>
1023:                                                     </div>
1024:                                                     <h3>Weather</h3>
1025:                                                 </div>
1026:                                                 </center>
1027:                                             </div>
1028: 
1029:                                         </div>
1030:                                     </div>
1031:                                     ## GRID CONTENT
1032:                                 </div>
1033:                                 ## GENERAL INFORMATION
1034:                             </div>
1035:                             ## GRID ROW
1036: 
1037:                         </div>
1038: 
1039:                         ## PLAY BY PLAY TABS
1040:                         <div id="pbp-tabs" class="pt-tabs-pane clearfix">
1041: 
1042:                             ## GRID ROW
1043:                             <div class="grid-row">
1044: 								#set ($gridCounter = $gridCounter + 1)
1045:                                 <div class="grid-col grid-col-ds grid-col${gridCounter}">
1046: 								<h3 id="play-by-play-title" class="grid-title">
1047: 									Play by Play<span class="close">x</span>
1048: 								</h3>                                	
1049:                                     <div class="grid-content clearfix">
1050:                                         <div id="playByPlay" class="clearfix">
1051:                                             <select id="filterPeriod" class="dropdownFilter">
1052:                                                 <option value="" selected>ALL PERIODS</option>
1053:                                             </select>
1054:                                             <select id="filterTeam" class="dropdownFilter">
1055:                                                 <option value="" selected>BOTH TEAMS</option>
1056:                                                 <option value="" class="team-name visitor-team-name"></option>
1057:                                                 <option value="" class="team-name home-team-name"></option>
1058:                                             </select>
1059:                                             <select id="filterPlayType" class="dropdownFilter">
1060:                                                 <option value="" selected>ALL PLAYS</option>
1061:                                                 <option value="GOAL">Goal</option>
1062:                                                 <option value="SHOT">Shot</option>
1063:                                                 <option id="headerOption" value="HDR">Header</option>
1064:                                                 <option id="cornerOption" value="CORNER">Corner</option>
1065:                                                 <option value="FOUL">Foul</option>
1066:                                                 <option id="offsideOption" value="OFFSIDE">Offside</option>
1067:                                                 <option value="YC">Yellow Card</option>
1068:                                                 <option value="RC">Red Card</option>
1069:                                                 <option id="greenCardOption" value="GC">Green Card</option>
1070:                                                 <option value="SUB">Substitution</option>
1071:                                             </select>
1072:                                         </div>
1073:                                         <div class="pt-play-by-play clearfix">
1074:                                             <table>
1075:                                                 <thead>
1076:                                                     <tr>
1077:                                                         <th><span class="team-name visitor-team-name"></span><span>&nbsp;PLAYS</span></th>
1078:                                                         <th>TIME</th>
1079:                                                         <th>ACTION</th>
1080:                                                         <th><span class="team-name home-team-name"></span><span>&nbsp;PLAYS</span></th>
1081:                                                     </tr>
1082:                                                 </thead>
1083:                                                 <tbody>
1084:                                                 </tbody>
1085:                                             </table>
1086:                                         </div>
1087:                                     </div>
1088:                                     ## GRID CONTENT
1089:                                 </div>
1090:                                 ## DRIVE SUMMARY
1091:                             </div>
1092:                             ## GRID ROW
1093: 
1094:                         </div>
1095:                         ## PLAY BY PLAY TABS
1096:                     </div>
1097:                     ## PT TABS PANES
1098:                 </div>
1099:                 ## PRIME TIME GAME INFO 
1100: 
1101: 				</div> 
1102: 				## GRID ROW CONTAINER
1103: 
1104:                 ## FOOTER
1105:                 <div id="primetime-footer" class="grid-row">
1106:                     <div class="grid-col grid-col-ftr">
1107:                         <a href="/"><img src="/info/primetime3/images/presto-logo.png" alt="prestosports website" /></a>
1108:                     </div>
1109:                 </div>
1110: 
1111:             </div>
1112:             ## PRIMTE TIME OVERFLOW
1113:         </div>
1114:         ## PRIME TIME WRAPPER
1115:     #end
1116:     
1117:     #set ($showWiki = true)
1118:     #set ($showWiki = $showWikiVar)
1119:     #if ($showWiki == true)
1120:         $wiki.su 
1121:     #end
1122:     ## END OF PRIMETIME	    
1123: 
1124: #else
1125: ## SOCCER BOX SCORE
1126: 
1127: ## DEFAULT VALUES
1128: #set ($showPlayerMin = false)
1129: 
1130: ## PICK UP OPTIONS
1131: #if ($website && $stats.view != "pdf")
1132:     $website.include("options")
1133: #end
1134: #set ($options = $request.getAttribute("options"))
1135: 
1136: ## SET VARIABLES FROM OPTIONS
1137: #set ($showPlayerMin = $options.get("boxscore_so_player_min"))
1138: #if ($showPlayerMin == "show")
1139: 	#set ($showPlayerMin = true)
1140: #end
1141: 
1142: #set ($hasScoringSummary = false)
1143: #if ($document.selectNodes("sogame/scores/score").size() > 0)
1144: 	#set ($hasScoringSummary = true)
1145: #end
1146: 
1147: #set ($showWiki = true)
1148: #set ($showWiki = $showWikiVar)
1149: 
1150: #if ($showWiki == true)
1151: 	$!wiki.su 
1152: #end
1153: 
1154: #if ($document.valueOf("sogame/@source") == 'DakStats Soccer')
1155: 	#set ($isDakStats = true)
1156: #else
1157: 	#set ($isDakStats = false)
1158: #end
1159: 
1160: #set ($showGoalDesc = $document.valueOf("sogame/venue/show/@goaldesc") == "1")
1161: #set ($showFieldHockey = $document.valueOf("sogame/venue/show/@fhk") == "1")
1162: #set ($shootoutScores = {"V" : 0, "H" : 0})
1163: #set ($shootouts = $document.selectNodes("sogame/shootouts/shootout"))
1164: #set ($penalties = $document.selectNodes("sogame/penalties/pen"))
1165: 
1166: #set ($linkPlayers = $stats.linkPlayers)
1167: #set ($linkPlayersBase = $stats.linkPlayersBase)
1168: #set ($linkTeams = $stats.linkTeams)
1169: #set ($linkTeamsBase = $stats.linkTeamsBase)
1170: 
1171: #set ($home = $document.valueOf("sogame/team[@vh='H']/@name"))
1172: #set ($visitor = $document.valueOf("sogame/team[@vh='V']/@name"))
1173: #set ($homeNode = $document.selectSingleNode("sogame/team[@vh='H']"))
1174: #set ($visitorNode = $document.selectSingleNode("sogame/team[@vh='V']"))
1175: 
1176: ## RULES
1177: #set ($periodRule = $document.valueOf("sogame/venue/rules/@prds"))
1178: #set ($periodLength = $document.valueOf("sogame/venue/rules/@minutes"))
1179: #set ($otPeriodLength = $document.valueOf("sogame/venue/rules/@minutesot"))
1180: #set ($otPeriodRule = 2)
1181: 
1182: ## STATUS
1183: #set ($status = $document.valueOf("sogame/status/@period"))
1184: #set ($clock = $document.valueOf("sogame/status/@clock"))
1185: #set ($compClock = $document.valueOf("sogame/status/@complementClock"))
1186: 
1187: ## FOULS
1188: #set ($showFouls = false)
1189: #if($showFieldHockey)
1190: 	#set ($homeFouls =  $tool.math.toInteger($document.valueOf("sogame/team[@vh='H']/totals/penalty/@fouls")))
1191: 	#set ($visitorFouls =  $tool.math.toInteger($document.valueOf("sogame/team[@vh='V']/totals/penalty/@fouls")))
1192: 
1193: 	#if($homeFouls > 0 || $visitorFouls > 0)
1194: 		#set ($showFouls = true)
1195: 	#end
1196: #else 
1197: 	#set ($showFouls = true) ## ALWAYS SHOW FOR SOCCER
1198: #end
1199: 
1200: #set ($periodRange = [1..$document.selectNodes("sogame/team[1]/linescore/lineprd").size()])
1201: #set ($isNeutralGame = $documnt.valueOf("sogame/venue/@neutralgame"))
1202: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
1203:   #set ($isNeutralGame = true)
1204: #else
1205:   #set ($isNeutralGame = false)
1206: #end
1207: 
1208: #set ($hasPeriods = $document.selectNodes("sogame/plays/period").size() > 0)
1209: 
1210: #set ($homeTeam = $homeNode.valueOf("@name"))
1211: #set ($homeScore = $tool.math.toInteger($homeNode.valueOf("linescore/@score")))
1212: #set ($homename = $document.valueOf("sogame/venue/@homename"))
1213: #set ($visitorTeam = $visitorNode.valueOf("@name"))
1214: #set ($visScore = $tool.math.toInteger($visitorNode.valueOf("linescore/@score")))
1215: #set ($visname = $document.valueOf("sogame/venue/@visname"))
1216: #set ($location = $document.valueOf("sogame/venue/@location"))
1217: #set ($stadium = $document.valueOf("sogame/venue/@stadium"))
1218: #set ($dateVal = $document.valueOf("sogame/venue/@date"))
1219: #set ($date = $tool.date.toDate("MM/dd/yyyy", $dateVal))
1220: #set ($time = $document.valueOf("sogame/venue/@time"))
1221: #if ($time.length() == 0)
1222: 	#set ($time = $document.valueOf("sogame/venue/@start"))
1223: #end
1224: 
1225: #set ($duration = $document.valueOf("sogame/venue/@duration"))
1226: #set ($schedNote = $document.valueOf("sogame/venue/@schednote"))
1227: #set ($attendance = $document.valueOf("sogame/venue/@attend"))
1228: #set ($homeTotals = $homeNode.selectSingleNode("totals"))
1229: #set ($visitorTotals = $visitorNode.selectSingleNode("totals"))
1230: 
1231: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1232:     #set ($paramSep = "?")
1233: #else
1234:     #set ($paramSep = "&")
1235: #end
1236: 
1237: #set ($showWiki = true)
1238: #set ($showWiki = $showWikiVar)
1239: 
1240: ## MACROS
1241: #macro (printPdfHeader $title)
1242: <div class="stats-fullbox clearfix">
1243:     <table>
1244:         <tr>
1245:             <td class="align-center"><h4>$title</h4></td>
1246:         </tr>
1247:     </table>
1248: </div>
1249: #end
1250: 
1251: #macro (printPeriods $attr)
1252:     #foreach ($prd in $document.selectNodes("sogame/team[1]/linescore/lineprd"))
1253:     <th scope="col" $attr>
1254:         #if ($velocityCount > $tool.math.toInteger($periodRule))
1255:             #set ($otPeriods = $tool.math.sub($velocityCount, $periodRule))
1256:             #if ($otPeriods == 1)
1257:                 OT
1258:             #elseif ($otPeriods > $otPeriodRule)
1259:                 SO
1260:             #else
1261:                 ${otPeriods}OT
1262:             #end
1263:         #else
1264:             $!velocityCount
1265:         #end
1266:     </th>
1267:     #end
1268: #end
1269: 
1270: #macro (shootout $shootouts $t)
1271: 	#set ($printVal = "")
1272: 	#foreach ($shot in $shootouts)
1273: 		#if ($shot.valueOf("@vh") == $t)
1274: 			#set ($player = $shot.valueOf("@name"))
1275: 			#set ($shotResult = ${shot.valueOf("@result")})
1276: 			#set ($singlePrintVal = "$player - $shotResult")
1277: 			#if ($shot.valueOf("@result") == "MADE")
1278: 				#set ($score = $shootoutScores.get($t))
1279: 				#set ($score = $tool.math.add($score, 1))
1280: 				#set ($score = $shootoutScores.put($t, $score))
1281: 			#end ## result
1282: 			#if ($printVal.length() > 0) #set ($printVal = "${printVal}; ") #end
1283: 			#set ($printVal = "${printVal} ${singlePrintVal}")			
1284: 		#end ## if
1285: 	#end ## foreach
1286: 	$printVal
1287: #end
1288: 
1289: #macro (period $p)
1290:     #set ($printVal = "")
1291:     #if ($tool.math.toInteger($p) <= $tool.math.toInteger($periodRule))
1292:         #if ($p == 1)
1293:             #set ($printVal = "1st")
1294:         #elseif ($p == 2)
1295:             #set ($printVal = "2nd")
1296:         #elseif ($p == 3)
1297:             #set ($printVal = "3rd")
1298:         #else
1299:             #set ($printVal = "${p}th")
1300:         #end
1301:     #else
1302:         #set ($otPeriods = $tool.math.sub($p, $periodRule))
1303:         #if ($otPeriods == 1)
1304:             #set ($printVal = "OT")
1305:         #elseif ($otPeriods > $otPeriodRule)
1306:             #set ($printVal = "SO")        
1307:         #else
1308:             #set ($printVal = "${otPeriods}OT")
1309:         #end
1310: 	#end
1311:     $printVal
1312: #end
1313: 
1314: #macro (showTeam $team)
1315:     #if ($team.attributeValue("link").length() > 0 &&  $linkTeams)
1316:         <a href="$!linkTeamsBase?id=${team.attributeValue('teamId')}">$team.attributeValue("name")</a>
1317:     #else
1318:     	$team.attributeValue("name")
1319:     #end
1320: #end
1321: 
1322: ## GOALIE SHOTS
1323: #macro (shots $ga $saves)
1324: 	#if ($saves.length() > 0)
1325:  		$tool.math.add($ga, $saves)
1326: 	#end
1327: #end
1328: 	    
1329: ## PLAY BY PLAY
1330: #macro (printPlayByPlay)
1331: 	<div class="stats-wrap clearfix">	
1332: 	    <div class="stats-box full">
1333: 	    	#if ($stats.view != "pdf")
1334: 	    		<div class="periods-links clearfix">
1335: 	    			<span class="label">Periods:</span>
1336: 	    			<ul>
1337: 	    				#foreach ($p in [1..$document.selectNodes("sogame/plays/period").size()])
1338: 	    					<li><a href="#prd${p}">#period($p)</a></li>
1339: 	    				#end
1340: 	    			</ul>
1341: 	    		</div>
1342: 	    	#end
1343: 	    	#set ($vscore = 0)
1344: 	    	#set ($hscore = 0)
1345: 	    	#foreach ($playPeriod in $document.selectNodes("sogame/plays/period"))
1346: 	    		#set ($prdCount = $playPeriod.valueOf("@number"))
1347: 				<table role="presentation">
1348: 					<caption class="caption">
1349: 						<h2><span id="prd${velocityCount}">#period($velocityCount)</span></h2>
1350: 					</caption>
1351: 				    #set ($score = "")
1352: 				    #set ($playNodes = $playPeriod.selectNodes("*"))
1353: 				    #foreach ($play in $playNodes)
1354: 				        #set ($nodeName = $play.getName())
1355: 				        #set ($rowClass = "row")
1356: 				    	#set ($playText = "")
1357: 				    	#set ($isVisitorPlay = $play.valueOf('@vh') == "V")
1358: 				    	#set ($isHomePlay = $play.valueOf('@vh') == "H")
1359: 				    	#set ($playAction = $play.valueOf("@action"))
1360: 				    	#set ($playTime = $play.valueOf("@clock"))
1361: 				            								                
1362: 				        #if ($nodeName == "play" && !$playAction.equalsIgnoreCase("goalmsg"))
1363: 							#if ($playAction.equalsIgnoreCase("foul"))
1364: 								#set ($rowClass = "${rowClass} foul")
1365: 							#end
1366: 				            #if ($playAction.equalsIgnoreCase("goal"))
1367: 				            	#set ($rowClass = "${rowClass} goal accent-bg")
1368: 				                #set ($playText = "<span class='action-title'>Goal!</span>${play.valueOf('@text')}")
1369: 				                #if ($isVisitorPlay)
1370: 		                            #set ($vscore = $play.valueOf("@vscore"))
1371: 		                        #else
1372: 		                            #set ($hscore = $play.valueOf("@hscore"))
1373: 		                        #end
1374: 		                        #set ($score = "<span class='v-score'>${vscore}</span><span class='sep'> - </span><span class='h-score'>${hscore}</span>")
1375: 				                #if ($playNodes.size() > $tool.math.add($velocityCount, 1) && $playNodes.get($tool.math.add($velocityCount, 1)).valueOf("@action").equalsIgnoreCase("goalmsg"))
1376: 				                    #set ($goalMsg = $playNodes.get($tool.math.add($velocityCount, 1)).valueOf("@text"))
1377: 				                    #set ($playText = "${playText} ${goalMsg}")
1378: 				                #end
1379: 								#set ($score = "<span class='v-score'>${vscore}</span><span class='sep'> - </span><span class='h-score'>${hscore}</span>")
1380: 								#set ($playText = "${playText} <br/> <strong>( ${score} )</strong>")	
1381: 				            #elseif ($playAction.equalsIgnoreCase("shootout"))
1382: 				            	#set ($playText = $play.valueOf("@text"))
1383: 				                #if(!$shootoutHeader)
1384: 				                	#set ($playText = "<span class='action-title'>Shootout!</span>${playText}")
1385: 				                	#set($shootoutHeader = "true")
1386: 				                #end
1387: 				            #elseif ($playAction.equalsIgnoreCase("sub"))
1388: 								#set ($rowClass = "${rowClass} substitute")
1389: 								#set ($playText = "<span class='action-title'>Substitution!</span>${play.valueOf('@text')}")
1390: 							#else
1391: 				                #set ($playText = $play.valueOf("@text"))
1392: 				            #end
1393: 				        
1394: 				        	#if($isHomePlay || $isVisitorPlay)
1395: 						        <tr class="$rowClass">
1396: 					                <td class="time">$playTime</td>
1397: 									<td class="play">$playText</td>                   
1398: 					            </tr>
1399: 							#end
1400: 			            #end ## node name check
1401: 				    #end ## play foreach
1402: 				    <tr><td colspan="4" class="bold">-- End of #period($prdCount) Period --</td></tr>
1403: 				    #if ($stats.view != "pdf")
1404: 				    	<tr class="back-to-top"><td colspan="4"><a href="#pbp">back to top <span class="gicon-up"></span></a></td></tr>
1405: 				    #end
1406: 			    </table>
1407: 	    	#end ## play period foreach
1408: 	    </div>
1409:     </div> ## stats-wrap
1410: #end ## ends printPlayByPlay
1411: 
1412: ## PENALTY STATS
1413: #macro (printPenaltyStats)
1414: 	<table class="striped">
1415: 		<caption class="caption"><h2>Penalty Summary</h2></caption>
1416:     	<thead>
1417: 			<tr>
1418: 				<th class="col-head" scope="col">Period</th>
1419: 				<th class="col-head" scope="col">Time</th>
1420: 				<th class="col-head text" scope="col">Fouls</th>
1421: 			</tr>
1422: 		</thead>
1423: 		<tbody>
1424: 			#foreach ($penalty in $document.selectNodes("sogame/penalties/pen"))
1425: 				<tr>
1426: 					#set ($vh = $penalty.valueOf("@vh"))
1427: 					#set ($prd = $penalty.valueOf("@prd"))
1428: 					<th class="row-head nowrap period" scope="row">
1429: 						#if ($vh == "V" && $stats.view != "pdf")
1430: 							#set ($visitorScore = $tool.math.add($visitorScore, 1))
1431: 							<div class="team-logo" style="background-image:url($stats.visitorTeamLogo)"><span class="offscreen">$teamName</span></div>
1432: 						#elseif ($vh == "H" && $stats.view != "pdf")
1433: 							#set ($homeScore = $tool.math.add($homeScore, 1))
1434: 							<div class="team-logo" style="background-image:url($stats.homeTeamLogo)"><span class="offscreen">$teamName</span></div>
1435: 						#end
1436: 						<span class="period">#period($prd)</span>
1437: 					</th>
1438: 					<td class="time">$penalty.valueOf("@time")</td>
1439: 					<td class="text">
1440: 						#if ($penalty.valueOf("@type").length() > 0)
1441: 							#if ($penalty.valueOf("@type").contains('GREEN'))<span>Green card - </span>#end
1442: 							#if ($penalty.valueOf("@type").contains('YELLOW'))<span>Yellow card - </span>#end
1443: 							#if ($penalty.valueOf("@type").contains('RED'))<span>Red card - </span>#end
1444: 						#end
1445: 						$penalty.valueOf("@name")#if ($!penalty.valueOf("@desc").length() > 0): $!penalty.valueOf("@desc")#end
1446: 					</td>	
1447: 				</tr>				
1448: 			#end
1449: 		</tbody>
1450: 	</table>
1451: #end
1452: 
1453: ## PENALTY SUMMARY
1454: #macro (printPenaltySummary $boxWidth)
1455: 	#if ($penalties.size() > 0)
1456: 		#if ($boxWidth == "full") 
1457: 			<div class="stats-wrap">
1458: 				<div class="stats-box ${boxWidth} penalty-summary clearfix">
1459: 					#printPenaltyStats
1460: 				</div>
1461: 			</div>
1462: 		#else
1463: 			<div class="stats-box ${boxWidth} penalty-summary clearfix">
1464: 				#printPenaltyStats
1465: 			</div>
1466: 		#end
1467: 	#end
1468: #end
1469: 
1470: ## SCORING SUMMARY
1471: #macro (printScoringSummary)
1472:     <div class="stats-wrap clearfix">
1473: 		#if ($hasScoringSummary)
1474:         <div class="stats-box half scoring-summary clearfix">
1475:             #set ($visitorScore = 0)
1476:             #set ($homeScore = 0)
1477:             <table class="striped">
1478:                 <caption class="caption"><h2>Scoring Summary</h2></caption>
1479:                 <thead>
1480:     				<tr>
1481: 						<th class="col-head" scope="col">Period</th>
1482: 						<th class="col-head" scope="col">Time</th>
1483: 						<th class="col-head text" scope="col">Play</th>
1484: 						<th class="col-head" scope="col">V - H</th>
1485: 					</tr>
1486:                 </thead>
1487:                 <tbody>
1488: 	                #foreach ($pd in $periodRange)
1489: 		                #foreach ($score in $document.selectNodes("sogame/scores/score"))
1490: 					        #set ($teamName = "")
1491: 					    	#set ($scoreText = "")
1492: 					    	#set ($scoreDesc = "")
1493: 					    	#set ($scorePlayer = $!score.valueOf("@playerId"))
1494: 					    	#set ($scoreTime = $score.valueOf("@time"))
1495: 					    	#set ($isVisitorScore = $score.valueOf('@vh') == "V")
1496: 					    	#set ($isHomeScore = $score.valueOf('@vh') == "H")
1497: 					            					
1498: 					    	#if($isVisitorScore)
1499: 				                #set ($teamName = $visitorTeam)
1500: 				            #else
1501: 				                #set ($teamName = $homeTeam)                                        
1502: 				            #end
1503: 				            
1504: 		                    #if ($pd == $score.valueOf("@prd"))
1505: 	                            #if ($scorePlayer.length() > 0 and $linkPlayers)
1506: 	                            	#set ($scoreText = "<a href='${!linkPlayersBase}?id=${scorePlayer}'>")
1507: 	                            #end
1508: 	                            #if($score.valueOf("@name").equalsIgnoreCase("team") && $hasPeriods)
1509: 	                                #if($isHomeScore) #set ($scoreText = "${scoreText} ${visitorNode.attributeValue('name')}")#elseif($isVisitorScore) #set ($scoreText = "${scoreText} ${homeNode.attributeValue('name')}")#end
1510: 	                                #set ($scoreText = "${scoreText} Own goal")
1511: 	                            #else
1512: 	                                #set ($scoreText = "${scoreText} ${score.valueOf('@name')}")
1513: 	                            #end
1514: 	                            #if ($scorePlayer.length() > 0 and $linkPlayers)
1515: 	                            	#set ($scoreText = "${scoreText} </a>")
1516: 	                            #end
1517: 	
1518: 	                            #if ($score.valueOf("@seasong").length() > 0) #set ($scoreText = "${scoreText} (${score.valueOf('@seasong')})") #end
1519: 	
1520: 	                            #if($score.valueOf("@assist1").length() > 0)
1521: 	                                #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)#set ($scoreText = "${scoreText} <a href='${!linkPlayersBase}?id=${score.valueOf('@assist1Id')}'>")#end
1522: 	                                #if ($score.valueOf("@assist2").length() > 0)
1523: 	                                    #set ($scoreText = "${scoreText} (${score.valueOf('@assist1')}")
1524: 	                                #else
1525: 	                                    #set ($scoreText = "${scoreText} (${score.valueOf('@assist1')})")
1526: 	                                #end
1527: 	                                #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)#set ($scoreText = "${scoreText}</a>")#end
1528: 	                            #elseif ($score.valueOf("@name") != "Team")
1529: 	                                #set ($scoreText = "${scoreText} (unassisted)")
1530: 	                            #end
1531: 	                            #if($score.valueOf("@assist2").length() > 0)
1532: 	                                #set ($scoreText = "${scoreText} &amp;")
1533: 	                                #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)#set ($scoreText = "${scoreText} <a href='${!linkPlayersBase}?id=${score.valueOf('@assist2Id')}'>")#end
1534: 	                                #set ($scoreText = "${scoreText} ${score.valueOf('@assist2')})")
1535: 	                                #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)#set ($scoreText = "${scoreText}</a>")#end
1536: 	                            #end
1537: 	                            
1538: 	                            #if ($showGoalDesc)
1539: 	                                #if($!score.valueOf("@desc").length() > 0)
1540: 	                                    #set ($scoreText = "${scoreText} - $!{score.valueOf('@desc')}")
1541: 	                                #else
1542: 	                                    #foreach ($play in $document.selectNodes("sogame/plays/period/play"))
1543: 	                                        #if(($play.valueOf("@action") == "PENSHOT") && ($play.valueOf("@clock") == $scoreTime))
1544: 	                                            #if ($showFieldHockey)
1545: 	                                            	#set ($scoreText = "${scoreText} - Penalty Stroke")
1546: 	                                            #else 
1547: 	                                            	#set ($scoreText = "${scoreText} - Penalty Kick") 
1548: 	                                            #end
1549: 	                                        #end
1550: 	                                    #end
1551: 	                                #end
1552: 	                            #end
1553: 	                            
1554: 	                            <tr>
1555: 	                            	<th class="row-head nowrap period" scope="row">
1556: 		                            	#if ($isVisitorScore && $stats.view != "pdf")
1557: 		                            		#set ($visitorScore = $tool.math.add($visitorScore, 1))
1558: 		                            		<div class="team-logo" style="background-image:url($stats.visitorTeamLogo)"><span class="offscreen">$teamName</span></div>
1559: 		                            	#elseif ($isHomeScore && $stats.view != "pdf")
1560: 		                            		#set ($homeScore = $tool.math.add($homeScore, 1))
1561: 		                            		<div class="team-logo" style="background-image:url($stats.homeTeamLogo)"><span class="offscreen">$teamName</span></div>
1562: 		                            	#end
1563: 		                            	<span class="period">#period($pd)</span>
1564: 	                            	</th>
1565: 					                <td class="time">$!scoreTime</td>
1566: 					                <td class="text">$scoreText</td>
1567: 					                <td class="total">$visitorScore - $homeScore</td>
1568: 				            	</tr> ## row
1569: 	                            
1570: 		                    #end ## if
1571: 		                #end ## scoring foreach
1572: 		            #end ## period range
1573:                 </tbody>
1574:             </table>
1575:         </div> ## stats-box
1576:         #end
1577: 
1578: 		## PENALTY / SCORING SUMMARY
1579: 		#if ($shootouts.size() > 0)        
1580: 			#printShootoutSummary
1581: 		#else
1582: 			#printPenaltySummary("half")
1583: 		#end
1584: 
1585: 	</div>
1586: #end ## SCORING SUMMARY MACRO END
1587: 
1588: #macro(printShootoutSummary)
1589: 	#set ($visitorPenaltyMade = $document.selectNodes("sogame/shootouts/shootout[@vh='V'][@result='MADE']"))
1590: 	#set ($homePenaltyMade = $document.selectNodes("sogame/shootouts/shootout[@vh='H'][@result='MADE']"))
1591: 	<div class="stats-box half shootout-summary clearfix">
1592: 		<table>
1593:                	<caption class="caption"><h2>Shootout</h2></caption>
1594: 				<tr>
1595: 					<th scope="col" class="col-head" colspan="2">$visitor</th>
1596: 					<th scope="col" class="col-head" colspan="2">$home</th>
1597:                 </tr>
1598:         		#set ($penaltyCount = 0)
1599:         		#foreach ($shootout in $shootouts)
1600:                     #if ($velocityCount % 2 != 0)
1601:                         #set ($visPenaltyShooter  = '')
1602:                         #set ($visPenaltyResult = '')
1603:                         #set ($homePenaltyShooter = '')
1604:                         #set ($homePenaltyResult = '')
1605:                     #end
1606:         			#if ($shootout.valueOf("@vh") == "V")
1607:         				#set ($visPenaltyShooter  = $shootout.valueOf("@name"))
1608:         				#set ($visPenaltyResult = $shootout.valueOf("@result"))
1609:         			#end
1610:         			#if ($shootout.valueOf("@vh") == "H")
1611:         				#set ($homePenaltyShooter = $shootout.valueOf("@name"))
1612:         				#set ($homePenaltyResult = $shootout.valueOf("@result"))
1613:         			#end
1614:                     #if ($velocityCount % 2 == 0 || $velocityCount == $shootouts.size())
1615:                         #set ($penaltyCount = $penaltyCount + 1)
1616:                         <tr>
1617:                             <td style="width:43%" #if ($visPenaltyResult == "MISSED") class="visitor shot-missed" #else class="visitor shot-made" #end>
1618:                                 #if ($visPenaltyShooter.length() > 0)
1619:                                     <span class="icon"></span>$visPenaltyShooter
1620:                                 #end
1621:                             </td>
1622:                             <th style="width:14%"  class="row-head" colspan="2">Pen$penaltyCount</th>
1623:                             <td style="width:43%"  #if ($homePenaltyResult == "MISSED") class="home shot-missed" #else class="home shot-made" #end>
1624:                                 #if ($homePenaltyShooter.length() > 0)
1625:                                     $homePenaltyShooter<span class="icon"></span>
1626:                                 #end
1627:                             </td>
1628:                         </tr>
1629:                     #end
1630:         		#end
1631:         		<tr class="totals">
1632:         			<td colspan="4"><strong>Final:</strong> $visitorPenaltyMade.size() - $homePenaltyMade.size()</td>
1633:         		</tr>
1634: 		</table>	
1635: 	</div>          
1636: #end
1637: 
1638: #macro (printPlayerStats $team)
1639: 	#set ($vh = $team.valueOf("@vh"))
1640: 	<thead>
1641: 	    <tr>
1642: 	        <th scope="col" class="col-head text">PLAYER</th>
1643: 	        <th scope="col" class="col-head">SH</th>
1644: 	        <th scope="col" class="col-head">SOG</th>
1645: 	        <th scope="col" class="col-head">G</th>
1646: 	        <th scope="col" class="col-head">A</th>
1647: 	        #if ($showFieldHockey)<th scope="col" class="col-head">DS</th>#end
1648: 	        #if ($showPlayerMin == true)<th scope="col" class="col-head">MIN</th>#end
1649: 	    </tr>
1650: 	</thead>
1651: 	
1652: 	<tbody>
1653: 	    #foreach ($statNode in $team.selectNodes("player[@gp='1']/shots"))
1654: 	        <tr>
1655: 	        	<th scope="row" class="row-head text">
1656: 	            	<span class="uniform">$!statNode.valueOf("../@uni") - </span>
1657: 	            
1658: 	                #if ($statNode.valueOf("../@playerId").length() > 0 && $linkPlayers && $team.attributeValue("link").length() > 0)
1659: 	                	<a href="$!linkPlayersBase?id=${statNode.valueOf("../@playerId")}" class="player-name">$statNode.valueOf("../@name")</a>
1660: 	                #else
1661: 	                	<span class="player-name">$statNode.valueOf("../@name")</span>
1662: 	                #end
1663: 	                
1664: 	                #if($statNode.valueOf("../@pos").length() > 0)<span class="position" style="text-transform:lowercase"> - $statNode.valueOf("../@pos")</span>#end
1665: 	                
1666: 	                #foreach ($penalty in $document.selectNodes("sogame/penalties/pen[@vh='${vh}']"))
1667: 	                	#if ($penalty.valueOf("@checkname").equals($statNode.valueOf("../@checkname")) || $penalty.valueOf("@name").equals($statNode.valueOf("../@name")))	
1668: 	                        #if ($penalty.valueOf("@type").length() > 0)
1669: 								#if ($penalty.valueOf("@type").contains('GREEN'))<span class="penalty-card green">- Green card <span class="time">$penalty.valueOf("@time")</span></span>#end
1670: 	                            #if ($penalty.valueOf("@type").contains('YELLOW'))<span class="penalty-card yellow">- Yellow card <span class="time">$penalty.valueOf("@time")</span></span>#end
1671: 	                            #if ($penalty.valueOf("@type").contains('RED'))<span class="penalty-card red">- Red card <span class="time">$penalty.valueOf("@time")</span></span>#end
1672: 	                        #end
1673: 	                	#end
1674: 	                #end ## penalty foreach
1675: 	            </th>
1676: 		        <td>$!statNode.valueOf("@sh")</td>
1677: 	            <td>$!statNode.valueOf("@sog")</td>
1678: 	            <td>$!statNode.valueOf("@g")</td>
1679: 	            <td>$!statNode.valueOf("@a")</td>
1680: 	            #if ($showFieldHockey)<td>$!statNode.valueOf("../misc/@dsave")</td>#end
1681: 	            #if ($showPlayerMin == true)<td>$!statNode.valueOf("../misc/@minutes")</td>#end
1682: 	        </tr>
1683: 	    #end
1684: 	</tbody>
1685: 	
1686: 	<tbody>
1687: 	    <tr class="totals">
1688: 	        <th scope="rowgroup" class="row-head text">TOTALS</th>
1689: 	        #set ($statTotals = $team.selectSingleNode("totals/shots"))
1690: 	        <td>$!statTotals.valueOf("@sh")</td>
1691: 	        <td>$!statTotals.valueOf("@sog")</td>
1692: 	        <td>$!statTotals.valueOf("@g")</td>
1693: 	        <td>$!statTotals.valueOf("@a")</td>
1694: 	        #if ($showFieldHockey)<td>$!statTotals.valueOf("../misc/@dsave")</td>#end
1695: 	        #if ($showPlayerMin == true)<td>$!statTotals.valueOf("../misc/@minutes")</td>#end
1696: 	    </tr>
1697:     </tbody> 
1698: #end ## printPlayerStats
1699: 
1700: #macro (printTeamGoalies $team)
1701:     
1702: 	<thead>
1703: 	    <tr>
1704: 	        <th scope="col" class="col-head text">GOALIES</th>
1705: 	        <th scope="col" class="col-head">&#160;</th>
1706: 	        #if ($showPlayerMin == true)<th scope="col" class="col-head">&#160;</th>#end
1707: 	        <th scope="col" class="col-head">SOG</th>
1708: 	        <th scope="col" class="col-head">GA</th>
1709: 	        <th scope="col" class="col-head">SV</th>
1710: 	        #if ($showFieldHockey)<th scope="col" class="col-head">&#160;</th>#end
1711: 	        <th scope="col" class="col-head">Min</th>
1712: 	    </tr>
1713:     </thead>
1714: 
1715: 	<tbody>
1716: 	    #foreach ($stat in $team.selectNodes("player/goalie"))
1717: 	        <tr>
1718: 	            <th scope="row" class="row-head text">
1719: 	            	<span class="uniform">$!stat.valueOf("../@uni") - </span>
1720: 	            	
1721: 	                #if ($stat.valueOf("../@playerId").length() > 0 && $linkPlayers && $team.attributeValue("link").length() > 0)
1722: 	                	<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}" class="player-name">$stat.valueOf("../@name")</a>
1723: 	                #else
1724: 	                	<span class="player-name">$stat.valueOf("../@name")</span>
1725: 	                #end
1726: 	
1727: 					#if ($isDakStats)
1728: 						#if($tool.math.toInteger($stat.valueOf("@win")) > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1729: 						#if($tool.math.toInteger($stat.valueOf("@loss")) > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1730: 						#if($tool.math.toInteger($stat.valueOf("@tie")) > 0)<span>(T, $stat.valueOf("@tie"))</span>#end
1731: 					#else
1732: 						#if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1733: 						#if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1734: 						#if($stat.valueOf("@tie").length() > 0)<span>(T, $stat.valueOf("@tie"))</span>#end
1735: 					#end
1736: 					
1737: 	            </th>
1738: 	            <td>$!formatter.formatNumber($ga, "#")</td>
1739: 	            #if ($showPlayerMin == true)<td>&#160;</td>#end
1740: 	            <td>#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</td>
1741: 	            <td>$stat.valueOf("@ga")</td>
1742: 	            <td>$!stat.valueOf("@saves")</td>
1743: 	            #if ($showFieldHockey)<td>&#160;</td>#end
1744: 	            <td>$!stat.valueOf("@minutes")</td>
1745: 	        </tr>
1746: 	    #end
1747:     </tbody>
1748: 
1749: 	<tbody>
1750: 	    #if ($team.selectNodes("player/goalie").size() > 1) ## if more than one goalie appeared show totals
1751: 	        <tr class="totals">
1752: 	            <th scope="rowgroup" class="row-head text">TOTALS</th>
1753: 	            #set ($goalieTotals = $team.selectSingleNode("totals/goalie"))
1754: 	            <td>$!formatter.formatNumber($goalieTotals.valueOf("@ga"), "#")</td>
1755: 	            #if ($showPlayerMin == true)<td>&#160;</td>#end
1756: 	            <td>#shots($goalieTotals.valueOf("@ga") $goalieTotals.valueOf("@saves"))</td>
1757: 	            <td>$!goalieTotals.valueOf("@ga")</td>
1758: 	            <td>$!goalieTotals.valueOf("@saves")</td>
1759: 	            #if ($showFieldHockey)<td>&#160;</td>#end
1760: 	            <td>$!goalieTotals.valueOf("@minutes")</td>
1761: 	        </tr>
1762: 	    #end
1763:     </tbody>
1764:     
1765: #end ## print team goalies
1766: 
1767: #macro (printTabControl $teamName $id)
1768: 	#if ($stats.view != "pdf")
1769: 	   	<div class="tab-label" id="$id">$teamName</div>
1770:     #end
1771: #end
1772: 
1773: ## PRINT BOX SCORE
1774: #macro (printBoxScore)   
1775:     <div class="tab-labels">
1776: 	    #printTabControl($visitorNode.valueOf("@name"), "team-label-v")
1777: 	    #printTabControl($homeNode.valueOf("@name"), "team-label-h")
1778: 	</div>
1779: 	<div class="stats-wrap clearfix">
1780: 	#foreach ($teamNode in $document.selectNodes("sogame/team"))
1781: 		#set ($teamName = $teamNode.valueOf("@name"))
1782:        	#set ($teamId = $teamNode.valueOf("@teamId"))
1783: 		#set ($vh = $teamNode.valueOf("@vh").toLowerCase())
1784: 		<div class="stats-box half lineup clearfix" data-panel-for="team-label-${vh}">
1785: 			<table class="striped">
1786: 				<caption class="caption">
1787: 					<h2><span class="team-name">$teamName</span></h2>
1788: 				</caption>
1789: 				#printPlayerStats($teamNode)
1790: 			</table>
1791: 		</div>
1792: 	#end
1793: 	</div> ## stats-wrap
1794: #end ## print box score
1795: 
1796: ## PRINT BOX SCORE
1797: #macro (printGoalies)    
1798: 	<div class="stats-wrap clearfix">        
1799: 		#foreach ($teamNode in $document.selectNodes("sogame/team"))
1800: 			#set ($teamName = $teamNode.valueOf("@name"))
1801: 			#set ($teamId = $teamNode.valueOf("@teamId"))
1802: 			#set ($vh = $teamNode.valueOf("@vh").toLowerCase())
1803: 			<div class="stats-box half lineup clearfix" data-panel-for="team-label-${vh}">
1804: 				<table class="striped">
1805: 					<caption class="caption"><h2>$teamName <span class="offscreen">Goalies</span></h2></caption>
1806: 					#printTeamGoalies($teamNode)
1807: 				</table>
1808: 			</div>
1809: 		#end
1810: 	</div> ## stats-wrap
1811: #end ## print goalies
1812: 
1813: ## TEAM SUMMARY STATISTICS
1814: #macro (printTeamStats)
1815: 
1816: 	<div class="stats-wrap clearfix">
1817: 		<div class="stats-box full team-stats clearfix">
1818: 	        <table  class="striped"><tbody><tr>
1819: 	            <th style="width:33%">#showTeam($visitorNode)</th>
1820: 	            <th style="width:34%">Team Statistics</th>
1821: 	            <th>#showTeam($homeNode)</th>
1822: 	        </tr>
1823: 	        <tr>
1824: 	            <td >$visitorNode.valueOf('totals/shots/@sh')</td>
1825: 	            <td class="totals">SHOTS</td>
1826: 	            <td>$homeNode.valueOf('totals/shots/@sh')</td>
1827: 	        </tr>
1828: 	        <tr>
1829: 	            <td>$visitorNode.valueOf("totals/goalie/@saves")</td>
1830: 	            <td class="totals">SAVES</td>
1831: 	            <td>$homeNode.valueOf("totals/goalie/@saves")</td>
1832: 	        </tr>
1833: 	        <tr>
1834: 	            <td>#totalCorners($visitorNode)</td>
1835: 	            <td class="totals">#if ($showFieldHockey) PENALTY CORNERS #else CORNER KICKS #end</td>
1836: 	            <td>#totalCorners($homeNode)</td>
1837: 	        </tr>
1838: 	            #if ($showFouls)
1839: 	            <tr>
1840: 	                <td>$visitorNode.valueOf("totals/penalty/@fouls")</td>
1841: 	                <td class="totals">FOULS</td>
1842: 	                <td>$homeNode.valueOf("totals/penalty/@fouls")</td>
1843: 	            </tr>
1844: 	            #end
1845: 	        </tbody></table>
1846: 	    </div>
1847:     </div> ## stats-wrap
1848: 
1849: #end ## print team stats
1850: 
1851: ## Game Information
1852: #macro (printGameInfo)
1853:     <div class="stats-wrap clearfix">
1854:         <div class="stats-box game-info">
1855:         	<table class="table-inline">
1856:         		<caption class="caption"><h2>Game Information</h2></caption>
1857:         		#if ($date)<tr><th class="row-head text" scope="row">Date/Time: </th><td class="text">$formatter.formatLongDate($date) #if ($time.length() > 0) - $!time #end</td></tr>#end
1858:         		#if ($location.length() > 0)<tr><th class="row-head text" scope="row">Location: </th><td class="text">$location</td></tr>#end
1859:             	#if ($stadium.length() > 0)<tr><th class="row-head text" scope="row">Stadium: </th><td class="text">$document.valueOf("sogame/venue/@stadium")</td></tr>#end
1860:             	#if ($duration.length() > 0)<tr><th class="row-head text" scope="row">Game Length: </th><td class="text">$document.valueOf("sogame/venue/@duration")</td></tr>#end
1861:             	#if ($attendance.length() > 0)<tr><th class="row-head text" scope="row">Attendance: </th><td class="text">$document.valueOf("sogame/venue/@attend")</td></tr>#end
1862:             	#foreach ($official in $document.selectNodes("sogame/venue/officials/official"))
1863:                 	<tr><th class="row-head text" scope="row">$official.valueOf("@title"): </th><td class="text">$official.valueOf("@name")</td></tr>
1864:             	#end
1865:         	</table>
1866:     	</div> 
1867:     </div>
1868: #end ## print game info
1869: 
1870: #macro (printStatsBox $colTitle $nodeAttr)
1871: 	<table>
1872: 		<tr>
1873: 			<th scope="col" class="col-head text">$colTitle</th>
1874: 			#printPeriods('class="col-head" style="width:40px"')
1875: 			<th scope="col" class="col-head" style="width:50px">TOTAL</th>
1876: 		</tr>
1877: 		
1878: 		#foreach ($team in $document.selectNodes("sogame/team"))
1879: 			#set ($total = 0)
1880: 			<tr>
1881: 				<th scope="row" class="row-head text">$team.valueOf("@name")</th>
1882: 				#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1883: 					<td>$prd.valueOf("${nodeAttr}")</td>
1884: 					#set ($total = $tool.math.add($total, $prd.valueOf("${nodeAttr}")))
1885: 				#end
1886: 				<td>$total</td>
1887: 			</tr>
1888: 		#end
1889: 	</table>
1890: #end ## print stats box
1891: 
1892: #macro (printTabBoxscore)
1893: 
1894: 	<div class=" stats-wrap clearfix">
1895: 	
1896: 		## SHOTS BY PERIOD
1897:         <div class="stats-box half team-stats">
1898: 			#printStatsBox ("SHOTS" "@shots")
1899: 		</div>
1900: 		
1901: 		## SAVES
1902: 		<div class="stats-box half team-stats">
1903: 			#printStatsBox ("SAVES" "@saves")
1904: 		</div>
1905: 		
1906: 	</div> ## stats wrap
1907: 
1908: 	<div class=" stats-wrap clearfix">
1909: 	
1910: 		## PENALTY CORNERS / CORNER KICKS
1911:         <div class="stats-box half team-stats">
1912: 	        #if ($showFieldHockey)
1913: 	        	#printStatsBox ("PENALTY CORNERS" "@corners")
1914: 	        #else
1915: 				#printStatsBox ("CORNER KICKS" "@corners")
1916: 			#end
1917: 		</div>
1918: 
1919: 		## FOULS BY PERIOD
1920: 		#if ($showFouls)
1921: 			<div class="stats-box half team-stats">
1922: 				#printStatsBox ("FOULS" "@fouls")
1923: 			</div>
1924: 		#end
1925: 		
1926: 	</div> ## stats wrap
1927: 
1928: #end ## print tab boxscore
1929: 
1930: #set ($titleVA = "at")
1931: #if ($isNeutralGame)
1932: 	#set ($titleVA = "vs.")
1933: #end
1934: 
1935: #set ($pageTitle = "$visname $titleVA $homename")
1936: 
1937: #if ($date)
1938: 	#set ($pageTitle = "${pageTitle} - ${formatter.formatLongDate($date)}")
1939: #end	
1940: 
1941: #if ($time.length() > 0) 
1942: 	#set ($pageTitle = "${pageTitle} - ${time}") 
1943: #end
1944: <head>	
1945:     <title>$pageTitle - Box Score</title>
1946:     #if ($stats.inProgress)
1947:         <meta http-equiv="refresh" content="60"/>
1948:     #end
1949:     #if ($stats.view == "pdf")
1950:         #include("statcrew-pdf-css-template")
1951:     #end
1952: </head>
1953: 
1954: #if ($stats.view == "pdf")
1955:     
1956: <div class='footer-left'>$visname vs. $homename</div>
1957: <div class='footer-right'><span id="pagenumber"></span> of <span id="pagecount"></span></div>		    
1958: <div class="stats-wrapper">
1959: 	#printPdfHeader("Box score")
1960: 	#parse("soxml-monospace-template")
1961: 	#if ($hasPeriods)
1962: 		<p class="pagebreak">&nbsp;</p>
1963: 		#printPdfHeader("Play by Play")
1964: 		<div class="stats-fullbox">#printPlayByPlay()</div>
1965: 	#end                
1966: </div> ## stats-wrapper               
1967: 
1968: #else
1969: ## FULL BOXSCORE
1970: 
1971: #if ($showWiki == true)
1972: 	$!wiki.su
1973: #end
1974: 
1975: <article class="game-boxscore soc-fh clearfix">	
1976: 
1977: 	## BOX SCORE HEADER
1978: 	<div class="head">
1979: 		<h1>$visitorTeam #if ($isNeutralGame) vs. #else at #end $homeTeam #if ($dateVal.length() > 0)<span>$formatter.formatLongDate($date)</span>#end</h1>
1980: 	
1981: 		#set ($visClass = "")
1982:         #set ($homeClass = "")	    
1983: 	    #if ($visScore && $homeScore)
1984:             #if ($visScore > $homeScore)
1985:                 #set ($visClass = "winner")
1986:                 #set ($homeClass = "loser")
1987:             #elseif ($homeScore > $visScore)
1988:                 #set ($visClass = "loser")
1989:                 #set ($homeClass = "winner")
1990:             #end
1991: 	    #end
1992: 	    
1993:     	<div class="teams clearfix">
1994:     	
1995: 	    	#foreach ($teamNode in $document.selectNodes("sogame/team"))
1996: 				#set ($teamName = $teamNode.valueOf("@name"))
1997: 	        	#set ($teamId = $teamNode.valueOf("@teamId"))
1998: 				#set ($vh = $teamNode.valueOf("@vh"))
1999: 	        	#if ($vh == "V")
2000: 	        		#set ($teamClass = "visitor ${visClass}")
2001: 	        		#set ($teamLogo = $stats.visitorTeamLogo) 
2002: 	        	#else
2003: 	        		#set ($teamClass = "home ${homeClass}")
2004: 	        		#set ($teamLogo = $stats.homeTeamLogo)		                	
2005: 	        	#end
2006: 	        	    	
2007: 	    		<div class="team ${teamClass} clearfix">                                                   
2008: 	    			<div class="team-logo"><img src="$teamLogo" alt="" /></div>
2009: 	    			#if ($teamNode.valueOf("@record").length() > 0)<span class="team-record">($teamNode.valueOf("@record"))</span>#end
2010: 	    			<div class="team-score">$teamNode.valueOf("linescore/@score")</div>
2011: 	    		</div>
2012: 		    		
2013: 		    #end
2014:     	   	
2015: 			## Mini boxscore
2016: 			<div class="linescore">
2017: 			<table>
2018: 				<tr>
2019: 					<th scope="col" class="col-head text">
2020: 						#if ($stats.final)
2021:                             Final
2022:                         #elseif ($stats.inProgress)
2023:                             #period($!status)- $!compClock
2024:                         #end
2025: 					</th>
2026: 					#printPeriods('class="col-head score"')
2027: 					<th scope="col" class="col-head score total" aria-label="Total">T</th>
2028: 				</tr>
2029: 
2030: 				## TEAM SCORES
2031: 				#foreach ($team in $document.selectNodes("sogame/team"))
2032: 				<tr #if($velocityCount == 1) class="$visClass" #else class="$homeClass" #end>
2033:                     <th scope="row" class="name row-head text">#showTeam($team)</th>                 
2034:                     #foreach ($prd in $team.selectNodes("linescore/lineprd"))
2035:                     	<td class="score">$prd.valueOf("@score")</td>
2036:                     #end
2037:                     <td class="score total">$team.valueOf("linescore/@score")</td>
2038: 				</tr>
2039: 				#end
2040: 			</table>
2041: 			</div> ## linescore
2042:     	</div> ## teams
2043:     </div> ## head
2044: 
2045:     ## TABS
2046:     <div class="tab-container primary clearfix" data-module="stats/tabs" data-type="primary">
2047:     	
2048: 		<div class="tab-nav" data-module="jscroll" data-momentum="false">
2049:     		<div class="clearfix">
2050:     			<ul class="clearfix">
2051:         			<li #if (!($stats.view.length() > 0) || $stats.view == "boxscore")class="active"#end><a href="${stats.pageUrl}" data-view="boxscore">Box Score</a></li>
2052:         			#if ($hasPeriods)
2053:           				<li #if ($stats.view == "plays")class="active"#end><a href="${stats.pageUrl}${paramSep}view=plays" data-view="plays" id="pbp">Play by Play</a></li>
2054:         			#end
2055:         			#if ($isDakStats)
2056:         				<li #if ($stats.view == "teamstats")class="active"#end><a href="${stats.pageUrl}${paramSep}view=teamstats" data-view="teamstats">Team Stats</a></li>
2057:         			#end
2058: 					<li data-skip="true"><a href="$stats.pageUrl${paramSep}tmpl=soxml-monospace-template" target="_blank">Coach's View</a></li>
2059:     			</ul>
2060:     		</div>
2061:     	</div>
2062:     	<div class="tab-panels">
2063:     	
2064:     		## FULL BOX SCORE
2065: 			#set ($class = "tab-panel boxscore clearfix")
2066: 			#if (!($stats.view.length() > 0) || $stats.view == "boxscore")
2067: 				#set ($class = "${class} active")
2068: 			#end								
2069: 			<section class="${class}">
2070: 				<h1 class="offscreen">Box Score</h1>
2071: 				<div class="player-stats" data-module="mod-team-tabs">  
2072: 					#printBoxScore
2073: 					#printGoalies
2074: 				</div>
2075: 				#printScoringSummary		
2076: 				#if ($isDakStats)
2077: 					#printTeamStats
2078: 				#else
2079: 					#printTabBoxscore
2080: 				#end
2081: 				#if ($shootouts.size() > 0 && $penalties.size() > 0)        
2082: 					#printPenaltySummary("full")
2083: 				#end
2084: 				#printGameInfo		
2085: 			</section>
2086:             
2087:             ## PAY BY PLAY
2088: 			#if ($hasPeriods)
2089: 				#set ($class = "tab-panel plays clearfix")
2090: 				#if ($stats.view == "plays")
2091: 					#set ($class = "${class} active")
2092: 				#end
2093: 				<section class="${class}">
2094: 					<h1 class="offscreen">Play By Play</h1>
2095: 					#printPlayByPlay
2096: 				</section>
2097: 			#end
2098:             
2099:             ## TEAM STATS
2100:             #if ($isDakStats)
2101: 	            #set ($class = "tab-panel team-stats clearfix")
2102: 	            #if ($stats.view == "teamstats")
2103: 	                #set ($class = "${class} active")
2104: 	            #end
2105: 	            <section class="${class}">
2106: 					<h1 class="offscreen">Team Statistics</h1>
2107: 					#printTeamStats
2108: 	            </section>
2109:             #end
2110:     	</div> ## tab panels
2111:     </div>
2112:     ## TABS END  
2113:     	
2114: </article> ## game-boxscore
2115: 
2116: #end ## pdf check
2117: 
2118: #set ($showWiki = true)
2119: #set ($showWiki = $showWikiVar)
2120: 
2121: #if ($showWiki == true)
2122:     $!wiki.su
2123: #end
2124: 
2125: #end ## pt check