{% extends 'website/main.template.html.twig' %}
{% from 'utils.html.twig' import ico, imgUpload %}
{% block body %}
{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('teacher', 'teachers') }%}
{% block migalhas %}
<a href="{{ path('home') }}">{{ getLanguage('home', 'teachers') }}</a> / <span>{{ getLanguage('teachers', 'teachers') }}</span>
{% endblock %}
{% endembed %}
<div class="institucional">
<div class="container">
<section class="box-sobre">
<div class="info">
<h2>{{ userTeacher.name }}</h2>
<div class="desc">
{% if userTeacher.biography %}
{{ userTeacher.biography|raw }}
{% else %}
{{ getLanguage('teacher_biogaphy', 'teachers') }}
{% endif %}
</div>
{# RESUME #}
{% if userTeacher.resume %}
<div class="resume" data-status="off">
{{ userTeacher.resume|raw }}
</div>
{% endif %}
</div>
<div class="teacher-contact">
<div class="avatar">
{% if userTeacher.photo %}
{{ imgUpload(
userTeacher.photo,
enum('AbstractEnum::PATH_PROFILES'),
'user-profile-teacher',
enum('AbstractEnum::YES'))
}}
{% endif %}
</div>
{% if userTeacher.linkedin or userTeacher.twitter or userTeacher.facebook or userTeacher.instagram or userTeacher.youtube or userTeacher.tiktok %}
<nav class="social">
{% if userTeacher.linkedin %}
<a href="{{ userTeacher.linkedin }}" title="LinkedIn" target="_blank">
<i class="fab fa-linkedin-in"></i>
</a>
{% endif %}
{% if userTeacher.website %}
<a href="{{ userTeacher.website }}" title="Website" target="_blank">
{{ ico('globe') }}
</a>
{% endif %}
{% if userTeacher.twitter %}
<a href="{{ userTeacher.twitter }}" title="Twitter" target="_blank">
<i class="fab fa-twitter"></i>
</a>
{% endif %}
{% if userTeacher.facebook %}
<a href="{{ userTeacher.facebook }}" title="Facebook" target="_blank">
<i class="fab fa-facebook-f"></i>
</a>
{% endif %}
{% if userTeacher.instagram %}
<a href="{{ userTeacher.instagram }}" title="Instagram" target="_blank">
<i class="fab fa-instagram"></i>
</a>
{% endif %}
{% if userTeacher.youtube %}
<a href="{{ userTeacher.youtube }}" title="YouTube" target="_blank">
<i class="fab fa-youtube"></i>
</a>
{% endif %}
{% if userTeacher.tiktok %}
<a href="{{ userTeacher.tiktok }}" title="Tiktok" target="_blank">
<i class="fab fa-tiktok"></i>
</a>
{% endif %}
</nav>
{% endif %}
</div>
</section>
</div>
</div>
{% endblock %}