{% from 'macros.twig' import avatar %} {% from '_layout/input.twig' import input_checkbox_raw %}
{% if profile_is_editing and perms.edit_avatar %}
{{ input_checkbox_raw('avatar[delete]', false, 'profile__header__avatar__check', '', false, {'id':'avatar-delete'}) }}
{% else %}
{{ avatar(profile_user.id|default(0), 120, profile_user.name|default('')) }}
{% endif %}
{% if profile_user is defined %}
{{ profile_user.name }}
{% if profile_user.hasTitle %}
{{ profile_user.title }}
{% endif %} {% set hasCountryCode = profile_user.hasCountryCode %} {% set age = profile_user.age %} {% set hasAge = age > 0 %} {% if hasCountryCode or hasAge %}
{% if hasCountryCode %}
{% endif %}
{% if hasCountryCode %}{{ profile_user.countryCode|country_name }}{% endif %}{% if hasAge %}{% if hasCountryCode %}, {% endif %}{{ age }} year{{ age != 's' ? 's' : '' }} old{% endif %}
{% endif %} {% else %}
User not found!
Check the link and try again.
{% endif %}
{% if profile_user is defined %}
{% if profile_mode is empty %} {% if profile_is_editing %} Discard Settings {% else %} {% if profile_can_edit %} Edit Profile {% endif %} {% if profile_can_send_messages %} Send Message {% endif %} {% endif %} {% else %} Return {% endif %}
{% endif %} {% if stats is defined %}
{% for stat in stats %} {% if stat.value|default(0) > 0 %} {% set is_date = stat.is_date|default(false) %} {% set is_url = stat.url is defined %} {% set active_class = stat.active|default(false) ? ' profile__header__stat--active' : '' %} {% if is_url %} {% else %} {% endif %} {% endif %} {% endfor %}
{% endif %}
{% if profile_is_banned %}
This user has been banned {% if profile_ban_info.isPermanent %}permanently{% else %}for {{ profile_ban_info.remainingString }}{% endif %} since . {% if not profile_is_guest and profile_ban_info.hasPublicReason %}

Reason: {{ profile_ban_info.publicReason }}

{% endif %}
{% endif %}