Fixed d4science theme to support parametric client.name fields

This commit is contained in:
vcestone 2021-01-22 17:38:27 +01:00
parent d9894e1531
commit 837a278d80
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,10 @@
<#if properties.logoSrc?has_content>
<img class="img-fluid float-left" alt="${properties.logoAlt!}" src="${properties.logoSrc!}" style="${properties.logoStyle!}">
<#else>
<h1>${(client.getName()!client.getClientId()!"undefined client")?capitalize?keep_before('.')}</h1>
<h1>
<#if client.getName()?has_content && client.getName()?starts_with("${")>${kcSanitize(msg(client.getName()?keep_after("{")?keep_before("}")))}
<#else>${(client.getName()!client.getClientId()!"undefined client")?capitalize?keep_before('.')}</#if>
</h1><h5>${kcSanitize(msg("ravanello"))}</h5>
</#if>
</a>
</#if>