#* @vtlvariable name="licenseService" type="com.atlassian.confluence.license.LicenseService" *# ## macros-deprecated.vm: The place where macros can go to die. ## Deprecated since 4.0 #macro (renderIfEdit $markup) #trim() #if ($editMode == true) $!htmlUtil.htmlEncode($markup) #else $!statusTextRenderer.render($markup) #end #end #end ## Deprecated since 3.5 - no longer used in Confluence. #macro(helpicon) $action.getText('get.help.from.confluence.website') #end #macro(pagetitle $class) #if ($bootstrap.isSetupComplete() && $sitemeshPage.getProperty("page.spacename"))
#if ($sitemeshPage.getProperty("page.spacekey"))#end#if ($sitemeshPage.getProperty("page.spacekey"))#end $sitemeshPage.getProperty("page.spacename")
#else
#end #end #* Old Label macros ---------------- *# #macro (labelsWithNone $labels $showNone) #if ($labels && !$labels.isEmpty()) #foreach($label in $labels)#if($velocityCount > 1), #end #labelLink($label)#end #elseif ($showNone) (None) #end #end #* Renders a comma separated list of labels limited by a max amount. If there are more than max labels it shows: ... x $message. *# #macro (labelsMax $labels $max $message) #if ($labels.size() > 0) #set($remaining = $labels.size() - $max) #foreach($label in $labels)#if($velocityCount <= $max)#if($velocityCount > 1), #end #labelLink($label)#end#end #if($remaining > 0) ... $remaining $message #end #end #end #macro (labels $labels) #labelsWithNone ($labels true) #end #macro (labelLink $label)$htmlUtil.htmlEncode($label.realTitle)#end ## Displays the label link without the namespace #macro (labelLinkBasic $label)$label.name#end #macro (labelString $labelable)#if ($labelable.labels.size() > 0) #foreach($label in $labelable.labels)#if($velocityCount > 1), #end$label.name#end#end#end #* Old footer macros ----------------- *# ## deprecated - used only in old footer.vmd #macro(bottomshadow) #if ($generalUtil.isSetupComplete()) #set ($license = $licenseService.retrieve() ) #if (!$license)

$action.getText('licensing.error', [$action.getText('mailto.confluence.support')])

#elseif($license.isEvaluation())

#if ($generalUtil.isLicenseExpired()) LICENSE EXPIRED #else EVALUATION LICENSE #end — $action.getText('consider.purchasing',[$action.getText('url.atlassian'),$action.getText('hitcounter.consider.purchasing')])

#elseif ($license.licenseType.name() == "NON_PROFIT")

$action.getText('licensefooter.nonprofit',[$action.getText('url.atlassian'),$action.getText('hitcounter.nonprofit'), $htmlUtil.htmlEncode($license.organisation.name)])

#elseif ($license.licenseType.name() == "PERSONAL")

$action.getText('licensefooter.personal',[$action.getText('url.atlassian'),$action.getText('hitcounter.personal')])

#elseif ($license.licenseType.name() == "COMMUNITY")

$action.getText('licensefooter.community',[$action.getText('url.atlassian'), $action.getText('hitcounter.community'), $htmlUtil.htmlEncode($license.organisation.name)])

#elseif ($license.licenseType.name() == "OPEN_SOURCE")

$action.getText('licensefooter.opensource',[$action.getText('url.atlassian'), $action.getText('hitcounter.opensource'), $htmlUtil.htmlEncode($license.organisation.name)])

#elseif ($license.licenseType.name() == "DEVELOPER")

$action.getText('licensefooter.developer')

#elseif ($license.licenseType.name() == "DEMONSTRATION")

$action.getText('licensefooter.demonstration', [$action.getText('url.atlassian'), $action.getText('hitcounter.demonstration')])

#end #end #end ## deprecated - used only in old footer.vmd #macro(poweredby) #end ## deprecated since 5.2 #macro (nameList $names) #set($user = "") #foreach ($user in $names) #if ($velocityCount == $names.size()) #usernameLink ($user) #else #usernameLink($user), #end #set($user = "") #end #end #* Link to a user, given their username. If the username doesn't exist, "Anonymous" is printed deprecated since 5.2 *# #macro (usernameLink $username) #trim() #if ("$!username" != "") #if ($action.getUserFullName($username)) $htmlUtil.htmlEncode($action.getUserFullName($username)) #else $username #end #else $action.getText('anonymous.name') #end #end #end #macro (usernameLinkWithCustomBaseUrl $username $baseurl) #if ("$!username" != "") #if ($action.getUserFullName($username)) $htmlUtil.htmlEncode($action.getUserFullName($username)) #else $username #end #else $action.getText('anonymous.name') #end #end #macro (usernameLinkParentWindow $username) #if ($username) $htmlUtil.htmlEncode($action.getUserFullName($username)) #else $action.getText('anonymous.name') #end #end