All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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.

There is a newer version: 2.4.0-beta2
Show newest version
##
## 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 )##
  
  
#* *##if( $decoration.body.menus )#* ## if menus are available, display bottom navigation #* *##bottomNav ()#* *##end#* *##if ( $config.bottomDescription )##
#* *##if ( $config.bottomDescription.getChildCount() > 0 )#* *##htmlContent ( $config.bottomDescription.getChildren() )#* *##elseif ( $config.bottomDescription.getAttribute("quote") && 'false' == $config.bottomDescription.getAttribute("quote") )#* ## no quote *#$config.bottomDescription.getValue()#* *##else##
$config.bottomDescription.getValue()
#* *##end#* ## add version and publish date if the position is "navigation-bottom" ## (note that 'bottomDescription' needs to be enabled) *##if ( $datePosition == "navigation-bottom" || $versionPosition == "navigation-bottom" )##
#* *##if ( $versionPosition == "navigation-bottom" )## #version () ## add a line break if date is also displayed here #* *##if ( $datePosition == "navigation-bottom" )##
#* *##end#* *##end#* ## now add the date *##if ( $datePosition == "navigation-bottom" )## #publishDate () #* *##end#* *#
#* *##end##
#* *##end##
##
## #* *##if ( $decoration.body.footer )#* *#$render.eval( $decoration.body.footer )#* #* *##else #* *##if ( $datePosition == "bottom" || $versionPosition == "bottom" )##

#* *##if ( $versionPosition == "bottom" )#version (). #end## #* *##if ( $datePosition == "bottom" )#publishDate (). #end##

#* *##end #* *##if ( !$config.not("skinAttribution") )##

Reflow Maven skin by devacfr.

#* *##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} )## ${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## #end##




© 2015 - 2024 Weber Informatics LLC | Privacy Policy