#* @vtlvariable name="currentThemeDescriptor" type="com.atlassian.confluence.plugin.descriptor.ThemeModuleDescriptor" *# #if ($action.getClass().getName() == "com.atlassian.confluence.admin.actions.lookandfeel.ChooseThemeAction") #set ($isGlobalAdmin = true) #else #set ($isGlobalAdmin = false) #end #macro(themeIcon $themeDescriptor) #if ($action.hasIcon($themeDescriptor)) #foreach($resource in $themeDescriptor.getResourceDescriptors('download')) ## we must have at least 1 themeicon.gif resource since hasIcon returned true: #if ($resource.name == "themeicon.gif") #if($resource.location.startsWith("http://")) #set($iconSrc = $resource.location) #else #set($iconSrc = "$req.contextPath/download/resources/$themeDescriptor.completeKey/themeicon.gif") #end #end #end #else #set($iconSrc = "$staticResourceUrlPrefix/images/themes/no-icon.gif") #end #end

$action.getText('current.theme.title')

$action.getText('current.theme.desc')

#if ($currentThemeDescriptor)
#themeIcon($currentThemeDescriptor)
#if ($currentThemeDescriptor.descriptionKey) $action.getText($currentThemeDescriptor.descriptionKey, $!currentThemeDescriptor.description) #else $!currentThemeDescriptor.description #end
#if ($action.getConfigPath($currentThemeDescriptor))

$action.getText('theme.configure') $action.getText('theme.configure.desc')

#end #else

#if ($isGlobalAdmin) $action.getText("global.theme.default.desc") #else $action.getText("theme.default.desc") #end

#end

$action.getText('theme.choose.new')

$action.getText('theme.select.desc')

#if ($currentThemeDescriptor)

#if ($isGlobalAdmin) $action.getText("global.theme.default.desc") #else $action.getText("theme.default.desc") #end
#end #if ($availableThemeDescriptors.size() == 0) $action.getText("theme.choose.nothemes") #else #foreach ($theme in $availableThemeDescriptors) #if (!$currentThemeDescriptor || $theme != $currentThemeDescriptor)
#themeIcon($theme)

#if ($theme.descriptionKey) $action.getText($theme.descriptionKey, $!theme.description) #else $!theme.description #end

#end #end #end
#if ($isGlobalAdmin) $action.getText("com.atlassian.confluence.themes.marketplace.tip") #else $action.getText("com.atlassian.confluence.themes.marketplace.tip") #end
#if ($space.key) #end