12 - Justin Agosta
Justin Agosta
Birth Date: 10/9/90
Height: 6-3
Weight: 200
Year: Jr.
Hometown: East Meadow, N.Y.
Position: D
Team: Jersey (EJHL)
S/C: R
gp 38
p 14
g 2
a 12
pim 12
+/- +1

2012-13: | Stats | Photos
Skated in 38 of 39 games ... recorded 14 points on two goals and 12 assists ... tallied an assist in the NCAA Northeast Regional semifinal against Denver (03/29) ... in 27 Hockey East league games, tallied 10 points (1g, 9a) ... recorded his first career multiple-point game with three assists vs. Providence (01/19) ... recorded an assist on the game-winning goal at Boston U. (11/18)  and vs. Boston College (01/12) ... tallied a point in consecutive games three times spanning eight games for  total of eight points (2g, 6a).

2011-12: | Stats | Photos
Agosta played in all 37 games this season for UNH… had five points on one goal and four assists… had an assist in the double overtime win against Boston University in the Hockey East quarterfinals… scored his first collegiate goal against UMass-Lowell on 12/03/11.

2010-11: | Stats  
Agosta did not see action during his freshman campaign.

Career Milestones: First goal Dec. 3, 2011 vs. UMass-Lowell...Career-high one assist on multiple occasions. Career-high one goal on Dec.3, 2011 vs. Umass Lowell... Career-high one point on multiple occasions.


Before UNH: Agosta split time in 2009-10 with the Indiana Ice of the United States Hockey League (USHL) and the Jersey Hitmen of the Eastern Junior Hockey League (EJHL). Agosta played 36 games with 16 points on three goals and 13 assists on defense for the Ice and owned a +3 plus/minus rating. He finished the season in Jersey, playing in 10 games tallying three goals and six assists. Before his time in the USHL, Agosta also played a year at the Berkshire School, recording 69 points (18g, 51a) in 62 games.

Personal: Born in Queens, N.Y. on October 9, 1990... Son of John Agosta… Shoots right… An accounting major… Lists Los Angeles Kings’ Drew Doughty as his favorite athlete and his father as the person he admires most outside of sports.

 

Year GP G-A-P +/- PIM PPG GWG SHG
2012-13 38 2-12-14 +1 12-10 0 0 0
2011-12 37 1-4-5 -2 6-12 0 0 0
2010-11 0 0-0-0 E 0-0 0 0 0
Totals 75 3-16-19 -1 18-22 0 0 0
Recent Games
Mar 9 Maine T, 4-4
Mar 15 at Providence L, 3-2
Mar 16 at Providence W, 4-1
Mar 17 at Providence L, 3-2
Mar 29 vs. Denver W, 5-2
Mar 30 vs. Mass.-Lowell L, 2-0
Statistics category Overall Conf
Games 38 27
Points 14 10
Goals 2 1
Assists 12 9
PIM 12 10
+/- +1 -2
Power-play goals 0 0
Short-handed goals 0 0
Empty net goals 0 0
Game-winning goals 1 0
Game-tying goals 0 0
Hat tricks 0 0
Shots 37 28
Date Opponent Score g a pts pim +/- ppg shg eng gwg gtg s
Oct 12 St. Cloud St. W, 5-3 0 0 0 2 -1 0 0 0 0 0 0
Oct 13 St. Cloud St. W, 4-2 0 0 0 0 -1 0 0 0 0 0 2
Oct 20 Boston U. W, 4-1 0 0 0 0 +0 0 0 0 0 0 0
Oct 26 Northeastern W, 4-3 0 1 1 0 -1 0 0 0 0 0 0
Oct 27 at Northeastern T, 0-0 0 0 0 0 +0 0 0 0 0 0 3
Nov 2 at Massachusetts L, 2-1 0 0 0 0 +0 0 0 0 0 0 1
Nov 4 at Maine W, 4-0 0 0 0 0 +0 0 0 0 0 0 2
Nov 10 Vermont W, 4-0 0 1 1 0 +1 0 0 0 0 0 1
Nov 16 at Mass.-Lowell W, 3-0 0 0 0 2 +0 0 0 0 0 0 0
Nov 18 at Boston U. W, 3-1 0 1 1 0 +2 0 0 0 0 0 3
Nov 23 at Colorado Col. T, 4-4 0 0 0 0 +2 0 0 0 0 0 0
Nov 24 at Denver W, 6-4 0 1 1 0 +1 0 0 0 0 0 2
Nov 30 Mass.-Lowell W, 5-2 0 0 0 0 -1 0 0 0 0 0 1
Dec 1 at Mass.-Lowell W, 5-2 1 0 1 0 +1 0 0 0 0 0 2
Dec 6 Boston U. L, 3-2 0 1 1 0 +1 0 0 0 0 0 1
Dec 9 US Under 18 Team T, 2-2 - - - - - - - - - - -
Dec 30 at Dartmouth L, 4-1 0 0 0 0 +0 0 0 0 0 0 1
Dec 31 vs. Bemidji St. W, 3-2 0 1 1 0 +1 0 0 0 0 0 1
Jan 5 Rensselaer W, 5-2 1 0 1 0 +1 0 0 0 1 0 3
Jan 11 at Boston College L, 5-2 0 0 0 0 +0 0 0 0 0 0 0
Jan 12 Boston College W, 2-1 0 1 1 0 -1 0 0 0 0 0 0
Jan 19 Providence L, 6-5 0 3 3 0 +1 0 0 0 0 0 2
Jan 25 at Merrimack L, 3-2 0 0 0 0 -1 0 0 0 0 0 1
Jan 26 Merrimack W, 6-2 0 0 0 2 +1 0 0 0 0 0 0
Feb 1 at Northeastern W, 3-1 0 0 0 0 +0 0 0 0 0 0 0
Feb 2 Merrimack L, 4-1 0 0 0 0 -1 0 0 0 0 0 2
Feb 10 Providence T, 3-3 0 0 0 0 +0 0 0 0 0 0 1
Feb 13 at Providence L, 1-0 0 0 0 2 +0 0 0 0 0 0 3
Feb 17 at Boston College T, 4-4 0 0 0 2 -2 0 0 0 0 0 0
Feb 22 at Vermont W, 4-3 0 0 0 0 -2 0 0 0 0 0 0
Feb 23 at Vermont T, 1-1 0 0 0 0 +0 0 0 0 0 0 3
Mar 1 Massachusetts T, 2-2 0 0 0 0 +0 0 0 0 0 0 0
Mar 2 Massachusetts W, 4-0 0 0 0 0 +0 0 0 0 0 0 1
Mar 8 Maine L, 4-3 0 0 0 2 -1 0 0 0 0 0 1
Mar 9 Maine T, 4-4 0 1 1 0 +1 0 0 0 0 0 0
Mar 15 at Providence L, 3-2 - - - - - - - - - - -
Mar 16 at Providence W, 4-1 0 0 0 0 +0 0 0 0 0 0 0
Mar 17 at Providence L, 3-2 0 0 0 0 +0 0 0 0 0 0 0
Mar 29 vs. Denver W, 5-2 0 1 1 0 +0 0 0 0 0 0 0
Mar 30 vs. Mass.-Lowell L, 2-0 0 0 0 0 +0 0 0 0 0 0 0
  gp g a pts pim +/- ppg shg eng gwg gtg hat s
Total 38 2 12 14 12 +1 0 0 0 1 0 0 37
Conference 27 1 9 10 10 -2 0 0 0 0 0 0 28
Exhibition - - - 0 - - - - - - - - -

Home 17 1 8 9 6 -1 0 0 0 1 0 0 15
There was a problem with a Velocity script
Page/sports/mice/2012-13/bios/bio-template
ErrorVM #split: too few arguments to macro. Wanted 4 got 3 at bio-template[line 686, column 1]
Page source:
1: #if ($browser.getIphone() || $browser.getMobile())
2:    #set ($includeURL = "$page.url?tmpl=mobile-bios-template")  ##for roster templates
3:    $website.includeAgain($includeURL)
4:    #stop
5: #else
6: 
7: <head>
8: 	<link rel="stylesheet" type="text/css" href="/info/bio-styles.css" />
9: </head>
10: 
11: ## PICK UP OPTIONS
12: $website.include("options")
13: #set ($options = $request.getAttribute("options"))
14: 
15: ## CHANGES FOR STATS
16: 
17: ## HACK TO GET STATS URL FROM RENDERER... NEEDS SERVER CHANGE
18: #set ($bioObject = $page.getDataAsObject())
19: #set ($statsURL = $bioObject.statsURL)
20: ## END OF HACK
21: 
22: #if ($statsURL.length() > 0)
23:   $website.includeAgain("${statsURL}?tmpl=bio-stats-template")
24:   ## various settings to get the variables set
25:   #set ($events = $request.getAttribute("bio_events"))
26:   #set ($labels = $request.getAttribute("bio_labels"))
27:   #set ($briefs = $request.getAttribute("bio_briefs"))
28:   #set ($gamelogs =$request.getAttribute("bio_gamelogs"))
29:   #set ($splits = $request.getAttribute("bio_splits"))
30:   #set ($positions = $request.getAttribute("bio_positions"))
31:   #set ($playerId = $request.getAttribute("bio_player_id"))
32:   #set ($highlights = $request.getAttribute("bio_highlights"))
33:   #set ($formats = $request.getAttribute("bio_formats"))
34: #end
35: 
36: ## END CHANGES FOR STATS
37: 
38: #set ($pos = "")
39: #set ($pos = $attributes.get("position"))
40: #set ($pos = $pos.toLowerCase())
41: #set ($pos = $positions.get($pos))
42: #set ($highlights = $highlights.get($pos))
43: #set ($showHighlights = true)
44: #if ($options.get("bio_show_highlights") && $options.get("bio_show_highlights") == false)
45: 	#set ($showHighlights = false)
46: #end
47: #if ($request.getParameter("pos"))
48: 	#set ($pos = $request.getParameter("pos"))
49: 	#set ($pos = $pos.toLowerCase())
50: 	#set ($pos = $positions.get($pos))
51: #end
52: #set ($labels = $labels.get($pos))
53: #set ($briefs = $briefs.get($pos))
54: #set ($gamelogs = $gamelogs.get($pos))
55: #set ($stats = $splits.overall)
56: #set ($hasEvents = $events.size() > 0)
57: #set ($hasSynopsis = $synopsis.length() > 1 && $synopsis.indexOf("<center>") == -1)
58: #set ($htmlStatsURL = "${page.url}-stats")
59: #set ($hasHTMLStats = $website.exists($htmlStatsURL))
60: #set ($bioBriefURL = "${page.url}-brief")
61: #set ($hasBioBrief = $website.exists("$bioBriefURL"))
62: #set ($showRoster = ($page.contentType == "loki/bio" && $page.headlinesFeatured.size() > 0) || ($page.contentType == "loki/bio-network" && $page.sectionPage.children.size() > 1))
63: #if ($options.get("bio_hide_roster") == true)
64: 	#set ($showRoster = false)
65: #end
66: #set ($playerId = $attributes.get("playerId"))
67: #set ($url = ${page.url})
68: 
69: ## Always default to the bio page if available
70: #set ($view = "bio")
71: 
72: #if ($hasSynopsis || $hasBioBrief)
73: 	#set ($view = "bio")
74: #elseif ($hasEvents)
75: 	#set ($view = "profile")
76: #elseif ($hasHTMLStats)
77: 	#set ($view = "htmlstats")
78: #else
79: 	#set ($view = "")
80: #end
81: 
82: #if ($options.get("bio_default_view").length() > 0)
83: 	#set ($checkView = $options.get("bio_default_view"))
84: #end
85: 
86: #if ($request.getParameter("view").length() > 0)
87: 	#set ($checkView = $request.getParameter("view"))
88: #end
89: 
90: #if ($checkView == "profile" && $hasEvents)
91: 	#set ($view = "profile")
92: #elseif ($checkView == "bio" && ($hasSynopsis || $hasBioBrief))
93: 	#set ($view = "bio")
94: #elseif ($checkView == "gamelog" && $hasEvents)
95: 	#set ($view = "gamelog")
96: #elseif ($checkView == "splits" && $hasEvents)
97: 	#set ($view = "splits")
98: #elseif ($checkView == "htmlstats" && $hasHTMLStats)
99: 	#set ($view = "htmlstats")
100: #end
101: 
102: #if ($attributes.get("full_name"))
103: 	#set ($fullName = $attributes.get("full_name"))
104: #else
105: 	#set ($firstName = $!attributes.get("first_name"))
106: 	#set ($lastName = $!attributes.get("last_name"))
107: 	#set ($fullName = "${firstName} ${lastName}")
108: #end
109: 
110: <head>
111:   <title>$fullName #if ($attributes.get("team")) | $attributes.get("team")#end</title>
112: </head>
113: 
114: ## FULL ROSTER
115: <div class="bio-wrap clearfix">
116: 
117: <div class="head clearfix">
118: 
119: <div class="bio-title">#if ($attributes.get("number"))<span class="number">$!attributes.get("number") - #end</span><span class="name">$fullName</span></div>
120: 
121: <div class="about">
122: 
123: <div class="clearfix">
124: 
125: #if ($headshot.url)
126: 	<img src="$headshot.url?max_width=150&max_height=200" alt="$fullName" title="$fullName" class="bio-headshot" />
127: #else
128: 	#if ($website.exists("/images/setup/headshot_default.jpg"))
129: 		<img src="/images/setup/headshot_default.jpg" alt="$fullName" title="$fullName" class="bio-headshot" />
130: 	#else
131: 		<img src="/info/images/default_headshot.jpg" alt="$fullName" title="$fullName" class="bio-headshot" />
132: 	#end
133: #end
134: 
135: #set ($counter = 0)
136: <table cellpadding="5" cellspacing="5" border="0">
137: 
138: #foreach ($i in [1..10])
139: 	#set ($stickyKey = "bio_custom${i}_sticky")
140: 	#if ($options.get($stickyKey).length() > 0 && $attributes.get("custom${i}").length() > 0)
141: 		<tr><td class="lbl">$options.get($stickyKey): </td><td class="val">$!attributes.get("custom${i}")</td></tr>
142: 		#set ($counter = $counter + 1)
143: 	#end
144: #end
145: 
146: #foreach ($field in $fields)
147: 	#if (! $field.key.startsWith("custom"))
148: 		#if ($attributes.get($field.key).length() > 0 && ($field.key != "first_name" && $field.key != "last_name" && $field.key != "number" && $field.key != "full_name"))
149: 
150: 			#if ($field.key == "phone1" || $field.key == "phone2")
151: 				<tr><td class="lbl">Phone: </td><td class="val">$!attributes.get($field.key)</td></tr>
152: 			#elseif ($field.key == "email_address")
153: 				#set ($emailAdd = $attributes.get($field.key))
154: 				<tr><td class="lbl">Email: </td><td class="val"><a href="mailto:${emailAdd}">$emailAdd</a></td></tr>
155: 			#else
156: 				<tr><td class="lbl">$field.value: </td><td class="val">$!attributes.get($field.key)</td></tr>
157: 			#end
158: 
159: 			#set ($counter = $counter + 1)
160: 		#end
161: 	#end
162: #end
163: 
164: #foreach ($i in [1..10])
165: 	#set ($customKey = "bio_custom${i}")
166: 	#if ($options.get($customKey).length() > 0 && $attributes.get("custom${i}"))
167: 		<tr><td class="lbl">$options.get($customKey): </td><td class="val">$!attributes.get("custom${i}")</td></tr>
168: 		#set ($counter = $counter + 1)
169: 	#end
170: #end
171: 
172: </table>
173: 
174: </div> ## clearfix
175: 
176: </div> ## ends about
177: 
178: #if ($highlights && $showHighlights)
179: <div class="headstats">
180: 	#foreach ($highlight in $highlights.keySet())
181: 		<div class="hst">
182: 		<span class="title" title="$!highlights.get($highlight)">$!highlights.get($highlight)</span>
183: 		#set ($value = "-")
184: 		#set ($value = $formatter.formatNumber($stats.get($highlight), $formats.get($highlight)))
185: 		#if ($value.length() > 0)
186: 			<span class="value">$value</span>
187: 		#else
188: 			<span class="value">-</span>
189: 		#end
190: 		</div>
191: 	#end
192: </div>
193: #end ## if-highlights
194: 
195: </div> ## ends head
196: 
197: #if ($hasSynopsis || $hasBioBrief || $hasEvents || $hasHTMLStats || $showRoster)
198: <div class="tabs-wrapper clearfix">
199: 	#if (($hasSynopsis || $hasBioBrief || $hasEvents || $hasHTMLStats) && $view.length() > 0)
200: 	<ul class="tabs clearfix">
201: 		#if ($hasSynopsis || $hasBioBrief)
202: 			#if ($view == "bio")
203: 				<li class="tab active"><a href="${url}?view=bio" class="tab-link brief">Bio</a></li>
204: 			#else
205: 				<li class="tab"><a href="${url}?view=bio" class="tab-link brief">Bio</a></li>
206: 			#end
207: 		#end
208: 		
209: 		#if ($hasEvents)
210: 			#if ($view == "profile")
211: 				<li class="tab active"><a href="${url}?view=profile" class="tab-link profile">Player Profile</a></li>
212: 			#else
213: 				<li class="tab"><a href="${url}?view=profile" class="tab-link profile">Player Profile</a></li>
214: 			#end
215: 			
216: 			#if ($view == "gamelog")
217: 				<li class="tab active"><a href="${url}?view=gamelog" class="tab-link gamelog">Game Log</a></li>
218: 			#else
219: 				<li class="tab"><a href="${url}?view=gamelog" class="tab-link gamelog">Game Log</a></li>
220: 			#end
221: 			
222: 			#if ($view == "splits")
223: 				<li class="tab active"><a href="${url}?view=splits" class="tab-link splits">Split Stats</a></li>
224: 			#else
225: 				<li class="tab"><a href="${url}?view=splits" class="tab-link splits">Split Stats</a></li>
226: 			#end
227: 		#end
228: 
229: 		#if ($hasHTMLStats)
230: 			#if ($view == "htmlstats")
231: 				<li class="tab active"><a href="$htmlStatsURL" class="tab-link htmlstats">HTML Stats</a></li>
232: 			#else
233: 				<li class="tab"><a href="$htmlStatsURL" class="tab-link htmlstats">HTML Stats</a></li>
234: 			#end
235: 		#end
236: 	</ul>
237: 	#end
238: 	#if ($showRoster)
239: 		#if ($page.contentType == "loki/bio")
240: 			#set ($headlinesFeaturedSize = 0)
241: 			#foreach ($featuredPage in $page.headlinesFeatured)
242: 				#if ($featuredPage.contentType == "loki/headlines")
243: 					#set ($headlinesFeaturedSize = $headlinesFeaturedSize + 1)
244: 				#end
245: 			#end
246: 			#if ($headlinesFeaturedSize > 0)
247: 				<select class="roster-select-list">
248: 					<option selected="selected" class="bold">Related Bios</option>
249:     			#foreach ($featuredPage in $page.headlinesFeatured)
250:     				#if ($featuredPage.contentType == "loki/headlines")
251:     					$website.includeAgain("${featuredPage.url}?tmpl=roster-list-template&current_url=${page.url}")
252:     				#end
253: 				#end
254: 				</select>
255: 			#end
256: 		#elseif ($page.contentType == "loki/bio-network")
257: 			#set ($relatedPlayers = $page.sectionPage.children)
258: 			#set ($teamNames = {})
259: 			#foreach ($relatedPlayer in $relatedPlayers)
260: 				#if ($relatedPlayer.contentType == "loki/bio-network")
261: 					#set ($relatedPlayerObj = $relatedPlayer.getDataAsObject().getAttributes())
262: 					## <span class="none relatedplayeratt">$relatedPlayerObj</span>
263: 					#set ($teamName = $relatedPlayerObj.get("team"))
264: 					#if ($teamName.length() > 0)
265:     					#if (!$teamNames.containsValue($teamName))
266:     						$!teamNames.put($tool.math.add($teamNames.size(), 1), $teamName)
267:     					#end
268: 					#end
269: 				#end
270: 			#end
271: 			##<span class="none teamnames">$teamNames</span>
272: 			<select class="roster-select-list">
273: 			#foreach ($i in [1..$teamNames.size()])
274: 				#if ($teamNames.size() > 1)
275: 					<optgroup label="$teamNames.get($i)">
276: 				#end
277: 				
278: 				#foreach ($relatedPlayer in $relatedPlayers)
279: 					#if ($relatedPlayer.contentType == "loki/bio-network")
280: 						#set ($relatedPlayerObj = $relatedPlayer.getDataAsObject().getAttributes())
281: 						#set ($teamName = $relatedPlayerObj.get("team"))
282: 						#if ($teamName.length() > 0 && $teamName == $teamNames.get($i))
283: 							#set ($playerFirstName = $relatedPlayerObj.get("first_name"))
284: 							#set ($playerLastName = $relatedPlayerObj.get("last_name"))
285: 							#if ($page.url == $relatedPlayer.url)
286: 								<option value="$relatedPlayer.url" selected="selected" class="bold">${playerFirstName} ${playerLastName}</option>
287: 							#else
288: 								<option value="$relatedPlayer.url">${playerFirstName} ${playerLastName}</option>
289: 							#end
290: 						#end
291: 					#end
292: 				#end
293: 				
294: 				#if ($teamNames.size() > 1)
295: 					</optgroup>
296: 				#end
297: 			#end
298: 			</select>
299: 		#end
300: 	#end
301: </div>
302: #end
303: 
304: ## BIO TAB
305: #if ($hasSynopsis || $hasBioBrief)
306: 
307: #if ($view == "bio")
308: 	<div class="tab-content active" id="bio">
309: #else
310: 	<div class="tab-content" id="bio">
311: #end
312: 
313: <div class="synopsis clearfix">
314: #if ($hasSynopsis)
315: 	$synopsis
316: #elseif ($hasBioBrief)
317: 	$website.include("$bioBriefURL")
318: #end
319: </div>
320: 
321: </div> ## tab-content
322: #end ## BIO TAB ENDS
323: 
324: ## PROFILE TAB
325: #if ($hasEvents)
326: 
327: #if ($view == "profile")
328: 	<div class="tab-content active" id="profile">
329: #else
330: 	<div class="tab-content" id="profile">
331: #end
332: 
333: #if ($hasEvents)
334: <div class="stats-wrapper">
335: 
336: ## LAST SIX GAMES
337: <div class="stats-halfbox-left">
338: <table>
339: <tr><th colspan="3">Recent Games</th></tr>
340: #set ($eventEnd = -1)
341: #foreach ($event in $events)
342: 	#if ($event.event.result.resolved)
343: 		#set ($eventEnd = $velocityCount)
344: 	#end
345: #end
346: #set ($eventStart = $eventEnd - 5)
347: #if ($eventStart < 0) 
348: 	#set ($eventStart = 0) 
349: #end
350: #set ($counter = 0)
351: #foreach ($event in $events)
352: 	#if ($velocityCount >= $eventStart && $velocityCount <= $eventEnd)
353: 		#set ($counter = $counter + 1)
354: 		#if ($counter % 2 == 0)
355: 			#set ($row = "even")
356: 		#else
357: 			#set ($row = "odd")
358: 		#end
359: 		<tr class="$row">
360: 		<td>$formatter.formatDate($event.event.date, "MMM d")</td>
361: 		<td>
362: 		#if ($event.event.neutralSite.length() > 0) vs.
363: 		#elseif (!$event.event.home) at
364: 		#else ## nothing for a home game
365: 		#end
366: 		$event.event.opponent.name</td>
367: 		<td>
368: 		#if ($event.event.statusCode >= 0)
369: 			#if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
370: 				<a href="$statsURL/../../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
371: 			#else
372: 				${event.event.APResult}
373: 			#end
374: 		#end
375: 		</tr>
376: 	#end ## if
377: #end
378: </table>
379: </div>
380: 
381: ## RANKING
382: $website.include("$statsURL/../players?tmpl=stats-bios-rank-template&rank=${playerId}&pos=${pos}")
383: 
384: </div> ## stats-wrapper
385: #end
386: 
387: </div> ## tab-content
388: #end ## PROFILE TAB ENDS
389: 
390: ## GAME LOG TAB
391: #if ($hasEvents)
392: 
393: #if ($view == "gamelog")
394: 	<div class="tab-content active" id="gamelog">
395: #else
396: 	<div class="tab-content" id="gamelog">
397: #end
398: 
399: <div class="stats-wrapper">
400: 
401: ##<h2 class="align-center">${fullName} Game-by-Game Stats</h2>
402: 
403: #if ($sport.enumCode == 0) ## Football
404: 	<div class="sub-tabs">
405:     #if ($pos == "qb")
406: 		<span class="bold">Passing</span>
407: 	#else
408: 		<a href="${url}?view=gamelog&pos=qb">Passing</a>
409:     #end
410: |
411:     #if ($pos == "rb")
412: 		<span class="bold">Rushing</span>
413: 	#else
414: 		<a href="${url}?view=gamelog&pos=rb">Rushing</a>
415:     #end
416: |
417:     #if ($pos == "wr")
418: 		<span class="bold">Receiving</span>
419: 	#else
420: 		<a href="${url}?view=gamelog&pos=wr">Receiving</a>
421:     #end
422: |
423:     #if ($pos == "k")
424: 		<span class="bold">Kicking</span>
425: 	#else
426: 		<a href="${url}?view=gamelog&pos=k">Kicking</a>
427:     #end
428: |
429:     #if ($pos == "p")
430: 		<span class="bold">Punting</span>
431: 	#else
432: 		<a href="${url}?view=gamelog&pos=p">Punting</a>
433:     #end
434: |
435:     #if ($pos == "kr")
436: 		<span class="bold">Returns</span>
437: 	#else
438: 		<a href="${url}?view=gamelog&pos=kr">Returns</a>
439:     #end
440: |
441:     #if ($pos == "d")
442: 		#if ($locale == "en_gb")
443: 			#set ($printVal = "Defence")
444: 		#else
445: 			#set ($printVal = "Defense")
446: 		#end
447: 		<span class="bold">$printVal</span>
448: 	#else
449: 		<a href="${url}?view=gamelog&pos=d">$printVal</a>
450:     #end
451:   </div>
452:   
453: #elseif ($sport.enumCode == 1) ## Baseball
454: 	<div class="sub-tabs">
455:     #if ($pos == "h")
456: 		<span class="bold">Hitting</span>
457: 	#else
458: 		<a href="${url}?view=gamelog&pos=h">Hitting</a>
459:     #end
460: |
461:     #if ($pos == "p")
462: 		<span class="bold">Pitching</span>
463: 	#else
464: 		<a href="${url}?view=gamelog&pos=p">Pitching</a>
465:     #end
466: |
467:     #if ($pos == "f")
468: 		<span class="bold">Fielding</span>
469: 	#else
470: 		<a href="${url}?view=gamelog&pos=f">Fielding</a>
471:     #end
472: 	</div>
473:   
474: #elseif ($sport.enumCode == 2) ## Basketball
475: 	<div class="sub-tabs">
476:     #if ($pos == "sh")
477: 		<span class="bold">Shooting per game</span>
478: 	#else
479: 		<a href="${url}?view=gamelog&pos=sh">Shooting per game</a>
480:     #end
481: |
482:     #if ($pos == "st")
483: 		<span class="bold">Shooting</span>
484: 	#else
485: 		<a href="${url}?view=gamelog&pos=st">Shooting</a>
486:     #end
487: |
488:     #if ($pos == "bc")
489: 		<span class="bold">Ball control per game</span>
490: 	#else
491: 		<a href="${url}?view=gamelog&pos=bc">Ball control per game</a>
492:     #end
493: |
494:     #if ($pos == "bt")
495: 		<span class="bold">Ball control</span>
496: 	#else
497: 		<a href="${url}?view=gamelog&pos=bt">Ball control</a>
498:     #end
499: 	</div>
500: #end
501: 
502: 
503: <div class="stats-fullbox">
504: <table>
505:   <tr>
506:     <th>Date</th>
507:     <th>Opponent</th>
508:     <th>Score</th>
509:     #foreach ($gamelog in $gamelogs)
510:     <th>$gamelog</th>
511:     #end
512:   </tr>
513:   
514: 	#foreach ($event in $events)
515: 		#if ($velocityCount % 2 == 0)
516: 			#set ($row = "even")
517: 		#else
518: 			#set ($row = "odd")
519: 		#end
520: 		<tr class="$row">
521: 		<td>$formatter.formatDate($event.event.date, "MMM d")</td>
522: 		<td>
523: 		#if ($event.event.neutralSite.length() > 0) vs.
524: 		#elseif (!$event.event.home) at
525: 		#else ## nothing for a home game
526: 		#end
527: 		$event.event.opponent.name</td>
528: 		<td>
529: 		#if ($event.event.statusCode >= 0)
530: 			#if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
531: 				<a href="$statsURL/../../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
532: 			#else
533: 				${event.event.APResult}
534: 			#end
535: 		#else &nbsp; #end
536: 		</td>
537: 		#foreach ($gamelog in $gamelogs.keySet())
538: 			#set ($value = "-")
539: 			#set ($value = $formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
540: 			#if ($value.length() > 0)
541: 				<td class="align-center">$value</td>
542: 			#else
543: 				<td class="align-center">-</td>
544: 			#end
545: 		#end
546: 		</tr>
547: 	#end
548: </table>
549: </div>
550: </div>
551: </div> ## tab-content
552: #end ## if-hasEvents
553: ## GAME LOG TAB ENDS
554: 
555: ## SPLITS TAB
556: #if ($hasEvents)
557: 
558: #if ($view == "splits")
559: 	<div class="tab-content active" id="splits">
560: #else
561: 	<div class="tab-content" id="splits">
562: #end
563: 
564: <div class="stats-wrapper">
565: 
566: ##<h2 class="align-center">${fullName} Splits</h2>
567: 
568: #if ($sport.enumCode == 0) ## Football
569: 	<div class="sub-tabs">
570:     #if ($pos == "qb")
571: 		<span class="bold">Passing</span>
572: 	#else
573: 		<a href="${url}?view=splits&pos=qb">Passing</a>
574:     #end
575: |
576:     #if ($pos == "rb")
577: 		<span class="bold">Rushing</span>
578: 	#else
579: 		<a href="${url}?view=splits&pos=rb">Rushing</a>
580:     #end
581: |
582:     #if ($pos == "wr")
583: 		<span class="bold">Receiving</span>
584: 	#else
585: 		<a href="${url}?view=splits&pos=wr">Receiving</a>
586:     #end
587: |
588:     #if ($pos == "k")
589: 		<span class="bold">Kicking</span>
590: 	#else
591: 		<a href="${url}?view=splits&pos=k">Kicking</a>
592:     #end
593: |
594:     #if ($pos == "p")
595: 		<span class="bold">Punting</span>
596: 	#else
597: 		<a href="${url}?view=splits&pos=p">Punting</a>
598:     #end
599: |
600:     #if ($pos == "kr")
601: 		<span class="bold">Returns</span>
602: 	#else
603: 		<a href="${url}?view=splits&pos=kr">Returns</a>
604:     #end
605: |
606:     #if ($pos == "d")
607: 		#if ($locale == "en_gb")
608: 			#set ($printVal = "Defence")
609: 		#else
610: 			#set ($printVal = "Defense")
611: 		#end
612: 		<span class="bold">$printVal</span>
613: 	#else
614: 		<a href="${url}?view=splits&pos=d">$printVal</a>
615:     #end
616:   </div>
617:   
618: #elseif ($sport.enumCode == 1) ## Baseball
619: 	<div class="sub-tabs">
620:     #if ($pos == "h")
621: 		<span class="bold">Hitting</span>
622: 	#else
623: 		<a href="${url}?view=splits&pos=h">Hitting</a>
624:     #end
625: |
626:     #if ($pos == "p")
627: 		<span class="bold">Pitching</span>
628: 	#else
629: 		<a href="${url}?view=splits&pos=p">Pitching</a>
630:     #end
631: |
632:     #if ($pos == "f")
633: 		<span class="bold">Fielding</span>
634: 	#else
635: 		<a href="${url}?view=splits&pos=f">Fielding</a>
636:     #end
637: 	</div>
638: #elseif ($sport.enumCode == 2) ## Basketball
639: 	<div class="sub-tabs">
640:     #if ($pos == "sh")
641: 		<span class="bold">Shooting</span>
642: 	#else
643: 		<a href="${url}?view=splits&pos=sh">Shooting</a>
644:     #end
645: |
646:     #if ($pos == "bc")
647: 		<span class="bold">Ball control</span>
648: 	#else
649: 		<a href="${url}?view=splits&pos=bc">Ball control</a>
650:     #end
651: 	</div>
652: #end
653: 
654: <div class="stats-fullbox">
655: <table>
656: 
657:   <tr>
658:     <th>&nbsp;</th>
659:     #foreach ($brief in $briefs)
660:       <th>$brief</th>
661:     #end
662:   </tr>
663: 
664: #macro(split $label $stats $row)
665: 	<tr class="${row}">
666: 	<td>${label}</td>
667: 	#foreach ($brief in $briefs.keySet())
668: 		#set ($value = "-")
669: 		#set ($value = $!formatter.formatNumber($stats.get($brief), $formats.get($brief)))
670: 		#if ($value.length() > 0)
671: 			<td class="align-center">$value</td>
672: 		#else
673: 			<td class="align-center">-</td>
674: 		#end
675:     #end
676: 	</tr>
677: #end
678: 
679: #set ($colspan = $briefs.size() + 1)
680: 
681: #split("Total", $splits.overall, "odd totals")
682: #split("Conference", $splits.conference, "even")
683: #split("Exhibition", $splits.exhibition, "odd")
684: <tr><td colspan="${colspan}"><hr /></td></tr>
685: #split("Home", $splits.home, "even")
686: #split("Away", $splits.away, "odd")
687: <tr><td colspan="${colspan}"><hr /></td></tr>
688: #split("Wins", $splits.inWins, "even")
689: #split("Losses", $splits.inLosses, "odd")
690: #if ($sport.enumCode == 5) ## Ice hockey
691: #split("Ties", $splits.inTies, "even")
692: #end
693: <tr><td colspan="${colspan}"><hr /></td></tr>
694: ## Going to need to replace this with sound logic that does not use the sport to determine dates
695: #if ($sport.enumCode == 5) ## Ice hockey
696:  #split("September", $splits.september, "odd")
697:  #split("October", $splits.october, "even")
698:  #split("November", $splits.november, "odd")
699:  #split("December", $splits.december, "even")
700:  #split("January", $splits.january, "odd")
701:  #split("February", $splits.february, "even")
702:  #split("March", $splits.march, "odd")
703:  #split("April", $splits.april, "even")
704: #elseif ($sport.enumCode == 2) ## Basketball
705:  #split("November", $splits.november, "even")
706:  #split("December", $splits.december, "odd")
707:  #split("January", $splits.january, "even")
708:  #split("February", $splits.february, "odd")
709:  #split("March", $splits.march, "even")
710: #elseif ($sport.enumCode == 3 or $sport.enumCode == 9) ## Soccer or field hockey
711:  #split("September", $splits.september, "even")
712:  #split("October", $splits.october, "odd")
713:  #split("November", $splits.november, "even")
714:  #split("December", $splits.december, "odd")
715: #elseif ($sport.enumCode == 0) ## Football
716:  #split("August", $splits.august, "even")
717:  #split("September", $splits.september, "odd")
718:  #split("October", $splits.october, "even")
719:  #split("November", $splits.november, "odd")
720:  #split("December", $splits.december, "even")
721: #elseif ($sport.enumCode == 6 or $sport.enumCode == 10) ## Men's or women's lacrosse
722:  #split("January", $splits.january, "even")
723:  #split("February", $splits.february, "odd")
724:  #split("March", $splits.march, "even")
725:  #split("April", $splits.april, "odd")
726:  #split("May", $splits.may, "even")
727: #end
728: 
729: </table>
730: </div>
731: </div>
732: </div> ## tab-content
733: #end ## if-hasEvents
734: ## SPLITS TAB ENDS
735: 
736: ## HTML TAB
737: #if ($hasHTMLStats)
738: 
739: #if ($view == "htmlstats")
740: 	<div class="tab-content active" id="htmlstats">
741: #else
742: 	<div class="tab-content" id="htmlstats">
743: #end
744: 
745: Loading...
746: 
747: </div> ## tab-content
748: 
749: #end ## hasHTMLStats
750: ## HTML TAB ENDS
751: 
752: </div> ## ends bio-wrap
753: 
754: <script type="text/javascript">
755: $(function() {
756: 	$('.bio-wrap .tab').click(function(e) {
757: 		e.preventDefault();
758: 		if (!$(this).hasClass('active')) {
759: 			//var targetContainer = $(this).children('a').attr('rel');
760: 			$('.bio-wrap > .tab-content.active').first().removeClass('active');
761: 			//$('#' + targetContainer).addClass('active');
762: 			$('.bio-wrap > .tab-content').eq($(this).index()).addClass('active');
763: 			$('.bio-wrap .tab').removeClass('active');
764: 			$(this).addClass('active');
765: 		}
766: 	});
767: 	
768: 	#if ($hasHTMLStats)
769: 	jQuery.get('${htmlStatsURL}', function(data) {
770: 		var htmlStats = $(data).find('center').first();
771: 		htmlStats.add(htmlStats.siblings('center'));
772: 		if (htmlStats.children().length > 0) {
773: 			$('#htmlstats').html(htmlStats);
774: 		} else {
775: 			$('#htmlstats').html('No stats found for this bio');
776: 		}
777: 	});
778: 	#end
779: 	
780: 	#if ($showRoster)
781: 	$('.bio-wrap .roster-select-list').change(function() {
782: 		window.location.href = $(this).val();
783: 	});
784: 	#end
785: });
786: </script>
787: 
788: $wiki
789: #end ## mobile check

View: Mobile | Desktop