[Added] metadata setting for alternative PDF-Logo filename; translations [Changed] img-handling in documentsGeneric and header.html.twig I didn't check for smarty yet!
16 lines
536 B
Twig
16 lines
536 B
Twig
{% set showLogo = showLogo|default(1) %}
|
|
{% set sPdfLogo = sAlternativePdfLogo %}
|
|
|
|
{% block pdfHeader %}
|
|
<div class="header">
|
|
{% if showLogo %}
|
|
{# pdf logo is available only in non admin theme #}
|
|
{% set isAdmin = oViewConf.isAdmin() %}
|
|
{{ oViewConf.setAdminMode(false) }}
|
|
{% if sPdfLogo %}
|
|
<img class="logo" alt="Logo" src="{{ sPdfLogo }}">
|
|
{% endif %}
|
|
{{ oViewConf.setAdminMode(isAdmin) }}
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %} |