本文整理汇总了PHP中KunenaDate类的典型用法代码示例。如果您正苦于以下问题:PHP KunenaDate类的具体用法?PHP KunenaDate怎么用?PHP KunenaDate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KunenaDate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayAll
public function displayAll()
{
if ($this->me->isAdmin()) {
if ($this->config->board_offline) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
}
if ($this->config->debug) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
}
}
if ($this->me->isBanned()) {
$banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
if (!$banned->isLifetime()) {
$this->app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
} else {
$this->app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS'), 'notice');
}
}
$this->state = $this->get('State');
$this->ktemplate->initialize();
if (JFactory::getApplication()->isAdmin()) {
$this->displayLayout();
} else {
$this->document->addHeadLink(KunenaRoute::_(), 'canonical', 'rel', '');
include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
if ($this->config->get('credits', 1)) {
$this->poweredBy();
}
}
}
示例2: before
/**
* Prepare login display.
*
* @return boolean
*/
protected function before()
{
parent::before();
$login = KunenaLogin::getInstance();
if (!$login->enabled()) {
return false;
}
$this->me = KunenaUserHelper::getMyself();
$this->name = $this->me->exists() ? 'Widget/Login/Logout' : 'Widget/Login/Login';
$this->my = JFactory::getUser();
if ($this->my->guest) {
$this->registrationUrl = $login->getRegistrationUrl();
$this->resetPasswordUrl = $login->getResetUrl();
$this->remindUsernameUrl = $login->getRemindUrl();
$this->rememberMe = $login->getRememberMe();
} else {
$this->lastvisitDate = KunenaDate::getInstance($this->my->lastvisitDate);
$private = KunenaFactory::getPrivateMessaging();
if ($private) {
$count = $private->getUnreadCount($this->me->userid);
$this->inboxCount = $count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX');
$this->pm_link = $private->getInboxURL();
}
// Display announcements.
if ($this->me->isModerator()) {
$this->announcementsUrl = KunenaForumAnnouncementHelper::getUrl('list');
}
}
return true;
}
示例3: displayAll
public function displayAll()
{
if ($this->inLayout) {
throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__));
}
if ($this->me->isAdmin()) {
if ($this->config->board_offline) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
}
if ($this->config->debug) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
}
}
if ($this->me->isBanned()) {
$banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
if (!$banned->isLifetime()) {
$this->app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
} else {
$this->app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS'), 'notice');
}
}
$this->state = $this->get('State');
$this->ktemplate->initialize();
$menu = $this->app->getMenu();
$home = $menu->getItems('type', 'alias');
$juricurrent = JURI::current();
if (JFactory::getApplication()->isAdmin()) {
$this->displayLayout();
} elseif ($home) {
$this->document->addHeadLink($juricurrent, 'canonical', 'rel', '');
include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
} else {
$this->document->addHeadLink(KunenaRoute::_(), 'canonical', 'rel', '');
include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
if ($this->config->get('credits', 1)) {
$this->poweredBy();
}
}
}
示例4: _display
protected function _display()
{
// Load language files.
KunenaFactory::loadLanguage();
KunenaFactory::loadLanguage('com_kunena.templates');
$this->params->def('greeting', 1);
$this->document = JFactory::getDocument();
$this->me = KunenaFactory::getUser();
$token = JSession::getFormToken();
$login = KunenaLogin::getInstance();
if (!$this->me->exists()) {
$this->type = 'login';
$this->login = null;
if ($login) {
$this->lostPasswordUrl = $login->getResetURL();
$this->lostUsernameUrl = $login->getRemindURL();
$this->registerUrl = $login->getRegistrationURL();
$this->remember = JPluginHelper::isEnabled('system', 'remember');
}
} else {
$this->type = 'logout';
$this->logout = null;
$this->lastvisitDate = KunenaDate::getInstance($this->me->lastvisitDate);
if ($login) {
$this->logout = $login->getLogoutURL();
$this->recentPosts = JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=topics', JText::_('MOD_KUNENALOGIN_RECENT'));
$this->myPosts = JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=topics&layout=user&mode=default', JText::_('MOD_KUNENALOGIN_MYPOSTS'));
}
// Private messages
$private = KunenaFactory::getPrivateMessaging();
$this->privateMessages = '';
if ($this->params->get('showmessage') && $private) {
$count = $private->getUnreadCount($this->me->userid);
$this->privateMessages = $private->getInboxLink($count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX'));
}
}
$this->return = $this->getReturnURL();
require JModuleHelper::getLayoutPath('mod_kunenalogin');
}
示例5: echo
?>
<tr class="krow<?php echo ($i^=1)+1;?>">
<td class="kcol-first kid">
<?php echo $j; ?>
</td>
<td class="kcol-mid kbanned-user">
<a href="#"><?php echo CKunenaLink::GetProfileLink ( intval($userban->userid) ); ?> </a>
</td>
<td class="kcol-mid kbanned-from">
<span><?php echo $userban->blocked ? JText::_('COM_KUNENA_BAN_BANLEVEL_JOOMLA') : JText::_('COM_KUNENA_BAN_BANLEVEL_KUNENA'); ?></span>
</td>
<td class="kcol-mid kbanned-start">
<span><?php echo KunenaDate::getInstance($userban->created_time)->toKunena('datetime'); ?></span>
</td>
<td class="kcol-mid kbanned-expire">
<span><?php echo $userban->isLifetime() ? JText::_('COM_KUNENA_BAN_LIFETIME') : KunenaDate::getInstance($userban->expiration)->toKunena('datetime'); ?></span>
</td>
</tr>
<?php endforeach; ?>
<?php else : ?>
<tr class="krow2">
<td colspan="5" class="kcol-first">
<?php echo JText::_('COM_KUNENA_BAN_NO_BANNED_USERS'); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
示例6: displayCommon
/**
* @param null $tpl
*
* @throws Exception
*/
protected function displayCommon($tpl = null)
{
$userid = JFactory::getApplication()->input->getInt('userid');
$this->_db = JFactory::getDBO();
$this->do = JFactory::getApplication()->input->getWord('layout');
if (!$userid) {
$this->user = JFactory::getUser();
} else {
$this->user = JFactory::getUser($userid);
}
if ($this->user->id == 0 || $this->me->userid == 0 && !$this->config->pubprofile) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_PROFILEPAGE_NOT_ALLOWED_FOR_GUESTS'), 'notice');
return;
}
$integration = KunenaFactory::getProfile();
$activityIntegration = KunenaFactory::getActivityIntegration();
$template = KunenaFactory::getTemplate();
$this->params = $template->params;
if (get_class($integration) == 'KunenaProfileNone') {
$this->app->enqueueMessage(JText::_('COM_KUNENA_PROFILE_DISABLED'), 'notice');
return;
}
$this->allow = true;
$this->profile = KunenaFactory::getUser($this->user->id);
if (!$this->profile->exists()) {
$this->profile->save();
}
if ($this->profile->userid == $this->me->userid) {
if ($this->do != 'edit') {
$this->editlink = $this->profile->getLink(JText::_('COM_KUNENA_EDIT') . ' »', JText::_('COM_KUNENA_EDIT') . ' »', 'nofollow', 'edit', '');
} else {
$this->editlink = $this->profile->getLink(JText::_('COM_KUNENA_BACK') . ' »', JText::_('COM_KUNENA_BACK') . ' »', 'nofollow', '', '');
}
}
$this->name = $this->user->username;
if ($this->config->showuserstats) {
$this->rank_image = $this->profile->getRank(0, 'image');
$this->rank_title = $this->profile->getRank(0, 'title');
$this->posts = $this->profile->posts;
$this->thankyou = $this->profile->thankyou;
$this->userpoints = $activityIntegration->getUserPoints($this->profile->userid);
$this->usermedals = $activityIntegration->getUserMedals($this->profile->userid);
}
if ($this->config->userlist_joindate || $this->me->isModerator()) {
$this->registerdate = $this->user->registerDate;
}
if ($this->config->userlist_lastvisitdate || $this->me->isModerator()) {
$this->lastvisitdate = $this->user->lastvisitDate;
}
if (!isset($this->lastvisitdate) || $this->lastvisitdate == "0000-00-00 00:00:00") {
$this->lastvisitdate = null;
}
$this->avatarlink = $this->profile->getAvatarImage('kavatar', 'profile');
$this->personalText = $this->profile->personalText;
$this->signature = $this->profile->signature;
$this->signatureHtml = KunenaHtmlParser::parseBBCode($this->signature, null, $this->config->maxsig);
$this->localtime = KunenaDate::getInstance('now', $this->user->getParam('timezone', $this->app->get('offset', null)));
try {
$offset = new DateTimeZone($this->user->getParam('timezone', $this->app->get('offset', null)));
} catch (Exception $e) {
$offset = null;
}
$this->localtime->setTimezone($offset);
$this->moderator = KunenaAccess::getInstance()->getModeratorStatus($this->profile);
$this->admin = $this->profile->isAdmin();
switch ($this->profile->gender) {
case 1:
$this->genderclass = 'male';
$this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_MALE');
break;
case 2:
$this->genderclass = 'female';
$this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE');
break;
default:
$this->genderclass = 'unknown';
$this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN');
}
if ($this->profile->location) {
$this->locationlink = '<a href="http://maps.google.com?q=' . $this->escape($this->profile->location) . '" target="_blank">' . $this->escape($this->profile->location) . '</a>';
} else {
$this->locationlink = JText::_('COM_KUNENA_LOCATION_UNKNOWN');
}
$this->online = $this->profile->isOnline();
$this->showUnusedSocial = true;
if (!preg_match("~^(?:f|ht)tps?://~i", $this->profile->websiteurl)) {
$this->websiteurl = 'http://' . $this->profile->websiteurl;
} else {
$this->websiteurl = $this->profile->websiteurl;
}
$avatar = KunenaFactory::getAvatarIntegration();
$this->editavatar = $avatar instanceof KunenaAvatarKunena ? true : false;
$this->banInfo = KunenaUserBan::getInstanceByUserid($userid, true);
$this->canBan = $this->banInfo->canBan();
if ($this->config->showbannedreason) {
//.........这里部分代码省略.........
示例7: getModificationDate
/**
* Return ban modification date.
*
* @return KunenaDate
*/
public function getModificationDate()
{
return KunenaDate::getInstance($this->modified_time);
}
示例8:
?>
"><?php
echo KunenaDate::getInstance($user->registerDate)->toKunena('datetime_today');
?>
</td>
<?php
}
?>
<?php
if ($this->config->userlist_lastvisitdate) {
?>
<td class="kcol-mid" title="<?php
echo KunenaDate::getInstance($lastvisitDate)->toKunena('ago');
?>
"><?php
echo KunenaDate::getInstance($lastvisitDate)->toKunena('datetime_today');
?>
</td>
<?php
}
?>
<?php
if ($this->config->userlist_userhits) {
?>
<td class="kcol-mid"><?php
echo $this->escape($profile->uhits);
?>
</td>
<?php
}
?>
示例9:
?>
<span class="ktopic-latest-post">
<?php
echo $this->getTopicLink($this->topic, 'last', JText::_('COM_KUNENA_GEN_LAST_POST'));
echo ' ' . JText::_('COM_KUNENA_BY') . ' ' . $this->topic->getLastPostAuthor()->getLink();
?>
</span>
</div>
<div class="klatest-post-info">
<span class="ktopic-date" title="<?php
echo KunenaDate::getInstance($this->topic->last_post_time)->toKunena('config_post_dateformat_hover');
?>
">
<?php
echo KunenaDate::getInstance($this->topic->last_post_time)->toKunena('config_post_dateformat');
?>
</span>
</div>
</td>
<?php
if (!empty($this->topicActions)) {
?>
<td class="kcol-mid ktopicmoderation"><input class ="kcheck" type="checkbox" name="topics[<?php
echo $this->topic->id;
?>
]" value="1" /></td>
<?php
}
?>
示例10:
echo KunenaDate::getInstance($this->registerdate)->toKunena('date_today');
?>
</span></li><?php
}
?>
<?php
if (!empty($this->lastvisitdate)) {
?>
<li><strong><?php
echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE');
?>
:</strong> <span title="<?php
echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('ago');
?>
"><?php
echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('date_today');
?>
</span></li><?php
}
?>
<li><strong><?php
echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE');
?>
:</strong> GMT <?php
echo $this->localtime->toTimezone();
?>
</li>
<li><strong><?php
echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME');
?>
:</strong> <?php
示例11:
$useravatar = $profile->getAvatarImage('klist-avatar', 'list');
if ($useravatar) {
?>
<span class="ktopic-latest-post-avatar"> <?php
echo $this->message->getAuthor()->getLink($useravatar);
?>
</span>
<?php
}
}
?>
<span class="ktopic-posted-time" title="<?php
echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat_hover');
?>
"> <?php
echo JText::_('COM_KUNENA_POSTED_AT') . ' ' . KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat');
?>
</span>
<?php
if ($this->message->userid) {
?>
<br />
<span class="ktopic-by"><?php
echo JText::_('COM_KUNENA_BY') . ' ' . $this->message->getAuthor()->getLink();
?>
</span>
<?php
}
?>
</div>
</td>
示例12: if
<?php echo $this->profile->socialButton('msn', $this->showUnusedSocial) ?>
</div>
<div class="kiconrow">
<?php echo $this->profile->socialButton('blogspot', $this->showUnusedSocial) ?>
<?php echo $this->profile->socialButton('flickr', $this->showUnusedSocial) ?>
<?php echo $this->profile->socialButton('bebo', $this->showUnusedSocial) ?>
</div>
</div>
<div class="kprofile-rightcol1">
<ul>
<li><span class="kicon-profile kicon-profile-location"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCATION') ?>:</strong> <?php echo $this->locationlink ?></li>
<li><span class="kicon-profile kicon-profile-gender-unknown"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER') ?>:</strong> <?php echo $this->gender ?></li>
<li><span class="kicon-profile kicon-profile-birthdate"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE') ?>:</strong> <?php //echo KunenaDate::getInstance($this->profile->birthdate)->toKunena('date', 'ago', 'utc') ?></li>
</ul>
</div>
</div>
<div id="kprofile-leftcolbot">
<div class="kprofile-leftcol2">
<ul>
<?php if ($this->config->showemail && (!$this->profile->hideEmail || $this->me->isModerator())) : ?><li><span class="kicon-profile kicon-profile-email"></span><?php echo JHTML::_('email.cloak', $this->user->email) ?></li><?php endif; ?>
<?php if (!empty($this->profile->websiteurl)):?><li><span class="kicon-profile kicon-profile-website"></span><a href="http://<?php echo $this->escape($this->profile->websiteurl) ?>" target="_blank"><?php echo KunenaHtmlParser::parseText($this->profile->websitename) ?></a></li><?php endif ?>
<?php if (!empty($this->registerdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE') ?>:</strong> <?php echo KunenaDate::getInstance($this->registerdate)->toSpan('date_today', 'ago', 'utc') ?></li><?php endif; ?>
<?php if (!empty($this->lastvisitdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE') ?>:</strong> <?php echo KunenaDate::getInstance($this->lastvisitdate)->toSpan('date_today', 'ago', 'utc') ?></li><?php endif; ?>
<?php if (!empty($this->posts)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_POSTS') ?>:</strong> <?php echo intval($this->posts) ?></li><?php endif; ?>
<?php if (!empty($this->userpoints)): ?><li><strong><?php echo JText::_('COM_KUNENA_AUP_POINTS') ?></strong> <?php echo intval($this->userpoints) ?></li><?php endif; ?>
<?php if (!empty($this->thankyou)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_THANKYOU_RECEIVED') ?></strong> <?php echo intval($this->thankyou) ?></li><?php endif; ?>
<?php if (!empty($this->pmLink)) : ?><li><?php echo $this->pmLink ?></li><?php endif ?>
<?php if (!empty($this->usermedals)) : ?><li><?php foreach ( $this->usermedals as $medal ) : echo $medal,' '; endforeach ?></li><?php endif ?>
</ul>
</div>
</div>
示例13: if
$PMlink = $private->getInboxLink($PMCount ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $PMCount) : JText::_('COM_KUNENA_PMS_INBOX'));
} else {
$PMlink = $this->profile->profileIcon('private');
}
?>
<?php if ($this->avatarlink) : ?>
<div class="kavatar-lg"><?php echo $this->avatarlink; ?></div>
<?php endif; ?>
<div id="kprofile-stats">
<ul>
<?php if ( !empty($this->banReason) ) { ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BANINFO'); ?>:</strong> <?php echo $this->escape($this->banReason); ?></li><?php } ?>
<li><span class="kicon-button kbuttononline-<?php echo $this->profile->isOnline('yes', 'no') ?>"><span class="online-<?php echo $this->profile->isOnline('yes', 'no') ?>"><span><?php echo $this->profile->isOnline(JText::_('COM_KUNENA_ONLINE'), JText::_('COM_KUNENA_OFFLINE')); ?></span></span></span></li>
<?php if (!empty($this->usertype)): ?><li class="usertype"><?php echo $this->escape($this->usertype); ?></li><?php endif; ?>
<?php if (!empty($this->rank_title)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_RANK'); ?>: </strong><?php echo $this->escape($this->rank_title); ?></li><?php endif; ?>
<?php if (!empty($this->rank_image)): ?><li class="kprofile-rank"><?php echo $this->rank_image; ?></li><?php endif; ?>
<?php if (!empty($this->registerdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->registerdate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->registerdate)->toKunena('date_today'); ?></span></li><?php endif; ?>
<?php if (!empty($this->lastvisitdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('date_today'); ?></span></li><?php endif; ?>
<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE'); ?>:</strong> GMT <?php echo $this->localtime->toTimezone(); ?></li>
<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME'); ?>:</strong> <?php echo $this->localtime->toKunena('time'); ?></li>
<?php if (!empty($this->posts)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_POSTS'); ?>:</strong> <?php echo intval($this->posts); ?></li><?php endif; ?>
<?php if (!empty($this->userpoints)): ?><li><strong><?php echo JText::_('COM_KUNENA_AUP_POINTS'); ?></strong> <?php echo intval($this->userpoints); ?></li><?php endif; ?>
<?php if (!empty($this->usermedals)) : ?><li><?php foreach ( $this->usermedals as $medal ) : echo $medal,' '; endforeach ?></li><?php endif ?>
<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_PROFILEVIEW'); ?>:</strong> <?php echo intval($this->profile->uhits); ?></li>
<li><?php echo $this->displayKarma(); ?></li>
<?php if ($PMlink) {
?>
<li><?php echo $PMlink; ?></li>
<?php } ?>
<?php if( !empty($this->personalText) ) { ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_ABOUTME'); ?>:</strong> <?php echo KunenaHtmlParser::parseText($this->personalText); ?></li><?php } ?>
</ul>
</div>
示例14: fillTopicInfo
function fillTopicInfo($matches)
{
switch ($matches[1]) {
case 'ROW':
return $matches[2] . ($this->position & 1 ? 'odd' : 'even') . ($this->topic->ordering ? " {$matches[2]}sticky" : '');
case 'TOPIC_ICON':
return $this->topic->getIcon();
case 'TOPIC_NEW_COUNT':
return $this->topic->unread ? $this->getTopicLink($this->topic, 'unread', '<sup class="kindicator-new">(' . $this->topic->unread . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ')</sup>') : '';
case 'DATE':
$date = new KunenaDate($matches[2]);
return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover');
}
}
示例15: intval
<?php
if ($this->config->avataroncat > 0) :
$useravatar = KunenaFactory::getUser((int)$last->last_post_userid)->getAvatarImage('klist-avatar', 'list');
if ($useravatar) : ?>
<li class="klatest-avatar"> <?php echo CKunenaLink::GetProfileLink ( intval($last->last_post_userid), $useravatar ); ?></li>
<?php endif; ?>
<?php endif; ?>
<li class="ktopic-title">
<?php echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': '. CKunenaLink::GetThreadPageLink ( 'view', intval($last->id), intval($last->last_topic_id), intval($last->getLastPostLocation()), intval($this->config->messages_per_page), KunenaHtmlParser::parseText($last->last_topic_subject, 30), intval($last->last_post_id) );?>
</li>
<li class="ktopic-details">
<?php
echo JText::_('COM_KUNENA_BY') . ' ';
echo CKunenaLink::GetProfileLink ( intval($last->last_post_userid), $this->escape($last->last_post_guest_name) );
echo KunenaDate::getInstance($last->last_post_time)->toSpan('config_post_dateformat','config_post_dateformat_hover');
?>
</li>
</ul>
</td>
<?php else : ?>
<td class="kcol-mid kcol-knoposts"><?php echo JText::_('COM_KUNENA_NO_POSTS'); ?></td>
<?php endif ?>
<td class="kcategory-actions">
<?php echo CKunenaLink::GetCategoryActionLink ( 'unsubscribe', $this->category->id, JText::_('COM_KUNENA_BUTTON_UNSUBSCRIBE_CATEGORY'), 'nofollow', '', JText::_('COM_KUNENA_BUTTON_UNSUBSCRIBE_CATEGORY_LONG'), '&userid='.$this->me->userid ); ?>
</td>
</tr>
</tbody>
</table>
</li>