{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}

{%- block sidebar %}
  {%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
{%- endblock -%}

{%- block content %}
  {%- if project_status is not empty %}
    {%- if project_status_title is not empty %}
      {%- set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
      {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
        title: project_status_title,
        title_tag: 'h2',
        attributes: create_attribute().setAttribute('id', project_status_id),
      } only %}
    {%- endif %}
    {%- include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
    {%- if project_contributions is not empty %}
      {%- include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
    {%- endif %}
    {%- if status_lists is not empty %}
      {%- include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
    {%- endif %}
  {%- endif %}

  {%- if first_paragraphs is defined and first_paragraphs is not empty %}
    {%- for _paragraph in first_paragraphs %}
      {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
        title: _paragraph.title,
        title_tag: 'h2',
        attributes: create_attribute().addClass(['mb-4', 'pt-3'])
                                      .setAttribute('id', _paragraph.title_id),
      } only %}
      {{- _paragraph.content -}}
    {% endfor %}
  {%- endif %}

  {%- if featured_lists is not empty %}
    {%- include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
  {%- endif %}

  {%- if content_lists is not empty %}
    {%- include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
  {%- endif %}

  {%- if second_paragraphs is defined and second_paragraphs is not empty %}
    {%- for _paragraph in second_paragraphs %}
      {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
        title: _paragraph.title,
        title_tag: 'h2',
        attributes: create_attribute().addClass(['mb-4', 'pt-3'])
                                      .setAttribute('id', _paragraph.title_id),
      } only %}
      {{- _paragraph.content -}}
    {% endfor %}
  {%- endif %}

  {%- if gallery is not empty -%}
  <div class="mt-3 mb-4-5">
    {%- include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only -%}
  </div>
  {%- endif %}

  {%- if social_block is not empty %}
    {%- block social_block %}
      {{- social_buttons }}
      {%- include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
      {%- include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
    {%- endblock -%}
  {% endif %}

{%- endblock -%}
