<div id="pageSmoothBackground" style="background-image: url(<?= current($points)->getImg('middle') ?>);"></div>
<div class="container feed">
	<div class="row elements">
		<div class="col-md-12">
			<h4 class="top5authors">Самые активные авторы</h4>
			<?php foreach ($authors as $author):?>
			<div class="top5authors text-center">
				<a href="/user/<?= $author->id;?>" title="Создано точек: <?= $author->pointsCount;?>">
					<img src="/img/avatars/<?= $author->id;?>.jpg"><br/>
					<nobr><b><?= $author->nick;?></b></nobr>
				</a><br/>
			</div>
			<?php endforeach;?>
		</div>
	</div>
	<hr class="onlySmallScreen"/>
	<div class="row elements">
		<div class="col-md-2">
			<h4 class="onlySmallScreen text-center">Новости</h4>
			<?php foreach ($news as $item) : ?>
			<div class="element news">
				<h4><?= $item->title ?></h4>
				<?= $item->text ?>
			</div>
			<?php endforeach;?>
		</div>
		<hr class="onlySmallScreen"/>
		<div class="col-md-5">
			<h4 class="onlySmallScreen text-center">Точки</h4>
			<?php foreach ($points as $item) : ?>
			<div class="element points">
				<h4><?= $item->name ?></h4>
				<a href="/point/<?= $item->id ?>" class="imgContainer">
					<img src="<?= $item->getImg() ?>" class="elementImg"/>
				</a>
				<?= mb_substr($item->description, 0, 400, 'UTF-8') ?>…
				<a href="/point/<?= $item->id ?>"><nobr>читать далее »</nobr></a>
			</div>
			<?php endforeach;?>
			<br/>
			<a href="/page/points/"><h4 style="text-align: center;">У нас есть больше новых точек!</h4></a>
		</div>
		<hr class="onlySmallScreen"/>
		<div class="col-md-5">
			<h4 class="onlySmallScreen text-center">Статьи</h4>
			<?php foreach ($articles as $item) : ?>
			<div class="element articles">
				<h4><?= $item->title ?></h4>
				<?php if($item->hasImg()): ?>
					<a href="/article/<?= $item->id ?>" class="imgContainer">
						<img src="<?= $item->getImg() ?>" class="elementImg"/>
					</a>
				<?php endif; ?>
				<?= mb_substr(Markdown::getClear($item->text), 0, 400, 'UTF-8') ?>…
				<a href="/article/<?= $item->id ?>"><nobr>читать далее »</nobr></a>
				<a href="/user/<?= $item->author ?>" style="float: right;"><?= $item->authorUser->nick ?></a>
			</div>
			<?php endforeach;?>
			<br/>
			<a href="/page/articles/"><h4 style="text-align: center;">Тут целая лента статей!</h4></a>
		</div>
	</div>
	<hr/>
	<div class="row">
		<div class="col-md-12" style="text-align: center;">
			<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
			<!-- Article - DOWN -->
			<ins class="adsbygoogle"
				 style="display:inline-block;width:728px;height:90px"
				 data-ad-client="ca-pub-0069680015252793"
				 data-ad-slot="9821496742"></ins>
			<script>
			(adsbygoogle = window.adsbygoogle || []).push({});
			</script>
		</div>
	</div>
	<br/>
	<div class="row darkFooter">
		<div class="col-md-4">
			<h4 style="text-align: center;">Благодарности</h4>
			Огромные благодарности: жене, родителям,
			<noindex>
			<a href="http://osm.org" target="_blank" rel="nofollow">OSM</a>,
			<a href="https://mapicons.mapsmarker.com/" target="_blank" rel="nofollow"><nobr>MapIcons</nobr></a>,
			<a href="https://www.mapbox.com/" target="_blank" rel="nofollow"><nobr>MapBox</nobr></a>
			и
			<a href="http://leafletjs.com" target="_blank" rel="nofollow">LeafletJS</a>.
			</noindex>
		</div>
		<div class="col-md-4">
			<h4 style="text-align: center;">Контакты</h4>
			EMail: info&#64;wikipoints.ru<br/>
			VK: <a href="https://vk.com/wikipoints" target="_blank">WikiPoints</a><br/>
			Instagram: <a href="https://instagram.com/wikipoints/" target="_blank">WikiPoints</a><br/>
		</div>
		<div class="col-md-4">
			<h4 style="text-align: center;">Прочее</h4>
			2014-<?= date('Y') ?> &copy; wikipoints.ru - при любом использовании материалов ссылка на источник обязательна.
		</div>
	</div>
</div>
