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 )
#* *##foreach ( $col in $pageContext.footer.columns )
#* *##listMenu ( $col.menus )
#* *##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 )
#* *##set ( $href = $config.relativeLink( $item.href ) )
#* *##if ( $item.active )
#* *##set ( $currentLink = "#" )
#* *##else
#* *##set ( $currentLink = $href )
#* *##end
##
#* *##if ( $item.menuItems && $item.menuItems.size() > 0 )
##
#* *##if ( $item.collapse == false )
#* *##set ( $collapseClass = "fas fa-angle-down" )
#* *##else
## By default collapsed
#* *##set ( $collapseClass = "fas fa-angle-right" )
#* *##end
#* *##if ( $item.active )
#* *##set ( $collapseClass = "fas fa-angle-down" )
#* *##end
##
#* *##end
#*
#* *##fullLink ( $currentLink $item.name $item.target $item.inage $item.position $item.alt $item.border $item.width $item.height $collapseClass "nav-link")
#* *##if ( $item.menuItems.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} )