本文整理汇总了PHP中CKunenaLink::GetSefHrefLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetSefHrefLink方法的具体用法?PHP CKunenaLink::GetSefHrefLink怎么用?PHP CKunenaLink::GetSefHrefLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetSefHrefLink方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getInboxLink
public function getInboxLink($text)
{
if (!$text) {
$text = JText::_('COM_KUNENA_PMS_INBOX');
}
return CKunenaLink::GetSefHrefLink($this->uddeim->getLinkToBox('inbox', false), $text, '', 'follow');
}
示例2: GetThreadPageSpecialLink
function GetThreadPageSpecialLink($func, $catid, $threadid, $page, $limit, $name, $anker = '', $rel = 'follow', $class = '', $title='') {
$kunena_config = KunenaFactory::getConfig ();
if ($page == 1 || ! is_numeric ( $page ) || ! is_numeric ( $limit )) {
// page 1 is identical to a link to the top of the thread
$pagelink = CKunenaLink::GetSefHrefLink ( 'index.php?option=com_kunena&func=' . $func . '&catid=' . $catid . '&id=' . $threadid, $name, $title, $rel, $class, $anker );
} else {
$pagelink = CKunenaLink::GetSefHrefLink ( 'index.php?option=com_kunena&func=' . $func . '&catid=' . $catid . '&id=' . $threadid . '&limit=' . $limit . '&limitstart=' . (($page - 1) * $limit), $name, $title, $rel, $class, $anker );
}
return $pagelink;
}
示例3: GetUserLayoutLink
function GetUserLayoutLink($layout, $text, $title='', $rel = 'nofollow', $class = '') {
$token = '&'.JUtility::getToken().'=1';
return CKunenaLink::GetSefHrefLink ( "index.php?option=com_kunena&view=user&task=change&topic_layout={$layout}{$token}", $text, $title, 'nofollow', $class );
}
示例4: GetSearchLink
function GetSearchLink($fbConfig, $func, $searchword, $limitstart, $limit, $name, $params = '', $rel = 'nofollow')
{
$fbConfig =& CKunenaConfig::getInstance();
$limitstr = "";
if ($limitstart > 0) {
$limitstr .= "&limitstart={$limitstart}";
}
if ($limit > 0 && $limit != $fbConfig->messages_per_page_search) {
$limitstr .= "&limit={$limit}";
}
if ($searchword) {
$searchword = '&q=' . urlencode($searchword);
}
return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL . "&func={$func}{$searchword}{$params}{$limitstr}", $name, '', $rel);
}
示例5: GetStatsLink
function GetStatsLink($name, $class = '', $rel = 'follow')
{
return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL . '&func=stats', $name, '', $rel, $class);
}