diff --git a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/companylogo.vm b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/companylogo.vm
index 5391c06fe986..39d001b44b2d 100644
--- a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/companylogo.vm
+++ b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/companylogo.vm
@@ -30,7 +30,9 @@
#set($themeObj = $themeDoc.getObject('FlamingoThemesCode.ThemeClass'))
#if($themeObj)
#set($logoname = $themeObj.getValue('logo'))
+ #set($logoalt = $themeObj.getValue('logo-description'))
#else
+ ## Retrieve the value from the old color theme used.
#set($themeObj = $themeDoc.getObject('ColorThemes.ColorThemeClass'))
#set($logoname = $themeObj.getValue('logoImage'))
#end
@@ -45,12 +47,15 @@
#set($logourl = $prefdoc.getAttachmentURL($logo.filename))
#end
#end
+#if("$!{logoalt}" == '')
+ #set($logoalt = $services.localization.render('core.document.header.logo.image.text'))
+#end
diff --git a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeClass.xml b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeClass.xml
index 56ab1ff5bb5d..ea41d9a3bc09 100644
--- a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeClass.xml
+++ b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeClass.xml
@@ -644,6 +644,19 @@
com.xpn.xwiki.objects.classes.StringClass
+
+
+ 0
+ logo-description
+ 63
+ 0
+ logo-description
+ 100
+ 0
+
+
+ com.xpn.xwiki.objects.classes.StringClass
+
0
diff --git a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml
index 1f7457e6cd67..56a2b6413944 100644
--- a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml
+++ b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml
@@ -52,7 +52,8 @@
############################
#set($variables = {
"logos": {
- "logo": "image"
+ "logo": "image",
+ "logo-description": "text"
},
"base-colors": {
"text-color": "color",
@@ -235,8 +236,16 @@
#foreach($var in $catVar.keySet())
#set($varName = $var)
#set($varType = $catVar.get($varName))
+ #set($hintKey = "${obj.xWikiClass.name}_${varName}.hint")
+ #set($hint = $services.localization.render($hintKey))
+ #if($hint == $hintKey)
+ #set($hint = $NULL)
+ #end
<div class="form-group">
<label for="var-$varName" class="col-xs-12">@$varName</label>
+ #if ($hint)
+ <span class="col-xs-12 xHint">$escapetool.xml($hint)</span>
+ #end
<div class="col-xs-12">
#if($varType == 'image')
#fieldImage($varName, $obj)
@@ -745,6 +754,14 @@ require(['jquery', 'xwiki-l10n!xwiki-flamingo-theme-messages', 'bootstrap'], fun
#iframe {
height: 400px;
+}
+
+/* When reworking the DOM of this form, use the standard vertical form structure to avoid hard-coding styles like
+this. */
+#panel-theme-variables .xHint {
+ color: $theme.textSecondaryColor;
+ font-size: smaller;
+ margin: 0.3em 0;
}
diff --git a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/Translations.xml b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/Translations.xml
index fe2dc5793d3f..00d0851820ae 100644
--- a/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/Translations.xml
+++ b/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/Translations.xml
@@ -108,6 +108,7 @@ platform.flamingo.themes.defaultvalue=Default
platform.flamingo.themes.lessCode.description=In this field, you can directly write LESS code which will be added into the skin.
platform.flamingo.themes.local=Local
platform.flamingo.themes.global=Global
+FlamingoThemesCode.ThemeClass_logo-description.hint=Alternative text for the logo. It should describe the logo's meaning. The localized value associated to the key "core.document.header.logo.image.text" is used by default.
###############################################################################
## Deprecated