{% extends "Profile/show/layout.html.twig" %} {% block schemaBlock %} {% if user.publicProfile %} {% endif %} {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block page %}

{{ 'profile.profile3'|trans({}, 'FOSUserBundle') }} {{ user.firstName ~ ' ' ~ user.lastName }}


Profile Picture {% if app.user is not null and app.user.id == user.id %} {% endif %}

{{ user.firstname ~ " " ~ user.lastname }} {% if app.user is not null and app.user.id == user.id %} {% endif %}

{% if user.bio is not null or (app.user is not null and app.user.id == user.id) %}
{% if user.bio is not null %}

{{ user.bio }}

{% endif %} {% if app.user is not null and app.user.id == user.id %} {% endif %}
{% endif %}
{# Follow Button & Social Stats #}
{% if app.user is not null and app.user.id != user.id %} {% endif %}
{# Language Preference - Only visible to profile owner #} {% if app.user is not null and app.user.id == user.id %}

{{ 'profile.inline_edit.language_preference'|trans({}, 'FOSUserBundle') }}

{{ 'profile.inline_edit.language_preference_desc'|trans({}, 'FOSUserBundle') }}

{% endif %} {# Newsletter Recommendations - Only visible to profile owner #} {% if app.user is not null and app.user.id == user.id %}

{{ 'profile.inline_edit.newsletter_settings'|trans({}, 'FOSUserBundle') }}

{{ 'profile.inline_edit.newsletter_desc'|trans({}, 'FOSUserBundle') }}

{% if user.recommendationNewsletterEnabled %} {{ 'profile.inline_edit.newsletter_enabled'|trans({}, 'FOSUserBundle') }} {% else %} {{ 'profile.inline_edit.newsletter_disabled'|trans({}, 'FOSUserBundle') }} {% endif %}
{% endif %} {# Privacy Settings - Only visible to profile owner #} {% if app.user is not null and app.user.id == user.id %}

{{ 'profile.inline_edit.privacy_settings'|trans({}, 'FOSUserBundle') }}

{% if user.publicProfile %} {{ 'profile.inline_edit.profile_public'|trans({}, 'FOSUserBundle') }} {% else %} {{ 'profile.inline_edit.profile_private'|trans({}, 'FOSUserBundle') }} {% endif %}
{% endif %}
{% set isOwner = app.user is not null and app.user.id == user.id %} {% set hasSocialLinks = user.facebookUrl is not null or user.linkedinUrl is not null %}
{% if isOwner or hasSocialLinks %}

{{ 'profile.social_account'|trans({}, 'FOSUserBundle') }} {% if isOwner %} {% endif %}

{% if isOwner %} {% endif %} {% if user.facebookUrl is not null %} {% endif %} {% if user.linkedinUrl is not null %} {% endif %}
{% endif %}

{{ 'profile.interests'|trans({}, 'FOSUserBundle') }} {% if app.user is not null and app.user.id == user.id %} {% endif %}

{% if user.interests|length > 0 %} {% for interest in user.interests %} {{ interest}} {% endfor %} {% else %}

{{ 'profile.notFound'|trans({}, 'FOSUserBundle') }}

{% endif %}
{# Activity-based interests from research views - only visible to profile owner #} {% if app.user and app.user.id == user.id and user.tagsInterestsUser|length > 0 %}

{{ 'profile.activityInterests'|trans({}, 'FOSUserBundle') }}

{% for tagInterest in user.tagsInterestsUser %} {{ tagInterest.tag.context }} {% endfor %}
{% endif %}
{% if matchedResearches is defined and matchedResearches is not empty %}

{{ 'profile.my_published_research'|trans({}, 'FOSUserBundle') }} {{ user.firstname ~ " " ~ user.lastname }}

{{ include('@syndexAcademic/Default/research_brief.html.twig') }}
{{'research.all'|trans({},'Academia') }}
{% endif %} {# Edit Modals - Only render for profile owner #} {% if app.user is not null and app.user.id == user.id %} {# Profile Image Edit Modal #} {# Name Edit Modal #} {# Bio Edit Modal #} {# Academic Interests Edit Modal #} {# Social Links Edit Modal #} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {# Follow toggle for profile page #} {% if app.user is not null and app.user.id == user.id %} {% endif %} {% endblock %}