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

META-INF.maven.site.vm Maven / Gradle / Ivy

The newest version!
#macro ( publishDate $position $publishDate $version )
  #if ( $publishDate && $publishDate.format )
    #set ( $format = $publishDate.format )
  #else
    #set ( $format = "yyyy-MM-dd" )
  #end

  $dateFormat.applyPattern( $format )

  #set ( $dateToday = $dateFormat.format( $currentDate ) )

  #if ( $publishDate && $publishDate.position )
    #set ( $datePosition = $publishDate.position )
  #else
    #set ( $datePosition = "left" )
  #end

  #if ( $version )
    #if ( $version.position )
      #set ( $versionPosition = $version.position )
    #else
      #set ( $versionPosition = "left" )
    #end
  #else
    #set ( $version = "" )
    #set ( $versionPosition = "left" )
  #end

  #set ( $breadcrumbs = $decoration.body.breadcrumbs )
  #set ( $links = $decoration.body.links )

  #if ( $datePosition.equalsIgnoreCase( "right" ) && $links && $links.size() > 0 )
    #set ( $prefix = " |" )
  #else
    #set ( $prefix = "" )
  #end

  #if ( $datePosition.equalsIgnoreCase( $position ) )
    #if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) )
      $prefix $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday
      #if ( $versionPosition.equalsIgnoreCase( $position ) )
         | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}
      #end
    #elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) )
      
$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday #if ( $versionPosition.equalsIgnoreCase( $position ) )  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #end
#elseif ( $datePosition.equalsIgnoreCase("left") )
$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday #if ( $versionPosition.equalsIgnoreCase( $position ) )  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #end #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) | #breadcrumbs( $breadcrumbs ) #end
#end #elseif ( $versionPosition.equalsIgnoreCase( $position ) ) #if ( ( $versionPosition.equalsIgnoreCase( "right" ) ) || ( $versionPosition.equalsIgnoreCase( "bottom" ) ) ) $prefix $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) )
$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}
#elseif ( $versionPosition.equalsIgnoreCase("left") )
$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) | #breadcrumbs( $breadcrumbs ) #end
#end #elseif ( $position.equalsIgnoreCase( "left" ) ) #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
#breadcrumbs( $breadcrumbs )
#end #end #end #macro(mainMenu $menus) #if($menus && $menus.size()>0)
    #foreach($menu in $menus)
  • $menu.name #if($menu.items && $menu.items.size() > 0)
      #foreach($item in $menu.items ) #menuItem($item) #end
    #end
  • #end
  •  
#end #end #macro(myMainMenu $menus) #if($menus && $menus.size()>0)
    #foreach($menu in $menus)
  • $menu.name #if($menu.items && $menu.items.size() > 0)
      #foreach($item in $menu.items ) #menuItem($item) #end
    #end
  • #end
  •  
#end #end #macro(menuItem $item) #set($active = "") #set($collapse = "") #set($currentItemHref = $PathTool.calculateLink($item.href, $relativePath)) #set($currentItemHref = $currentItemHref.replaceAll( "\\", "/" )) #if($item && $item.items && $item.items.size() > 0) #if($item.collapse == false) #set($active = ' class ="active"' ) #else #set ( $active = "" ) #end #set($display = false) #displayTree($display $item) #if($alignedFileName == $currentItemHref || $display) #set($active = ' class ="active"' ) #end #end #if($item && $item.items && $item.items.size() > 0 ) #if ($active == ' class ="active"') #set($collapse = ' class ="expanded"') #else #set($collapse = ' class ="collapsed"') #end #end #if ( $alignedFileName == $currentItemHref ) $item.name #else $item.name #end #if($item && $item.items && $item.items.size() > 0 ) #if ($active == ' class ="active"')
    #foreach($subitem in $item.items) #menuItem($subitem) #end
#end #end #end #macro ( displayTree $display $item ) #if ( $item && $item.items && $item.items.size() > 0 ) #foreach( $subitem in $item.items ) #set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) ) #set ( $subitemHref = $subitemHref.replaceAll( "\\", "/" ) ) #if ( $alignedFileName == $subitemHref ) #set ( $display = true ) #end #displayTree( $display $subitem ) #end #end #end #macro ( secondaryMenu $menus ) #if ( $menus && $menus.size() > 0 ) #foreach( $menu in $menus ) #foreach( $item in $menu.items ) #set ( $display = false ) #displayTree( $display $item ) #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath )) #set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) ) #if($alignedFileName == $currentItemHref || $display == true)
    #if($alignedFileName == $currentItemHref)
  • $item.name
  • #else
  • $item.name
  • #secondaryMenuItem( $item ) #end
#end #end #end #end #end #macro ( secondaryMenuItem $item ) #if ( $item && $item.items && $item.items.size() > 0 ) #foreach( $subItem in $item.items ) #set ( $display = false ) #displayTree( $display $subItem ) #set ( $currentItemHref = $PathTool.calculateLink( $subItem.href, $relativePath )) #set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) ) #if($alignedFileName == $currentItemHref || $display == true) #if($alignedFileName == $currentItemHref)
  • /
  • $subItem.name
  • #else
  • /
  • $subItem.name
  • #secondaryMenuItem( $subItem ) #end #end #end #end #end #macro ( myCopyright ) #set ( $format = "yyyy-MM-dd HH:mm" ) $dateFormat.applyPattern( $format ) #set ( $dateToday = $dateFormat.format( $currentDate ) ) #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} && ${project.organization.url} ) ${project.organization.name} #end  | $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #end #end #macro ( poweredByLogo $poweredBy ) #set($name = "") #if( $poweredBy ) #foreach ($item in $poweredBy) #if( $item.name ) #set ( $name = $item.name ) #else #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) ) #set ( $name = "${name} Maven" ) #end #end #if( $poweredBy.isEmpty() ) #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) ) #set ( $name = "${name} Maven" ) #end #else #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) ) #set ( $name = "${name} Maven" ) #end $name #end #macro ( link $href $name ) #if ( ( $href.toLowerCase().startsWith("http") || $href.toLowerCase().startsWith("https") ) ) $name #else $name #end #end #macro ( links $links ) #if($links.size() > 0)
    #secondaryMenu( $decoration.body.menus )
     
    $bodyContent
     
    #myCopyright()




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy