META-INF.maven.footer-default.vm Maven / Gradle / Ivy
Go to download
Reflow is an Apache Maven site skin built on Twitter Bootstrap.
It allows various structural and stylistic customizations to create
a modern-looking Maven-generated website. Requires Reflow Velocity Tools.
##
## Copyright 2012-2018 Christophe Friederich
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
##
#macro ( renderFooter )##
##
${project.organization.name}
#*
*##else#*
*#${project.organization.name}#*
*##end#*
*##end#*
*##end##
#end##
##
#**
* Outputs bottom navigation columns. The menus can be split into columns to be
* placed in the bottom navigation. This is done with the `bottomNav` config option:
*
* - maximum span is indicated in the attribute (default =9)
* regex - indicates to add a column with the indicated regex filter
* regex - ...
* regex - ...
*
*
* (The above produces a 3-column navigation with `span2` for each column (because max is 8)).
*
*##macro ( bottomNav )#*
*##if ( $config.bottomNav && $config.bottomNav.getChildCount() > 0 )#*
## Bottom navigation config is available - filter menus for each column and collect
*##set ( $menuColumns = [] )#*
*##foreach ( $bottomNavCol in $config.bottomNav.getChildren() )#*
*##filterMenus ( $decoration.body.menus, $bottomNavCol.getValue() )#*
*##call ( $menuColumns.add( $filterMenus ) )#*
*##end#*
*##else#*
## No bottom navigation config - just use all menus in a single column
*##set ( $menuColumns = [ $decoration.body.menus ] )#*
*##end##
##
## mark total span taken by the bottomNav (needed to add other components to the footer)
#* *##foreach ( $menuCol in $menuColumns )##
#* *##listMenu ( $menuCol )##
#* *##end##
#end##
##
#**
* Creates a list menu with submenus
*##macro ( listMenu $menus )#*
*#
#end##
##
#**
* Recursively outputs menu item and its children
*
*##macro ( menuItem $item )#*
*##set ( $collapseClass = false )#*
*##activeLink ( $item.href )#*
## store value (if active) for later
*##set ( $active = $activeLink )#*
*##if ( $active )#*
*##set ( $currentLink = "#" )#*
*##else#*
*##set ( $currentLink = $relativeLink )#*
*##end#*
*##if ( $item.items && $item.items.size() > 0 )#*
*##if ( $item.collapse == false )#*
*##set ( $collapseClass = "fas fa-angle-down" )#*
*##else#*
## By default collapsed
*##set ( $collapseClass = "fas fa-angle-right" )#*
*##end#*
## check if one of the subtree items is the current one, if so, autoexpand
*##set ( $displayTree = false )#displayTree ( $item )#*
*##if ( $active || $displayTree )#*
*##set ( $collapseClass = "fas fa-angle-down" )#*
*##end#*
*##end##
#*
*##fullLink ( $currentLink $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $collapseClass "nav-link")#*
*##if ( $item.items && $item.items.size() > 0 && $collapseClass == "fas fa-angle-down" )##
#end##
#*
*##end#*
*#
#end##
##
#**
* Renders copyright year (inception-currentDate) and organization.
*
*##macro ( copyright )#*
*##if ( $project )#*
*##set ( $currentYear = ${currentDate.year} + 1900 )#*
*##if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) )#*
*#${project.inceptionYear}-${currentYear}#*
*##else#*
*#${currentYear}#*
*##end#*
*##if ( ${project.organization} && ${project.organization.name} )#*
*##if ( ${project.organization.url} )##