<div id="pageSmoothBackground" style="background-image: url(<?= $randomPoint->getImg('middle') ?>);"></div>

<div class="container" style="background-color: rgba(255,255,255, 0.8);margin-top: -10px;padding-bottom: 30px;">
	<div class="row">
		<div class="col-md-12">
			<h1 style="text-align: right;">Ваши избраные точки</h1>
			<div class="coords-container">
				Перейти: <a href="/">на карту</a>
				<?php if (App::getParam('user')): ?>
					/ <a href="/user/<?=$user->id?>">страница <?=$user->nick?></a>.
				<?php endif; ?>
			</div>
			<div style="text-align: justify;">
				<div class="pointsWall">
					<?php foreach ($favorites as $favorite): $point = $favorite->point;?>
					<a href="/point/<?= $point->id ?>">
						<div style="background-image: url('<?= $point->getImg('middle') ?>');" class="point">
							<span class="header">
								<img src="<?= Category::getIcoById($point->categoryId) ?>" />
								<?= $point->name ?>
							</span>
						</div>
					</a>
					<?php endforeach; ?>
				</div>
			</div>
		</div>
	</div>
	<hr/>
	<?= self::renderPartial('randomPoint.php', array('randomPoint'=>$randomPoint), true)?>
</div>
