Example #1
0
			</td>



            <td align="left" class="cofiIndexTableRow<?php 
    echo $rowColor;
    ?>
 cofiIndexTableRowTopic">

                <?php 
    $_hoverSubject = $posting->subject;
    $_hoverSubject = str_replace('\'', '"', $_hoverSubject);
    $_categorySlug = $CofiHelper->getCategorySlugById($posting->cat_id);
    $_categoryName = $CofiHelper->getCategoryNameById($posting->cat_id);
    $_threadSlug = $CofiHelper->getThreadSlugById($posting->thread);
    $_postingJumpPoint = $CofiHelper->getPostingJumpPointByThreadIdAndPostingId($posting->thread, $posting->id);
    $postingLinkTMP = "index.php?option=com_discussions&view=thread&catid=" . $_categorySlug . "&thread=" . $_threadSlug;
    $postingLinkTMP .= $_postingJumpPoint;
    $postingLink = JRoute::_($postingLinkTMP);
    echo "<a href='{$postingLink}' title='" . $_hoverSubject . "'>" . $posting->subject . "</a>";
    echo "<div class='cofiIndexTableRowTopicSubtitle'>";
    echo JText::_('COFI_POSTED') . " " . $posting->date_created . " " . JText::_('COFI_BY') . " ";
    echo "<b>";
    echo $entryUsername;
    echo "</b>";
    echo " " . JText::_('COFI_IN') . " ";
    $forum_link = JRoute::_('index.php?option=com_discussions&view=category&catid=' . $CofiHelper->getCategorySlugById($posting->cat_id));
    echo "<a href='" . $forum_link . "' title=\"" . $_categoryName . "\" >";
    echo $_categoryName;
    echo "</a>";