I am trying to expend the theme fruity. My goal is to display a different logo depending on the chosen language. I am updating the custom nav_bar.twig. I tried the following code, where I also tried {{ SURVEYLANG }}, { SURVEYLANG }, in small letters, with surveylanguage Capital and small letters and LANG in call variations.
Code:
{# Logo option #}
{% if( aSurveyInfo.options.brandlogo == "on") %}
<div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs" {{ aSurveyInfo.attr.navbarbrand }} >
{% if( SURVEYLANG == "fr") %}
{{ image( "./files/logo_fr_quer.png", 'anytext', {"class": "logo img-responsive"}) }}
{% else %}
{{ image( "./files/logo_de_quer.png", 'anytext', {"class": "logo img-responsive"}) }}
{% endif %}
</div>
{% else %}
<div class="{{ aSurveyInfo.class.navbarbrand }}" {{ aSurveyInfo.attr.navbarbrand }} >
{{ aSurveyInfo.name }}
</div>
{% endif %}
Does anyone know how I can do this?
Edit: I'm using Limesurvery 3.0.0.