<div class="likes">Лайков: <?php print $photo->likes['count']; ?> </div> <div class="comments">Комментариев: <?php print $photo->comments['count']; ?> </div> <div class="desc">Описание: <?php print strLen($photo->text) > 0 ? $photo->text : '(описания нет)'; ?> </div> <hr> <div class="makeCover"> <?php if (Photos::isCover($_GET['id'], $photo->id)) { ?> <input class="form-control text-center" type="text" placeholder="Обложка" disabled> <?php } else { ?> <form action="" method="post"> <input type="hidden" name="mainPhoto" value="<?php print $photo->id; ?> "> <button class="btn btn-default" type="submit" name="mainSave"> <span class="glyphicon glyphicon-star-empty"></span> Сделать обложкой </button> </form>