<img src="<?php echo $file[$file['type']][$photo]; ?> " alt=""> <?} }?> <div class="date"><?php echo $post->getDate(); ?> </div> </div> <div class="clear"></div> </article> <? $comments = User::getComments($post->owner_id, $post->id, 10) ?> <? if(count($comments) > 0) {?> <?foreach ($comments as $key2 => $comment) {?> <?php $c_author = User::getUser($comment->from_id); ?> <article class="comment"> <div class="post-photo"> <img src="<?php echo $c_author->photo_50; ?> " alt=""> </div>