Email layout with logo: Allow large logos

This commit is contained in:
Raphael Michel
2021-04-15 14:45:15 +02:00
parent 90056c5dca
commit 08d68a764b

View File

@@ -200,13 +200,13 @@
{% if event.settings.logo_image %} {% if event.settings.logo_image %}
<!--[if !mso]><!-- --> <!--[if !mso]><!-- -->
<tr> <tr>
<td style="line-height: 0;" align="center" class="logo"> <td style="line-height: 0; {% if event.settings.logo_image_large %}padding: 0;{% endif %}" align="center" class="logo">
{% if event.settings.logo_image|thumb:'5000x120'|first == '/' %} {% if event.settings.logo_image_large %}
<img src="{{ site_url }}{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}" <img src="{% if event.settings.logo_image|thumb:'1170x5000'|first == '/' %}{{ site_url }}{% endif %}{{ event.settings.logo_image|thumb:'1170x5000' }}" alt="{{ event.name }}"
style="height: auto; max-width: 100%;" /> style="height: auto; max-width: 100%;" />
{% else %} {% else %}
<img src="{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}" <img src="{% if event.settings.logo_image|thumb:'5000x120'|first == '/' %}{{ site_url }}{% endif %}{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
style="height: auto; max-width: 100%;" /> style="height: auto; max-width: 100%;" />
{% endif %} {% endif %}
</td> </td>
</tr> </tr>