{% assign has_bordered_text = false %} {% for item in include.columns %} {% if item._type == 'text' and item.add_border %} {% assign has_bordered_text = true %} {% break %} {% endif %} {% endfor %}
{% for item in include.columns %} {% if item._type == 'text' %}
{{item.top_right_text.paragraph_html}}

{{item.heading.text}}

{% if item.heading.button_text and item.heading.button_url %} {{item.heading.button_text}} {% endif %}
{% if item.body_text.no_of_columns == 'one' %}
{{item.body_text.column_one_html}} {% if item.body_text.button_text and item.body_text.button_url %} {{item.body_text.button_text}} {% endif %}
{% elsif item.body_text.no_of_columns == 'two' %}
{{item.body_text.column_one_html}}
{{item.body_text.column_two_html}} {% if item.body_text.button_text and item.body_text.button_url %} {{item.body_text.button_text}} {% endif %}
{% elsif item.body_text.no_of_columns == 'two-with-border' %}
{{item.body_text.column_two_html}}
{{item.body_text.column_one_html}} {% if item.body_text.button_text and item.body_text.button_url %} {{item.body_text.button_text}} {% endif %} {{item.heading.button_text}}
{% endif %}
{% elsif item._type == 'image' %}
{{item.image_alt_text}}
{% endif %} {% endfor %}