2017-18 Highlanders Basketball Schedule

Overall 27-5
Pct. .844
Conf. 9-3
Pct. .750
Streak Lost 1
Home 15-1
Away 9-3
Neutral 3-1
There was a problem with a Velocity script
Pageschedule-networked-template
ErrorInvocation of method 'includeAgain' in class com.prestosports.render.ContentEngineInvoker threw exception javax.servlet.ServletException: javax.servlet.ServletException: java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections" at schedule-networked-template[line 382, column 50]
Page source:
1: ## APPLY STYLESHEET
2: $website.addCss("/info/schedule-styles.css")
3: 
4: ## PICK UP OPTIONS
5: $website.include("options")
6: #set ($options = $request.getAttribute("options"))
7: 
8: #set ($showLeaders = false)
9: #if ($options.get("schedule_show_leaders") == "yes")
10: 	#set ($showLeaders = true)
11: #end
12: #if ($request.getParameter("showLeaders") == true)
13: 	#set ($showLeaders = true)
14: #end
15: 
16: #if ($showLeaders)
17:     $website.include("${page.sectionPage.url}/roster?tmpl=roster-headshots-template")
18:     #set ($rosterHeadshots = $!request.getAttribute("roster_headshots"))
19: #end
20: 
21: #set ($isMobile = false)
22: #if ($browser.getIphone() || $browser.getMobile())
23: 	#set ($isMobile = true)
24: #end
25: 
26: #set ($isPrinterFriendly = false)
27: #if ($request.getParameter("dec") == "printer-decorator")
28:   #set ($isPrinterFriendly = true)
29: #end
30: 
31: #set ($isTeamSchedule = false)
32: #if ($schedule.team.length() > 0)
33: 	#set ($isTeamSchedule = true)
34: #end
35: 
36: #set ($isSharedMeet = false)
37: #if ($schedule.team.length() == 0 && !$schedule.numericResults)
38: 	#set ($isSharedMeet = true)
39: #end
40: 
41: #set ($linksAbbreviations = { "Preview": "PR", "Box Score": "BX", "Results": "R", "Recap": "RC", "Live stats": "LS", "Video": "V", "Audio": "A", "Photos": "PH", "Tickets": "T", "Directions": "DR" })
42: #set ($linksOrder = ["RC", "BS", "RE", "GA", "AU", "VI", "LS", "DI", "TI", "PR"])
43: #set ($excludeLinksWhenEventIsFinished = ["LS", "DI", "TI", "PR"])
44: #set ($excludeLinksWhenEventIsLive = ["DI", "TI", "PR"])
45: 
46: #set ($restrictLinks = true)
47: #if ($options.get("schedule_restrict_links") == false)
48:   #set ($restrictLinks = false)
49: #end
50: 
51: #set ($showLinkIcons = true)
52: #if ($request.getParameter("showLinkIcons") == false)
53:   #set ($showLinkIcons = false)
54: #end
55: 
56: #set ($abbreviatedLinks = false)
57: #if ($request.getParameter("abbreviatedLinks") == true)
58:   #set ($abbreviatedLinks = true)
59: #end
60: 
61: #set ($showVsAt = true)
62: #if ($options.get("schedule_hide_vs_at") == true)
63: 	#set ($showVsAt = false)
64: #end
65: 
66: #set ($showTeamStats = true)
67: #if ($options.get("schedule_hide_team_stats") == true)
68: 	#set ($showTeamStats = false)
69: #end
70: 
71: #set ($showExhibitionGames = true)
72: #if ($options.get("schedule_hide_exhibition_events") == true)
73: 	#set ($showExhibitionGames = false)
74: #end
75: 
76: #set ($showSpotOnAddToCal = false)
77: #if ($options.get("schedule_show_spoton_add_to_cal") == "show")
78: 	#set ($showSpotOnAddToCal = true)
79: 
80: 	#if ($options.get('stanza_code').length() > 0)
81: 		#set ($stanzaCode = $options.get('stanza_code').toLowerCase())
82: 	#end
83: #end
84: 
85: #set ($showTeamLogo = false)
86: #if ($options.get("schedule_show_team_logo") == "show" && !$isPrinterFriendly)
87: 	#set ($showTeamLogo = true)
88: #end
89: 
90: #set ($includeTimeZone = false)
91: #if ($options.get('calendarIncludeTimeZone').length() > 0)
92: 	#set ($includeTimeZone = $options.get('calendarIncludeTimeZone').toLowerCase())
93: #end
94: 
95: #set ($enhancedLayout = false)
96: #if ($options.get("schedule_enhanced_layout") == "yes" && $schedule.numericResults && !$isPrinterFriendly)
97: 	#set ($enhancedLayout = true)
98: #end
99: 
100: #if ($isMobile && !$enhancedLayout)
101: 	#set ($includeURL = "${page.url}?tmpl=mobile-schedule-template&$!request.getQueryString()")
102: 	$website.includeAgain($includeURL)
103: 	#stop
104: #end
105: 
106: #set ($resultFormat = "AP1")
107: #if ($options.get("schedule_result_format").equals("L, 1-2")) ## whether to show $event.APResult or $event.AP2Result
108: 	#set ($resultFormat = "AP2")
109: #end
110: 
111: #set ($confNotation = "*")
112: #set ($divisionNotation = "^")
113: #set ($exhibitionNotation = "#")
114: #set ($postseasonNotation = "%")
115: #set ($multipleLeadersNotation = "+")
116: 
117: ## MACROS
118: #macro (printLinkAriaLabel $event $link $linkTypeCounter)
119: 	#set ($ariaLabel = "${event.sport} event: ${formatter.formatDate($event.date, 'MMMM d hh:mm a:')}")
120: 	#if ($event.neutralSite.length() > 0 || $event.home)
121: 		#set ($vsOrAt = "vs.")
122: 	#else
123: 		#set ($vsOrAt = "at")
124: 	#end
125: 	#if ($event.teams.size() > 1)
126: 		#set ($ariaLabel = "${ariaLabel} ${event.teams.get(0).name} ${vsOrAt} ${event.teams.get(1).name}:")
127: 	#elseif ($event.teams.size() == 1)
128: 		#set ($ariaLabel = "${ariaLabel} ${event.teams.get(0).name}:")
129: 	#end
130: 	#if ($event.neutralSite.length() > 0)
131: 		#set ($ariaLabel = "${ariaLabel} @ ${event.neutralSite}:")
132: 	#end
133: 	#set ($ariaLabel = "${ariaLabel} ${link.name}")
134: 	#if ($linkTypeCounter > 1)
135: 	    #set ($ariaLabel = "${ariaLabel} link ${linkTypeCounter}")
136: 	#end
137: 	aria-label="$ariaLabel"
138: #end
139: 
140: #macro (printEventLinks $event $useContainer $useList)
141: 	#set ($eventLinks = [])
142: 
143: 	#set ($isFinished = false)
144:     #if ($event.statusCode >= 0 || ($event.statusCode == -3 && $now.time >= ($event.date.time + (1000*60*60*24)))) ## -3 is reported for event sports
145:         #set ($isFinished = true)
146:     #end
147: 
148:     #if ($restrictLinks && ($event.inProgress || $isFinished))
149:         #foreach ($link in $event.links)
150:             #if ($event.inProgress && !$excludeLinksWhenEventIsLive.contains($link.mapType))
151:                 #set ($ignoreme = $eventLinks.add($link))
152:             #elseif ($isFinished && !$excludeLinksWhenEventIsFinished.contains($link.mapType))
153:                 #set ($ignoreme = $eventLinks.add($link))
154:             #end
155:         #end
156:     #else
157:         #set ($eventLinks = $event.links)
158: 	#end
159: 
160: 	#if ($useContainer == true)
161: 		<div #if ($eventLinks.size() > 0) class="links" #else class="links empty" #end>
162: 	#end
163: 		#if ($useList == true)<ul>#end
164: 			#set ($linksCounter = 0)
165: 			#foreach ($mapType in $linksOrder)
166: 				#set ($linkTypeCounter = 0)
167: 				#foreach ($link in $eventLinks)
168: 					#if ($mapType == $link.mapType)
169: 						#set ($linksCounter = $linksCounter + 1)
170: 						#set ($linkTypeCounter = $linkTypeCounter + 1)
171: 						#if ($linksCounter > 1)
172: 							##<span class="sep"> | </span>
173: 						#end
174: 						#set ($linkText = $link.name)
175: 						#if ($abbreviatedLinks)
176: 							#foreach ($l in $linksAbbreviations.entrySet())
177: 								#if ($link.name.equalsIgnoreCase($l.key))
178: 									#set ($linkText = $l.value)
179: 								#end
180: 							#end
181: 						#end
182: 						#if ($useList == true)<li>#end
183: 							<a #printLinkAriaLabel($event, $link, $linkTypeCounter) href="$link.url" #if ($website.isExternalLink($link.url)) target="_blank" #end class="link">
184: 							#if ($showLinkIcons)
185: 								<span class="icon gicon-${link.mapType.toLowerCase()}" title="$link.name"></span>
186: 							#end
187: 								<span class="text">$linkText</span>
188: 							</a>
189: 						#if ($useList == true)</li>#end
190: 					#end
191: 				#end
192: 			#end
193: 		#if ($useList == true)</ul>#end
194: 	#if ($useContainer == true)
195: 		</div>
196: 	#end
197: #end ## printEventLinks
198: 
199: #macro (printNotations $event)
200:   #if ($event.conference)
201:     <span class="notation" title="Conference">$confNotation</span>
202:   #end
203: 
204:   #if ($event.division)
205:     <span class="notation" title="Division">$divisionNotation</span>
206:   #end
207: 
208:   #if (!$event.overall)
209:     <span class="notation" title="Exhibition">$exhibitionNotation</span>
210:   #end
211: 
212:   #if ($event.postseason)
213:     <span class="notation" title="Post Season">$postseasonNotation</span>
214:   #end
215: #end
216: 
217: #macro (printTeamLogo $team)
218: 	#if ($showTeamLogo && $team.teamId.length() > 0)
219: 		<div class="team-logo" data-teamid="$team.teamId">
220: 		#if ($page.teamIDs.contains($team.teamId))
221: 			<a href="${page.url}?teamId=${team.teamId}"><img data-src="${website.teamLogo($team.teamId)}" alt="$!team.name" class="lazyload" /></a>
222: 		#else
223: 			<img data-src="${website.teamLogo($team.teamId)}" alt="$!team.name" class="lazyload" />
224: 		#end
225: 		</div>
226: 	#end
227: #end
228: 
229: #macro (printTeamName $team)
230: 	#if ($page.teamIDs.contains($team.teamId) && $schedule.numericResults)
231: 		#if ($page.title.length() > 0)
232: 			#set ($ariaLabel = "${page.title} - ${team.name}")
233: 		#elseif ($page.url.matches(".*/\d{4}-\d{2}/.*"))
234: 			#set ($urlParts = $page.url.split("/\d{4}-\d{2}/"))
235: 			#if ($urlParts.size() > 0)
236: 				#set ($startIndex = $tool.math.add($urlParts[0].length(), 1))
237: 				#set ($endIndex = $tool.math.add($startIndex, 7))
238: 				#set ($schedSeason = $page.url.substring($startIndex, $endIndex))
239: 				#set ($ariaLabel = "${schedSeason} ${schedule.sport} Schedule - ${team.name}")
240: 			#end
241: 		#end
242: 		<a href="${page.url}?teamId=${team.teamId}" class="team-name link" aria-label="$ariaLabel">$team.name</a>
243: 	#else
244: 		<span class="team-name">$team.name</span>
245: 	#end
246: #end
247: 
248: #macro (printAPResult $event)
249: 	#if ($resultFormat.equals("AP1"))
250: 		#set ($APResult = $event.APResult)
251: 	#elseif ($resultFormat.equals("AP2"))
252: 		#set ($APResult = $event.AP2Result)
253: 	#end
254: 
255: 	#if (!$event.inProgress && $APResult.length() > 0)
256: 		$APResult
257: 	#else
258: 		$event.result
259: 	#end
260: #end
261: 
262: #macro (printEventStatus $event)
263: 	#if ($includeTimeZone)
264: 		#if ($includeTimeZone.contains('local'))
265: 			$formatter.formatStatus($event).setTimeFormat("h:mm a z").useEventTimeZone()
266: 		#elseif ($includeTimeZone.contains('site'))
267: 			$formatter.formatStatus($event).setTimeFormat("h:mm a z")
268: 		#end
269: 	#else
270: 		$formatter.formatStatus($event)
271: 	#end
272: #end
273: 
274: #macro (printEventNotes $event)
275:     #if ($event.notes.length() > 0 || $event.neutralSite.length() > 0)
276:     <div class="notes">
277:         #if ($event.neutralSite.length() > 0)<span class="neutral-site">@ $event.neutralSite</span>#end
278:         #if ($event.notes.length() > 0)<span class="">$event.notes</span>#end
279:     </div>
280:     #end
281: #end
282: 
283: #macro (printSharedMeet)
284: 	#set ($teams = $tool.sorter.sort($page.teams.entrySet(), "value"))
285: 	#set ($teamsThreshold = 20)
286: 
287: 	#if ($teams.size() > $teamsThreshold)
288:     	#set ($teamsByAlphabets = {})
289:     	#foreach ($team in $teams)
290:     		#set ($firstLetter = $team.value.charAt(0))
291:     		#set ($arr = [])
292:     		#if ($teamsByAlphabets.containsKey($firstLetter))
293:     			#set ($arr = $teamsByAlphabets.get($firstLetter))
294:     		#end
295:     		#set ($bool = $arr.add($team))
296:     		#set ($val = $teamsByAlphabets.put($firstLetter, $arr))
297:     	#end
298: 
299: 		<ul class="team-alphabets">
300: 		#foreach ($alphabet in $teamsByAlphabets.entrySet())
301: 			<li><a href="#${alphabet.key}">$alphabet.key</a></li>
302: 		#end
303: 		</ul>
304: 
305:         <div class="team-list clearfix">
306: 			<div class="col">
307:         	#foreach ($obj in $teamsByAlphabets.entrySet())
308: 				#if ($velocityCount == 8 || $velocityCount == 15)
309: 				    </div><div class="col">
310: 				#end
311: 				#set ($teamList = $obj.value)
312: 				<ul>
313:         			<li class="title" id="${obj.key}">$obj.key</li>
314:         			#foreach ($team in $teamList)
315:         				<li><a href="${page.url}?teamId=${team.key}">$team.value</a></li>
316:         			#end
317:         		</ul>
318: 			#end
319: 			</div>
320:         </div>
321: 	#else ## less than threshold
322: 		#if ($teams.size() == 0)
323: 			<h3>There are no teams that match this criteria</h3>
324: 		#else
325: 			<div class="team-list">
326:     			<ul>
327:     			#foreach ($team in $teams)
328:     				<li><a href="${page.url}?teamId=${team.key}">$team.value</a></li>
329:     			#end
330:     			</ul>
331: 			</div>
332: 		#end
333: 	#end ## teams threshold
334: #end ## printSharedMeet
335: 
336: #macro (printTeamStats)
337: 	#if ($isTeamSchedule && $schedule.teamId.length() > 0)
338: 		#set ($number = $schedule.Record.winPercentage)
339: 		#set ($confnumber = $schedule.conferenceRecord.winPercentage)
340: 
341: 		<div class="team-stats accent-bg">
342: 		<div class="clearfix">
343: 
344: 			<div class="cat">
345: 				<span class="label">Overall</span>
346: 				<span class="value">$schedule.Record</span>
347: 			</div>
348: 			<div class="cat">
349: 				<span class="label">Pct.</span>
350: 				<span class="value">$formatter.formatNumber($number, "#.000")</span>
351: 			</div>
352: 			<div class="cat">
353: 				<span class="label">Conf.</span>
354: 				<span class="value">$schedule.ConferenceRecord</span>
355: 			</div>
356: 			<div class="cat">
357: 				<span class="label">Pct.</span>
358: 				<span class="value">$formatter.formatNumber($confnumber, "#.000")</span>
359: 			</div>
360: 			<div class="cat">
361: 				<span class="label">Streak</span>
362: 				<span class="value">$schedule.streak</span>
363: 			</div>
364: 			<div class="cat">
365: 				<span class="label">Home</span>
366: 				<span class="value">$schedule.homeRecord</span>
367: 			</div>
368: 			<div class="cat">
369: 				<span class="label">Away</span>
370: 				<span class="value">$schedule.awayRecord</span>
371: 			</div>
372: 			<div class="cat">
373: 				<span class="label">Neutral</span>
374: 				<span class="value">$schedule.neutralRecord</span>
375: 			</div>
376: 
377: 			## SHOW SPLITS DATA FOR TEAM VIEW H2H SCHEDULES
378: 			#if ($showTeamStats)
379: 				#set ($teamStatsPath = "${page.sectionPage.url}/teams")
380: 
381: 				#if ($website.exists($teamStatsPath))
382: 					$website.includeAgain("${teamStatsPath}?teamId=${schedule.teamId}&tmpl=schedule-team-stats-template")
383: 				#end
384: 			#end
385: 		</div>
386: 		</div> ## team-stats
387: 	#end
388: #end ## printTeamStats
389: 
390: #macro (printEnhancedLayout)
391:     #set ($lastDate = "")
392: 
393:     <div class="event-group">
394:     #foreach ($event in $events)
395:         #if ($isTeamSchedule)
396:             #set ($theDate = $formatter.formatDate($event.date, "MMMM"))
397:         #else
398:     	    #set ($theDate = $formatter.formatDate($event.date, "EEEE MMMM dd, yyyy"))
399:     	#end
400: 
401:     	#if (!$lastDate.equals($theDate))
402:     	    #if ($velocityCount > 1)
403:     	        </div><div class="event-group">
404:             #end
405:     		<div class="event-date accent-bg">$theDate</div>
406:     	#end
407: 
408:     	#set ($lastDate = $theDate)
409:     	#set ($rowClass = "event-row")
410: 
411: 		#if ($velocityCount % 2 == 0)
412: 			#set ($rowClass = "${rowClass} even")
413: 		#else
414: 			#set ($rowClass = "${rowClass} odd")
415: 		#end
416: 
417: 		#if ($event.neutralSite.length() > 0)
418: 			#set ($rowClass = "${rowClass} neutral")
419: 		#elseif ($event.home)
420: 			#set ($rowClass = "${rowClass} home")
421: 		#else
422: 			#set ($rowClass = "${rowClass} away")
423: 		#end
424: 
425: 		#if ($event.inProgress)
426: 			#set ($rowClass = "${rowClass} inprogress")
427: 		#end
428: 
429: 		#if ($event.conference)
430: 			#set ($rowClass = "${rowClass} conf")
431: 		#end
432: 
433: 		#if ($event.postseason)
434: 			#set ($rowClass = "${rowClass} postseason")
435: 		#end
436: 
437: 		#if ($event.division)
438: 			#set ($rowClass = "${rowClass} division")
439: 		#end
440: 
441: 		#if (!$event.overall)
442: 			#set ($rowClass = "${rowClass} exhibition")
443: 		#end
444: 
445: 		#if ($event.statusCode < 0 && !$event.inProgress)
446: 			#if ($event.date && !$event.date.before($now))
447: 				#set ($rowClass = "${rowClass} upcoming")
448: 			#end
449: 		#end
450: 
451: 		#set ($boxscoreURL = "")
452: 		#set ($recapURL = "")
453: 		#foreach ($link in $event.links)
454: 			#if ($boxscoreURL.length() == 0 && $link.url.endsWith(".xml") && $link.mapType == "BS" && !$website.isExternalLink($link.url))
455: 				#set ($boxscoreURL = "${link.url}")
456: 			#elseif ($link.mapType == "RC" && $recapURL.length() == 0 && !$website.isExternalLink($link.url))
457: 				#set ($recapURL = $link.url)
458: 			#end
459: 		#end
460: 
461: 		#if ($boxscoreURL.length() > 0 || $recapURL.length() > 0)
462: 			#set ($rowClass = "${rowClass} has-recap")
463: 		#end
464: 		
465: 		#set ($sport = $event.sport.toLowerCase())
466: 		#if ($showLeaders && $rosterHeadshots.size() > 0 && ($sport.contains("basketball") || $sport.contains("soccer") || $sport.contains("volleyball")))
467: 			#set ($rowClass = "${rowClass} has-leaders")
468: 		#else
469: 		    #set ($rowClass = "${rowClass} no-leaders")
470: 		#end
471: 
472: 		#if ($event.winner.name.length() > 0)
473: 			#if ($event.opponent.winner)
474: 				#set ($rowClass = "${rowClass} loser")
475: 			#else
476: 				#set ($rowClass = "${rowClass} winner")
477: 			#end
478: 		#end
479: 		
480: 		#set ($eventLinks = [])
481:         #if ($restrictLinks && ($event.inProgress || $event.statusCode >= 0))
482:             #foreach ($link in $event.links)
483:                 #if ($event.inProgress && !$excludeLinksWhenEventIsLive.contains($link.mapType))
484:                     #set ($ignoreme = $eventLinks.add($link))
485:                 #elseif ($event.statusCode >= 0 && !$excludeLinksWhenEventIsFinished.contains($link.mapType))
486:                     #set ($ignoreme = $eventLinks.add($link))
487:                 #end
488:             #end
489:         #else
490:             #set ($eventLinks = $event.links)
491:     	#end
492:     	
493:     	#if ($eventLinks.size() > 0)
494:     	    #set ($rowClass = "${rowClass} has-links")
495:     	#end
496: 
497: 		<div class="${rowClass}" #if ($recapURL.length() > 0) data-recap="$recapURL" #end #if ($boxscoreURL.length() > 0) data-boxscore="$boxscoreURL" #end>
498: 		<div class="inner-wrap clearfix">
499:         #if ($isTeamSchedule)
500:         	<div class="event-info clearfix">
501: 
502:                 <div class="date" title="${formatter.formatDate($event.date, "EEE. MMMM dd, yyyy")}">$formatter.formatDate($event.date, "'<span>'EEE'</span>' '<span>'MMM'</span>' '<span>'dd'</span>'")</div>
503: 
504:                 #if ($event.neutralSite.length() > 0 || $event.home)
505:                     <div class="va">vs</div>
506:                 #else
507:                     <div class="va">at</div>
508:                 #end
509: 
510:                 #printTeamLogo($event.opponent)
511: 
512:                 <div class="event clearfix">
513: 
514:                     <div class="opponent">
515: 						#printTeamName($event.opponent)
516:             		    #printNotations($event)
517:                     </div>
518: 
519:                     #printEventNotes($event)
520:                 </div>
521: 				
522: 				<div class="status">#printEventStatus($event)</div>
523: 				<div class="result">#printAPResult($event)</div>
524: 				
525: 				#if ($showLeaders && $rosterHeadshots.size() > 0 && ($sport.contains("basketball") || $sport.contains("soccer") || $sport.contains("volleyball")))
526: 					<div class="game-leaders">$website.include("${boxscoreURL}?tmpl=schedule-game-leaders-template&teamId=${schedule.teamId}")</div>
527: 				#end
528: 
529:                 #printEventLinks($event, true, true)
530: 
531:                 #if ($event.neutralSite.length() > 0)
532:         		    <a href="#" class="venue" title="Neutral"><span>N</span></a>
533:                 #elseif ($event.home)
534:         		    <a href="#" class="venue" title="Home"><span>H</span></a>
535:                 #else
536:         		    <a href="#" class="venue" title="Away"><span>A</span></a>
537:                 #end
538: 
539:             </div> ## event-info
540: 
541:         #elseif ($event.teams.size() == 2) ## conference schedule with head-to-head events
542:         	#set ($awayTeam = $event.teams.get(0))
543:         	#set ($homeTeam = $event.teams.get(1))
544: 
545:         	#set ($awayClass = "away")
546:         	#set ($homeClass = "home")
547: 
548:         	#if ($awayTeam.winner)
549:         		#set ($awayClass = "${awayClass} winner")
550:         		#set ($homeClass = "${homeClass} loser")
551:         	#elseif ($homeTeam.winner)
552:         		#set ($awayClass = "${awayClass} loser")
553:         		#set ($homeClass = "${homeClass} winner")
554:         	#end
555: 
556:         	#set ($hasLogo = false)
557:         	#if ($awayTeam.teamId && $homeTeam.teamId && $showTeamLogo)
558:         	    #set ($hasLogo = true)
559:         	#end
560: 
561:         	<div class="event-info clearfix">
562: 
563:             <div #if ($hasLogo) class="teams has-logos clearfix" #else class="teams clearfix" #end>
564:                 <div class="team $awayClass clearfix">
565:             		#if ($hasLogo)<div class="logo">#printTeamLogo($awayTeam)</div>#end
566:             		#printTeamName($awayTeam) #printNotations($event)
567:             		<div class="team-score">$awayTeam.result</div>
568:             	</div>
569: 
570:                 <div class="team $homeClass clearfix">
571:             		#if ($hasLogo)<div class="logo">#printTeamLogo($homeTeam)</div>#end
572:             		#printTeamName($homeTeam)
573:             		<div class="team-score">$homeTeam.result</div>
574:             	</div>
575:         	</div> ## teams
576: 
577:         	<div class="details">
578:         	    <div class="date">$formatter.formatDate($event.date, "EEEE, MMMM dd")</div>
579:         	    <div class="status">$formatter.formatStatus($event)</div>
580:         	    #printEventNotes($event)
581:         	    #printEventLinks($event, true, true)
582:         	</div>
583: 
584:         	</div> ## event-info
585:         #end
586:         </div> ## inner-wrap
587:         </div> ## row
588: 
589:     #end ## events loop
590:     </div> ## event-group
591: #end ## printEnhancedLayout
592: ## END MACROS
593: 
594: #set ($events = [])
595: #set ($hasPostSeasonEvents = false)
596: #set ($hasConfEvents = false)
597: #set ($hasDivisionEvents = false)
598: #set ($hasExhibitionEvents = false)
599: #set ($hasHomeEvents = false)
600: #set ($hasAwayEvents = false)
601: #set ($hasNeutralEvents = false)
602: 
603: #foreach ($event in $schedule.events)
604: #if ($event.date && ($event.overall || $showExhibitionGames))
605:     #if ($events.add($event))
606:         #if ($event.postseason)
607:             #set ($hasPostSeasonEvents = true)
608:         #end
609: 
610:         #if ($event.conference)
611:             #set ($hasConfEvents = true)
612:         #end
613: 
614:         #if ($event.division)
615:             #set ($hasDivisionEvents = true)
616:         #end
617: 
618:         #if (!$event.overall)
619:             #set ($hasExhibitionEvents = true)
620:         #end
621: 
622:         #if ($event.neutralSite.length() > 0)
623:             #set ($hasNeutralEvents = true)
624:         #elseif ($event.home)
625:             #set ($hasHomeEvents = true)
626:         #else
627:             #set ($hasAwayEvents = true)
628:         #end
629:     #end
630: #end
631: #end
632: 
633: #if ($isSharedMeet)
634: 	#set ($rootClass = "schedule-meet")
635: #else
636:     #if ($enhancedLayout)
637:     	#set ($rootClass = "schedule-enhanced")
638:     #else
639:     	#set ($rootClass = "schedule-list")
640:     #end
641: 
642:     #if ($isTeamSchedule)
643:     	#set ($rootClass = "${rootClass} h2h-team")
644:     #else
645:     	#set ($rootClass = "${rootClass} h2h-conf")
646:     #end
647: #end
648: 
649: #if ($showTeamLogo)
650: 	#set ($rootClass = "${rootClass} has-logos")
651: #end
652: 
653: <div class="schedule-wrap ${rootClass} clearfix" data-module="schedule-layout">
654: 
655: $wiki
656: 
657: ## LOOK TO INCLUDE SCHEDULE NOTE
658: #set ($scheduleNoteURL = "${page.url}-note")
659: #if ($website.exists($scheduleNoteURL))
660: 	$website.include($scheduleNoteURL)
661: #end
662: 
663: #if ($page.title.length() > 0)
664: 	#if ($schedule.team.length() > 0 && $page.teams.size() > 1)
665: 		#set ($pageTitle = "${page.title} : ${schedule.team}")
666: 	#else
667: 		#set ($pageTitle = $page.title)
668: 	#end
669: 	<h1>$pageTitle</h1>
670: #end
671: 
672: ## SHARED MEETS TEAMS LAYOUT
673: #if ($isSharedMeet)
674: 
675: 	## SCHEDULE FILTERS
676: 	<div class="filters clearfix">
677: 
678: 	## LOOK TO INCLUDE ARCHIVE SCHEDULES DROPDOWN
679: 	<div class="filter seasons">
680: 		$website.include("navbar-schedule-archive?tmpl=schedule-archive-list-template&selected=${tool.esc.url($page.url)}")
681: 	</div>
682: 
683: 	#if ($showSpotOnAddToCal)
684:         <div class="filter spoton-cal"><a class="spoton-it" data-size="medium" data-options="ticker" data-color="rgb(0,33,71)" href="https://stanza.co/schedules/${stanzaCode}">Add to Calendar</a> <script>(function() {var so=document.createElement('script'); so.async=true;so.src='https://dff2h0hbfv6w4.cloudfront.net/scripts/loader.js'; var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(so,s);})();</script></div>
685: 	#end
686: 	</div> ## filters
687: 
688: 	#printSharedMeet
689: 
690: #else ## not shared meet
691: 
692: ## TEAM STATS
693: #if ($schedule.numericResults && !$isPrinterFriendly)
694: 	#printTeamStats
695: 
696:     ## SCHEDULE FILTERS
697:     <div class="filters clearfix">
698:     #if ($page.teams.size() > 1)
699:     	<div class="filter teams-filter">
700: 			<div class="select-list">
701: 				<label><span>Filter schedule by selecting a team name from the list</span>
702:             		<select id="select-box-team-filter">
703:             			<option value="${page.url}">All Teams</option>
704:             			#foreach ($team in $tool.sorter.sort($page.teams.entrySet(), "value"))
705:             				<option #if ($request.getParameter("teamId") == $team.key) selected #end value="${page.url}?teamId=${team.key}">$team.value</option>
706:             			#end
707:             		</select>
708: 				</label>
709: 			</div>
710:     	</div>
711:     #end
712: 
713:     #if ($isTeamSchedule && $enhancedLayout)
714:         <div class="filter venue-filter">
715: 			<div class="select-list">
716: 				<label>
717: 					<span>Filter events by selecting a venue from the list</span>
718:                     <select data-filter="true">
719:                         <option value="all">All Venues</option>
720:                         #if ($hasHomeEvents)
721:                             <option value="home">Home</option>
722:                         #end
723:                         #if ($hasAwayEvents)
724:                             <option value="away">Away</option>
725:                         #end
726:                         #if ($hasNeutralEvents)
727:                             <option value="neutral">Neutral</option>
728:                         #end
729:     				</select>
730: 				</label>
731: 			</div>
732:         </div>
733:     #end
734: 
735:     #if ($hasConfEvents || $hasDivisionEvents || $hasExhibitionEvents || $hasPostSeasonEvents)
736:         <div class="filter type-filter">
737: 			<div class="select-list">
738: 				<label>
739: 					<span>Filter events by selecting an event type from the list</span>
740:                     <select data-filter="true">
741:                         <option value="all">All Events</option>
742:                         #if ($hasConfEvents)
743:                             <option value="conf">Conference</option>
744:                         #end
745:                         #if ($hasDivisionEvents)
746:                             <option value="division">Division</option>
747:                         #end
748:                         #if ($hasExhibitionEvents)
749:                             <option value="exhibition">Exhibition</option>
750:                         #end
751:                         #if ($hasPostSeasonEvents)
752:                             <option value="postseason">Post Season</option>
753:                         #end
754:                     </select>
755: 				</label>
756: 			</div>
757:         </div>
758: 	#end
759: 
760: 	## LOOK TO INCLUDE ARCHIVE SCHEDULES DROPDOWN
761: 	<div class="filter seasons">
762: 		$website.include("navbar-schedule-archive?tmpl=schedule-archive-list-template&selected=${tool.esc.url($page.url)}")
763: 	</div>
764: 
765:     #if ($showSpotOnAddToCal)
766:         <div class="filter spoton-cal"><a class="spoton-it" data-size="medium" data-options="ticker" data-color="rgb(0,33,71)" href="https://stanza.co/schedules/${stanzaCode}">Add to Calendar</a> <script>(function() {var so=document.createElement('script'); so.async=true;so.src='https://dff2h0hbfv6w4.cloudfront.net/scripts/loader.js'; var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(so,s);})();</script></div>
767:     #end
768:     </div> ## filters
769: #else
770: 	## SCHEDULE FILTERS
771: 	<div class="filters clearfix">
772: 
773: 	## LOOK TO INCLUDE ARCHIVE SCHEDULES DROPDOWN
774: 	<div class="filter seasons">
775: 		$website.include("navbar-schedule-archive?tmpl=schedule-archive-list-template&selected=${tool.esc.url($page.url)}")
776: 	</div>
777: 
778: 	#if ($showSpotOnAddToCal)
779:         <div class="filter spoton-cal"><a class="spoton-it" data-size="medium" data-options="ticker" data-color="rgb(0,33,71)" href="https://stanza.co/schedules/${stanzaCode}">Add to Calendar</a> <script>(function() {var so=document.createElement('script'); so.async=true;so.src='https://dff2h0hbfv6w4.cloudfront.net/scripts/loader.js'; var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(so,s);})();</script></div>
780: 	#end
781: 	</div> ## filters
782: #end ## numericResults
783: 
784: <div class="schedule-content clearfix">
785: #if ($enhancedLayout) ## enhanced layout
786: 
787: 	#printEnhancedLayout
788: 
789: #else ## list layout
790: 
791: #set ($scheduleLayout = 1)
792: #if ($tool.math.toInteger($options.get("schedule_default_layout")) > 1)
793:   #set ($scheduleLayout = $tool.math.toInteger($options.get("schedule_default_layout")))
794: #end
795: 
796: ## SET DEFAULT LABELS AND FIELDS FOR NUMERIC vs. NON-NUMERIC SCHEDULES
797: #if ($isTeamSchedule)
798: ## TEAM VIEW
799:   #if ($schedule.numericResults) ## team h2h
800:     #if ($scheduleLayout == 1)
801:       #set ($scheduleFields = ["date", "opponent+neutralsite", "notes", "result", "status", "links"])
802:       #set ($scheduleLabels = ["Date", "Opponent", "Notes", "Result", "Status", "Links"])
803:     #elseif ($scheduleLayout == 2)
804:       #set ($scheduleFields = ["date", "opponent+neutralsite", "result", "status", "links", "_notes"])
805:       #set ($scheduleLabels = ["Date", "Opponent", "Result", "Status", "Links", "Notes"])
806: 	#elseif ($scheduleLayout == 3)
807: 	  #set ($scheduleFields = ["date", "opponent", "notes+neutralsite", "result", "status", "links"])
808:       #set ($scheduleLabels = ["Date", "Opponent", "Notes", "Result", "Status", "Links"])
809:     #end
810:   #else
811:     #if ($scheduleLayout == 1)
812:       #set ($scheduleFields = ["date", "opponent+neutralsite", "notes", "status", "team_away_result", "links"])
813:       #set ($scheduleLabels = ["Date", "Event", "Notes", "Status", "Result", "Links"])
814:     #elseif ($scheduleLayout == 2)
815:       #set ($scheduleFields = ["date", "opponent", "status", "team_away_result", "links", "_notes+neutralsite"])
816:       #set ($scheduleLabels = ["Date", "Event", "Status", "Result", "Links", "Notes"])
817:     #elseif ($scheduleLayout == 3)
818:       #set ($scheduleFields = ["date", "opponent+neutralsite",  "status", "team_away_result", "links", "_notes"])
819:       #set ($scheduleLabels = ["Date", "Event", "Status", "Result", "Links", "Notes"])
820:     #end
821:   #end
822: #else
823: ## CONFERENCE VIEW
824:   #if($schedule.numericResults) ## conf h2h
825:     #if ($scheduleLayout == 1)
826:       #set ($scheduleFields = ["date", "team_away", "team_away_result", "team_home", "team_home_result", "status", "links", "_notes+neutralsite"])
827:       #set ($scheduleLabels = ["Date", "Away", "", "Home", "", "Status", "Links", "Notes"])
828:     #elseif ($scheduleLayout == 2)
829:       #set ($scheduleFields = ["_date", "team_away+team_away_result", "team_home+team_home_result", "notes+neutralsite", "status", "links"])
830:       #set ($scheduleLabels = ["Date", "Away", "Home", "Notes", "Status", "Links"])
831: 	#elseif ($scheduleLayout == 3)
832: 	  #set ($scheduleFields = ["date", "team_away", "team_away_result", "team_home", "team_home_result", "notes+neutralsite", "status", "links"])
833:       #set ($scheduleLabels = ["Date", "Away", "", "Home", "", "Notes", "Status", "Links"])
834:     #end
835:   #else
836:     #if ($scheduleLayout == 1)
837:       #set ($scheduleFields = ["date", "opponent+neutralsite", "status", "result", "links", "_notes"])
838:       #set ($scheduleLabels = ["Date", "Teams/Event", "Time", "Score", "Links", "Notes"])
839:     #elseif ($scheduleLayout == 2)
840:       #set ($scheduleFields = ["date", "team_away", "neutralsite", "team_away_result", "links", "_notes"])
841:       #set ($scheduleLabels = ["Date", "Teams", "Event", "Results", "Links", "Notes"])
842: 	#elseif ($scheduleLayout == 3)
843: 	  #set ($scheduleFields = ["date", "team_away", "neutralsite", "team_away_result", "links", "notes"])
844:       #set ($scheduleLabels = ["Date", "Teams", "Event", "Results", "Links", "Notes"])
845:     #end
846:   #end
847: #end
848: 
849: ## SET FIELDS AND LABELS FROM OPTIONS IF AVAILABLE AND SANITIZE THEM
850: #if ($options.get("schedule_fields") && $options.get("schedule_labels"))
851: 	#set ($optionFields = $options.get("schedule_fields"))
852: 	#set ($optionFields = $optionFields.split(","))
853: 	#foreach ($field in $optionFields)
854: 		#set ($field = $field.trim())
855: 		$tool.list.set($optionFields, $tool.math.sub($velocityCount, 1), $field)
856: 	#end
857: 
858: 	#set ($optionLabels = $options.get("schedule_labels"))
859: 	#set ($optionLabels = $optionLabels.split(","))
860: 	#foreach ($label in $optionLabels)
861: 		#set ($label = $label.trim())
862: 		#if ($label.equals("-"))
863: 			#set ($label = "&nbsp;")
864: 		#end
865: 		$tool.list.set($optionLabels, $tool.math.sub($velocityCount, 1), $label)
866: 	#end
867: 
868: 	#if ($tool.list.size($optionFields) == $tool.list.size($optionLabels))
869: 		#set ($scheduleFields = $optionFields)
870: 		#set ($scheduleLabels = $optionLabels)
871: 	#end
872: #end
873: 
874: #set ($dateFormat = "EEE. d")
875: #set ($groupByMonths = true)
876: 
877: #if ($options.get("schedule_date_format").equals("Thu. 3"))
878:   #set ($dateFormat = "EEE. d")
879: #elseif ($options.get("schedule_date_format").equals("Mar. 15"))
880:   #set ($dateFormat = "MMM. dd")
881: #elseif ($options.get("schedule_date_format").equals("Mar. 15, 2013"))
882:   #set ($dateFormat = "MMM. dd, yyyy")
883: #elseif ($options.get("schedule_date_format").equals("March 15, 2013"))
884:   #set ($dateFormat = "MMMM dd, yyyy")
885: #elseif ($options.get("schedule_date_format").equals("March 15"))
886:   #set ($dateFormat = "MMMM dd")
887: #elseif ($options.get("schedule_date_format").equals("03/15/2013"))
888:   #set ($dateFormat = "MM/dd/yyyy")
889: #elseif ($options.get("schedule_date_format").equals("03/15"))
890:   #set ($dateFormat = "MM/dd")
891: #elseif ($options.get("schedule_date_format").equals("Thursday, March 15, 2013"))
892:   #set ($dateFormat = "EEEE, MMMM dd, yyyy")
893: #elseif ($options.get("schedule_date_format").equals("Thursday, Mar. 15, 2013"))
894:   #set ($dateFormat = "EEEE, MMM. dd, yyyy")
895: #elseif ($options.get("schedule_date_format").equals("Thursday, March 15"))
896:   #set ($dateFormat = "EEEE, MMMM dd")
897: #elseif ($options.get("schedule_date_format").equals("Thursday, Mar. 15"))
898:   #set ($dateFormat = "EEEE, MMM. dd")
899: #elseif ($options.get("schedule_date_format").equals("Thu., March 15"))
900:   #set ($dateFormat = "EEE., MMMM dd")
901: #elseif ($options.get("schedule_date_format").equals("Thu., Mar. 15"))
902:   #set ($dateFormat = "EEE., MMM. dd")
903: #end
904: 
905: #if ($options.get("schedule_group_by_months") == false)
906:   #set ($groupByMonths = false)
907: #end
908: 
909: <table>
910: <thead>
911: <tr>
912: #set ($colCount = 0)
913: #foreach ($label in $scheduleLabels)
914:   #if (!$tool.list.get($scheduleFields, $tool.math.sub($velocityCount, 1)).startsWith("_"))
915:     <th>$label</th>
916: 	#set ($colCount = $colCount + 1)
917:   #end
918: #end
919: </tr>
920: </thead>
921: 
922: #set ($lastdate = "")
923: #set ($lastMonth = "")
924: #set ($counter = 0)
925: <tbody class="event-group">
926: #foreach ($event in $events)
927: 
928:   #set ($formattedDate = $formatter.formatDate($event.date, $dateFormat))
929:   #set ($theDate = $formatter.formatDate($event.date, "MMMM dd yyyy"))
930:   #set ($theMonth = $formatter.formatDate($event.date, "MMMM"))
931: 
932:   #if ($groupByMonths && !$lastMonth.equals($theMonth))
933: 	#if ($velocityCount > 1)
934:         </tbody><tbody class="event-group">
935:     
936:         <tr class="month-sep"><td colspan="${colCount}">&nbsp;</td></tr> ## show empty row
937:     #end
938:     
939:     <tr class="month-title"><td colspan="${colCount}">$theMonth</td></tr>
940:     ## EVENTS ARE GROUPED WHEN HERE SO RESET COUNTER BACK TO 0
941:     #set ($counter = 0)
942:   #end
943: 
944:   #set ($counter = $counter + 1)
945:   #set ($rowClass = "event-row")
946: 
947:   #if ($event.inProgress)
948:     #set ($rowClass = "${rowClass} in-progress")
949:   #end
950: 
951:   #if ($event.conference)
952:     #set ($rowClass = "${rowClass} conf")
953:   #end
954: 
955:   #if ($event.postseason)
956:     #set ($rowClass = "${rowClass} postseason")
957:   #end
958: 
959:   #if ($event.division)
960:     #set ($rowClass = "${rowClass} division")
961:   #end
962: 
963:   #if (!$event.overall)
964:     #set ($rowClass = "${rowClass} exhibition")
965:   #end
966: 
967:   #if ($event.neutralSite.length() > 0) #else
968: 	#if ($event.home)
969: 		#set ($rowClass = "${rowClass} home")
970: 	#end
971:   #end
972: 
973:   #if ($scheduleFields.contains("_date") && !$lastDate.equals($theDate))
974:     <tr class="${rowClass} date-sep"><td colspan="${colCount}">&nbsp;</td></tr> ## show empty row
975:     <tr class="${rowClass} date-title"><td colspan="${colCount}">$formattedDate</td></tr>
976: 
977:     ## EVENTS ARE GROUPED WHEN HERE SO RESET COUNTER BACK TO 0
978:     #set ($counter = 0)
979:   #end
980: 
981:   #if ($counter % 2 == 0)
982:     #set ($rowClass = "${rowClass} even")
983:   #else
984:     #set ($rowClass = "${rowClass} odd")
985:   #end
986: 
987:   <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
988:   #foreach ($field in $scheduleFields)
989: 
990:   ## DATE
991:   #if ($field.equals("date"))
992:     <td class="e_date">#if (!$lastDate.equals($theDate)) $formattedDate #else &nbsp; #end</td>
993:   #end
994: 
995:   ## OPPONENT
996:   #if ($field.equals("opponent") || $field.equals("opponent+neutralsite"))
997:     <td class="e_team e_opponent">
998:     #printTeamLogo($event.opponent)
999: 
1000:     #if ($showVsAt)
1001:       #if ($event.neutralSite.length() > 0 || $event.home)
1002:         <span class="va">vs. </span>
1003:       #else
1004:         <span class="va">at </span>
1005:       #end
1006:     #end
1007: 
1008:     #printTeamName($event.opponent)
1009:     #printNotations($event)
1010: 
1011:     #if ($field.equals("opponent+neutralsite") && $event.neutralSite.length() > 0)
1012:       <span class="neutralsite">@ $event.neutralSite</span>
1013:     #end
1014:     </td>
1015:   #end
1016: 
1017:   ## RESULT
1018:   #if ($field.equals("result") || $field.equals("result+status"))
1019:     <td class="e_result">
1020: 	#printAPResult($event)
1021: 
1022:     #if ($field.equals("result+status"))
1023:       #printEventStatus($event)
1024:     #end
1025:     </td>
1026:   #end
1027: 
1028:   ## TEAM AWAY
1029:   #if ($field.equals("team_away") || $field.equals("team_away+team_away_result"))
1030:     #set ($class = "e_team e_awayteam")
1031:     #if ($field.equals("team_away+team_away_result"))
1032:       #set ($class = "e_team_result e_awayteam")
1033:     #end
1034:     <td class="$class">
1035:     #if ($event.teams.size() > 0)
1036:       #set ($awayTeam = $event.teams.get(0))
1037:       #printTeamLogo($awayTeam)
1038:       #printTeamName($awayTeam)
1039: 	  #printNotations($event)
1040: 
1041:       #if ($field.equals("team_away+team_away_result") && $awayTeam.result.length() > 0)
1042: 		#if ($awayTeam.winner)
1043: 		  <span class="e_result winner">$awayTeam.result</span>
1044: 		#else
1045:           <span class="e_result">$awayTeam.result</span>
1046: 		#end
1047:       #end
1048:     #else
1049:       &nbsp;
1050:     #end
1051:     </td>
1052:   #end
1053: 
1054:   ## TEAM AWAY RESULT
1055:   #if ($field.equals("team_away_result"))
1056: 	#set ($class = "e_result e_awayresult")
1057: 	#if ($event.teams.size() > 0 && $event.teams.get(0).winner)
1058: 		#set ($class = "${class} winner")
1059: 	#end
1060:     <td class="$class">
1061:     #if ($event.teams.size() > 0 && $event.teams.get(0).result.length() > 0)
1062:       $event.teams.get(0).result
1063:     #else
1064:       &nbsp;
1065:     #end
1066:     </td>
1067:   #end
1068: 
1069:   ## TEAM HOME
1070:   #if ($field.equals("team_home") || $field.equals("team_home+team_home_result"))
1071:     #set ($class = "e_team e_hometeam")
1072:     #if ($field.equals("team_home+team_home_result"))
1073:       #set ($class = "e_team_result e_hometeam")
1074:     #end
1075:     <td class="$class">
1076:     #if ($event.teams.size() > 1)
1077:       #set ($homeTeam = $event.teams.get(1))
1078:       #printTeamLogo($homeTeam)
1079:       #printTeamName($homeTeam)
1080: 
1081:       #if ($field.equals("team_home+team_home_result") && $homeTeam.result.length() > 0)
1082: 		#if ($homeTeam.winner)
1083: 		  <span class="e_result winner">$homeTeam.result</span>
1084: 		#else
1085:           <span class="e_result">$homeTeam.result</span>
1086: 		#end
1087:       #end
1088:     #else
1089:       &nbsp;
1090:     #end
1091:     </td>
1092:   #end
1093: 
1094:   ## TEAM HOME RESULT
1095:   #if ($field.equals("team_home_result"))
1096: 	#set ($class = "e_result e_homeresult")
1097: 	#if ($event.teams.size() > 1 && $event.teams.get(1).winner)
1098: 	  #set ($class = "${class} winner")
1099: 	#end
1100:     <td class="$class">
1101:     #if ($event.teams.size() > 1 && $event.teams.get(1).result.length() > 0)
1102:       $event.teams.get(1).result
1103:     #else
1104:       &nbsp;
1105:     #end
1106:     </td>
1107:   #end
1108: 
1109:   ## BOTH TEAMS AND THEIR RESULT
1110:   #if ($field.equals("teams+result"))
1111:     <td class="e_teams_result">
1112:     #foreach ($team in $event.teams)
1113:       #if ($velocityCount == 1)
1114:         #printNotations($event)
1115:       #end
1116: 
1117:       #if ($velocityCount > 1) &nbsp;&nbsp; #end
1118: 
1119:       #printTeamLogo($team)
1120:       #printTeamName($team)
1121: 
1122:       &nbsp;
1123: 
1124:       #if ($team.result.length() > 0) $team.result #end
1125:     #end
1126:     </td>
1127:   #end
1128: 
1129:   ## STATUS
1130:   #if ($field.equals("status") || $field.equals("status+neutralsite"))
1131:     <td class="e_status">
1132:     #printEventStatus($event)
1133: 
1134:     #if ($field.equals("status+neutralsite") && $event.neutralSite.length() > 0)
1135:       @ ${event.neutralSite}
1136:     #end
1137:     </td>
1138:   #end
1139: 
1140:   ## LINKS (SAME ROW)
1141:   #if ($field.equals("links"))
1142:     <td class="e_links">
1143:       #printEventLinks($event, false, true)
1144:       $wiki.event($event)
1145:     </td>
1146:   #end
1147: 
1148:   ## NOTES (SAME ROW)
1149:   #if ($field.equals("notes") || $field.equals("notes+neutralsite"))
1150:     <td class="e_notes">$!event.notes #if ($field.equals("notes+neutralsite") && $event.neutralSite.length() > 0) @ $event.neutralSite #end</td>
1151:   #end
1152: 
1153:   ## NEUTRALSITE
1154:   #if ($field.equals("neutralsite"))
1155:     <td class="e_neutralsite">
1156:     #if ($event.neutralSite.length() > 0)
1157:       ## DISPLAY THE @ CHARACTER ONLY FOR HEAD-TO-HEAD SCHEDULES (non numeric schedules sometimes use neutralSite field for event name)
1158:       #if ($schedule.numericResults) @ #end $event.neutralSite
1159:     #else
1160:       &nbsp;
1161: 	#end
1162:     </td>
1163:   #end
1164: 
1165:   #end ## fields loop
1166:   </tr>
1167: 
1168:   #foreach ($field in $scheduleFields)
1169: 
1170:   ## NOTES (NEW ROW)
1171:   #if (($field.equals("_notes") && $event.notes.length() > 0) || ($field.equals("_notes+neutralsite") && ($event.notes.length() > 0 || $event.neutralSite.length() > 0)))
1172:     <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
1173:       <td>&nbsp;</td>
1174:       <td colspan="${tool.math.sub($colCount, 1)}" class="e_notes">$!event.notes #if ($field.equals("_notes+neutralsite") && $event.neutralSite.length() > 0) @ $event.neutralSite #end</td>
1175:     </tr>
1176:   #end
1177: 
1178:   ## LINKS (NEW ROW)
1179:   #if ($field.equals("_links") && $event.links.size() > 0)
1180:     <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
1181:       <td>&nbsp;</td>
1182:       <td colspan="${tool.math.sub($colCount, 1)}" class="e_links">
1183:         #printEventLinks($event, false, true)
1184:         $wiki.event($event)
1185:       </td>
1186:     </tr>
1187:   #end
1188: 
1189:   ## NEUTRAL SITE (NEW ROW)
1190:   #if ($field.equals("_neutralsite") && $event.neutralSite.length() > 0)
1191:     <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
1192:       <td>&nbsp;</td>
1193:       <td colspan="${tool.math.sub($colCount, 1)}" class="e_neutralsite">#if ($schedule.numericResults) @ #end $event.neutralSite</td>
1194:     </tr>
1195:   #end
1196: 
1197:   #end ## fields loop
1198: 
1199:   #set ($lastDate = $theDate)
1200:   #set ($lastMonth = $theMonth)
1201: #end ## EVENTS LOOP
1202: </tbody>
1203: </table>
1204: #end ## enhancedLayout check
1205: </div>
1206: 
1207: ## LOOK TO INCLUDE SCHEDULE POST FILE
1208: #set ($schedulePostURL = "${page.url}-post")
1209: #if ($website.exists($schedulePostURL))
1210:   <div class="schedule-post">$website.include($schedulePostURL)</div>
1211: #end
1212: 
1213: ## LEGENDS
1214: <div class="notations">
1215:   #if ($hasExhibitionEvents)
1216:     <div class="exhibition"><strong>$exhibitionNotation</strong> <span>Exhibition</span></div>
1217:   #end
1218:   #if ($hasConfEvents)
1219:     <div class="conf"><strong>$confNotation</strong> <span>Conference</span></div>
1220:   #end
1221:   #if ($hasDivisionEvents)
1222:     <div class="division"><strong>$divisionNotation</strong> <span>Division</span></div>
1223:   #end
1224:   #if ($hasPostSeasonEvents)
1225:     <div class="postseason"><strong>$postseasonNotation</strong> <span>Post season</span></div>
1226:   #end
1227:   #if ($hasHomeEvents && !$enhancedLayout)
1228: 	<div class="homeevents"><strong>Bold team:</strong> <span>Home event</span></div>
1229:   #end
1230:   #if ($showLeaders && $rosterHeadshots.size() > 0)
1231:     <div class="leaders"><strong>$multipleLeadersNotation</strong> <span>Multiple Leaders</span></div>
1232:   #end
1233: </div>
1234: 
1235: ## LOOK TO INCLUDE SCHEDULE FOOTER FILE
1236: #set ($scheduleFooterURL = "${page.url}-footer")
1237: 	#if ($website.exists($scheduleFooterURL))
1238:         <div class="schedule-footer">$website.include($scheduleFooterURL)</div>
1239: #end
1240: 
1241: <div class="subscribe-links">
1242:   <a href="$icalURL"><img src="/info/images/icon_schedule.gif" alt="" /> <strong>iCalendar</strong></a> ## iCalendar
1243:   <a href="$rssURL"><img src="/info/images/icon_rss.gif" alt="" /> <strong>RSS Feed</strong></a> ## RSS
1244: </div>
1245: 
1246: 
1247: 
1248: $sfs
1249: $wiki
1250: $rss
1251: 
1252: #end
1253: </div> ## schedule-wrap
1254: 
1255: #if ($request.getParameter("ajax").equals("true"))
1256:   $!request.setAttribute("decorator", "")
1257: #end