#TTUPurplePride Tennessee Tech Logo
 
4 Cody Forbes
4 Cody Forbes
Height: 5-11
Weight: 205
Year: R-Jr.
Hometown: Elizabethtown, Tenn.
High School: Elizabethtown
Position: RB
gp 12
yds 302
yds/g 25.2
td 1

A multi-talented athlete, Cody found a home in Tech's backfield as a true freshman and saw his playing time and contributions increase throughout his first season...continued to show improvement as a sophomore with increased strength...skipped a beat last year when he was forced to take a medical redshirt season, bit appeared back to full strength during 2013 spring drills...runs good routes out of the backfield and provides an additional dangerous threat as a receiver...expected to return to action with plenty of opportunities to handle the ball...listed as a "B" back in Tech's scheme...has increased his strength and power during his off-season...has made one appearance on the Athletic Director's Honor Roll.

AT TECH (IN 2012): Sat out entire season as a redshirt.

(In 2011): Saw action in all 11 games his sophomore season, averaging 62.9 all-purpose yards per game and 11.7 yards of total offense per contest...put on a show against Maryville College on Sept. 8 with 67 rushing yards on eight attemps including a 26-yard haul...also logged a season-long 59-yard kick-off return against Maryville...scored solo touchdowns against SEMO and Austin Peay and recorded 551 total yards as a returner for an average of 22 yards per return to rank fifth in the OVC...had two receptions against SEMO for 12 yards of offense...had a season-high 132 all-purpose yards against SEMO in one of three games in which he recorded over 100 all-purpose yards.

(In 2010): Cody played in nine of Tech's 11 games as a true freshman, and saw his playing time increase deeper into the season...finished the year with 24 carries for 115 rushing yards and one touchdown...had four carries for 12 yards at Arkansas...most activity came at Murray State when he had nine carries for 38 yards...rushed four times for 33 yards, including a season-best run of 17 yards, in the game against Eastern Kentucky...scored a two-yard touchdown -- his first career touchdown as a Golden Eagles -- in Tech's thrilling fourth-quarter comeback win over Jacksonville State. 

HIGH SCHOOL:
Named TSWA all-state as a kick returner and conference Offensive Player of the Year as a senior...a four-year letterwinner under coach Shawn Witten at Elizabethton (Tenn.) High School...helped his team win the conference title and reach the TSSAA state semi-finals in 2009, finishing with an 11-3 mark...played runningback and receiver, returned kicks and punts, and also played safety and outside linebacker...chosen captain of the Tennessee-Kentucky All-Star game...averaged nearly six yards per carry during his career on the way to 1,585 rushing yards and 21 touchdowns...also piled up 674 punt and kick return yards and four touchdowns, and finished with 29 career TDs...as a senior he had 859 rushing yards and 11 touchdowns, 208 receiving yards and three scores...the TSSAA state champion in the triple jump on the track & field team.

PERSONAL: The son of Kenneth Harville and Marsha Forbes...born July 8, 1991, in Johnson City, Tenn...full name is Domanique Cody Forbes...majoring in EXPW/Fitness and Wellness.

Recent Games
Oct 10 UT Martin L, 28-17
Oct 19 at Eastern Kentucky L, 24-10
Oct 26 Jacksonville State L, 34-14
Nov 2 at Eastern Illinois L, 56-21
Nov 9 at Southeast Missouri W, 41-16
Nov 23 Austin Peay W, 34-0
Statistics category Overall Conf
Rushes 85 51
Yards 302 147
Yards per game 25.2 18.4
Yards per rush 3.6 2.9
Touchdowns 1 1
Fumbles - -
Fumbles lost - -
Date Opponent Score comp att pct yds y/a td int sac yds
Aug 29 Cumberland (Tenn.) W, 63-7 - - - - - - - - -
Sep 7 at Wisconsin L, 48-0 - - - - - - - - -
Sep 14 at Hampton W, 30-27 - - - - - - - - -
Sep 21 Tennessee State L, 41-21 - - - - - - - - -
Sep 28 Indiana St. W, 38-37 - - - - - - - - -
Oct 5 at Murray State L, 35-24 - - - - - - - - -
Oct 10 UT Martin L, 28-17 - - - - - - - - -
Oct 19 at Eastern Kentucky L, 24-10 - - - - - - - - -
Oct 26 Jacksonville State L, 34-14 - - - - - - - - -
Nov 2 at Eastern Illinois L, 56-21 - - - - - - - - -
Nov 9 at Southeast Missouri W, 41-16 - - - - - - - - -
Nov 23 Austin Peay W, 34-0 - - - - - - - - -
Date Opponent Score rush yds y/a lng td fum lost
Aug 29 Cumberland (Tenn.) W, 63-7 8 69 8.6 22 0 - -
Sep 7 at Wisconsin L, 48-0 7 13 1.9 7 0 - -
Sep 14 at Hampton W, 30-27 19 73 3.8 18 0 - -
Sep 21 Tennessee State L, 41-21 11 32 2.9 11 0 - -
Sep 28 Indiana St. W, 38-37 - - - - - - -
Oct 5 at Murray State L, 35-24 5 18 3.6 5 0 - -
Oct 10 UT Martin L, 28-17 4 10 2.5 7 0 - -
Oct 19 at Eastern Kentucky L, 24-10 3 -1 -0.3 1 0 - -
Oct 26 Jacksonville State L, 34-14 1 1 1.0 1 0 - -
Nov 2 at Eastern Illinois L, 56-21 1 3 3.0 3 0 - -
Nov 9 at Southeast Missouri W, 41-16 8 20 2.5 7 0 - -
Nov 23 Austin Peay W, 34-0 18 64 3.6 13 1 - -
Date Opponent Score rec yds y/r lng td fum lost
Aug 29 Cumberland (Tenn.) W, 63-7 - - - - - - -
Sep 7 at Wisconsin L, 48-0 - - - - - - -
Sep 14 at Hampton W, 30-27 - - - - - - -
Sep 21 Tennessee State L, 41-21 - - - - - - -
Sep 28 Indiana St. W, 38-37 - - - - - - -
Oct 5 at Murray State L, 35-24 - - - - - - -
Oct 10 UT Martin L, 28-17 2 38 19.0 22 0 - -
Oct 19 at Eastern Kentucky L, 24-10 - - - - - - -
Oct 26 Jacksonville State L, 34-14 - - - - - - -
Nov 2 at Eastern Illinois L, 56-21 - - - - - - -
Nov 9 at Southeast Missouri W, 41-16 - - - - - - -
Nov 23 Austin Peay W, 34-0 1 45 45.0 45 0 - -
Date Opponent Score fgm fga lng xpm xpa pts
Aug 29 Cumberland (Tenn.) W, 63-7 - - - - - 0
Sep 7 at Wisconsin L, 48-0 - - - - - 0
Sep 14 at Hampton W, 30-27 - - - - - 0
Sep 21 Tennessee State L, 41-21 - - - - - 0
Sep 28 Indiana St. W, 38-37 - - - - - 0
Oct 5 at Murray State L, 35-24 - - - - - 0
Oct 10 UT Martin L, 28-17 - - - - - 0
Oct 19 at Eastern Kentucky L, 24-10 - - - - - 0
Oct 26 Jacksonville State L, 34-14 - - - - - 0
Nov 2 at Eastern Illinois L, 56-21 - - - - - 0
Nov 9 at Southeast Missouri W, 41-16 - - - - - 0
Nov 23 Austin Peay W, 34-0 - - - - - 0
Date Opponent Score punt yds avg long in20 fc tb blk
Aug 29 Cumberland (Tenn.) W, 63-7 - - - - - - - -
Sep 7 at Wisconsin L, 48-0 - - - - - - - -
Sep 14 at Hampton W, 30-27 - - - - - - - -
Sep 21 Tennessee State L, 41-21 - - - - - - - -
Sep 28 Indiana St. W, 38-37 - - - - - - - -
Oct 5 at Murray State L, 35-24 - - - - - - - -
Oct 10 UT Martin L, 28-17 - - - - - - - -
Oct 19 at Eastern Kentucky L, 24-10 - - - - - - - -
Oct 26 Jacksonville State L, 34-14 - - - - - - - -
Nov 2 at Eastern Illinois L, 56-21 - - - - - - - -
Nov 9 at Southeast Missouri W, 41-16 - - - - - - - -
Nov 23 Austin Peay W, 34-0 - - - - - - - -
Date Opponent Score kr yds avg lng td pr yds avg lng td
Aug 29 Cumberland (Tenn.) W, 63-7 - - - - - - - - - -
Sep 7 at Wisconsin L, 48-0 1 21 21.0 21 0 - - - - -
Sep 14 at Hampton W, 30-27 1 9 9.0 9 0 - - - - -
Sep 21 Tennessee State L, 41-21 1 19 19.0 19 0 - - - - -
Sep 28 Indiana St. W, 38-37 1 23 23.0 23 0 - - - - -
Oct 5 at Murray State L, 35-24 3 53 17.7 25 0 - - - - -
Oct 10 UT Martin L, 28-17 1 11 11.0 11 0 - - - - -
Oct 19 at Eastern Kentucky L, 24-10 2 39 19.5 26 0 - - - - -
Oct 26 Jacksonville State L, 34-14 - - - - - - - - - -
Nov 2 at Eastern Illinois L, 56-21 1 13 13.0 13 0 - - - - -
Nov 9 at Southeast Missouri W, 41-16 2 24 12.0 15 0 - - - - -
Nov 23 Austin Peay W, 34-0 - - - - - - - - - -
Date Opponent Score gp rush rcv pr kr yds
Aug 29 Cumberland (Tenn.) W, 63-7 1 69 - - - 69
Sep 7 at Wisconsin L, 48-0 1 13 - - 21 34
Sep 14 at Hampton W, 30-27 1 73 - - 9 82
Sep 21 Tennessee State L, 41-21 1 32 - - 19 51
Sep 28 Indiana St. W, 38-37 1 - - - 23 23
Oct 5 at Murray State L, 35-24 1 18 - - 53 71
Oct 10 UT Martin L, 28-17 1 10 38 - 11 59
Oct 19 at Eastern Kentucky L, 24-10 1 -1 - - 39 38
Oct 26 Jacksonville State L, 34-14 1 1 - - - 1
Nov 2 at Eastern Illinois L, 56-21 1 3 - - 13 16
Nov 9 at Southeast Missouri W, 41-16 1 20 - - 24 44
Nov 23 Austin Peay W, 34-0 1 64 45 - - 109
Date Opponent Score pts rush rec kr pr int fum xpm fgm saf misc 2pt
Aug 29 Cumberland (Tenn.) W, 63-7 0 0 - - - - - - - - - -
Sep 7 at Wisconsin L, 48-0 0 0 - 0 - - - - - - - -
Sep 14 at Hampton W, 30-27 0 0 - 0 - - - - - - - -
Sep 21 Tennessee State L, 41-21 0 0 - 0 - - - - - - - -
Sep 28 Indiana St. W, 38-37 0 - - 0 - - - - - - - -
Oct 5 at Murray State L, 35-24 0 0 - 0 - - - - - - - -
Oct 10 UT Martin L, 28-17 0 0 0 0 - - - - - - - -
Oct 19 at Eastern Kentucky L, 24-10 0 0 - 0 - - - - - - - -
Oct 26 Jacksonville State L, 34-14 0 0 - - - - - - - - - -
Nov 2 at Eastern Illinois L, 56-21 0 0 - 0 - - - - - - - -
Nov 9 at Southeast Missouri W, 41-16 0 0 - 0 - - - - - - - -
Nov 23 Austin Peay W, 34-0 6 1 0 - - - - - - - - -
Date Opponent Score tack ast tot sack lost tfl yds ff fr td int yds td brup blk saf
Aug 29 Cumberland (Tenn.) W, 63-7 - - 0 - - 0 - - - - - - - - - -
Sep 7 at Wisconsin L, 48-0 - - 0 - - 0 - - - - - - - - - -
Sep 14 at Hampton W, 30-27 - - 0 - - 0 - - - - - - - - - -
Sep 21 Tennessee State L, 41-21 - - 0 - - 0 - - - - - - - - - -
Sep 28 Indiana St. W, 38-37 - - 0 - - 0 - - - - - - - - - -
Oct 5 at Murray State L, 35-24 - - 0 - - 0 - - - - - - - - - -
Oct 10 UT Martin L, 28-17 0 1 1 - - 0 - - - - - - - - - -
Oct 19 at Eastern Kentucky L, 24-10 - - 0 - - 0 - - - - - - - - - -
Oct 26 Jacksonville State L, 34-14 - - 0 - - 0 - - - - - - - - - -
Nov 2 at Eastern Illinois L, 56-21 - - 0 - - 0 - - - - - - - - - -
Nov 9 at Southeast Missouri W, 41-16 - - 0 - - 0 - - - - - - - - - -
Nov 23 Austin Peay W, 34-0 - - 0 - - 0 - - - - - - - - - -
  gp comp att pct yds y/g y/a td int lg
Total 12 - - - - - - - - -
Conference 8 - - - - - - - - -
Exhibition - - - - - - - - - -
-
Home 6 - - - - - - - - -
Away 6 - - - - - - - - -
Neutral - - - - - - - - - -
-
Wins 5 - - - - - - - - -
Losses 7 - - - - - - - - -
-
August 1 - - - - - - - - -
September 4 - - - - - - - - -
October 4 - - - - - - - - -
November 3 - - - - - - - - -
  gp rush yds y/g avg td lg fum lost
Total 12 85 302 25.2 3.6 1 22 - -
Conference 8 51 147 18.4 2.9 1 13 - -
Exhibition - - - - - - - - -
-
Home 6 42 176 29.3 4.2 1 22 - -
Away 6 43 126 21.0 2.9 0 18 - -
Neutral - - - - - - - - -
-
Wins 5 53 226 45.2 4.3 1 22 - -
Losses 7 32 76 10.9 2.4 0 11 - -
-
August 1 8 69 69.0 8.6 0 22 - -
September 4 37 118 29.5 3.2 0 18 - -
October 4 13 28 7.0 2.2 0 7 - -
November 3 27 87 29.0 3.2 1 13 - -
  gp rec rec/g yds y/g avg td lg
Total 12 3 0.3 83 6.9 27.7 0 45
Conference 8 3 0.4 83 10.4 27.7 0 45
Exhibition - - - - - - - -
-
Home 6 3 0.5 83 13.8 27.7 0 45
Away 6 - - - - - - -
Neutral - - - - - - - -
-
Wins 5 1 0.2 45 9.0 45.0 0 45
Losses 7 2 0.3 38 5.4 19.0 0 22
-
August 1 - - - - - - -
September 4 - - - - - - -
October 4 2 0.5 38 9.5 19.0 0 22
November 3 1 0.3 45 15.0 45.0 0 45
  gp fgm fga pct lg xpm xpa pct pts
Total 12 - - - - - - - 0
Conference 8 - - - - - - - 0
Exhibition - - - - - - - - 0
-
Home 6 - - - - - - - 0
Away 6 - - - - - - - 0
Neutral - - - - - - - - 0
-
Wins 5 - - - - - - - 0
Losses 7 - - - - - - - 0
-
August 1 - - - - - - - 0
September 4 - - - - - - - 0
October 4 - - - - - - - 0
November 3 - - - - - - - 0
  gp punt yds avg lg in20 fc tb blk
Total 12 - - - - - - - -
Conference 8 - - - - - - - -
Exhibition - - - - - - - - -
-
Home 6 - - - - - - - -
Away 6 - - - - - - - -
Neutral - - - - - - - - -
-
Wins 5 - - - - - - - -
Losses 7 - - - - - - - -
-
August 1 - - - - - - - -
September 4 - - - - - - - -
October 4 - - - - - - - -
November 3 - - - - - - - -
  kr yds avg td lg pr yds avg td lg
Total 13 212 16.3 0 26 - - - - -
Conference 10 159 15.9 0 26 - - - - -
Exhibition - - - - - - - - - -
-
Home 3 53 17.7 0 23 - - - - -
Away 10 159 15.9 0 26 - - - - -
Neutral - - - - - - - - - -
-
Wins 4 56 14.0 0 23 - - - - -
Losses 9 156 17.3 0 26 - - - - -
-
August - - - - - - - - - -
September 4 72 18.0 0 23 - - - - -
October 6 103 17.2 0 26 - - - - -
November 3 37 12.3 0 15 - - - - -
  gp rush rcv pr kr yds ypg
Total 12 302 83 - 212 597 49.8
Conference 8 147 83 - 159 389 48.6
Exhibition - - - - - 0 -
-
Home 6 176 83 - 53 312 52.0
Away 6 126 - - 159 285 47.5
Neutral - - - - - 0 -
-
Wins 5 226 45 - 56 327 65.4
Losses 7 76 38 - 156 270 38.6
-
August 1 69 - - - 69 69.0
September 4 118 - - 72 190 47.5
October 4 28 38 - 103 169 42.3
November 3 87 45 - 37 169 56.3
  pts pts/g rush rec kr pr int fum xpm fgm 2pt misc
Total 6 0.5 1 0 0 - - - - - - -
Conference 6 0.8 1 0 0 - - - - - - -
Exhibition 0 - - - - - - - - - - -
-
Home 6 1.0 1 0 0 - - - - - - -
Away 0 0.0 0 - 0 - - - - - - -
Neutral 0 - - - - - - - - - - -
-
Wins 6 1.2 1 0 0 - - - - - - -
Losses 0 0.0 0 0 0 - - - - - - -
-
August 0 0.0 0 - - - - - - - - -
September 0 0.0 0 - 0 - - - - - - -
October 0 0.0 0 0 0 - - - - - - -
November 6 2.0 1 0 0 - - - - - - -
  gp tkl ast tot tkl/g sck yds tfl yds ff fr yds int yds brup blk
Total 12 0 1 1 .1 - - 0 - - - - - - - -
Conference 8 0 1 1 .1 - - 0 - - - - - - - -
Exhibition - - - 0 - - - 0 - - - - - - - -
-
There was a problem with a Velocity script
Pagebio-template
ErrorVM #split: too few arguments to macro. Wanted 4 got 3 at bio-template[line 220, column 1]
Page source:
1: ## PICK UP OPTIONS
2: $website.include("options")
3: #set ($options = $request.getAttribute("options"))
4: #set ($locale = "en_us")
5: #set ($locale = $options.get("locale"))
6: 
7: ## HACK TO GET STATS URL FROM RENDERER... NEEDS SERVER CHANGE
8: #set ($bioObject = $page.getDataAsObject())
9: #set ($statsURL = $bioObject.statsURL)
10: 
11: #if ($statsURL.length() > 0)
12:   $website.includeAgain("${statsURL}?tmpl=bio-stats-template")
13:   ## various settings to get the variables set
14:   #set ($events = $request.getAttribute("bio_events"))
15:   #set ($seasons = $request.getAttribute("bio_seasons"))
16:   #set ($career = $request.getAttribute("bio_career"))
17:   #set ($labels = $request.getAttribute("bio_labels"))
18:   #set ($briefs = $request.getAttribute("bio_briefs"))
19:   #set ($gamelogs = $request.getAttribute("bio_gamelogs"))
20:   #set ($splits = $request.getAttribute("bio_splits"))
21:   #set ($statPosition = $request.getAttribute("bio_position"))
22:   #set ($positions = $request.getAttribute("bio_positions"))
23:   #set ($playerId = $request.getAttribute("bio_player_id"))
24:   #set ($highlights = $request.getAttribute("bio_highlights"))
25:   #set ($formats = $request.getAttribute("bio_formats"))
26:   #set ($gamelogsCategoriesLabels = $request.getAttribute("bio_gamelogs_labels"))
27:   #set ($briefsCategoriesLabels = $request.getAttribute("bio_briefs_labels"))
28:   #set ($gamesResults = $request.getAttribute("bio_games_results"))
29:   #set ($monthsPlayed = $request.getAttribute("bio_months_played"))
30: #end
31: 
32: #set ($pos = "")
33: #set ($pos = $attributes.get("position"))
34: #set ($pos = $statPosition)
35: #set ($posVec = $pos.split("/"))
36: #set ($pos = $posVec[0])
37: #set ($pos = $pos.toLowerCase())
38: #set ($statPos = $positions.get($pos))
39: #set ($paramPos = $request.getParameter("pos"))
40: 
41: #set ($playerId = $attributes.get("playerId"))
42: #set ($stats = $splits.overall)
43: #set ($highlights = $highlights.get($statPos))
44: 
45: #set ($showHighlights = true)
46: #if ($options.get("bio_show_highlights") && $options.get("bio_show_highlights") == false)
47: 	#set ($showHighlights = false)
48: #end
49: 
50: #set ($showCareer = $wiki.valid() && $seasons)
51: #if ("yes" == $options.get("stats_show_career") && $seasons)
52:   #set ($showCareer = true)
53: #end
54: 
55: #set ($hasEvents = $events.size() > 0)
56: #set ($hasSynopsis = $synopsis.length() > 1 && $synopsis.indexOf("<center>") == -1)
57: #set ($htmlStatsURL = "${page.url}-stats")
58: #set ($hasHTMLStats = $website.exists($htmlStatsURL))
59: #set ($bioBriefURL = "${page.url}-brief")
60: #set ($hasBioBrief = $website.exists("$bioBriefURL"))
61: #set ($showRoster = ($page.contentType == "loki/bio" && $page.headlinesFeatured.size() > 0) || ($page.contentType == "loki/bio-network" && $page.sectionPage.children.size() > 1))
62: #if ($options.get("bio_hide_roster") == true)
63:   #set ($showRoster = false)
64: #end
65: 
66: #set ($view = "")
67: #if ($hasSynopsis || $hasBioBrief)
68:   #set ($view = "bio")
69: #elseif ($statsURL.length() > 0)
70:   #set ($view = "profile")
71: #elseif ($hasHTMLStats)
72:   #set ($view = "htmlstats")
73: #end
74: 
75: #if ($options.get("bio_default_view").length() > 0)
76:   #set ($checkView = $options.get("bio_default_view"))
77: #end
78: 
79: #if ($request.getParameter("view"))
80:   #set ($checkView = $request.getParameter("view"))
81: #end
82: 
83: #if ($checkView == "profile" && $statsURL.length() > 0)
84:   #set ($view = "profile")
85: #elseif ($checkView == "bio" && ($hasSynopsis || $hasBioBrief))
86:   #set ($view = "bio")
87: #elseif ($checkView == "gamelog" && $statsURL.length() > 0)
88:   #set ($view = "gamelog")
89: #elseif ($checkView == "career" && $showCareer)
90:   #set ($view = "career")
91: #elseif ($checkView == "splits" && $statsURL.length() > 0)
92:   #set ($view = "splits")
93: #elseif ($checkView == "htmlstats" && $hasHTMLStats)
94:   #set ($view = "htmlstats")
95: #end
96: 
97: #macro (gamelogData $p)
98: 
99: #set ($p = $positions.get($p))
100: #set ($gamelogs = $gamelogs.get($p))
101: 	
102: #if ($hasEvents)
103: <div class="stats-box full clearfix">
104: <div class="scrollable">
105: <div>
106: <table>
107:   <tr class="thead">
108:     <th class="text">Date</th>
109:     <th class="pinned-col text">Opponent</th>
110:     <th>Score</th>
111:     #foreach ($gamelog in $gamelogs)
112:       <th>$gamelog</th>
113:     #end
114:   </tr>
115: #foreach ($event in $events)
116:   <tr>
117:     <td class="text">$formatter.formatDate($event.event.date, "MMM d")</td>
118:     <td class="pinned-col text">
119:       #if ($event.event.neutralSite.length() > 0) vs. #elseif (!$event.event.home) at #end
120:       $event.event.opponent.name
121:     </td>
122:     <td>
123:     #if ($event.event.statusCode >= 0)
124:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
125:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
126:       #else
127:       ${event.event.APResult}
128:       #end
129:     #else &nbsp; #end
130:     </td>
131:     #foreach ($gamelog in $gamelogs.keySet())
132:       #set ($value = "-")
133:       #set ($value = $formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
134:       <td>$value</td>
135:     #end
136:   </tr>
137: #end
138: </table>
139: </div>
140: </div> ## scrollable
141: </div> ## stats-box
142: #end
143: 
144: #end ## macro gamelogData
145: 
146: #macro (split $statPosBriefs $label $stats)
147:   <tr>
148:     <td class="pinned-col text">${label}</td>
149:     #foreach ($brief in $statPosBriefs.keySet())
150:       #set ($value = "-")
151:       #set ($value = $!formatter.formatNumber($stats.get($brief), $formats.get($brief)))
152:       <td>#if ($value.length() > 0) $value #else - #end</td>
153:     #end
154:   </tr>
155: #end
156: 
157: #macro (careerData $p)
158: #set ($p = $positions.get($p))
159: #set ($statPosBriefs = $briefs.get($p))
160: 
161: <div class="stats-box full clearfix">
162: <div class="scrollable">
163: <div>
164: <table>
165: <tr class="thead">
166:   <th class="pinned-col">&nbsp;</th>
167:   #foreach ($brief in $statPosBriefs)
168:     <th>$brief</th>
169:   #end
170: </tr>
171: 
172: #set ($careerTotals = $request.getAttribute("careerTotals"))
173: #set ($careerMap = $request.getAttribute("careerMap"))
174: 
175: #foreach ($season in $seasons)
176:   ## Check if we did not get stats for this season
177:   #if ($careerMap.get($season.seasonName))
178:     #split($statPosBriefs, $season.seasonName, $careerMap[$season.seasonName])
179:   #elseif ($wiki.valid())
180:     <tr>
181:       <td class="text">${season.seasonName}</td>
182:       <td colspan="${briefs.size()}">We could not find the "players" page in the ${season.seasonName} section.</td>
183:     </tr>
184:   #end
185: #end
186: 
187: #split($statPosBriefs, "Total", $request.getAttribute("careerTotals").overall)
188: 
189: </table>
190: </div>
191: </div> ## scrollable
192: </div> ## stats-box
193: 
194: #end ## macro careerData
195: 
196: #macro (splitsData $p)
197: 
198: #set ($p = $positions.get($p))
199: #set ($statPosBriefs = $briefs.get($p))
200: #set ($colspan = $tool.math.add($statPosBriefs.size(), 1))	
201: 	
202: #if ($statPosBriefs.size() > 0)
203: <div class="stats-box full clearfix">
204: <div class="scrollable">
205: <div>
206: <table>
207:   <tr>
208:     <th class="pinned-col">&nbsp;</th>
209:     #foreach ($brief in $statPosBriefs)
210:       <th>$brief</th>
211:     #end
212:   </tr>
213: 
214: #split($statPosBriefs, "Total", $splits.overall)
215: #split($statPosBriefs, "Conference", $splits.conference)
216: #split($statPosBriefs, "Exhibition", $splits.exhibition)
217: 
218: <tr class="empty-row"><td colspan="$colspan"><div class="empty-cell">-</div></td></tr>
219: 
220: #split($statPosBriefs, "Home", $splits.home)
221: #split($statPosBriefs, "Away", $splits.away)
222: #split($statPosBriefs, "Neutral", $splits.neutral)
223: 
224: <tr class="empty-row"><td colspan="$colspan"><div class="empty-cell">-</div></td></tr>
225: 
226: #foreach($gameResult in $gamesResults.entrySet())
227:   #if ($gameResult.key == "wins")
228:     #set ($splitGameResult = $splits.inWins)
229:   #elseif ($gameResult.key == "losses")
230:     #set ($splitGameResult = $splits.inLosses)
231:   #elseif ($gameResult.key == "ties")
232:     #set ($splitGameResult = $splits.inTies)
233:   #end
234: 	
235:   #split($statPosBriefs, $gameResult.value, $splitGameResult)
236: #end
237: 
238: <tr class="empty-row"><td colspan="$colspan"><div class="empty-cell">-</div></td></tr>
239: 
240: #if ($monthsPlayed and $monthsPlayed.size() > 0)
241:   #foreach($month in $monthsPlayed)
242:     #if ($month == 'January')
243:       #set ($splitMonth = $splits.january)
244:     #elseif ($month == 'February')
245:       #set ($splitMonth = $splits.february)
246:     #elseif ($month == 'March')
247:       #set($splitMonth = $splits.march)
248:     #elseif ($month == 'April')
249:       #set($splitMonth = $splits.april)
250:     #elseif ($month == 'May')
251:       #set ($splitMonth = $splits.may)
252:     #elseif ($month == 'June')
253:       #set ($splitMonth = $splits.june)
254:     #elseif ($month == 'July')
255:       #set($splitMonth = $splits.july)
256:     #elseif ($month == 'August')
257:       #set ($splitMonth = $splits.august)
258:     #elseif ($month == 'September')
259:       #set($splitMonth = $splits.september)
260:     #elseif ($month == 'October')
261:       #set($splitMonth = $splits.october)
262:     #elseif ($month == 'November')
263:       #set ($splitMonth = $splits.november)
264:     #elseif ($month == 'December')
265:       #set($splitMonth = $splits.december)
266:     #end
267: 		
268:     #split($statPosBriefs, $month, $splitMonth)
269:   #end ## foreach
270: #end
271: </table>
272: </div>
273: </div> ## scrollable
274: </div> ## srollable-table
275: #end
276: 
277: #end ## macro splitsData
278: 
279: #macro (printRecentGames)
280: #if ($hasEvents)
281: <table>
282:   <tr class="thead"><th colspan="3">Recent Games</th></tr>
283:   
284: #set ($eventEnd = -1)
285: #foreach ($event in $events)
286:   #if ($event.event.result.resolved)
287:     #set ($eventEnd = $velocityCount)
288:   #end
289: #end
290: 
291: #set ($eventStart = $eventEnd - 5)
292: #if ($eventStart < 0) #set ($eventStart = 0) #end
293: 
294: #foreach ($event in $events)
295: #if ($velocityCount >= $eventStart and $velocityCount <= $eventEnd)
296:   <tr>
297:     <td class="text">$formatter.formatDate($event.event.date, "MMM d")</td>
298:     <td class="text">
299:       #if ($event.event.neutralSite.length() > 0) vs.
300:       #elseif (!$event.event.home) at
301:       #else ## nothing for a home game
302:       #end
303:       $event.event.opponent.name
304:     </td>
305:     <td class="text">
306:     #if ($event.event.statusCode >= 0)
307:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
308:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
309:       #else
310:       ${event.event.APResult}
311:       #end
312: 	#end
313: 	</td>
314:   </tr>
315: #end ## if
316: #end
317: </table>
318: #end
319: #end ## macro printRecentGames
320: 
321: #macro (printCategories $briefCategoryLabels $v)
322: 	
323: <div class="tab-container secondary clearfix">
324: <div class="tab-nav" data-jscroll="true" data-momentum="false">
325: <div>
326: <ul class="clearfix">
327: #foreach($briefCat in $briefCategoryLabels.entrySet())
328:   #set ($briefCatLabel = $briefCat.value)
329:   #set ($briefCatKey = $briefCat.key)
330: 		
331:   #if ($locale == "en_gb" && $briefCatLabel == "Defense")
332:     #set ($briefCatLabel = "Defence")
333:   #end	
334: 	
335:   <li #if ($activePos == $briefCatKey) class="active" #end><a href="${page.url}?view=${v}&pos=${briefCatKey}">$briefCatLabel</a></li>
336: #end
337: </ul>
338: </div>
339: </div>
340: <div class="tab-panels">
341: #foreach ($briefCat in $briefCategoryLabels.entrySet())
342:   #set ($class = "tab-panel clearfix")
343:   #if ($briefCat.key == $activePos)
344:     #set ($class = "tab-panel active clearfix")
345:   #end
346:   <div class="$class">
347:     <div class="stats-wrap clearfix">
348:     #if ($v == "splits")
349:       #splitsData($briefCat.key)
350:     #elseif ($v == "career")
351:       #careerData($briefCat.key)
352:     #end
353:     </div>
354:   </div>
355: #end	
356: </div>
357: </div> ## tab-container
358: 
359: #end ## macro printCategories
360: 	
361: #macro (printHeadshot)
362: 
363: #if ($attributes.get("number"))<span class="number">$!attributes.get("number")</span>#end
364: 
365: #if ($headshot.url)
366:   <img src="$headshot.url?max_width=160&max_height=210" alt="$fullName" title="$fullName" />
367: #else
368:   #if ($website.exists("/images/setup/headshot_default.jpg"))
369:     <img src="/images/setup/headshot_default.jpg?max_width=160&max_height=210" alt="$fullName" title="$fullName" />
370:   #else
371:     <img src="/info/images/default_headshot.jpg?max_width=160&max_height=210" alt="$fullName" title="$fullName" />
372:   #end
373: #end
374: #end ## macro printHeadshot
375: 	
376: #macro (printBioInfo)
377: <div class="player-name">
378:   #if ($attributes.get("number"))<span class="number">$!attributes.get("number")</span>#end
379:   <span class="name">$fullName</span>
380: </div>	
381: 	
382: <table>
383: #foreach ($i in [1..10])
384:   #set ($stickyKey = "bio_custom${i}_sticky")
385:   #if ($options.get($stickyKey).length() > 0 && $attributes.get("custom${i}").length() > 0)
386:     <tr>
387:       <td class="label">$options.get($stickyKey): </td>
388:       <td class="value">$!attributes.get("custom${i}")</td>
389:     </tr>
390:   #end
391: #end
392: 
393: #foreach ($field in $fields)
394:   #if (!$field.key.startsWith("custom"))
395:     #if ($attributes.get($field.key).length() > 0 && ($field.key != "first_name" && $field.key != "last_name" && $field.key != "number" && $field.key != "full_name"))
396:       #if ($field.key == "phone1" || $field.key == "phone2")
397:         <tr>
398:           <td class="label">Phone: </td>
399:           <td class="value">$!attributes.get($field.key)</td>
400:         </tr>
401:       #elseif ($field.key == "email_address")
402:         #set ($emailAdd = $attributes.get($field.key))
403:         <tr>
404:           <td class="label">Email: </td>
405:           <td class="value"><a href="mailto:${emailAdd}">$emailAdd</a></td>
406:         </tr>
407:       #else
408:         <tr>
409:           <td class="label">$field.value: </td>
410:           <td class="value">$!attributes.get($field.key)</td>
411:         </tr>
412:       #end
413:     #end
414:   #end
415: #end
416: 
417: #foreach ($i in [1..10])
418:   #set ($customKey = "bio_custom${i}")
419:   #if ($options.get($customKey).length() > 0 && $attributes.get("custom${i}"))
420:     <tr>
421:       <td class="label">$options.get($customKey): </td>
422:       <td class="value">$!attributes.get("custom${i}")</td>
423:     </tr>
424:   #end
425: #end
426: </table>
427: #end ## macro printBioInfo
428: 	
429: #macro (printHighlights)
430: #foreach ($highlight in $highlights.keySet())
431:   #set ($value = "-")
432:   #set ($value = $formatter.formatNumber($stats.get($highlight), $formats.get($highlight)))
433:   <div class="stat clearfix">
434:     <span class="stat-title">$!highlights.get($highlight)</span>
435:     <span class="stat-value">$value</span>
436:   </div>
437: #end
438: #end ## macro printHighlights
439: 	
440: #macro (printRoster)
441: #if ($page.contentType == "loki/bio")
442:   #set ($headlinesFeaturedSize = 0)
443:   #foreach ($featuredPage in $page.headlinesFeatured)
444:     #if ($featuredPage.contentType == "loki/headlines")
445:       #set ($headlinesFeaturedSize = $headlinesFeaturedSize + 1)
446:     #end
447:   #end
448:   #if ($headlinesFeaturedSize > 0)
449:     <select class="roster-select-list">
450:       <option selected="selected">Related Bios</option>
451:       #foreach ($featuredPage in $page.headlinesFeatured)
452:         #if ($featuredPage.contentType == "loki/headlines")
453:           $website.includeAgain("${featuredPage.url}?tmpl=roster-list-template&current_url=${page.url}")
454: 		#end
455: 	  #end
456:     </select>
457:   #end
458: #elseif ($page.contentType == "loki/bio-network")
459:   #set ($relatedPlayers = $page.sectionPage.children)
460:   #set ($teamNames = {})
461:   #foreach ($relatedPlayer in $relatedPlayers)
462:     #if ($relatedPlayer.contentType == "loki/bio-network")
463:       #set ($relatedPlayerObj = $relatedPlayer.getDataAsObject().getAttributes())
464:       #set ($teamName = $relatedPlayerObj.get("team"))
465:       #if ($teamName.length() > 0)
466:         #if (!$teamNames.containsValue($teamName))
467:           $!teamNames.put($tool.math.add($teamNames.size(), 1), $teamName)
468:         #end
469:       #end
470:     #end
471:   #end
472: 
473:   <select class="roster-select-list">
474:   #foreach ($i in [1..$teamNames.size()])
475:     #if ($teamNames.size() > 1)
476:       <optgroup label="$teamNames.get($i)">
477:     #end
478: 				
479:     #foreach ($relatedPlayer in $relatedPlayers)
480:       #if ($relatedPlayer.contentType == "loki/bio-network")
481:         #set ($relatedPlayerObj = $relatedPlayer.getDataAsObject().getAttributes())
482:         #set ($teamName = $relatedPlayerObj.get("team"))
483:         #if ($teamName.length() > 0 && $teamName == $teamNames.get($i))
484:           #set ($playerFirstName = $relatedPlayerObj.get("first_name"))
485:           #set ($playerLastName = $relatedPlayerObj.get("last_name"))
486:           #if ($page.url == $relatedPlayer.url)
487:             <option value="$relatedPlayer.url" selected="selected">${playerFirstName} ${playerLastName}</option>
488:           #else
489:             <option value="$relatedPlayer.url">${playerFirstName} ${playerLastName}</option>
490:           #end
491:         #end
492:       #end
493:     #end
494: 				
495:     #if ($teamNames.size() > 1)
496:       </optgroup>
497:     #end
498:   #end
499:   </select>
500: #end
501: #end ## macro printRoster
502: 	
503: ################################################## END MACROS  #############################################################
504: 
505: #if ($attributes.get("full_name").length() > 0)
506:   #set ($fullName = $attributes.get("full_name"))
507: #else
508:   #set ($firstName = $!attributes.get("first_name"))
509:   #set ($lastName = $!attributes.get("last_name"))
510:   #set ($fullName = "${firstName} ${lastName}")
511: #end
512: 
513: ## FULL ROSTER
514: <div class="bio-wrap clearfix">
515: 	
516: ## RELATED BIOS
517: #if ($showRoster)
518:   <div class="related-bios clearfix">#printRoster</div>
519: #end
520:   
521: <div class="head clearfix">
522: <div class="clearfix">
523:     
524: <div class="player-about clearfix">
525:   <div class="player-headshot">#printHeadshot</div>
526:   <div class="player-info">#printBioInfo</div>
527: </div>
528: 
529: #if ($highlights && $showHighlights)
530:   <div class="player-highlights clearfix">#printHighlights</div>
531: #end
532: 
533: </div>
534: </div> ## head
535: 
536: #if ($view.length() > 0)
537: <div class="body clearfix">
538:   
539: <div class="tab-container primary clearfix">
540:   
541: <div class="tab-nav" data-jscroll="true" data-momentum="false">
542:   <div>
543:   <ul class="clearfix">
544:   #if ($hasSynopsis || $hasBioBrief)
545:     <li #if ($view == "bio") class="active" #end><a href="${page.url}?view=bio">Bio</a></li>
546:   #end
547: 		
548:   #if ($statsURL.length() > 0)
549:     <li #if ($view == "profile") class="active" #end><a href="${page.url}?view=profile">Player Profile</a></li>
550:     <li #if ($view == "gamelog") class="active" #end><a href="${page.url}?view=gamelog">Game Log</a></li>
551:     #if ($showCareer)
552:       <li #if ($view == "career") class="active" #end><a href="${page.url}?view=career">Career Stats</a></li>
553:     #end
554:     <li #if ($view == "splits") class="active" #end><a href="${page.url}?view=splits">Split Stats</a></li>
555:   #end
556: 
557:   #if ($hasHTMLStats)
558:     <li #if ($view == "htmlstats") class="active" #end><a href="${page.url}?view=htmlstats">HTML Stats</a></li>
559:   #end
560:   </ul>
561:   </div>
562: </div> ## tab-nav
563: 
564: <div class="tab-panels clearfix">
565: 	
566: ## BIO
567: #if ($hasSynopsis || $hasBioBrief)
568: 
569: #set ($class = "tab-panel clearfix")
570: #if ($view == "bio")
571:   #set ($class = "tab-panel active clearfix")
572: #end
573: <div class="${class}">
574: 
575: <div class="synopsis clearfix">
576: #if ($hasSynopsis)
577:   $synopsis
578: #elseif ($hasBioBrief)
579:   $website.include("$bioBriefURL")
580: #end
581: </div>
582: 
583: </div> ## tab-panel
584: #end 
585: ## BIO
586: 
587: ## STATS
588: #if ($statsURL.length() > 0)
589: 
590: ## PROFILE
591: #set ($class = "tab-panel clearfix")
592: #if ($view == "profile")
593:   #set ($class = "tab-panel active clearfix")
594: #end
595: <div class="${class}">
596: <div class="stats-wrap clearfix">
597: 
598: ## LAST SIX GAMES
599: <div class="stats-box half">
600: #printRecentGames()
601: </div>
602: 
603: ## RANKING
604: <div class="stats-box half">
605: #if ($statPos.length() > 0)
606:   $website.include("../players?tmpl=stats-bios-rank-template&rank=${playerId}&pos=${statPos}")
607: #end
608: </div>
609: 
610: </div> ## stats-wrap	
611: </div> ## tab-content
612: ## PROFILE
613: 
614: ## GAMELOG
615: #set ($class = "tab-panel clearfix")
616: #if ($view == "gamelog")
617:   #set ($class = "tab-panel active clearfix")
618: #end
619: 
620: #set ($activePos = $statPos)
621: #if ($view == "gamelog" && $paramPos.length() > 0)
622:   #if ($positions.get($paramPos).length() > 0)
623:     #set ($activePos = $positions.get($paramPos))
624:   #end
625: #end
626: 
627: <div class="${class}">
628: 
629: #if ($gamelogsCategoriesLabels)
630: <div class="tab-container secondary clearfix">
631:   <div class="tab-nav" data-jscroll="true" data-momentum="false">
632:     <div>
633:     <ul class="clearfix">
634:     #foreach($gamelogsCatLabel in $gamelogsCategoriesLabels.entrySet())
635:       #set($gamelogsCatLabelVal = $gamelogsCatLabel.value)
636: 		
637:       #if ($locale == "en_gb" && $gamelogsCatLabelVal == "Defense")
638:         #set($gamelogsCatLabelVal = "Defence")
639:       #end
640: 
641:       <li #if ($activePos == $gamelogsCatLabel.key) class="active" #end><a href="${page.url}?view=gamelog&pos=${gamelogsCatLabel.key}">$gamelogsCatLabelVal</a></li>
642:     #end
643:     </ul>
644: 	</div>
645:   </div>
646:   <div class="tab-panels">
647:   #foreach($gamelogsCatLabel in $gamelogsCategoriesLabels.entrySet())
648:     #set ($class = "tab-panel clearfix")
649:     #if ($gamelogsCatLabel.key == $activePos)
650:       #set ($class = "tab-panel active clearfix")
651:     #end
652:     <div class="${class}">
653:       <div class="stats-wrap clearfix">#gamelogData($gamelogsCatLabel.key)</div>
654: 	</div>
655:   #end   
656:   </div>
657: </div>	
658: #else
659:   <div class="stats-wrap clearfix">#gamelogData($pos)</div>
660: #end
661: 	
662: </div> ## tab-panel
663: ## GAMELOG
664: 
665: 
666: ## CAREER
667: #if ($showCareer)
668: 
669: #set ($activePos = $statPos)
670: #if ($view == "career" && $paramPos.length() > 0)
671:   #if ($positions.get($paramPos).length() > 0)
672:     #set ($activePos = $positions.get($paramPos))
673:   #end
674: #end
675: 
676: #set ($class = "tab-panel clearfix")
677: #if ($view == "career")
678:   #set ($class = "tab-panel active clearfix")
679: #end
680: 
681: <div class="${class}">
682: 
683: #if ($briefsCategoriesLabels)
684:   #printCategories($briefsCategoriesLabels "career")
685: #else
686:   <div class="stats-wrap clearfix">#careerData($activePos)</div>
687: #end		
688: 
689: </div> ## tab-panel
690: #end
691: ## CAREER
692: 
693: ## SPLITS
694: #set ($class = "tab-panel clearfix")
695: #if ($view == "splits")
696: 	#set ($class = "tab-panel active clearfix")
697: #end
698: 
699: #set ($activePos = $statPos)
700: #if ($view == "splits" && $paramPos.length() > 0)
701:   #if ($positions.get($paramPos).length() > 0)
702:     #set ($activePos = $positions.get($paramPos))
703:   #end
704: #end
705: 
706: <div class="${class}">
707: 
708: #if ($briefsCategoriesLabels)
709:   #printCategories($briefsCategoriesLabels "splits")
710: #else
711:   <div class="stats-wrap clearfix">#splitsData($pos)</div>
712: #end		
713: 
714: </div> ## tab-panel
715: ## SPLITS
716: 
717: #end 
718: ## STATS
719: 
720: ## HTML STATS
721: #if ($hasHTMLStats)
722: 
723: #set ($class = "tab-panel clearfix")
724: #if ($view == "htmlstats")
725:   #set ($class = "tab-panel active clearfix")
726: #end
727: <div class="${class}">
728:   <a href="${htmlStatsURL}" class="bio-htmlstats-identifier">Click to view HTML Stats</a>
729: </div>
730: 
731: #end
732: ## HTML STATS
733: 	
734: </div> ## tab-panels
735: </div> ## tab-container
736: </div> ## body
737: #end
738: 
739: $wiki
740: </div> ## ends bio-wrap