本文整理汇总了PHP中CKunenaLink::GetSearchLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetSearchLink方法的具体用法?PHP CKunenaLink::GetSearchLink怎么用?PHP CKunenaLink::GetSearchLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetSearchLink方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPagination
function getPagination($function, $q, $urlparams, $page, $limit, $totalpages, $maxpages)
{
if ($page == 0) {
$page++;
}
$startpage = $page - floor($maxpages / 2) < 1 ? 1 : $page - floor($maxpages / 2);
$endpage = $startpage + $maxpages;
if ($endpage > $totalpages) {
$startpage = $totalpages - $maxpages < 1 ? 1 : $totalpages - $maxpages;
$endpage = $totalpages;
}
$output = '<ul class="kpagination">';
$output .= '<li class="page">' . JText::_('COM_KUNENA_PAGE') . '</li>';
if ($startpage > 1) {
if ($endpage < $totalpages) {
$endpage--;
}
$output .= '<li>' . CKunenaLink::GetSearchLink($function, $q, 0, $limit, 1, $urlparams, $rel = 'nofollow') . '</li>';
if ($startpage > 2) {
$output .= '<li class="more">...</li>';
}
}
for ($i = $startpage; $i <= $endpage && $i <= $totalpages; $i++) {
if ($page == $i) {
$output .= '<li class="active">' . $i . '</li>';
} else {
$output .= '<li>' . CKunenaLink::GetSearchLink($function, $q, ($i - 1) * $limit, $limit, $i, $urlparams, $rel = 'nofollow') . '</li>';
}
}
if ($endpage < $totalpages) {
if ($endpage < $totalpages - 1) {
$output .= '<li class="more">...</li>';
}
$output .= '<li>' . CKunenaLink::GetSearchLink($function, $q, ($totalpages - 1) * $limit, $limit, $totalpages, $urlparams, $rel = 'nofollow') . '</li>';
}
$output .= '</ul>';
return $output;
}
示例2: KunenaSearchPagination
function KunenaSearchPagination($function, $q, $urlparams, $page, $limit, $totalpages, $maxpages)
{
$fbConfig =& CKunenaConfig::getInstance();
if ($page == 0) {
$page++;
}
$startpage = $page - floor($maxpages / 2) < 1 ? 1 : $page - floor($maxpages / 2);
$endpage = $startpage + $maxpages;
if ($endpage > $totalpages) {
$startpage = $totalpages - $maxpages < 1 ? 1 : $totalpages - $maxpages;
$endpage = $totalpages;
}
$output = '<div class="fb_pagination">' . _PAGE;
if ($startpage > 1) {
if ($endpage < $totalpages) {
$endpage--;
}
$output .= CKunenaLink::GetSearchLink($fbConfig, $function, $q, 0, $limit, 1, $urlparams, $rel = 'nofollow');
if ($startpage > 2) {
$output .= "...";
}
}
for ($i = $startpage; $i <= $endpage && $i <= $totalpages; $i++) {
if ($page == $i) {
$output .= "<strong>{$i}</strong>";
} else {
$output .= CKunenaLink::GetSearchLink($fbConfig, $function, $q, ($i - 1) * $limit, $limit, $i, $urlparams, $rel = 'nofollow');
}
}
if ($endpage < $totalpages) {
if ($endpage < $totalpages - 1) {
$output .= "...";
}
$output .= CKunenaLink::GetSearchLink($fbConfig, $function, $q, ($totalpages - 1) * $limit, $limit, $totalpages, $urlparams, $rel = 'nofollow');
}
$output .= '</div>';
return $output;
}
示例3: array
$is_editor = false;
}
if ($is_editor) {
?>
| <a href = "<?php
echo CKunenaLink::GetAnnouncementURL($fbConfig, 'show');
?>
"><?php
echo _ANN_ANNOUNCEMENTS;
?>
</a>
<?php
}
?>
| <?php
echo CKunenaLink::GetSearchLink($fbConfig, 'search', '', 0, 0, _KUNENA_SEARCH_ADVSEARCH);
?>
</td>
<?php
if (JDocumentHTML::countModules('kunena_profilebox')) {
?>
<td>
<div class = "fb_profilebox_modul">
<?php
$document =& JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'kunena_profilebox';
echo $renderer->render($position, $options, null);