{if($conf->vk_admin == 1 or $conf->vk_group == 1)}
	<div class="vk-widgets">
		{if($conf->vk_admin == 1)}
			<div class="online_users_info">
				<span class="glyphicon glyphicon-signal"></span> {if(count($vk_admins) > 1)}Главные администраторы{else}Главный администратор{/if}
			</div>
			{for($i=0; $i < count($vk_admins); $i++)}
				{if($conf->widgets_type == 1)}
				<div class="block">
					<a title="Перейти в профиль Вконтакте" target="_blank" href="https://vk.com/id{{$vk_admins[$i]}}" id="admin_widget{{$i}}">
						<img src="../files/avatars/no_avatar.jpg" alt="">
						<span>Загрузка...</span>
					</a>
				</div>
				<script>get_vk_profile_info('{{$vk_admins[$i]}}', '#admin_widget{{$i}} img', '#admin_widget{{$i}} span', '{{$vk_admins[$i]}}');</script>
				{else}
				<div class="block">
					<a title="Профиль в Facebook" target="_blank" id="admin_widget{{$i}}">
						<img src="../files/avatars/no_avatar.jpg" alt="">
						<span>Загрузка...</span>
					</a>
				</div>
				<script> get_fb_profile_info('{{$vk_admins[$i]}}', '{{$vk_admins[$i]}}', '#admin_widget{{$i}}', '#admin_widget{{$i}} img', '#admin_widget{{$i}} span'); </script>
				{/if}
			{/for}
		{/if}

		{if($conf->vk_group == 1)}
			<div class="online_users_info">
				<span class="glyphicon glyphicon-link"></span> {if(count($vk_groups) > 1)}Наши сообщества{else}Наше сообщество{/if}
			</div>
			<div class="mb-5">
			{if($conf->widgets_type == 1)}
				<script type="text/javascript" src="//vk.com/js/api/openapi.js?120"></script>
				{for($i=0; $i < count($vk_groups); $i++)}
					<div class="block">
						<div id="vk_groups{{$i}}"></div>
						<script> VK.Widgets.Group("vk_groups{{$i}}", {mode: 2, width: "auto", height: "400", color3: "#45698B"}, {{$vk_groups[$i]}}); </script>
					</div>
				{/for}
			{else}
				<script>(function(d, s, id) {
					var js, fjs = d.getElementsByTagName(s)[0];
					if (d.getElementById(id)) return;
					js = d.createElement(s); js.id = id;
					js.src = 'https://connect.facebook.net/ru_RU/sdk.js#xfbml=1&version=v3.0&appId=2144044429185543&autoLogAppEvents=1';
					fjs.parentNode.insertBefore(js, fjs);
					}(document, 'script', 'facebook-jssdk'));
				</script>
				{for($i=0; $i < count($vk_groups); $i++)}
					<div class="block">
						<div class="fb-page" data-href="https://www.facebook.com/{{$vk_groups[$i]}}/" data-tabs="timeline" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false">
							<blockquote cite="https://www.facebook.com/{{$vk_groups[$i]}}/" class="fb-xfbml-parse-ignore">
								<a href="https://www.facebook.com/{{$vk_groups[$i]}}/">{{$vk_groups[$i]}}</a>
							</blockquote>
						</div>
					</div>
				{/for}
			{/if}
			</div>
		{/if}
	</div>
{/if}