?> cofiIndexTableRowTopic"> <?php $_hoverSubject = $thread->subject; $_hoverSubject = str_replace('\'', '"', $_hoverSubject); $threadLink = JRoute::_('index.php?option=com_discussions&view=thread&catid=' . $this->categorySlug . '&thread=' . $thread->slug); echo "<a href='{$threadLink}' title='" . $_hoverSubject . "'>" . $thread->subject . "</a>"; if ($thread->locked == 1) { // show lock symbol echo "<img src='" . $_root . "components/com_discussions/assets/threads/lock.png' style='margin-left: 5px; border:0px;' />"; } echo "<div class='cofiIndexTableRowTopicSubtitle'>"; echo JText::_('COFI_POSTED') . " " . $thread->date . " " . JText::_('COFI_BY') . " "; echo "<b>"; echo $CofiHelper->getUsernameById($thread->user_id); echo "</b>"; // echo " Views: ".$thread->hits; echo "</div>"; ?> </td> <td width="200" align="center" class="cofiIndexTableRow<?php echo $rowColor; ?> cofiIndexTableRowLastPost"> <table width="100%" cellspacing="0" cellpadding="0" border="0" class="noborder"> <tr>
echo "<h2 class='contentheading'>" . JText::_('COFI_MODERATION_POSTS_WAITING') . "</h2>"; echo "<br />"; echo "<table width='100%' border='0' cellspacing='0' cellpadding='5' class='noborder'>"; $rowColor = 2; foreach ($this->postingsWFM as $posting) { ?> <tr> <td width="100" align="center" valign="top" class="cofiThreadTableRow<?php echo $rowColor; ?> cofiModerationBorder1" > <?php // get $post->username; $opUserUsername = $CofiHelper->getUsernameById($posting->user_id); // show avatar echo "<div class='cofiAvatarBox'>"; $CofiUser = new CofiUser($posting->user_id); if ($CofiUser->getAvatar() == "") { // display default avatar echo "<img src='" . $_root . "components/com_discussions/assets/users/user.png' class='cofiAvatar' alt='{$opUserUsername}' />"; } else { // display uploaded avatar echo "<img src='" . $_root . "images/discussions/users/" . $posting->user_id . "/large/" . $CofiUser->getAvatar() . "' class='cofiAvatar' alt='{$opUserUsername}' />"; } echo "</div>"; // display username echo "<br />"; echo "<b>"; echo $opUserUsername;