public function getNumLink($mesid, $replycnt) { if ($this->config->ordering_system == 'replyid') { $this->numLink = CKunenaLink::GetSamePageAnkerLink($mesid, '#' . $replycnt); } else { $this->numLink = CKunenaLink::GetSamePageAnkerLink($mesid, '#' . $mesid); } return $this->numLink; }
} } else { echo "<p align=\"center\">"; echo '<br /><br />' . _SHOWCAT_NO_TOPICS; echo "</p>"; } ?> <!-- bottom nav --> <table border = "0" cellspacing = "0" class = "jr-bottomnav" cellpadding = "0"> <tr> <td class = "jr-topnav-left"> <?php //go to top echo '<a name="forumbottom" />'; echo CKunenaLink::GetSamePageAnkerLink('forumtop', isset($fbIcons['toparrow']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['toparrow'] . '" border="0" alt="' . _GEN_GOTOTOP . '" title="' . _GEN_GOTOTOP . '"/>' : _GEN_GOTOTOP); ?> <?php if ($is_Moderator || $forumLocked == 0 && ($kunena_my->id > 0 || $fbConfig->pubwrite)) { //this user is allowed to post a new topic: echo CKunenaLink::GetPostNewTopicLink($catid, isset($fbIcons['new_topic']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['new_topic'] . '" alt="' . _GEN_POST_NEW_TOPIC . '" title="' . _GEN_POST_NEW_TOPIC . '" border="0" />' : _GEN_POST_NEW_TOPIC); } echo '</td><td class="jr-topnav-right">'; //pagination 2 if (count($messages[0]) > 0) { echo '<div class="jr-pagenav">' . _PAGE; if ($page - 2 > 1) { echo ' ' . CKunenaLink::GetCategoryPageLink('showcat', $catid, 1, 1, $rel = 'follow', $class = 'jr-pagenav-nb'); } for ($i = $page - 2 <= 0 ? 1 : $page - 2; $i <= $page + 2 && $i <= ceil($total / $threads_per_page); $i++) {
</tr> <!-- /Bulk Actions --> <?php endif; ?> <?php endif; ?> </table> </div> </div> </div> </form> <!-- B: List Actions Bottom --> <table class="klist-actions-bottom" > <tr> <td class="klist-actions-goto"> <a name="forumbottom"> </a> <?php echo CKunenaLink::GetSamePageAnkerLink ( 'forumtop', $this->getIcon ( 'kforumtop', JText::_('COM_KUNENA_GEN_GOTOBOTTOM') ), 'nofollow', 'kbuttongoto') ?> </td> <?php if (!empty ( $this->newTopicHtml ) || !empty ( $this->markReadHtml ) || !empty ( $this->subscribeCatHtml )) : ?> <td class="klist-actions-forum"> <div class="kmessage-buttons-row"><?php echo $this->newTopicHtml .' ' . $this->markReadHtml . ' ' . $this->subscribeCatHtml; ?></div> </td> <?php endif; ?> <td class="klist-pages-all"><?php echo $this->getPagination (7); // odd number here (# - 2) ?></td> </tr> </table> <?php $this->displayBreadcrumb () ?> <div class="kcontainer klist-bottom"> <div class="kbody"> <div class="kmoderatorslist-jump fltrt"><?php $this->displayForumJump (); ?></div>
* @package Kunena.Template.Blue_Eagle * @subpackage Topic * * @copyright (C) 2008 - 2012 Kunena Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org **/ defined('_JEXEC') or die; // Goto up / down $locations = array('top', 'bottom'); if (!isset($this->location)) { $this->location = 0; } $goto = '<a name="forum' . $locations[$this->location] . '"></a>'; $this->location ^= 1; $goto .= CKunenaLink::GetSamePageAnkerLink('forum' . $locations[$this->location], $this->getIcon('kforum' . $locations[$this->location], JText::_('COM_KUNENA_GEN_GOTO' . strtoupper($locations[$this->location]))), 'nofollow', 'kbuttongoto'); ?> <table class="klist-actions"> <tr> <td class="klist-actions-goto"> <?php echo $goto; ?> </td> <td class="klist-actions-forum"> <?php if ($this->topicButtons->get('reply') || $this->topicButtons->get('subscribe') || $this->topicButtons->get('favorite')) { ?> <div class="kmessage-buttons-row"> <?php echo $this->topicButtons->get('reply');
function displayThreadActions($location = 0) { static $locations = array('top', 'bottom'); $this->goto = '<a name="forum' . $locations[$location] . '"></a>'; $location ^= 1; $this->goto .= CKunenaLink::GetSamePageAnkerLink('forum' . $locations[$location], CKunenaTools::showIcon('kforum' . $locations[$location], JText::_('COM_KUNENA_GEN_GOTO' . $locations[$location])), 'nofollow', 'kbuttongoto'); CKunenaTools::loadTemplate('/view/thread.actions.php'); }
} ?> <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0"> <tbody> <tr class = "fb_sth"> <th colspan = "2" class = "view-th <?php echo $boardclass; ?> sectiontableheader"> <a name = "<?php echo $msg_id; ?> "></a> <?php echo CKunenaLink::GetSamePageAnkerLink($msg_id, '#' . $msg_id); ?> </th> </tr> <tr> <!-- --> <td class = "fb-msgview-right"> <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0"> <tr> <td align = "left"> <?php $msg_time_since = _KUNENA_TIME_SINCE; $msg_time_since = str_replace('%time%', time_since($fmessage->time, CKunenaTools::fbGetInternalTime()), $msg_time_since); if ($prevCheck < $fmessage->time && !in_array($fmessage->thread, $read_topics)) { $msgtitle = 'msgtitle_new';
</td> </tr> </table> <!-- F: List Actions --> <?php $this->displayFlat(); ?> <!-- B: List Actions Bottom --> <table class="klist-actions-bottom" > <tr> <td class="klist-actions-goto"> <a name="forumbottom"> </a> <?php echo CKunenaLink::GetSamePageAnkerLink('forumtop', CKunenaTools::showIcon('kforumtop', JText::_('COM_KUNENA_GEN_GOTOBOTTOM')), 'nofollow', 'kbuttongoto'); ?> </td> <td class="klist-actions-forum"> <?php if (isset($this->forum_new) || isset($this->forum_markread) || isset($this->thread_subscribecat)) { echo '<div class="kmessage-buttons-row">'; if (isset($this->forum_new)) { echo $this->forum_new; } if (isset($this->forum_markread)) { echo ' ' . $this->forum_markread; } if (isset($this->thread_subscribecat)) { echo ' ' . $this->thread_subscribecat; }