{% extends 'base.html.twig' %} {% block metaTitle %}{{ meta.title|default }}{% endblock %} {% block metaDescription %}{{ meta.description|default }}{% endblock %} {% block stylesheets %} {# #} {# #} {% endblock %} {% block body %} {% set earthSection = getPageSections({'alias': 'Dünya Animasyonu Kısmı', 'multipleData': true}) %}
{% set mainpageLeftTopTitleSection = earthSection|pageSectionFilter('Açıklama Sol Üst') %} {% set leftTopTitleLang = getPageSectionLangLocale({'section': mainpageLeftTopTitleSection, 'locale': app.request.locale}) %}
{{ leftTopTitleLang.title|default }}+ {{ leftTopTitleLang.text|default|raw }}
{% set mainpageRightBottomTitleSection = earthSection|pageSectionFilter('Açıklama Sağ Alt') %} {% set rightBottomlang = getPageSectionLangLocale({'section': mainpageRightBottomTitleSection, 'locale': app.request.locale}) %}
{{ rightBottomlang.shortTitle|default }}
{{ rightBottomlang.title|default }} {{ rightBottomlang.text|default|raw }}
{% set mainpageMainTitleSection = earthSection|pageSectionFilter('Ana Başlık') %} {% set lang = getPageSectionLangLocale({'section': mainpageMainTitleSection, 'locale': app.request.locale}) %} {% set lineShattered = lang.text|default|raw|lineShredder %}
{% for line in lineShattered %} {# {{ lang.text|default|raw }} #}
{# {{ dump(line) }} #} {% set lineClean = line|striptags %} {% set lineAndLetterShattered = lineClean|lineAndLetterShattered %} {% for word in lineAndLetterShattered %} {% for letter in word %} {{ letter }} {% endfor %} {% endfor %}
{% endfor %}
{% for line in lineShattered %} {# {{ lang.text|default|raw }} #}
{% set lineClean = line|striptags %} {% set lineAndLetterShattered = lineClean|lineAndLetterShattered %} {% for word in lineAndLetterShattered %} {% for letter in word %} {{ letter }} {% endfor %} {% endfor %}
{% endfor %}
{% for line in lineShattered %} {# {{ lang.text|default|raw }} #}
{% set lineClean = line|striptags %} {% set lineAndLetterShattered = lineClean|lineAndLetterShattered %} {% for word in lineAndLetterShattered %} {% for letter in word %} {{ letter }} {% endfor %} {% endfor %}
{% endfor %}
{#
#} {# Leader #} {# of #} {# the #} {# Producing #} {# Sector #} {# for #} {# 43 #} {#
#} {#
#} {# Years #} {# Energy #} {# Technology #} {# Projects. #} {#
#}
{{ "pages.homepage.scroll"|trans|upper }}
{{ include('components/navbar_index.html.twig', {globalSettings: globalSettings}) }}
{% set introSliderSection = getPageSections({'alias': 'Giriş Slider Kısmı', 'multipleData': true}) %}
{% if introSliderSection is defined %} {% for introSlider in introSliderSection %} {% set introSliderLang = getPageSectionLangLocale({'section': introSlider, 'locale': app.request.locale}) %} {% set mainpageIntroSliderImage = getPageSectionImages({'section': introSlider}) %} {% set dir = getParameters("page_mainpage_intro_slider_dir") %} {% set imageDir = mainpageIntroSliderImage is defined and mainpageIntroSliderImage.name is defined ? (dir ~ mainpageIntroSliderImage.name) : 'assets/img/61809e6000fd8d7ff1991b47_lock-min.png' %}
{{ introSliderLang.alt[0]|default }}
{% endfor %} {% endif %}
{% if introSliderSection is defined %} {% for introSlider in introSliderSection %} {% set introSliderLang = getPageSectionLangLocale({'section': introSlider, 'locale': app.request.locale}) %}

{{ introSliderLang.title|default }} {{ introSliderLang.titleTwo|default }}

{{ introSliderLang.text|default|raw }}

{% endfor %} {% else %}

Industry Leader in Energy Technology

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatem nobis animi officia, dicta eos ipsa commodi harum distinctio rem? 1

Industry Leader in Energy Technology

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatem nobis animi officia, dicta eos ipsa commodi harum distinctio rem? 2

Industry Leader in Energy Technology

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatem nobis animi officia, dicta eos ipsa commodi harum distinctio rem? 3

{% endif %}
{{ "pages.homepage.scroll"|trans|upper }}
{# ABOUT US INTRO SECTION | MAIN SECTION#} {% set aboutUsSection = getPageSections({'alias': 'Hakkımızda Kısmı'}) %} {% set mainpageAboutUsIntroSection = aboutUsSection|pageSectionFilter('Anasayfa Hakkımızda İntro Kısmı') %} {% set mainpageAboutUsIntroLang = getPageSectionLangLocale({'section': mainpageAboutUsIntroSection, 'locale': app.request.locale}) %} {# ABOUT US IMAGESLIDER, STATISTICS SECTION | CATEGORY SECTION#} {% set aboutUsImageSliderSections = getPageSections({'alias': 'Hakkımızda Kısmı', 'categoryAlias': 'Resim Kaydırıcı Kısmı', 'isCategory': true, 'multipleData': true}) %} {% set aboutUsStatisticsSections = getPageSections({'alias': 'Hakkımızda Kısmı', 'categoryAlias': 'İstatistik Bölümler', 'isCategory': true, 'multipleData': true}) %}
{{ mainpageAboutUsIntroLang.shortTitle|default }}

{{ mainpageAboutUsIntroLang.title|default }}

Temp
{% if aboutUsImageSliderSections is not empty %} {% for imageSliderSection in aboutUsImageSliderSections %}
{% for image in imageSliderSection.images()|filter(e => e.del == 0)|default([]) %} {% set img = image.name|default %} {% set dir = getParameters('page_mainpage_aboutus_dir') %} {% set imagePath = dir~img %} Panel 1 {% endfor %}
{% endfor %} {% else %}
Panel 1 Panel 2
{% endif %}
{% set mainpageAboutUsStatisticsIntroSection = getPageSections({'alias': 'Hakkımızda Kısmı', 'categoryAlias': 'İstatistik Bölümler İntro Kısmı', 'isCategory': true, 'multipleData': false}) %} {% set mainpageAboutUsStatisticsIntroLang = getPageSectionSectionsLang({'section': mainpageAboutUsStatisticsIntroSection, 'lang': app.request.locale}) %}
{{ mainpageAboutUsStatisticsIntroLang.title|default }}
{{ mainpageAboutUsStatisticsIntroLang.text|default|raw }}
{% for aboutUsStatisticsSection in aboutUsStatisticsSections %} {% set mainpageAboutUsStatisticsLang = getPageSectionSectionsLang({'section': aboutUsStatisticsSection, 'lang': app.request.locale}) %}

{{ mainpageAboutUsStatisticsLang.shortTitle|default }}

{{ mainpageAboutUsStatisticsLang.title|default }}
{{ mainpageAboutUsStatisticsLang.text|default|raw }}
{{ loop.index|formatNumberWithLeadingZero }}
{% endfor %}
{# SOLUTİONS MAIN SECTION#} {% set solutionsSection = getPageSections({'alias': 'Çözümler Kısmı'}) %} {% set mainpageSolutionsIntroSection = solutionsSection|pageSectionFilter('Anasayfa Çözümler İntro Kısmı') %} {% set mainpageSolutionsIntroLang = getPageSectionLangLocale({'section': mainpageSolutionsIntroSection, 'locale': app.request.locale}) %}
{{ mainpageSolutionsIntroLang.shortTitle|default }}

{{ mainpageSolutionsIntroLang.title|default }}

{{ "pages.homepage.all-solutions"|trans|upper }}
{% set mainpageSolutionsSection = getSolutions() %}
{% for mainpageSolutionSection in mainpageSolutionsSection %} {% set mainpageSolutionLang = getSolutionsLangs({'Solutions': mainpageSolutionSection, 'lang': app.request.locale}) %} {% set pdfDir = getParameters("page_solutions_pdf_dir") %} {% set pdfFile = attribute(mainpageSolutionSection, 'pdf' ~ app.request.locale|capitalize) %} {% set pdfPath = pdfFile ? asset(pdfDir ~ pdfFile) : null %}
{{ mainpageSolutionLang.description|default|raw }}
{% if mainpageSolutionLang.link is defined and mainpageSolutionLang.link is not empty %} {{ mainpageSolutionLang.link|default }} {% endif %} {% if pdfPath is defined and pdfPath is not empty %} {{ "pages.homepage.catalogue"|trans }} {% endif %}
{% endfor %}
AR-GE TASARIM MERKEZİ AT-UYGUNLUK DOĞRULAMASI
{# NEWS MAIN SECTION #} {% set newsSection = getPageSections({'alias': 'Haberler Kısmı'}) %} {% set mainpageNewsIntroLang = getPageSectionLangLocale({'section': newsSection, 'locale': app.request.locale}) %}
{{ mainpageNewsIntroLang.shortTitle|default }}

{{ mainpageNewsIntroLang.title|default }}

{{ "pages.homepage.all-news"|trans|upper }}
{% set defaultImage = 'assets/img/brand/news-bg.jpeg' %} {% set defaultLogo = 'assets/img/brand/akgun-brand.png' %} {% set dir = getParameters('page_mainpage_news_dir') %}
{% if news is defined %} {% for new in news %} {% set langParams = {'News': new, 'lang': app.request.locale} %} {% set imageParams = {'new': new, 'type': 'image'} %} {% set logoParams = {'new': new, 'type': 'logo'} %} {% set mainpageNewLang = getNewsLangs(langParams) %} {% set mainImage = getNewsImages(imageParams) %} {% set logoImage = getNewsImages(logoParams) %} {% set mainImageSrc = mainImage is defined and mainImage.name is defined ? dir ~ mainImage.name : defaultImage %} {% set logoImageSrc = logoImage is defined and logoImage.name is defined ? dir ~ logoImage.name : defaultLogo %} {% endfor %} {% else %} {% endif %}
{% include "components/footer.html.twig" %}
{% endblock %} {% block javascripts_bottom %} {% endblock %}