foreach ($this->items as $commentObj) { if ($commentObj->parent_id == $comment_parent_id) { ?> <li class="comment-item level-<?php echo $commentObj->level; ?> " id="comment-item-<?php echo $commentObj->id; ?> "> <div itemscope="" itemtype="http://schema.org/Review"> <div class="comment-box clearfix"> <div class="comment-user"> <?php $userAvatar = $avatar->getAvatar(JFactory::getUser($commentObj->user_id), $this->params); ?> <img class="comment-avatar" itemprop="image" alt="Avatar" src="<?php echo $userAvatar; ?> "/> <h3 class="comment-username" itemprop="creator" itemscope="" itemtype="http://schema.org/Person"> <span itemprop="name"> <?php if ($commentObj->user_id > 0) { $userComment = JFactory::getUser($commentObj->user_id); echo $userComment->get('name'); } else {