{% load i18n wagtailimages_tags wagtailcore_tags static %} {% if self.highlight == "highlight" %}
{% elif self.highlight == "boxed" %}
{% elif self.highlight == "boxed2" %}
{% elif self.highlight == "highlight-purple" %}
{% else %}
{% endif %}
{% if self.alignment == 'horizontal' %}
{% if self.image.width > 0 %} {% image self.image width-900 class="info-box-image img-fluid info-img" %} {% endif %}
{% if self.title %}

{{ self.title }}

{% endif %}
{% if self.text %} {{ self.text | richtext }} {% endif %}
{% if self.button.internal_link %} {{ self.button.link_text}} {% elif self.button.external_link %} {{ self.button.link_text}} {% endif %}
{% else %}
{% if self.title %}

{{ self.title }}

{% endif %} {% if self.image.width > 0 %} {% image self.image width-900 class="info-box-image img-fluid info-img" %} {% endif %} {% if self.text %}
{{ self.text | richtext }}
{% endif %} {% if self.button.internal_link %} {{ self.button.link_text}} {% elif self.button.external_link %} {{ self.button.link_text}} {% endif %}
{% endif %}