<div class="col-md-9">
	<div class="block">
		<div class="profile_top_line">
			<h3> {login} </h3>
			<span> {last_activity} </span>
		</div><br>

		<div class="row mt--10">
			<div class="col-md-4 mb-10">
				<img id="mini_profile_avatar" src="{avatar}" alt="{login}" class="img-thumbnail w100">
				<ul class="navigation2">
					{menu}
				</ul>
				<div id="result_profile"></div>
			</div>

			<div class="col-md-8">
				<table class="table user_profile_info mb-0">
					<tbody>
						{if('{dell}' != '1')}
						<tr>
							<td colspan="2" class="razdel">Общая информация</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_id.png">ID:</td>
							<td class="w70">{profile_id}</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_group.png">Группа:</td>
							<td class="w70"><i style="color: {group_color}">{group}</i></td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_reg.png">Дата регистрации:</td>
							<td class="w70">{regdate}</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_nick.png">Ник на сервере:</td>
							<td class="w70">{nick}</td>
						</tr>
						<tr>
							<td colspan="2" class="razdel">Личные данные</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_name.png">Имя:</td>
							<td class="w70">{name}</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_birth.png">Дата рождения:</td>
							<td class="w70">{birth}</td>
						</tr>
						{if(('{skype}' != '' && '{skype}' != '---') || '{telegram}' != '' || '{vk}' != '---' || '{steam_api}' != '0' || '{fb}' != '0')}
							<tr>
								<td colspan="2" class="razdel">Контактные данные</td>
							</tr>
							{if('{skype}' != '' && '{skype}' != '---')}
							<tr>
								<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_skype.png">Логин Skype:</td>
								<td class="w70"><a title="Добавить в скайп" href="skype:{skype}?add">{skype}</a></td>
							</tr>
							{/if}
							{if('{telegram}' != '')}
							<tr>
								<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_telegram.png">Телеграм:</td>
								<td class="w70"><a title="Написать в телеграм" target="_blank" href="https://telegram.me/{telegram}">@{telegram}</a></td>
							</tr>
							{/if}
							{if('{vk}' != '---')}
							<tr>
								<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_vk.png">Вконтакте:</td>
								<td class="w70">
									<a title="Перейти в профиль Вконтакте" target="_blank" href="https://vk.com/{vk}" id="vk_user">
										<img src="../files/avatars/no_avatar.jpg" alt="">
										<span>Загрузка...</span>
									</a>
									<script>get_vk_profile_info('{vk_api}', '#vk_user img', '#vk_user span', '{vk}');</script>
								</td>
							</tr>
							{/if}
							{if('{steam_api}' != '0')}
							<tr>
								<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_steam.png">Steam:</td>
								<td class="w70">
									<a title="Перейти в профиль Steam" target="_blank" href="https://steamcommunity.com/profiles/{steam_api}/" id="steam_user">
										<img src="../files/avatars/no_avatar.jpg" alt="">
										<span>Загрузка...</span>
									</a>
									<script>get_user_steam_info('{steam_api}');</script>
								</td>
							</tr>
							{/if}
							{if('{fb}' != '0')}
							<tr>
								<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_facebook.png">Facebook:</td>
								<td class="w70">
									<a title="Профиль в Facebook" target="_blank" id="fb_user">
										<img src="../files/avatars/no_avatar.jpg" alt="">
										<span>Загрузка...</span>
									</a>
									<script> get_fb_profile_info('{fb_api}', '{fb}', '#fb_user', '#fb_user img', '#fb_user span'); </script>
								</td>
							</tr>
							{/if}
						{/if}
						<tr>
							<td colspan="2" class="razdel">Активность на форуме</td>
						</tr> 
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_mess.png">Сообщений:</td>
							<td class="w70">{answers}</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_thanks.png">Спасибок:</td>
							<td class="w70">{thanks}</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_topic.png">Последняя тема:</td>
							<td class="w70">{if('{topic_id}' == '0')}Пользователь не просматривал форум{else}<a title="Перейти в тему" href="forum/topic?id={topic_id}">{topic_name}</a>{/if}</td>
						</tr>
						<tr>
							<td class="w30"><img class="icon" src="{site_host}templates/{template}/img/icon_reit.png">Рейтинг:</td>
							<td class="w70">{reit}</td>
						</tr>
						{else}
							<h1>Удален</h1>
						{/if}
					</tbody>
				</table>
			</div>
		</div>
	</div>

	<div class="block">
		<div class="block_head">
			Привилегии
		</div> 
		<div class="table-responsive mb-0">
			<table class="table table-condensed table-bordered admins">
				<thead>
					<tr>
						<td>#</td>
						<td>Сервер</td>
						<td>Идентификатор</td>
						<td>Тип</td>
						<td>Услуги</td>
					</tr>
				</thead>
				<tbody id="admins">
					{func Widgets:user_admins('{profile_id}')}
				</tbody>
			</table>
		</div>
	</div>

	{if('{dell}' != '1')}
	<div class="block">
		<div class="block_head">
			Стена
		</div> 
		{if('{checker}' != '1')}
		<div id="add_new_comments">
			<textarea id="text" class="form-control maxMinW100" maxlenght="1000"></textarea>

			<div class="smile_input_forum">
				<input id="send_btn" class="btn2 mt-10" type="button" onclick="send_user_comment({profile_id});" value="Отправить"></input>
				<div id="smile_btn" class="smile_btn visible-lg-inline-block" data-container="body" data-toggle="popover" data-placement="top" data-content="empty"></div>
			</div>
		</div>
		<script>
			$(document).ready(function() {
				init_tinymce("text", "lite", "{file_manager_theme}", "{file_manager}", "{{md5($conf->code)}}");
				get_smiles('#smile_btn');
			});

			$('#smile_btn').popover({ html: true, animation: true, trigger: "click" });
			$('#smile_btn').on('show.bs.popover', function () {
				$(document).mouseup(function (e) {
					var container = $(".popover-content");
					if (container.has(e.target).length === 0){
						$('#smile_btn').popover('hide'); selected = 'gcms_smiles';
					}
				});
			});

			function set_smile(elem){
				var smile =  "<img src=\""+$(elem).attr("src")+"\" class=\"g_smile\" height=\"20px\" width=\"20px\">";
				tinymce.activeEditor.insertContent(smile);
				$('#smile_btn').popover('hide'); selected = 'gcms_smiles';
			}
			function set_sticker(elem){
				var text = "sticker"+$(elem).attr("src");
				text = encodeURIComponent(text);
				send_user_comment({profile_id}, text);
				$('#smile_btn').popover('hide'); selected = 'gcms_smiles';
			}
		</script>
		{/if}
		<div id="comments">
			<br><center><img src="{site_host}templates/{template}/img/loader.gif"></center><br>
		</div>
		<script>load_users_comments({profile_id},'first');</script>
	</div>
	{/if}
</div>
<div class="clearfix visible-xs"></div>

<div class="col-md-3">
	<div class="block">
		<div class="block_head">
			<a class="c-555" href="friends?id={profile_id}">
				Друзья
			</a>
		</div> 
		<div id="companions">
			{friends}
		</div>
	</div>

	<div class="block">
		<div class="block_head">
			Сообщения на форуме
		</div>
		<div id="last_activity">
			{func Widgets:user_forum_activity('{profile_id}', '3')}
		</div>
	</div>

	<div class="block">
		<div class="block_head">
			Последние заявки на разбан
		</div>
		<div id="mybans">
			{func Widgets:user_bans('{profile_id}', '3')}
		</div>
	</div>
</div>