{% if not options is defined %} {% set options = {} %} {% endif %} {% set options = { title: '', description: '', introRouter: false, img: "img/homepage/intro.png", imgButtons: false, video: false, introCarouselOptions: false, imgLogos: false, breadcrumb: false, container: false, attachment: false, attachmentText: "DETAYLI İNCELEYİN", secondaryContent: false, primaryContent: false }|merge(options) %}
{% if options.container %}
{% endif %} {% if options.breadcrumb %} {% include "components/_breadcrumb.html.twig" with {title: options.breadcrumb} %} {% endif %} {% if options.title or options.description %} {% include "components/_text-container.html.twig" with {options: { title: options.title, description: options.description }} %} {% endif %} {% if options.secondaryContent %} {{ options.secondaryContent }} {% endif %} {% if options.introRouter %}
{% endif %} {% if options.attachment %} {{ options.attachmentText }} {% endif %} {% if options.container %}
{% endif %}
{% if options.img %}
{% if options.video %} {% elseif options.introCarouselOptions %} {% include "components/_carousel.html.twig" with {options: options.introCarouselOptions} %} {% else %} {% endif %} {% if options.imgButtons %} {% endif %} {% if options.imgLogos %} {% set logos = [ 'img/tumsad-logo.png', 'img/saglik-bakanligi-logo.png', 'img/csgb-logo.png', 'img/tc-saglik-bakanligi-logo.png' ] %} {% set index = 0 %}
{% for logo in logos %} {% set index = index + 1 %} {% endfor %}
{% endif %}
{% elseif options.primaryContent %}
{{ options.primaryContent }}
{% endif %}