本文整理匯總了PHP中CKunenaLink::GetThreadPageSpecialLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKunenaLink::GetThreadPageSpecialLink方法的具體用法?PHP CKunenaLink::GetThreadPageSpecialLink怎麽用?PHP CKunenaLink::GetThreadPageSpecialLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetThreadPageSpecialLink方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: intval
}
?>
<li class="klatest-subject">
<?php
if ($this->params->get('sh_sticky')) {
if ($item->ordering) {
echo '<img src="' . JURI::root() . 'modules/mod_kunenalatest/tmpl/images/sticky.png" alt="' . JText::_('MOD_KUNENALATEST_STICKY_TOPIC') . '" title="' . JText::_('MOD_KUNENALATEST_STICKY_TOPIC') . '" />';
}
}
if ($this->params->get('choosemodel') != 'latestposts' && $this->params->get('choosemodel') != 'latesttopics') {
echo CKunenaLink::GetThreadLink('view', $item->catid, $item->id, JString::substr(htmlspecialchars($item->subject), '0', $this->params->get('titlelength')), JString::substr(htmlspecialchars(KunenaParser::stripBBCode($item->message)), '0', $this->params->get('messagelength')), 'follow');
} else {
if ($this->topic_ordering == 'ASC') {
echo CKunenaLink::GetThreadPageSpecialLink('view', intval($item->catid), intval($item->thread), $threadPages, intval($this->kunena_config->messages_per_page), JString::substr(htmlspecialchars($item->subject), '0', $this->params->get('titlelength')), intval($item->id), '', '', JString::substr(htmlspecialchars(KunenaParser::stripBBCode($item->message)), '0', $this->params->get('messagelength')));
} else {
echo CKunenaLink::GetThreadPageSpecialLink('view', intval($item->catid), intval($item->thread), 1, intval($this->kunena_config->messages_per_page), JString::substr(htmlspecialchars($item->subject), '0', $this->params->get('titlelength')), intval($item->id), '', '', JString::substr(htmlspecialchars(KunenaParser::stripBBCode($item->message)), '0', $this->params->get('messagelength')));
}
}
if ($item->unread) {
echo '<sup class="knewchar">(' . JText::_($this->params->get('unreadindicator')) . ")</sup>";
}
if ($this->params->get('sh_favorite')) {
if ($item->favcount) {
if ($item->myfavorite) {
echo '<img class="favoritestar" src="' . $this->ktemplate->getImagePath('icons/favoritestar.png') . '" alt="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" title="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" />';
} else {
echo '<img class="favoritestar-grey" src="' . $this->ktemplate->getImagePath('icons/favoritestar-grey.png') . '" alt="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" title="' . JText::_('MOD_KUNENALATEST_FAVORITE') . '" />';
}
}
}
if ($this->params->get('sh_locked')) {