@if(Auth::check())
	<div class="post-on-users-profile racingcommunityhidemenu">
		<?php
			$communityId=getVisitingCommunityId();
		?>
		@if($profileUser->isOwner())
			{!! Theme::section('post.editor.main', ['userprofile' => $profileUser->id,'posted_in_community'=>$communityId]) !!}
		@elseif($profileUser->present()->canPost())
			{!! Theme::section('post.editor.main', ['to' => $profileUser->id, 'privacy' => 1,'userprofile' => $profileUser->id,'posted_in_community'=>$communityId]) !!}
		@endif
	</div>	
@endif
<?php Theme::widget()->add('profile.timeline-widget', ['user-profile-timeline'], ['userId' => $profileUser->id])?>
{!! Theme::widget()->get('user-profile-timeline') !!}

@if(!Auth::check())
	{!! Theme::section('home.ask-login') !!}
@endif
