View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/attic/forge/forge_mavenskin/forge_mavenskin/tags/forge-maven-skin-1.01.00/src/main/resources/META-INF/maven/site.vm
Revision: 58782
Committed: Thu Mar 2 21:08:13 2017 UTC (2 years, 8 months ago) by jhoffman
File size: 37889 byte(s)
Log Message:
Moved project from forge.onehippo.org/svn/ without history

File Contents

# Content
1 <!DOCTYPE html>
2 <!--
3 | Generated by Apache Maven Doxia#if( $doxiaVersion ) $doxiaVersion#end at $dateFormat.format( $currentDate )
4 | Rendered using Apache Maven Fluido Skin @project.version@
5 -->
6 #macro ( topMenu $menus )
7 #foreach( $menu in $menus )
8 #if ( $menu.name )
9 <li class="dropdown">
10 <a href="#" class="dropdown-toggle" data-toggle="dropdown">$menu.name <b class="caret"></b></a>
11 <ul class="dropdown-menu">
12 #foreach( $item in $menu.items )
13
14 #if ($item.items.size() > 0)
15 <li class="dropdown-submenu">
16 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
17 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
18 #topLink( $currentItemHref $item.name $item.target )
19 <ul class="dropdown-menu">
20 #foreach($subitem in $item.items)
21 #set ( $currentItemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) )
22 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
23 <li>#topLink( $currentItemHref $subitem.name $subitem.target )</li>
24 #end
25 </ul>
26 </li>
27 #else
28 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
29 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
30 <li>#topLink( $currentItemHref $item.name $item.target )</li>
31 #end
32 #end
33 </ul>
34 </li>
35 #end
36 #end
37 #end
38 ##
39 #macro ( topLink $href $name $target )
40 #set ( $linkTitle = ' title="' + $name + '"' )
41 #if( $target )
42 #set ( $linkTarget = ' target="' + $target + '"' )
43 #else
44 #set ( $linkTarget = "" )
45 #end
46 <a href="$href" $linkTarget title="$name">$name</a>
47 #end
48 ##
49 #macro ( topLinks $links )
50 #set ( $counter = 0 )
51 #foreach( $item in $links )
52 #set ( $counter = $counter + 1 )
53 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
54 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
55 <li>#topLink( $currentItemHref $item.name $item.target )</li>
56 #end
57 #end
58 ##
59 #macro ( link $href $name $target $img $position $alt $border $width $height $icon)
60 #set ( $linkTitle = ' title="' + $name + '"' )
61 #if( $target )
62 #set ( $linkTarget = ' target="' + $target + '"' )
63 #else
64 #set ( $linkTarget = "" )
65 #end
66 #if ( $href.toLowerCase().startsWith("http:/") || $href.toLowerCase().startsWith("https:/") ||
67 $href.toLowerCase().startsWith("ftp:/") || $href.toLowerCase().startsWith("mailto:") ||
68 $href.toLowerCase().startsWith("file:/") || ($href.toLowerCase().indexOf("://") != -1) )
69 #set ( $linkClass = ' class="externalLink"' )
70 #else
71 #set ( $linkClass = "" )
72 #end
73 #if ( $img )
74 #if ( $position == "left" )
75 <a href="$href"$linkClass$linkTarget$linkTitle>#image($img $alt $border $width $height)$name</a>
76 #else
77 <a href="$href"$linkClass$linkTarget$linkTitle>$name #image($img $alt $border $width $height)</a>
78 #end
79 #else
80 <a href="$href"$linkClass$linkTarget$linkTitle>
81 #if($icon)
82 <i class="$icon"></i>
83 #end
84 $name</a>
85 #end
86 #end
87 ##
88 #macro ( image $img $alt $border $width $height )
89 #if( $img )
90 #if ( ! ( $img.toLowerCase().startsWith("http:/") || $img.toLowerCase().startsWith("https:/") ||
91 $img.toLowerCase().startsWith("ftp:/") || $img.toLowerCase().startsWith("mailto:") ||
92 $img.toLowerCase().startsWith("file:/") || ($img.toLowerCase().indexOf("://") != -1) ) )
93 #set ( $imgSrc = $PathTool.calculateLink( $img, $relativePath ) )
94 #set ( $imgSrc = $imgSrc.replaceAll( '\\', '/' ) )
95 #set ( $imgSrc = ' src="' + $imgSrc + '"' )
96 #else
97 #set ( $imgSrc = ' src="' + $img + '"' )
98 #end
99 #if( $alt )
100 #set ( $imgAlt = ' alt="' + $alt + '"' )
101 #else
102 #set ( $imgAlt = ' alt=""' )
103 #end
104 #if( $border )
105 #set ( $imgBorder = ' border="' + $border + '"' )
106 #else
107 #set ( $imgBorder = "" )
108 #end
109 #if( $width )
110 #set ( $imgWidth = ' width="' + $width + '"' )
111 #else
112 #set ( $imgWidth = "" )
113 #end
114 #if( $height )
115 #set ( $imgHeight = ' height="' + $height + '"' )
116 #else
117 #set ( $imgHeight = "" )
118 #end
119 <img class="imageLink"$imgSrc$imgAlt$imgBorder$imgWidth$imgHeight/>
120 #end
121 #end
122 ##
123 #macro ( links $links )
124 #set ( $counter = 0 )
125 ## MSKINS-41
126 #set ( $begin = $links.size() - 1 )
127 #foreach( $index in [$begin..0] )
128 #set ( $item = $links.get( $index ) )
129 #set ( $counter = $counter + 1 )
130 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
131 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
132
133 <li class="pull-right">#link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height false)</li>
134
135 #if ( $counter > 0 && $counter < $links.size() )
136 <li class="divider pull-right">|</li>
137 #end
138 #end
139 #end
140 ##
141 #macro ( breadcrumbs $breadcrumbs $cssClass )
142 #foreach( $item in $breadcrumbs )
143 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
144 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
145 #if ( ( $currentItemHref == '' ) )
146 #set ( $currentItemHref = './' )
147 #end
148 ##
149 <li class="$cssClass">
150 #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height false )
151 </li>
152 <li class="divider $cssClass">/</li>
153 #end
154 #if ( $shortTitle )
155 <li class="$cssClass">$shortTitle</li>
156 #else
157 <li class="$cssClass">$title</li>
158 #end
159 #end
160 ##
161 #macro ( displayTree $display $item )
162 #if ( $item && $item.items && $item.items.size() > 0 )
163 #foreach( $subitem in $item.items )
164 #set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) )
165 #set ( $subitemHref = $subitemHref.replaceAll( '\\', '/' ) )
166 ##
167 #if ( $alignedFileName == $subitemHref )
168 #set ( $display = true )
169 #end
170 ##
171 #displayTree( $display $subitem )
172 #end
173 #end
174 #end
175 ##
176 #macro ( menuItem $item )
177 #set ( $collapseClass = "none" )
178 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
179 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
180 ##
181 #if ( $item && $item.items && $item.items.size() > 0 )
182 #if ( $item.collapse == false )
183 #set ( $collapseClass = "icon-chevron-down" )
184 #else
185 ## By default collapsed
186 #set ( $collapseClass = "icon-chevron-right" )
187 #end
188 ##
189 #set ( $display = false )
190 #displayTree( $display $item )
191 ##
192 #if ( $alignedFileName == $currentItemHref || $display )
193 #set ( $collapseClass = "icon-chevron-down" )
194 #end
195 #end
196
197 #if ( $alignedFileName == $currentItemHref )
198 <li class="active">
199 #else
200 <li>
201 #end
202
203 #if ( $item.img )
204 #if ( $item.position == "left" )
205 #if ( $alignedFileName == $currentItemHref )
206 <a href="#">#image($item.img $item.alt $item.border $item.width $item.height) $item.name</a>
207 #else
208 #link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height false)
209 #end
210 #else
211 #if ( $alignedFileName == $currentItemHref )
212 <a href="#">$item.name #image($item.img $item.alt $item.border $item.width $item.height)</a>
213 #else
214 #link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height false)
215 #end
216 #end
217 #else
218 #if ( $alignedFileName == $currentItemHref )
219 <a href="#"><i class="$collapseClass"></i>$item.name</a>
220 #else
221 #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $collapseClass)
222 #end
223 #end
224 #if ( $item && $item.items && $item.items.size() > 0 )
225 #if ( $collapseClass == "icon-chevron-down" )
226 <ul class="nav nav-list">
227 #foreach( $subitem in $item.items )
228 #menuItem( $subitem )
229 #end
230 </ul>
231 #end
232 #end
233 </li>
234 #end
235 ##
236 #macro ( mainMenu $menus )
237 <ul class="nav nav-list">
238 #foreach( $menu in $menus )
239 #if ( $menu.name )
240 #if ( $menu.img )
241 #if( $menu.position )
242 #set ( $position = $menu.position )
243 #else
244 #set ( $position = "left" )
245 #end
246 ##
247 #if ( ! ( $menu.img.toLowerCase().startsWith("http:/") || $menu.img.toLowerCase().startsWith("https:/") ||
248 $menu.img.toLowerCase().startsWith("ftp:/") || $menu.img.toLowerCase().startsWith("mailto:") ||
249 $menu.img.toLowerCase().startsWith("file:/") || ($menu.img.toLowerCase().indexOf("://") != -1) ) )
250 #set ( $src = $PathTool.calculateLink( $menu.img, $relativePath ) )
251 #set ( $src = $src.replaceAll( '\\', '/' ) )
252 #set ( $src = ' src="' + $src + '"' )
253 #else
254 #set ( $src = ' src="' + $menu.img + '"' )
255 #end
256 ##
257 #if( $menu.alt )
258 #set ( $alt = ' alt="' + $menu.alt + '"' )
259 #else
260 #set ( $alt = ' alt="' + $menu.name + '"' )
261 #end
262 ##
263 #if( $menu.border )
264 #set ( $border = ' border="' + $menu.border + '"' )
265 #else
266 #set ( $border = ' border="0"' )
267 #end
268 ##
269 #if( $menu.width )
270 #set ( $width = ' width="' + $menu.width + '"' )
271 #else
272 #set ( $width = "" )
273 #end
274 #if( $menu.height )
275 #set ( $height = ' height="' + $menu.height + '"' )
276 #else
277 #set ( $height = "" )
278 #end
279 ##
280 #set ( $img = '<img class="imageLink"' + $src + $alt + $border + $width + $height + "/>" )
281 ##
282 #if ( $position == "left" )
283 <li class="nav-header">$img $menu.name</li>
284 #else
285 <li class="nav-header">$menu.name $img</li>
286 #end
287 #else
288 <li class="nav-header">$menu.name</li>
289 #end
290 #end
291 #if ( $menu.items && $menu.items.size() > 0 )
292 #foreach( $item in $menu.items )
293 #menuItem( $item )
294 #end
295 #end
296 #end
297 </ul>
298 #end
299 ##
300 #macro ( copyright )
301 #if ( $project )
302 #if ( ${project.organization} && ${project.organization.name} )
303 #set ( $period = "" )
304 #else
305 #set ( $period = "." )
306 #end
307 ##
308 #set ( $currentYear = ${currentDate.year} + 1900 )
309 ##
310 #if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) )
311 ${project.inceptionYear}-${currentYear}${period}
312 #else
313 ${currentYear}${period}
314 #end
315 ##
316 #if ( ${project.organization} )
317 #if ( ${project.organization.name} && ${project.organization.url} )
318 <a href="$project.organization.url">${project.organization.name}</a>.
319 #elseif ( ${project.organization.name} )
320 ${project.organization.name}.
321 #end
322 #end
323 #end
324 #end
325 ##
326 #macro ( publishDate $position $decorationPublishDate $version )
327 #if ( $decorationPublishDate && $decorationPublishDate.format )
328 #set ( $format = $decorationPublishDate.format )
329 #else
330 #set ( $format = "yyyy-MM-dd" )
331 #end
332 ##
333 $dateFormat.applyPattern( $format )
334 ##
335 #if ( $publishDate )
336 #set ( $dateValue = $dateFormat.format( $publishDate ) )
337 #elseif ( $decoration.custom.getChild( 'publishDate' ) )
338 #set ( $dateValue = $decoration.custom.getChild( 'publishDate' ).getValue() )
339 #else
340 #set ( $dateValue = $dateFormat.format( $currentDate ) )
341 #end
342 ##
343 #if ( $decorationPublishDate && $decorationPublishDate.position )
344 #set ( $datePosition = $decorationPublishDate.position )
345 #else
346 #set ( $datePosition = "left" )
347 #end
348 ##
349 #if ( $version )
350 #if ( $version.position )
351 #set ( $versionPosition = $version.position )
352 #else
353 #set ( $versionPosition = "left" )
354 #end
355 #else
356 #set ( $version = "" )
357 #set ( $versionPosition = "left" )
358 #end
359 ##
360 #set ( $breadcrumbs = $decoration.body.breadcrumbs )
361 #set ( $links = $decoration.body.links )
362
363 #if ( $datePosition.equalsIgnoreCase( "right" ) && $versionPosition.equalsIgnoreCase( "right" ) )
364 #set ( $prefix = '<li class="divider pull-right">|</li>' )
365 #else
366 #set ( $prefix = "" )
367 #end
368 ##
369 #if ( $datePosition.equalsIgnoreCase( $position ) )
370 #if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) )
371 <li id="publishDate" class="pull-right">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue</li> $prefix
372 ## #if ( $versionPosition.equalsIgnoreCase( $position ) )
373 ## <li id="projectVersion" class="pull-right">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</li>
374 ## #end
375 #elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) )
376 <div id="lastPublished">
377 <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue</span>
378 ## #if ( $versionPosition.equalsIgnoreCase( $position ) )
379 ## <span class="divider">|</span> <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
380 ## #end
381 </div>
382 #elseif ( $datePosition.equalsIgnoreCase("left") )
383 <li id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue</li>
384 ## #if ( $versionPosition.equalsIgnoreCase( $position ) )
385 ## <li class="divider">|</li> <li id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</li>
386 ## #end
387 #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
388 <li class="divider">|</li> #breadcrumbs( $breadcrumbs "" )
389 #end
390 ## #end
391 ## #elseif ( $versionPosition.equalsIgnoreCase( $position ) )
392 ## #if ( $versionPosition.equalsIgnoreCase( "right" ) )
393 ## $prefix <li id="projectVersion" class="pull-right">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</li>
394 ## #elseif ( $versionPosition.equalsIgnoreCase( "bottom" ) )
395 ## <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
396 ## #elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) )
397 ## <div id="lastPublished">
398 ## <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
399 ## </div>
400 #elseif ( $versionPosition.equalsIgnoreCase("left") )
401 ## <li id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</li>
402 #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
403 | #breadcrumbs( $breadcrumbs "")
404 #end
405 #end
406 #elseif ( $position.equalsIgnoreCase( "left" ) )
407 #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
408 #breadcrumbs( $breadcrumbs "" )
409 #end
410 #end
411 #end
412 ##
413 #macro ( builtByLogo $poweredBy )
414 #if( $poweredBy )
415 #foreach ($item in $poweredBy)
416 #if( $item.href )
417 #set ( $href = $PathTool.calculateLink( $item.href, $relativePath ) )
418 #set ( $href = $href.replaceAll( '\\', '/' ) )
419 #else
420 #set ( $href="http://maven.apache.org/" )
421 #end
422 ##
423 #if( $item.name )
424 #set ( $name = $item.name )
425 #else
426 #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) )
427 #set ( $name = "${name} Maven" )
428 #end
429 ##
430 #if( $item.img )
431 #set ( $img = $item.img )
432 #else
433 #set ( $img = "images/logos/maven-feather.png" )
434 #end
435 ##
436 #if ( ! ( $img.toLowerCase().startsWith("http:/") || $img.toLowerCase().startsWith("https:/") ||
437 $img.toLowerCase().startsWith("ftp:/") || $img.toLowerCase().startsWith("mailto:") ||
438 $img.toLowerCase().startsWith("file:/") || ($img.toLowerCase().indexOf("://") != -1) ) )
439 #set ( $img = $PathTool.calculateLink( $img, $relativePath ) )
440 #set ( $img = $img.replaceAll( '\\', '/' ) )
441 #end
442 ##
443 #if( $item.alt )
444 #set ( $alt = ' alt="' + $item.alt + '"' )
445 #else
446 #set ( $alt = ' alt="' + $name + '"' )
447 #end
448 ##
449 #if( $item.border )
450 #set ( $border = ' border="' + $item.border + '"' )
451 #else
452 #set ( $border = "" )
453 #end
454 ##
455 #if( $item.width )
456 #set ( $width = ' width="' + $item.width + '"' )
457 #else
458 #set ( $width = "" )
459 #end
460 #if( $item.height )
461 #set ( $height = ' height="' + $item.height + '"' )
462 #else
463 #set ( $height = "" )
464 #end
465 ##
466 <a href="$href" title="$name" class="builtBy">
467 <img class="builtBy" $alt src="$img" $border $width $height />
468 </a>
469 #end
470 #if( $poweredBy.isEmpty() )
471 <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy">
472 <img class="builtBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png"/>
473 </a>
474 #end
475 #else
476 <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy">
477 <img class="builtBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png"/>
478 </a>
479 #end
480 #end
481 ##
482 #macro ( googleAnalytics $accountId )
483 #if( $accountId && $accountId != "" )
484 <!-- Google Analytics -->
485 <script type="text/javascript">
486
487 var _gaq = _gaq || [];
488 _gaq.push(['_setAccount', '$accountId']);
489 _gaq.push(['_trackPageview']);
490
491 (function () {
492 var ga = document.createElement('script');
493 ga.type = 'text/javascript';
494 ga.async = true;
495 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
496 var s = document.getElementsByTagName('script')[0];
497 s.parentNode.insertBefore(ga, s);
498 })();
499
500 </script>
501 #end
502 #end
503 ##
504 #macro ( googleSearch $top )
505 <form id="search-form" action="http://www.google.com/search" method="get" #if ( $top ) class="navbar-search pull-right" #end>
506 #if( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'googleSearch' ).getChild( 'sitesearch' ) )
507 #set( $sitesearchValue = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'googleSearch' ).getChild( 'sitesearch' ).getValue() )
508 #else
509 #set( $startIndex = $project.url.indexOf("://") + 3 )
510 #set( $sitesearchValue = $project.url.substring( $startIndex, $project.url.length() ) )
511 #end
512
513 <input value="$sitesearchValue" name="sitesearch" type="hidden"/>
514 <input class="search-query" name="q" id="query" type="text"/>
515 </form>
516 <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=search-form"></script>
517 #end
518 ##
519 #macro ( forkMeOnGitHub )
520 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'gitHub' )
521 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'gitHub' ).getChild( 'projectId' ) )
522
523 #set ( $gitHubProjectId = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'gitHub' ).getChild( 'projectId' ).getValue() )
524
525 #set ( $leftRibbon = { "red" : "forkme_left_red_aa0000.png", "green" : "forkme_left_green_007200.png", "black" : "forkme_left_darkblue_121621.png", "darkblue" : "forkme_left_darkblue_121621.png", "orange" : "forkme_left_orange_ff7600.png", "gray" : "forkme_left_gray_6d6d6d.png" } )
526 #set ( $rightRibbon = { "red" : "forkme_right_red_aa0000.png", "green" : "forkme_right_green_007200.png", "black" : "forkme_right_darkblue_121621.png", "darkblue" : "forkme_right_darkblue_121621.png", "orange" : "forkme_right_orange_ff7600.png", "gray" : "forkme_right_gray_6d6d6d.png" } )
527
528 #set ( $ribbon = $leftRibbon )
529 #set ( $ribbonOrientation = 'left' )
530 #set ( $definedRibbonOrientation = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'gitHub' ).getChild( 'ribbonOrientation' ) )
531 #if ( $definedRibbonOrientation && $definedRibbonOrientation.getValue().equalsIgnoreCase( "right" ) )
532 #set ( $ribbonOrientation = 'right' )
533 #set ( $ribbon = $rightRibbon )
534 #end
535
536 #set ( $ribbonColor = 'red' )
537 #set ( $definedRibbonColor = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'gitHub' ).getChild( 'ribbonColor' ) )
538
539 #if ( $definedRibbonColor
540 && ( $definedRibbonColor.getValue().equalsIgnoreCase( "red" )
541 || $definedRibbonColor.getValue().equalsIgnoreCase( "green" )
542 || $definedRibbonColor.getValue().equalsIgnoreCase( "black" )
543 || $definedRibbonColor.getValue().equalsIgnoreCase( "orange" )
544 || $definedRibbonColor.getValue().equalsIgnoreCase( "gray" ) ) )
545 #set ( $ribbonColor = $definedRibbonColor.getValue().toLowerCase() )
546 #end
547
548 <a href="http://github.com/$gitHubProjectId">
549 <img style="position: absolute; top: 0; $ribbonOrientation: 0; border: 0; z-index: 10000;"
550 src="https://s3.amazonaws.com/github/ribbons/$ribbon.get( $ribbonColor )"
551 alt="Fork me on GitHub">
552 </a>
553 #end
554 #end
555 ##
556 #macro ( prjProfile )
557 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'profile' ) )
558
559 #set ( $profile = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'profile' ).getValue() )
560
561 #if ( $profile.equalsIgnoreCase( "retired" )
562 || $profile.equalsIgnoreCase( "pre-release" )
563 || $profile.equalsIgnoreCase( "sandbox" ) )
564 <style type="text/css">body {
565 background-image: url('$relativePath/images/profiles/${profile}.png');
566 }</style>
567 #end
568
569 #end
570 #end
571 ##
572 #macro ( googlePlusOne $sideBarEnabled )
573 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'googlePlusOne' )
574 && $project.url )
575 #set( $dataSize = 'tall' )
576 #if( !$sideBarEnabled )
577 #set( $dataSize = 'medium' )
578 #end
579
580 <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
581
582 #if( !$sideBarEnabled )
583 <ul class="nav pull-right">
584 <li style="margin-top: 10px;">
585 #end
586
587 <div class="g-plusone" data-href="$project.url" data-size="$dataSize" #if( !$sideBarEnabled ) width="60px" align="right" #end></div>
588
589 #if( !$sideBarEnabled )
590 </li></ul>
591 #end
592 #end
593 #end
594 ##
595 #macro ( facebookLike $sideBarEnabled )
596 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'facebookLike' )
597 && $project.url )
598 #set( $facebookLike = $decoration.custom.getChild( 'facebookLike' ) )
599 ## kindly hardcoded
600
601 #set( $layout = 'box_count' )
602 #if( !$sideBarEnabled )
603 #set( $layout = 'button_count' )
604 #end
605
606 #set( $colorscheme = 'light' )
607 #if( !$sideBarEnabled )
608 #set( $colorscheme = 'dark' )
609 #end
610
611 #set( $frameWidth = 'width:48px; height:63px' )
612 #if( !$sideBarEnabled )
613 #set( $frameWidth = 'width:80px; height:20px' )
614 #end
615
616 <iframe src="http://www.facebook.com/plugins/like.php?href=$project.url&send=false&layout=$layout&show-faces=false&action=like&colorscheme=$colorscheme"
617 scrolling="no" frameborder="0"
618 style="border:none; $frameWidth; margin-top: 10px;" #if( !$sideBarEnabled ) class="pull-right" #end></iframe>
619 #end
620 #end
621 ##
622 #macro ( followTwitter $sideBarEnabled )
623 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' )
624 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' ).getChild( 'user' ) )
625 #set ( $user = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' ).getChild( 'user' ).getValue() )
626
627 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' ).getChild( 'showUser' )
628 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' ).getChild( 'showUser' ).getValue().equalsIgnoreCase( "true" ) )
629 #set( $showUser = true )
630 #else
631 #set( $showUser = false )
632 #end
633
634 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' ).getChild( 'showFollowers' )
635 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'twitter' ).getChild( 'showFollowers' ).getValue().equalsIgnoreCase( "true" ) )
636 #set( $showFollowers = true )
637 #else
638 #set( $showFollowers = false )
639 #end
640
641 #if ( $sideBarEnabled )
642 #set( $dataSize = "medium" )
643 #set( $dataAlign = "left" )
644 <div id="twitter">
645 #else
646 #set( $dataSize = "large" )
647 #set( $dataAlign = "right" )
648 <ul class="nav pull-right">
649 <li>
650 #end
651
652 <a href="https://twitter.com/${user}" class="twitter-follow-button" data-show-count="${showFollowers}" data-align="${dataAlign}" data-size="${dataSize}" data-show-screen-name="${showUser}" data-lang="${locale}">Follow ${user}</a>
653 <script type="text/javascript">!function (d, s, id) {
654 var js, fjs = d.getElementsByTagName(s)[0];
655 if (!d.getElementById(id)) {
656 js = d.createElement(s);
657 js.id = id;
658 js.src = "//platform.twitter.com/widgets.js";
659 fjs.parentNode.insertBefore(js, fjs);
660 }
661 }(document, "script", "twitter-wjs");</script>
662
663 #if ( $sideBarEnabled )
664 </div>
665 #else
666 </li></ul>
667 #end
668 #end
669 #end
670 ##
671 #macro ( ohloh )
672 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'ohloh' )
673 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'ohloh' ).getChild( 'projectId' ) )
674 #set ( $projectId = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'ohloh' ).getChild( 'projectId' ).getValue() )
675
676 #set( $widget = "users_logo.js" )
677
678 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'ohloh' ).getChild( 'widget' ) )
679 #set( $definedWidget = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'ohloh' ).getChild( 'widget' ).getValue() )
680
681 #if ( $definedWidget.equalsIgnoreCase( "users-logo" ) )
682 #set( $widget = "users_logo.js" )
683 #elseif ( $definedWidget.equalsIgnoreCase( "users-green" ) )
684 #set( $widget = "users.js?style=green" )
685 #elseif ( $definedWidget.equalsIgnoreCase( "users-red" ) )
686 #set( $widget = "users.js?style=red" )
687 #elseif ( $definedWidget.equalsIgnoreCase( "users-blue" ) )
688 #set( $widget = "users.js?style=blue" )
689 #elseif ( $definedWidget.equalsIgnoreCase( "users-gray" ) )
690 #set( $widget = "users.js?style=gray" )
691 #elseif ( $definedWidget.equalsIgnoreCase( "users-rainbow" ) )
692 #set( $widget = "users.js?style=rainbow" )
693 #elseif ( $definedWidget.equalsIgnoreCase( "users" ) )
694 #set( $widget = "users.js" )
695 #elseif ( $definedWidget.equalsIgnoreCase( "thin-badge" ) )
696 #set( $widget = "thin_badge.js" )
697 #elseif ( $definedWidget.equalsIgnoreCase( "partner-badge" ) )
698 #set( $widget = "partner_badge.js" )
699 #elseif ( $definedWidget.equalsIgnoreCase( "languages" ) )
700 #set( $widget = "languages.js" )
701 #elseif ( $definedWidget.equalsIgnoreCase( "factoids" ) )
702 #set( $widget = "factoids.js" )
703 #elseif ( $definedWidget.equalsIgnoreCase( "cocomo" ) )
704 #set( $widget = "cocomo.js" )
705 #elseif ( $definedWidget.equalsIgnoreCase( "stats" ) )
706 #set( $widget = "basic_stats.js" )
707 #end
708 #end
709
710 <div id="ohloh" class="pull-right">
711 <script type="text/javascript" src="http://www.ohloh.net/p/${projectId}/widgets/project_${widget}"></script>
712 </div>
713 #end
714 #end
715 ##
716 <!--[if lt IE 7]><html id="ie6" xmlns="http://www.w3.org/1999/xhtml" #if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end><![endif]-->
717 <!--[if IE 7]><html id="ie7" xmlns="http://www.w3.org/1999/xhtml" #if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end><![endif]-->
718 <!--[if IE 8]><html id="ie8" xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end><![endif]-->
719 <!--[if IE 9]><html id="ie9" xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end><![endif]-->
720 <!--[if !IE]>--><html xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end><!--<![endif]-->
721
722 <head>
723 <meta charset="${outputEncoding}"/>
724 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
725 ## put meta together
726 #foreach( $author in $authors )
727 <meta name="author" content="$author"/>
728 #end
729 #if ( $dateCreation )
730 <meta name="Date-Creation-yyyymmdd" content="$dateCreation"/>
731 #end
732 #if ( $dateRevision )
733 <meta name="Date-Revision-yyyymmdd" content="$dateRevision"/>
734 #end
735 #if ( $locale )
736 <meta http-equiv="Content-Language" content="$locale.language"/>
737 #end
738 <title>$title</title>
739 <link rel="stylesheet" href="$relativePath/css/forge-maven-skin-@project.version@.min.css"/>
740 <link rel="stylesheet" href="$relativePath/css/site.css"/>
741 <link rel="stylesheet" href="$relativePath/css/print.css" media="print"/>
742
743 #prjProfile()
744
745 <script type="text/javascript" src="$relativePath/js/forge-maven-skin-@project.version@.min.js"></script>
746
747 #if ( $decoration.body.head )
748 #foreach( $item in $decoration.body.head.getChildren() )
749 #set ( $head = $item.toString().trim() )
750 #set ( $documentHeader = '<?xml version="1.0" encoding="UTF-8"?>' )
751 #if ( $item.name == "script" )
752 #set ( $head = $StringUtils.replace( $item.toUnescapedString(), $documentHeader, "" ) )
753 #else
754 #set ( $head = $StringUtils.replace( $item.toString(), $documentHeader, "" ) )
755 #end
756
757 $StringUtils.replace( $head, '@relativePath@', ${relativePath} )
758 #end
759 #end
760
761 #if( $headContent )$headContent#end
762 #googleAnalytics( $decoration.googleAnalyticsAccountId )
763 </head>
764 <body>
765
766 #forkMeOnGitHub()
767
768 #set ( $sideBarEnabled = true )
769
770 #if ( $decoration.custom.getChild('hippoSkin') )
771 #if ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'googleSearch' )
772 && ( $decoration.custom.getChild( 'hippoSkin' ).getChild( 'googleSearch' ).getChild( 'sitesearch' )
773 || $project.url ) )
774 #set ( $searchEnabled = true )
775 #else
776 #set ( $searchEnabled = false )
777 #end
778 #end
779
780 <div class="container-fluid">
781 <div class="row-fluid">
782 <div id="header">
783 <div id="logo">
784 <a href="http://www.onehippo.com">
785 <img src="images/hipposkin/hippo-logo.png" alt="Hippo Logo" />
786 </a>
787 </div>
788
789 <h1>
790 #if( $project.name && $project.name != '' )
791 $project.name
792 #else
793 $project.artifactId
794 #end
795 </h1>
796
797 <div class="clearfix"></div>
798 </div>
799 </div>
800
801 <div class="row-fluid">
802 <div id="breadcrumbs" class="clearfix">
803 <ul class="breadcrumb">
804 #publishDate( "left" $decoration.publishDate $decoration.version )
805 </ul>
806
807 <div class="links">
808 <a href="http://www.onehippo.com">Onehippo.com</a>
809 <a href="http://www.onehippo.org">Hippo Campus</a>
810 </div>
811 </div>
812 </div>
813
814
815
816 #if ( $sideBarEnabled )
817 #set ($leftColumnClass="span3")
818 #if ( $decoration.custom && $decoration.custom.getChild('hippoSkin')
819 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'leftColumnClass' ) )
820 #set ( $leftColumnClass = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'leftColumnClass' ).getValue() )
821 #end
822
823 <div class="row-fluid">
824 <div id="leftColumn" class="$leftColumnClass">
825 <div class="well sidebar-nav">
826 #mainMenu( $decoration.body.menus )
827
828 #if ( $searchEnabled )
829 #googleSearch( false )
830 #end
831
832 <hr class="divider"/>
833
834 <div id="poweredBy">
835 #googlePlusOne( $sideBarEnabled )
836 <div class="clear"></div>
837 #facebookLike( $sideBarEnabled )
838 <div class="clear"></div>
839 #followTwitter( $sideBarEnabled )
840 <div class="clear"></div>
841 #builtByLogo( $decoration.poweredBy )
842 </div>
843 </div>
844 </div>
845 #end
846
847 #set ($bodyColumnClass="span9")
848 #if ( $decoration.custom && $decoration.custom.getChild('hippoSkin')
849 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'bodyColumnClass' ) )
850 #set ( $bodyColumnClass = $decoration.custom.getChild( 'hippoSkin' ).getChild( 'bodyColumnClass' ).getValue() )
851 #end
852
853 <div id="bodyColumn" #if ( $sideBarEnabled ) class="$bodyColumnClass" #end>
854 #if ( $title && $title.endsWith( "Project License" ) )
855 $bodyContent
856 #else
857 #if ( $decoration.custom.getChild('hippoSkin')
858 && $decoration.custom.getChild( 'hippoSkin' ).getChild( 'sourceLineNumbersEnabled' )
859 && 'true' == $decoration.custom.getChild( 'hippoSkin' ).getChild( 'sourceLineNumbersEnabled' ).getValue() )
860 #set ( $sourceStyle = "prettyprint linenums" )
861 #else
862 #set ( $sourceStyle = "prettyprint" )
863 #end
864
865 $bodyContent.replaceAll( "<div class=\"source\"><pre>", "<div class=\"source\"><pre class=\"$sourceStyle\">" ).replaceAll( "class=\"bodyTable\"", "class=\"table table-striped\"" )
866 #end
867 </div>
868 #if ( $sideBarEnabled )
869 </div>
870 #end
871 </div>
872
873 <hr/>
874
875 <footer>
876 #if ( $sideBarEnabled )
877 <div class="container-fluid">
878 #else
879 <div class="container">
880 #end
881 <div class="row span12">Copyright &copy;#copyright()All Rights Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version )</div>
882
883 #if ( $decoration.body.footer )
884 #foreach( $item in $decoration.body.footer.getChildren() )
885 #set ( $foot = $item.toString().trim() )
886 ## Workaround for http://jira.codehaus.org/browse/MSITE-135
887 ## Use StringUtils untill http://jira.codehaus.org/browse/DOXIASITETOOLS-67 is fixed
888 ## #eval macro not supported yet, that is a silly turnaround to allow ASF projects adopt fluido
889 $StringUtils.replace( $foot, '@project.name@', ${project.name} )
890 #end
891 #end
892
893 #if ( !$sideBarEnabled )
894 <p id="poweredBy" class="pull-right">
895 #builtByLogo( $decoration.poweredBy )
896 </p>
897 #end
898
899 #ohloh()
900 </div>
901 </footer>
902 </body>
903 </html>

Properties

Name Value
svn:eol-style native
svn:keywords Id