There was a problem with a Velocity script
Pageteaminfo-network-template
ErrorInvocation of method 'get' in class [Ljava.lang.String; threw exception java.lang.ArrayIndexOutOfBoundsException at teaminfo-network-template[line 562, column 44]
Page source:
1: 
2:   ## PICK UP OPTIONS
3:   $website.include("options")
4:   #set ($options = $request.getAttribute("options"))
5: 
6:   #set ($locale = "en_us")
7:   #set ($locale = $options.get("locale"))
8: 
9:   #set ($showconf = true)
10:   #if ($options.get("stats_hide_conference") and $options.get("stats_hide_conference").equalsIgnoreCase("hide"))
11:     #set ($showconf = false)
12:   #end
13: 
14:   #set ($teamId = $attributes.get("teamId"))
15:   #set ($stats = $splits.overall)
16: 
17:   #set ($pos = "")
18:   #if ($sport.enumCode == 0) ## Football
19:     #set ($pos = "off")
20:   #elseif ($sport.enumCode == 2) ## Basketball
21:     #set ($pos = "sh")
22:   #elseif ($sport.enumCode == 3) ## Soccer
23:     #set ($pos = "kickers")
24:   #elseif ($sport.enumCode == 9) ## Field Hockey
25:     #set ($pos = "fielder")
26:   #end
27: 
28:   #set ($posEsc = $formatter.escapeXml($request.getParameter("pos").toLowerCase()))
29:   #if ($posEsc.length() > 0)
30:     #set ($pos = $posEsc)
31:   #end
32: 
33:   #if ($sport.enumCode == 2) ## Basketball
34:     #if ($pos == "bc")
35:       #set ($pos = "sh")
36:     #end
37:     #if ($pos == "bt")
38:       #set ($pos = "st")
39:     #end
40:     #if ($pos == "bm")
41:       #set ($pos = "sm")
42:     #end
43:   #end
44: 
45:   #if ($sport.enumCode == 3) ## Soccer
46:     #if ($pos == "goalie")
47:       #set ($pos = "kickers")
48:     #end
49:     #if ($pos == "gg")
50:       #set ($pos = "kg")
51:     #end
52:   #end
53:   #if ($sport.enumCode == 9) ## Field Hockey
54:     #if ($pos == "goalie")
55:       #set ($pos = "fielder")
56:     #end
57:     #if ($pos == "gg")
58:       #set ($pos = "kg")
59:     #end
60:   #end
61: 
62:   #set ($view = "profile")
63:   #if ($request.getParameter("view"))
64:     #set ($view = $formatter.escapeXml($!request.getParameter("view")))
65:   #end
66: 
67:   #if($briefsCategoriesLabels)
68:   	#set($briefsCategoriesSeason = $briefsCategoriesLabels.get("Season"))
69:   	#set($firstCategoryPos = $briefsCategoriesSeason.keySet().iterator().next())
70:   #end
71: 
72:   #set ($showRoster = false)
73:   #if ($options.get("stats_show_roster") and $options.get("stats_show_roster").equalsIgnoreCase("yes"))
74:     #set ($showRoster = true)
75:   #end
76: 
77:   #set ($showAttendance = true)
78:   #if ($options.get("stats_show_attendance") and $options.get("stats_show_attendance").equalsIgnoreCase("hide"))
79:     #set ($showAttendance = false)
80:   #end
81: 
82:   ## MACROS
83:   #macro (printResultAriaLabel $event)
84: 	#set ($ariaLabel = "${event.sport} event: ${formatter.formatDate($event.date, 'MMMM d hh:mm a:')}")
85: 	#if ($event.neutralSite.length() > 0 || $event.home) 
86: 		#set ($ariaLabel = "${ariaLabel} vs.")
87: 	#else
88: 		#set ($ariaLabel = "${ariaLabel} at")
89: 	#end
90: 	#set ($ariaLabel = "${ariaLabel} ${event.opponent.name}:")
91: 	#if ($event.neutralSite.length() > 0)
92: 		#set ($ariaLabel = "${ariaLabel} @ ${event.neutralSite}:")
93: 	#end
94: 	#set ($ariaLabel = "${ariaLabel} Box Score")
95: 	aria-label="$ariaLabel"
96:   #end
97:   
98:   #macro(printSubTab $active $url $label $class)	
99:     <li #if ($active) class="active"#end>
100:   	  <a href="${url}" #if ($class.length() > 0)class="$!{class}"#end>${label}</a>
101:   	</li>
102:   #end
103: 
104:   #macro(printSeasonGameMinutesTabs $r)
105:   #if($briefsCategoriesLabels.containsKey("Game"))
106:     <div class="tab-nav" data-module="jscroll" data-momentum="false">
107:     <div><ul class="clearfix">
108:   	#set($briefsCategoriesGame = $briefsCategoriesLabels.get("Game"))
109:   	#set($gamePos = $briefsCategoriesGame.keySet().iterator().next())
110:   	
111:   	## Print the Game tab
112:   	#printSubTab($pos.equals($gamePos), "${url}?view=${view}&r=${r}&pos=${gamePos}", "Game", "t_game")	
113:     	
114:   	## Print the Season tab
115:   	#printSubTab($pos.equals($firstCategoryPos), "${url}?view=${view}&r=${r}&pos=${firstCategoryPos}", "Season", "t_season")
116:     	
117:   	#if($briefsCategoriesLabels.containsKey("Minutes"))
118:   		#set($briefsCategoriesMinutes = $briefsCategoriesLabels.get("Minutes"))
119:   		#set($minutesPos = $briefsCategoriesMinutes.keySet().iterator().next())
120:     		
121:   		#set($showMinutesTab = false)
122:     		
123:   		#if($lineupMinTeam && $lineupMinTeam.containsKey($minutesPos))
124:   			#set($lineupMinOverallValues = $lineupMinTeam.get($minutesPos))
125:   			
126:   			#set($lineupMinOverallStat = $lineupMinOverallValues[0])
127:   			#set($lineupMinOverallMinVal = $lineupMinOverallValues[1])
128:   			#set($lineupMinOverallMinNumericValue = $tool.number.toNumber($lineupMinOverallMinVal))
129:   			
130:   			#if($splits.overall[$lineupMinOverallStat] && $splits.overall[$lineupMinOverallStat] >= $lineupMinOverallMinNumericValue)
131:   				#set($showMinutesTab = true)
132:   			#end	
133:   		#end	
134:     		
135:   		## Print the Minutes tab
136:   	 	#if($showMinutesTab)
137:   			#printSubTab($pos.equals($minutesPos), "${url}?view=${view}&r=${r}&pos=${minutesPos}", "Minutes", "t_minutes")
138:   		#end
139:   		
140:   	#end
141:     </ul>
142:     </div>
143:     </div>
144:   #end
145:   #end
146: 
147:   #macro(printBriefCategory $briefCatLabel $briefCatPos $r)
148:   	#if($locale == "en_gb" && $briefCatLabel == "Defense")
149:       	#set($briefCatLabel = "Defence")
150:       #end
151:   	
152:   	#if($lineupDefaultSorting && $lineupDefaultSorting.containsKey($briefCatPos))
153:   		#set($sort = $lineupDefaultSorting.get($briefCatPos))
154:   	#end	
155:   	
156:   	#if($allowChooseSort)
157:   		#set ($sortEsc = $formatter.escapeXml($request.getParameter("sort")))
158:   		#if ($sortEsc.length() > 0)
159:   			#set ($sort = $sortEsc)
160:   		#end
161:   	#end
162:   	
163:   	#set ($url = "../players?teamId=${attributes.teamId}&view=lineup&sort=$!{sort}&pos=${briefCatPos}&r=${r}")
164:   	
165:   	#if($lineupMin && $lineupMin.containsKey($briefCatPos))
166:   		#set($minStat = $lineupMin.get($briefCatPos))
167:   		#set($url = $url + "&min=" + $minStat)
168:   	#end
169:   	
170:   	#if($lineupFilters)
171:   		#if($lineupFilters.containsKey("cs"))
172:   			#set($url = $url + "&cs=n")
173:   		#end
174:   		
175:   		#if($lineupFilters.containsKey("skipBlank"))
176:   		    #set($skipBlank = $lineupFilters.get("skipBlank"))	
177:   			
178:   			#if($skipBlank.contains($briefCatPos))
179:   				#set($url = $url + "&skipBlank=n")
180:   			#end	
181:   		#end	
182:   	#end	
183:   	
184:     <div class="stats-wrap">
185:       <div class="stats-box full clearfix">
186:         <table><tr class="accent-bg"><th>$briefCatLabel</th></tr></table>
187:       </div>
188:     </div>
189:     $website.includeAgain($url)	
190:     
191:   #end ## printBriefCategory
192: 
193:   #macro(printBriefCategories $r)
194:   ## Set this for the inner page to pull something out
195:   #if ($r == "1")
196:     $!request.setAttribute("teamStats", $splits.conference)
197:   #else
198:     $!request.setAttribute("teamStats", $splits.overall)
199:   #end
200: 
201:   #if($briefsCategoriesLabels)
202:   	#set($allowChooseSort = false)
203:   	
204:   	#if($lineupFilters && $lineupFilters.containsKey("allowChooseSort"))
205:   		#set($allowChooseSort = true)
206:   	#end
207: 
208:     #if($briefsCategoriesLabels.containsKey("Game"))
209:   	  #set($briefsCategoriesGame = $briefsCategoriesLabels.get("Game"))
210:       	
211:       ## Print Game categories tables
212:       ## Get the first Game category position
213:       #set($gamePos = $briefsCategoriesGame.keySet().iterator().next())
214:       
215:       ## GAME
216:       <div class="tab-panel clearfix #if ($pos.equals($gamePos)) active #end">
217:         #foreach($briefsCatGame in $briefsCategoriesGame.entrySet())
218:           #printBriefCategory($briefsCatGame.value, $briefsCatGame.key, $r)
219:         #end
220:       </div>
221: 
222:       ## Print the Season categories tables
223:   	  #set($briefsCategoriesSeason = $briefsCategoriesLabels.get("Season"))
224:    
225:       ## SEASON
226:       <div class="tab-panel clearfix #if ($pos.equals($firstCategoryPos)) active #end">
227:   		  #foreach($briefCat in $briefsCategoriesSeason.entrySet())
228:   			  #printBriefCategory($briefCat.value, $briefCat.key, $r)
229:   		  #end
230:       </div>
231:   		
232:   		
233:       ## Print the Minutes categories tables
234:   		#if($briefsCategoriesLabels.containsKey("Minutes"))
235:   		
236:   		  #set($briefsCategoriesMinutes = $briefsCategoriesLabels.get("Minutes"))
237:   		  #set($minutesPos = $briefsCategoriesMinutes.keySet().iterator().next())
238:       		
239:   		  #set($showMinutesTab = false)
240:   		  #if($lineupMinTeam && $lineupMinTeam.containsKey($minutesPos))
241:           #set($lineupMinOverallValues = $lineupMinTeam.get($minutesPos))
242:   			
243:           #set($lineupMinOverallStat = $lineupMinOverallValues[0])
244:           #set($lineupMinOverallMinVal = $lineupMinOverallValues[1])
245:           #set($lineupMinOverallMinNumericValue = $tool.number.toNumber($lineupMinOverallMinVal))
246:   			
247:           #if($splits.overall[$lineupMinOverallStat] && $splits.overall[$lineupMinOverallStat] >= $lineupMinOverallMinNumericValue)
248:   				  #set($showMinutesTab = true)
249:           #end	
250:   		  #end
251: 
252:         #if ($showMinutesTab)
253:           ## MINUTES
254:           <div class="tab-panel clearfix #if ($pos.equals($minutesPos)) active #end">
255:     			  #foreach($briefsCatMinutes in $briefsCategoriesMinutes.entrySet())
256:               #printBriefCategory($briefsCatMinutes.value, $briefsCatMinutes.key, $r)
257:     			  #end
258:           </div>
259:   			#end
260:   		#end ## end minutes
261: 
262:   	#else
263: 
264:   		#set($briefsCategoriesSeason = $briefsCategoriesLabels.get("Season"))
265:   		## SINGLE SEASON
266:   		#foreach($briefCat in $briefsCategoriesSeason.entrySet())
267:   			#printBriefCategory($briefCat.value, $briefCat.key, $r)
268:     	#end
269: 
270:   	#end
271: 
272:   #elseif($lineupFilters)
273: 
274:   	## All of the supported sports has lineupFilters, so print it without matter it does not have briefs category, yeah voleyball is you :)
275:   	#set ($sort = $formatter.escapeXml($request.getParameter("sort")))
276:   	#set ($url = "../players?teamId=${attributes.teamId}&view=lineup&sort=$!{sort}&r=${r}")
277:   	$website.includeAgain($url) 
278: 
279:   #else
280:   	We do not support this sport
281:   #end
282: 
283:   #end ## printBriefCategories
284: 
285:   #macro (printLineupTabs $r)
286:     #if($briefsCategoriesLabels.containsKey("Game"))
287:       <div class="tab-container secondary tab-container-floated clearfix" data-module="stats/tabs" data-type="secondary">
288:         #printSeasonGameMinutesTabs($r)
289:         <div class="tab-panels tab-panels-floated clearfix">
290:           #printBriefCategories($r)
291:         </div>
292:       </div>
293:     #else
294:       #printBriefCategories($r)
295:     #end
296:   #end ## printLineupTabs
297: 
298:   #macro (printCategories $briefCategoryLabels $v)
299:   <div class="tab-container secondary clearfix" data-module="stats/tabs" data-type="secondary">
300:     <div class="tab-nav" data-module="jscroll" data-momentum="false">
301:       <div>
302:         <ul class="clearfix">
303:           #printSubTabs($briefCategoryLabels $v)
304:         </ul>
305:       </div>
306:     </div>
307:     <div class="tab-panels">
308:       #foreach ($briefCat in $briefCategoryLabels.entrySet())
309:         #set ($class = "tab-panel clearfix")
310:         #if ($briefCat.key == $pos || ($velocityCount == 1 && $pos.length() == 0))
311:           #set ($class = "tab-panel active clearfix")
312:         #end
313:         <div class="${class}">
314:           <div class="stats-wrap clearfix">
315:             #if ($v == "gamelog")
316:               #gamelogData($briefCat.key)
317:             #elseif ($v == "splits")
318:               #splitsData($briefCat.key)
319:             #end
320:           </div>
321:         </div>
322:       #end  
323:     </div>
324:   </div> ## tab-container
325:   #end ## printCategories
326: 
327:   #macro(printSubTabs $labels $view)    
328:     #foreach($label in $labels.entrySet())
329:       #set($catLabel = $label.value)
330:       
331:       #if($locale == "en_gb" && $catLabel == "Defense")
332:         #set($catLabel = "Defence")
333:       #end
334:       
335:       <li #if ($pos == $label.key || ($pos.length() == 0 && $velocityCount == 1)) class="active" #end>  
336:         <a href="${page.url}?view=${view}&pos=${label.key}">${catLabel}</a>
337:       </li>
338:     #end
339:   #end ## printSubTabs
340: 
341:   #macro (printHighlights)
342:   #if ($highlights)
343:     <div class="highlights highlights-standalone accent-bg">
344:       #foreach ($highlight in $highlights.keySet())
345:         #set ($value = "-")
346:         #set ($value = $formatter.formatNumber($stats.get($highlight), $formats.get($highlight)))
347:         <div class="stat clearfix">
348:           <span class="stat-title">$!highlights.get($highlight)</span>
349:           <span class="stat-value">$!value</span>
350:         </div>
351:       #end
352:     </div>
353:   #end ## has highlights
354:   #end ## macro printHighlights
355: 
356:   #macro (gamelogData $p)
357:   #set ($gamelogStats = $gamelogs.get($p))
358: 
359:   <div class="stats-box full clearfix">
360:       <div class="scrollable">
361:           <div>
362:               <table>
363:                   <tr class="thead accent-bg">
364:                       <th class="text">Date</th>
365:                       <th class="pinned-col text">Opponent</th>
366:                       <th>Score</th>
367:                       #foreach ($gamelog in $gamelogStats)
368:                         <th>$gamelog</th>
369:                       #end
370:                   </tr>
371:                   #foreach ($event in $events)
372:   	                <tr>
373:   	                    <td class="text">
374:   	                      $formatter.formatDate($event.event.date, "MMM d") 
375:   	                      #if (!$event.event.overall)
376:   	                        #set ($atLeastOneNotOverall = true) # 
377:   	                      #end
378:   	                    </td>
379:   	                    <td class="pinned-col text">
380:   	                        #if ($event.event.neutralSite.length() > 0) vs. #elseif (!$event.event.home) at #end
381:   	                        $event.event.opponent.name
382:   	                    </td>
383:   	                    <td>
384:   	                        #if ($event.event.statusCode >= 0)
385:   	                          #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
386:                                   <a #printResultAriaLabel($event.event) href="../boxscores/${formatter.formatBoxScoreLink($event.event)}">${event.event.APResult}</a>
387:   	                          #else
388:   	                            ${event.event.APResult}
389:   	                          #end
390:   	                        #else &nbsp; #end
391:   	                    </td>
392:   	                    #foreach ($gamelog in $gamelogStats.keySet())
393:   	                      #set ($value = "-")
394:   	                      #set ($value = $formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
395:   	                      <td>$value</td>
396:   	                    #end
397:   	                </tr>
398:                   #end
399:               </table>
400:           </div>
401:       </div> ## scrollable
402:   </div> ## stats-box
403: 
404:   #end ## gamelogData
405: 
406:   #macro (printRecentGames)
407:   <table>
408:       <tr class="thead accent-bg"><th colspan="3">Recent Games</th></tr>
409: 
410:       #set ($eventEnd = -1)
411:       #foreach ($event in $events)
412:         #if ($event.event.result.resolved)
413:           #set ($eventEnd = $velocityCount)
414:         #end
415:       #end
416: 
417:       #set ($eventStart = $eventEnd - 5)
418:       #if ($eventStart < 0) #set ($eventStart = 0) #end
419: 
420:       #foreach ($event in $events)
421:       #if ($velocityCount >= $eventStart and $velocityCount <= $eventEnd)
422:       <tr>
423:           <td class="text">$formatter.formatDate($event.event.date, "MMM d")</td>
424:           <td class="text">
425:               #if ($event.event.neutralSite.length() > 0) vs.
426:               #elseif (!$event.event.home) at
427:               #else ## nothing for a home game
428:               #end
429:               $event.event.opponent.name
430:           </td>
431:           <td class="text">
432:               #if ($event.event.statusCode >= 0)
433:               #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
434:                   <a #printResultAriaLabel($event.event) href="../boxscores/${formatter.formatBoxScoreLink($event.event)}">${event.event.APResult}</a>
435:               #else
436:               ${event.event.APResult}
437:               #end
438:               #end
439:           </td>
440:       </tr>
441:       #end ## if
442:       #end
443:   </table>
444:   #end ## printRecentGames
445: 
446:   #macro (split $statPosBriefs $label $stats)
447:     <tr>
448:       <td class="pinned-col text">${label}</td>
449:       #foreach ($brief in $statPosBriefs.keySet())
450:         #set ($value = "-")
451:         #set ($value = $!formatter.formatNumber($stats.get($brief), $formats.get($brief)))
452:         <td>#if ($value.length() > 0) $value #else - #end</td>
453:       #end
454:     </tr>
455:   #end ## split
456: 
457:   #macro (splitsData $p)
458:   #set ($statPosBriefs = $briefs.get($p))
459:   #set ($colspan = $statPosBriefs.size())  
460:     
461:   #if ($statPosBriefs.size() > 0)
462:   <div class="stats-box full clearfix">
463:   <div class="scrollable">
464:   <div>
465:   <table>
466:     <tr class="accent-bg">
467:       <th class="pinned-col">&nbsp;</th>
468:       #foreach ($brief in $statPosBriefs)
469:         <th>$brief</th>
470:       #end
471:     </tr>
472: 
473:   #split($statPosBriefs, "Total", $splits.overall)
474:   #if ($showconf)
475:     #split($statPosBriefs, "Conference", $splits.conference)
476:     #split($statPosBriefs, "Exhibition", $splits.exhibition)
477:   #else
478:     #split($statPosBriefs, "Exhibition", $splits.exhibition)
479:   #end ## hide overall/conf
480: 
481:   <tr class="empty-row">
482: 	<td class="pinned-col">&nbsp;</td>
483: 	<td colspan="$colspan"><div class="empty-cell">-</div></td>
484:   </tr>
485: 
486:   #split($statPosBriefs, "Home", $splits.home)
487:   #split($statPosBriefs, "Away", $splits.away)
488:   #split($statPosBriefs, "Neutral", $splits.neutral)
489: 
490:   <tr class="empty-row">
491: 	<td class="pinned-col">&nbsp;</td>
492: 	<td colspan="$colspan"><div class="empty-cell">-</div></td>
493:   </tr>
494: 
495:   #foreach($gameResult in $gamesResults.entrySet())
496:     #if ($gameResult.key == "wins")
497:       #set ($splitGameResult = $splits.inWins)
498:     #elseif ($gameResult.key == "losses")
499:       #set ($splitGameResult = $splits.inLosses)
500:     #elseif ($gameResult.key == "ties")
501:       #set ($splitGameResult = $splits.inTies)
502:     #end
503:     
504:     #split($statPosBriefs, $gameResult.value, $splitGameResult)
505:   #end
506: 
507:   <tr class="empty-row">
508: 	<td class="pinned-col">&nbsp;</td>
509: 	<td colspan="$colspan"><div class="empty-cell">-</div></td>
510:   </tr>
511: 
512:   #if ($monthsPlayed and $monthsPlayed.size() > 0)
513:     #foreach($month in $monthsPlayed)
514:       #if ($month == 'January')
515:         #set ($splitMonth = $splits.january)
516:       #elseif ($month == 'February')
517:         #set ($splitMonth = $splits.february)
518:       #elseif ($month == 'March')
519:         #set($splitMonth = $splits.march)
520:       #elseif ($month == 'April')
521:         #set($splitMonth = $splits.april)
522:       #elseif ($month == 'May')
523:         #set ($splitMonth = $splits.may)
524:       #elseif ($month == 'June')
525:         #set ($splitMonth = $splits.june)
526:       #elseif ($month == 'July')
527:         #set($splitMonth = $splits.july)
528:       #elseif ($month == 'August')
529:         #set ($splitMonth = $splits.august)
530:       #elseif ($month == 'September')
531:         #set($splitMonth = $splits.september)
532:       #elseif ($month == 'October')
533:         #set($splitMonth = $splits.october)
534:       #elseif ($month == 'November')
535:         #set ($splitMonth = $splits.november)
536:       #elseif ($month == 'December')
537:         #set($splitMonth = $splits.december)
538:       #end
539:       
540:       #split($statPosBriefs, $month, $splitMonth)
541:     #end ## foreach
542:   #end
543:   </table>
544:   </div>
545:   </div> ## scrollable
546:   </div> ## srollable-table
547:   #end
548: 
549:   #end ## splitsData
550: 
551: 
552:   ############ END MACROS #############
553: 
554: 
555: 
556: 
557:   <head><title>$!attributes.get("school_name")</title></head>
558: 
559:   #if ($page.title.length() > 0)
560:   <h1>$page.title</h1>
561:   #else
562:       #set ($season = $page.url.split("/").get(3))
563:       #set ($sportUrl = $page.url.split("/").get(2))
564:       #set ($sportFirstLetter = $sportUrl.substring(0, 1))
565:       #set ($sex = '')
566:       #if ($sportFirstLetter == 'm')
567:           #set ($sex = "Men's")
568:       #elseif ($sportFirstLetter == 'w')
569:           #set ($sex = "Women's")
570:       #end
571: 
572:   <h1>$season $sex $sport Statistics</h1>
573:   #end
574: 
575: 
576:   #if ($attributes.get("school_name").length() > 0)
577:       <h2 class="page-subtitle stats-title">$!attributes.get("school_name")</h2>
578:   #end
579: 
580:   <div class="stats-container" data-module="stats/responsive-container">
581: 
582:   #printHighlights  
583: 
584:   ## TABS
585:   <div class="tab-container primary clearfix" data-module="stats/tabs" data-type="primary">
586:     <div class="tab-nav" data-module="jscroll" data-momentum="false">
587:         <div>
588:             <ul class="clearfix">
589:                 <li #if ($view == "profile")class="active"#end><a href="${page.url}?view=profile">Team Profile</a></li>
590:                 #if ($showRoster)
591:                   <li #if ($view == "roster")class="active"#end><a href="${page.url}?view=roster">Roster</a></li>
592:                 #end
593:                 <li #if ($view == "lineup")class="active"#end><a href="${page.url}?view=lineup">Lineup</a></li>
594:                 <li #if ($view == "gamelog")class="active"#end><a href="${page.url}?view=gamelog">Game Log</a></li>
595:                 <li #if ($view == "splits")class="active"#end><a href="${page.url}?view=splits">Split Stats</a></li>
596: 
597:                 #if ($sport.enumCode == 0) ## Football
598:                   <li data-skip="true"><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
599:                 #elseif ($sport.enumCode == 2) ## Basketball
600:                   <li data-skip="true"><a href="${page.url}?sort=ptspg&tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
601:                 #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## baseball or softball
602:                   <li data-skip="true"><a href="${page.url}?sort=ab&pos=h&tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
603:                 #elseif ($sport.enumCode == 6 or $sport.enumCode == 10) ## Men's or women's lacrosse  
604:                   <li data-skip="true"><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
605:                 #elseif ($sport.enumCode == 9) ## field hockey
606:                   <li data-skip="true"><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
607:                 #elseif ($sport.enumCode == 3) ## Men's or women's soccer
608:                   <li data-skip="true"><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
609:                 #elseif ($sport.enumCode == 4) ## Men's or women's volleyball
610:                   <li data-skip="true"><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
611:                 #elseif ($sport.enumCode == 5) ## Men's or women's ice hockey
612:                   <li data-skip="true"><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
613:                 #end
614:                 #if ($showAttendance)
615:                   <li #if ($view == "attendance")class="active"#end><a href="${page.url}?view=attendance">Attendance</a></li>
616:                 #end
617:             </ul>
618:         </div>
619:     </div> ## tab-nav
620: 
621:     <div class="tab-panels clearfix">
622:       ## TEAM PROFILE
623:       #set ($class = "tab-panel clearfix")
624:       #if ($view == "profile")
625:         #set ($class = "tab-panel active clearfix")
626:       #end
627:       <div class="${class}">
628:         <div class="clearfix stats-wrap">
629:           <div class="stats-box half">
630:             ## SCHEDULE INFORMATION
631:             $website.include("schedule?teamId=${teamId}&tmpl=schedule-data-template")
632: 
633:             #printRecentGames
634: 
635:           </div> ## stats-box
636: 
637:           <div class="stats-box half">
638:             ## RANKINGS
639:             $website.include("../teams?tmpl=stats-teams-rank-template&rank=${teamId}")
640:           </div>
641: 
642:         </div> ## stats-wrap
643:       </div> ## team profile
644: 
645:       ## ROSTER
646:       #if ($showRoster)
647:         #set ($class = "tab-panel clearfix")
648:         #if ($view == "roster")
649:           #set ($class = "tab-panel active clearfix")
650:         #end
651:         <div class="${class}">
652:           $website.includeAgain("../players?teamId=${teamId}&view=roster&tmpl=stats-bios-template")
653:         </div>
654:       #end
655: 
656:       ## LINEUP
657:       #set ($class = "tab-panel clearfix")
658:       #if ($view == "lineup")
659:         #set ($class = "tab-panel active clearfix")
660:       #end
661: 
662:       <div class="${class}">
663:         #set ($restriction = "0")
664:         #set ($restrictionEsc = $formatter.escapeXml($request.getParameter("r")))
665:         #if ($restrictionEsc.length() > 0)
666:           #set ($restriction = $restrictionEsc)
667:         #end
668: 
669:         ## start of overall/conference
670:         #set ($url = $request.requestURI)
671:         #if ($showconf)
672:           <div class="tab-container secondary #if($briefsCategoriesLabels.containsKey("Game")) tab-container-floated #end
673:            clearfix" data-module="stats/tabs" data-type="secondary">
674:             <div class="tab-nav" data-module="jscroll" data-momentum="false">
675:               <div>
676:                 <ul class="clearfix">
677:                   #printSubTab($restriction.equals("0"), "${url}?view=${view}&r=0&pos=${pos}", "Overall", "first t_overall")
678:                   #printSubTab($restriction.equals("1"), "${url}?view=${view}&r=1&pos=${pos}", "Conference", "t_conf")
679:                 </ul>
680:               </div>
681:             </div> ## tab-nav
682: 
683:             ## overall/conference tab panels
684:             <div class="tab-panels clearfix">
685: 
686:               ## overall
687:               <div class="tab-panel #if ($restriction.equals("0")) active #end">
688:                 #printLineupTabs(0)
689:               </div> ## overall tab-panel
690: 
691:               ## conference
692:               <div class="tab-panel #if ($restriction.equals("1")) active #end">
693:                 #printLineupTabs(1)
694:               </div> ## conference tab-panel
695: 
696:             </div> ## overall/conference tab-panels
697:           </div> ## tab-container
698: 
699:         #else ## no overall conf
700:           #printLineupTabs($restriction)
701:         #end ## overall/conf
702:            
703:         Download roster:
704:         <a href="../players?teamId=${attributes.teamId}&view=ext">${rosterExtension} (First Last) </a> | 
705:         <a href="../players?teamId=${attributes.teamId}&view=ext&type=lf"> ${rosterExtension} (Last, First)</a>
706:         #if ($rosterExtraExtension)
707:           <a href="../players?teamId=${attributes.teamId}&view=exte">${rosterExtraExtension} (First Last)</a> | 
708:           <a href="../players?teamId=${attributes.teamId}&view=exte&type=lf">${rosterExtraExtension} (Last, First)</a>
709:         #end
710: 
711:       </div> ##lineup
712: 
713:       ## GAMELOG
714:       #set ($class = "tab-panel clearfix")
715:       #if ($view == "gamelog")
716:         #set ($class = "tab-panel active clearfix")
717:       #end
718:       <div class="${class}">
719:         #if($gamelogsCategoriesLabels && $gamelogsCategoriesLabels.size() > 1)
720:           #printCategories($gamelogsCategoriesLabels 'gamelog')
721:         #else
722:           <div class="stats-wrap clearfix">#gamelogData($pos)</div>
723:         #end ## gamelogsCategoriesLabels
724: 
725:       </div> ## gamelog
726: 
727:       ## SPLITS
728:       #set ($class = "tab-panel clearfix")
729:       #if ($view == "splits")
730:         #set ($class = "tab-panel active clearfix")
731:       #end
732:       <div class="${class}">
733:       #if($briefsTeamCategoriesLabels && $briefsTeamCategoriesLabels.size() > 1)
734:           #printCategories($briefsTeamCategoriesLabels 'splits')
735:         #else
736:           <div class="stats-wrap clearfix">#splitsData($pos)</div>
737:         #end ## briefsTeamCategoriesLabels
738:       </div> ## splits
739: 
740: 
741:       ## ATTENDANCE
742:       #if ($showAttendance)
743:         #set ($class = "tab-panel clearfix")
744:         #if ($view == "attendance")
745:           #set ($class = "tab-panel active clearfix")
746:         #end
747:         <div class="${class}">
748:           <div class="clearfix stats-wrap">
749:             <div class="stats-box full">
750:               <div class="scrollable">
751:               <div>
752:               <table>
753:                 <tr class="accent-bg">
754:                   <th class="text">Date</th>
755:                   <th class="text pinned-col">Opponent</th>
756:                   <th>Score</th>
757:                   <th>Attend</th>
758:                 </tr>
759:                 #set ($counter = 0)
760:                 #foreach ($event in $events)
761:                 <tr>
762:                   <td class="text">$formatter.formatDate($event.event.date, "MMM d")</td>
763:                   <td class="text pinned-col">
764:                   #if ($event.event.neutralSite.length() > 0) vs.
765:                   #elseif (!$event.event.home) at
766:                   #else ## nothing for a home game
767:                   #end
768:                   $event.event.opponent.name
769:                   </td>
770:                   <td>
771:                   #if ($event.event.statusCode >= 0)
772:                     #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
773:                         <a #printResultAriaLabel($event.event) href="../boxscores/${formatter.formatBoxScoreLink($event.event)}">${event.event.APResult}</a>
774:                     #else
775:                       ${event.event.result}
776:                     #end
777:                   #else &nbsp; #end
778:                   </td>
779:                   <td>
780:                   #set ($value = "-")
781:                   #set ($value = $!formatter.formatNumber($event.stats.get('at'), $formats.get('at')))
782:                   #if ($value.length() > 0)$value#else - #end
783:                   </td>
784:               </tr>
785:               #end
786:             </table>
787:             </div>
788:             </div> ## scrollable
789:             </div> ## stats-box
790:           </div> ## stats-wrap
791:         </div> ## attendance
792:       #end ## showAttendance
793: 
794:     </div> ## tab-panels
795:   </div> ## tab-container
796:   </div> ## stats-container
797:   $wiki.su