{{ attach_library('ui_patterns/line_info_base.line_info_base_lib') }}

{% set wrapper_attributes = wrapper_attributes|default(create_attribute()) %}
{% set container_wrapper = container_wrapper ?? true %}
{% set wrapper_classes = [
  wrapper_classes,
  'line-info-section',
  background_coloured ? 'coloured' : 'white',
] %}
{% set background = background_coloured ? 'coloured' : 'white' %}

{% if theme %}
<div class="{{ theme }}-theme">
{% endif %}
<div {{ wrapper_attributes.addClass(wrapper_classes) }}>
  {% if container_wrapper %}
  <div class="container">
  {% endif %}
    {% block header_block %}
      {% if header %}
        <div class="li-header text-center">
          <h2>{% if header_id %}<span id="{{ header_id }}" class="jump-link-target"></span>{% endif %}{{ header }}</h2>
        </div>
      {% endif %}
    {% endblock %}
    {% block content_block %}
      {{ content }}
    {% endblock %}
  {% if container_wrapper %}
  </div>
  {% endif %}
  {% block content_outside_block %}

  {% endblock %}
</div>
{% if theme %}
</div>
{% endif %}
