defined('_JEXEC') or die('Restricted access'); ?> <div id="ezblog-latestcomment" class="ezb-mod latest-comments<?php echo $params->get('moduleclass_sfx'); ?> "> <?php if ($comments) { ?> <?php foreach ($comments as $comment) { $tmpObj = new stdClass(); $tmpObj->category_id = $comment->category_id; $tmpObj->created_by = $comment->author_id; $tmpObj->id = $comment->post_id; $itemId = modEasyBlogLatestCommentHelper::_getMenuItemId($tmpObj, $params); ?> <div class="mod-item"> <div class="mod-comment-head"> <?php if ($params->get('showavatar')) { ?> <div class="mod-avatar"> <img src="<?php echo $comment->author->getAvatar(); ?> " width="60" class="avatar" /> </div> <?php } ?>