{{if \IPS\Application::appIsEnabled('nexus') and settings.nexus_subs_enabled and settings.nexus_subs_show_public}}
{template="profileSubscription" app="nexus" location="front" group="subscription" params="$member"}
{{endif}}
{{if settings.reputation_enabled and settings.reputation_show_profile}}
{{if settings.reputation_leaderboard_on and settings.reputation_show_days_won_trophy and $member->getReputationDaysWonCount() and $lastDayWon = $member->getReputationLastDayWon()}}
{{$formattedDate = $lastDayWon['date']->dayAndMonth() . ( $lastDayWon['date']->format('Y') == \IPS\DateTime::ts( time() )->format('Y' ) ? '' : " " . $lastDayWon['date']->format('Y') );}}
{{endif}}
{{endif}}
{{if \IPS\Settings::i()->warn_on and !$member->inGroup( explode( ',', \IPS\Settings::i()->warn_protected ) ) and ( \IPS\Member::loggedIn()->modPermission('mod_see_warn') or ( \IPS\Settings::i()->warn_show_own and \IPS\Member::loggedIn()->member_id == $member->member_id ) )}}
{{else}}
{{if \IPS\Member::loggedIn()->modPermission('can_flag_as_spammer') and !$member->inGroup( explode( ',', \IPS\Settings::i()->warn_protected ) ) and \IPS\Member::loggedIn()->member_id != $member->member_id}}
{{if $member->members_bitoptions['bw_is_spammer']}}
{lang="spam_unflag"}
{{else}}
{lang="spam_flag"}
{{endif}}
{{endif}}
{{endif}}
{{if \count( $followers ) || \IPS\Member::loggedIn()->member_id === $member->member_id}}
{{endif}}
{{if $member->group['g_icon'] || $member->member_title || $member->rank['title'] || $member->rank['image'] || ( ( ( $member->isOnline() AND !$member->isOnlineAnonymously() ) OR ( $member->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() ) ) AND $member->location ) || ( $member->birthday AND \IPS\Settings::i()->profile_birthday_type == 'public' or ( \IPS\Settings::i()->profile_birthday_type == 'private' and \IPS\Member::loggedIn()->member_id == $member->member_id ) )}}
{{endif}}
{{foreach $sidebarFields as $group => $fields}}
{{if \count( $fields ) AND \count( array_filter( $fields, function( $fieldValue ){ return $fieldValue['value']; } ) )}}
{{endif}}
{{endforeach}}
{{if \IPS\Member::loggedIn()->modPermission('can_see_emails')}}
{{endif}}
{{if !empty( $visitors ) || \IPS\Member::loggedIn()->member_id == $member->member_id}}
{{endif}}