<div class="content2">
<div class="info">
<?if(count($fotos)<1):?>
<div class="minor">Фото еще не загружено</div>
<?endif?>
<?if(count($fotos)>0):?>
<?foreach($fotos as $key=>$value):?>
<?
$isLike = False;
$users = json_decode($value['who'],true);
if($users==NULL)$users = array();
if(in_array(User::a()->user['id'], $users))$isLike = true;
?>
<a href='/Photos/?id=<?=$value['id']?>' style="display:block;border-top:1px solid #2d683c">
<img width="30%" src="/gallery/<?=$value['user']?>/<?=$value['link']?>_mini.jpeg" style="float:left;padding:5px">
<br><?=User::a()->getLink($value['user'],$value);?><br>
</a>
<div class='small minor'>
Рейтинг:<img src='/img/icons/heart.png' style='margin-right:2px;width:16px'><?=$value['likes']?></div><br>
<div style="clear:both"></div>
<?endforeach?>
<?Setting::a()->pagination($count,10,'/Photos/',$_GET['page'])?>
<?endif?>
</div>
</div>