{%- set class_name = [
"main-footer-column",
"d-flex flex-column gap-2",
props.extra_class ? props.extra_class : null,
]|join(' ')|trim -%}
{%- set attrs = [
'class="' ~ class_name ~ '"',
] -%}
{%- set attrs = attrs|join(' ')|trim -%}
{% set social_btn = {
size: "sm",
icon_only: true,
stroke_off: true
} %}
<div {{ attrs|raw }}>
{% if props.title %}
{% include "@Components/base-heading/base-heading.twig" with {props: {
title: props.title,
level: 2,
style: "h3",
extra_class: "main-footer__title mb-1 mb-xl-3"
}} %}
{% endif %}
{% if props.phone or props.email %}
<div class="main-footer__contact d-flex flex-column gap-2 mb-1 mb-xl-3">
{% include "@Components/link/link-phone.twig" with {props: props.phone|merge({
extra_class: "u-fw-700"
})} %}
{% include "@Components/link/link-email.twig" with {props: props.email|merge({
extra_class: "main-footer__email u-fw-700"
})} %}
</div>
{% endif %}
{% if props.content %}
<div class="main-footer-column__content entry-content">
{{ props.content|raw }}
</div>
{% endif %}
{% if props.nav %}
{% include "@Components/main-footer/main-footer-nav/main-footer-nav.twig" with {props: {nav: props.nav}} %}
{% endif %}
{% if props.logo %}
<div class="main-footer-column__logo mx-auto p-3">
{% include "@Components/img/img.twig" with {props: props.logo} %}
</div>
{% endif %}
{% if props.socials %}
<div class="main-footer-column__socials d-flex gap-2 flex-wrap justify-content-center mx-auto mt-1 mt-md-3">
{% if props.socials.facebook %}
{% include "@Components/button/button.twig" with {props: props.socials.facebook|merge(social_btn)|merge({
variant: "facebook",
})} %}
{% endif %}
{% if props.socials.twitter %}
{% include "@Components/button/button.twig" with {props: props.socials.twitter|merge(social_btn)|merge({
variant: "twitter",
})} %}
{% endif %}
{% if props.socials.instagram %}
{% include "@Components/button/button.twig" with {props: props.socials.instagram|merge(social_btn)|merge({
variant: "instagram",
})} %}
{% endif %}
{% if props.socials.linkedin %}
{% include "@Components/button/button.twig" with {props: props.socials.linkedin|merge(social_btn)|merge({
variant: "linkedin",
})} %}
{% endif %}
{% if props.socials.youtube %}
{% include "@Components/button/button.twig" with {props: props.socials.youtube|merge(social_btn)|merge({
variant: "youtube",
})} %}
{% endif %}
</div>
{% endif %}
</div>