当前位置: 首页>>代码示例>>PHP>>正文


PHP CKunenaLink::GetSearchLink方法代码示例

本文整理汇总了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;
 }
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:38,代码来源:kunena.search.class.php

示例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;
}
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:38,代码来源:kunena.search.class.php

示例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);
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:profilebox.php


注:本文中的CKunenaLink::GetSearchLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。