{% extends 'user/master.twig' %} {% from 'macros.twig' import navigation %} {% set image = '/profile.php?u=' ~ profile.user_id ~ '&m=avatar' %} {% set canonical_url = '/profile.php?u=' ~ profile.user_id %} {% set title = 'Profile of ' ~ profile.username %} {% set manage_link = '/manage/users.php?v=view&u=' ~ profile.user_id %} {% if has_background %} {% set site_background_url = '/profile.php?m=background&u=' ~ profile.user_id %} {% endif %} {% block content %}
{{ profile.username }}
{% if profile.user_title is not empty %}
{{ profile.user_title }}
{% endif %}
{{ profile.user_country|country_name }}
{% if friend_info is defined and (friend_info.profile_relation is not null or friend_info.visitor_relation is not null) %}
{% if friend_info.profile_relation and friend_info.visitor_relation %} Mutual Friends {% elseif friend_info.visitor_relation %} You Follow {% elseif friend_info.profile_relation %} Follows You {% endif %}
{% endif %}
{% if current_user.user_id|default(0) == profile.user_id %} Edit Profile {% elseif current_user is defined %} {% if friend_info.visitor_relation == constant('MSZ_USER_RELATION_FOLLOW') %} {{ friend_info.profile_relation == constant('MSZ_USER_RELATION_FOLLOW') ? 'Unfriend' : 'Unfollow' }} {% else %} {{ friend_info.profile_relation == constant('MSZ_USER_RELATION_FOLLOW') ? 'Add as Friend' : 'Follow' }} {% endif %} {% endif %}
Joined
{% if profile.last_seen is not null %}
Last seen
{% endif %} {% if profile.forum_topic_count > 0 %}
Topics
{{ profile.forum_topic_count|number_format }}
{% endif %} {% if profile.forum_post_count > 0 %}
Posts
{{ profile.forum_post_count|number_format }}
{% endif %} {% if profile.comments_count > 0 %}
Comments
{{ profile.comments_count|number_format }}
{% endif %} {% if profile.changelog_count > 0 %}
Changes
{{ profile.changelog_count|number_format }}
{% endif %}
The profile pages are still under much construction, more things will eventually populate the area where this container current exists.
{% if current_user is not defined %}
You must log in to view full profiles!
{% elseif profile_fields|default([])|length > 0 %}
Elsewhere
{% for name, data in profile_fields %}
{{ data.name }}
{% set profile_field_value = (data.format is defined ? data.format : '%s')|format(data.value) %} {% if data.link is defined %} {{ data.link|format(data.value)|html_link(profile_field_value, 'profile__accounts__link')|raw }} {% else %} {{ profile_field_value }} {% endif %}
{% endfor %}
{% endif %}
{% if profile.user_about_content|length > 0 %}
About {{ profile.username }}
{% if profile.user_about_parser == 2 %} {{ profile.user_about_content|escape|parse_text('md')|raw }} {% elseif profile.user_about_parser == 1 %} {{ profile.user_about_content|escape|parse_text('bb')|raw }} {% else %} {{ profile.user_about_content|escape }} {% endif %}
{% endif %}
{% endblock %}