- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<brandlogo type="buttons" category="Images" width="4" title="Logo" options="on|off" optionlabels="Yes|No">on</brandlogo> <brandlogofile type="dropdown" category="Images" width="6" title="Logo file" parent="brandlogo">themes/survey/vanilla/files/logo.png</brandlogofile> <secondlogo type="buttons" category="Images" width="4" title="SecondLogo" options="on|off" optionlabels="Yes|No">on</secondlogo> <secondlogofile type="dropdown" category="Images" width="6" title="SecondLogo file" parent="secondlogo">themes/survey/vanilla/files/logo.png</secondlogofile>
<brand logo type="buttons" category="Images" width="4" title="Logo" options="on|off" optionlabels="Yes|No">on</brand logo> <brandlogofile type="dropdown" category="Images" width="6" title="Logo file" parent="brandlogo">themes/survey/vanilla/files/logo.png</brandlogofile> <secondlogo type="buttons" category="Images" width="4" title="SecondLogo" options="on|off" optionlabels="Yes|No">on</secondlogo> <secondlogofile type="dropdown" category="Images" width="6" title="SecondLogo file" parent="secondlogo">themes/survey/vanilla/files/logo.png</secondlogofile>
<!-- Brand Logo 2 --> <div class='row action_hide_on_inherit'> <div class='col-sm-12 col-md-4'> {# Brandlogo #} <div class='form-group row'> <label for='simple_edit_options_brandlogo' class='control-label'>Brandlogo 2</label> <div class='col-sm-12'> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-default"> <input type='radio' name='brandlogo2' value='on' class='selector_option_radio_field ' data-id='simple_edit_options_brandlogo'/> {{gT("Yes" )}} </label> <label class="btn btn-default"> <input type='radio' name='brandlogo2' value='off' class='selector_option_radio_field ' data-id='simple_edit_options_brandlogo'/> {{ gT("No") }} </label> </div> </div> </div> </div> <div class='col-sm-8 col-md-6'> {# Brandlogo file selector #} <div class='form-group row'> <label for='simple_edit_options_brandlogofile2' class='control-label'>Brandlogo 2 file</label> <div class='col-sm-12'> <select class='form-control selector_option_value_field selector_radio_childfield selector_image_selector' data-parent="brandlogo2" id='simple_edit_options_brandlogofile2' name='brandlogofile2'> {% set optgroup = '' %} {% for image in templateConfiguration.imageFileList %} {% if image.group != optgroup %} {% if optgroup != '' %} </optgroup> {% endif %} <optgroup label="{{image.group}}"> {% set optgroup = image.group %} {% endif %} <option data-lightbox-src="{{image.preview}}" value="{{image.filepath}}">{{image.filename}}</option> {% endfor %} </optgroup> </select> </div> </div> </div> <div class='col-sm-4 col-md-2'> <br/> <button class="btn btn-default selector__open_lightbox" data-target="#simple_edit_options_brandlogofile2"> {{ gT('Preview image')}}</button> </div> </div>
{# Logo option #} {% if( aSurveyInfo.options.brandlogo == "on" or aSurveyInfo.options.brandlogo2 == "on") %} {% if( aSurveyInfo.options.brandlogo == "on") %} <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs" {{ aSurveyInfo.attr.navbarbrand }} > {{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-responsive"}) }} </div> {% endif %} {% if( aSurveyInfo.options.brandlogo2 == "on") %} <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs" {{ aSurveyInfo.attr.navbarbrand }} > {{ image(aSurveyInfo.options.brandlogofile2, aSurveyInfo.name, {"class": "logo img-responsive"}) }} </div> {% endif %} {% else %} <div class="{{ aSurveyInfo.class.navbarbrand }}" {{ aSurveyInfo.attr.navbarbrand }} > {{ aSurveyInfo.name }} </div> {% endif %}