本文整理汇总了PHP中pagination_list_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP pagination_list_footer函数的具体用法?PHP pagination_list_footer怎么用?PHP pagination_list_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pagination_list_footer函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: build
function build()
{
$pagination = $this->pagination;
$app = JFactory::getApplication();
$list = array();
//ISSET() for warning prevention
$list['prefix'] = isset($pagination->prefix) ? $pagination->prefix : null;
$list['limit'] = $pagination->limit;
$list['limitstart'] = $pagination->limitstart;
$list['total'] = $pagination->total;
$list['limitfield'] = $pagination->getLimitBox();
$list['pagescounter'] = $pagination->getPagesCounter();
$list['pageslinks'] = $pagination->getPagesLinks();
$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
require_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
$html = "<div class=\"list-footer-pagination\">\n";
if ($this->showLimit) {
$langDisplayNum = $this->JText('JGLOBAL_DISPLAY_NUM');
$html .= "\n<div class=\"limit\">" . $langDisplayNum . $list['limitfield'] . "</div>";
}
$html .= $list['pageslinks'];
if ($this->showCounter) {
$html .= "\n<div class=\"counter\">" . $list['pagescounter'] . "</div>";
}
$html .= "\n<input type=\"hidden\" name=\"" . $list['prefix'] . "limitstart\" value=\"" . $list['limitstart'] . "\" />";
$html .= "\n</div>";
return $html;
}
示例2: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
* @since 1.0
*/
public function getListFooter()
{
$app = JFactory::getApplication();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
$chromePath = JPATH_THEMES . DS . $app->getTemplate() . DS . 'html' . DS . 'pagination.php';
if (file_exists($chromePath)) {
require_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例3: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 1.5
*/
public function getListFooter()
{
// Keep B/C for overrides done with chromes
$chromePath = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->getPaginationLinks();
}
示例4: getListFooter
public function getListFooter($ajax = false)
{
if (!$ajax) {
return parent::getListFooter();
}
$app = JFactory::getApplication();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
//override getPageLinks to introduce ajax pagination...
$list['pageslinks'] = $this->getPagesLinks();
$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例5: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 11.1
*/
public function getListFooter()
{
$app = JFactory::getApplication();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
// Plazart: detect if chrome pagination.php in template or in plugin
$chromePath = PlazartPath::getPath('html/pagination.php');
//$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例6: getListFooter
/**
* Return the pagination footer
*
* @access public
* @return string Pagination footer
* @since 1.0
*/
function getListFooter()
{
global $mainframe;
$list = array();
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
$chromePath = JPATH_THEMES . DS . $mainframe->getTemplate() . DS . 'html' . DS . 'pagination.php';
if (file_exists($chromePath)) {
require_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例7: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 11.1
*/
public function getListFooter()
{
$app = JFactory::getApplication();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
if (JFile::exists(JPATH_SITE . DS . 'media' . DS . 'contentbuilder' . DS . 'misc' . DS . 'pagination.php')) {
$chromePath = JPATH_SITE . DS . 'media' . DS . 'contentbuilder' . DS . 'misc' . DS . 'pagination.php';
} else {
$chromePath = JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_contentbuilder' . DS . 'classes' . DS . 'pagination_chrome.php';
}
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例8: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 1.0
*/
public function getListFooter()
{
$app = JFactory::getApplication();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
$list['formName'] = $this->get('formName');
// For the backend we force our html.
if (JFactory::getApplication()->isSite()) {
$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
}
return $this->_list_footer($list);
}
示例9: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 11.1
*/
public function getListFooter()
{
$app = JFactory::getApplication();
// Yjsg instance
$yjsg = Yjsg::getInstance();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
//yjsg start
if (!file_exists($chromePath)) {
if ($yjsg->preplugin()) {
$chromePath = YJSGPATH . 'legacy' . YJDS . 'html' . YJDS . 'pagination.php';
} else {
$chromePath = YJSGPATH . 'includes' . YJDS . 'html' . YJDS . 'pagination.php';
}
}
//yjsg end
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例10: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 1.5
*/
public function getListFooter()
{
// Keep B/C for overrides done with chromes
$chromePath = JPATH_THEMES . '/' . $this->app->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
JLog::add('pagination_list_footer is deprecated. Use the layout joomla.pagination.links instead.', JLog::WARNING, 'deprecated');
$list = array('prefix' => $this->prefix, 'limit' => $this->limit, 'limitstart' => $this->limitstart, 'total' => $this->total, 'limitfield' => $this->getLimitBox(), 'pagescounter' => $this->getPagesCounter(), 'pageslinks' => $this->getPagesLinks());
return pagination_list_footer($list);
}
}
return $this->getPaginationLinks();
}
示例11: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*
* @since 11.1
*/
public function getListFooter()
{
$app = JFactory::getApplication();
$list = array();
$list['prefix'] = $this->prefix;
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
$chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
/* detect if pagination.php in JSNTPLFramework plugin then override original pagination.php */
if (!file_exists($chromePath)) {
$chromePath = JSN_PATH_TPLFRAMEWORK . '/html/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
}
/* detect if pagination.php in JSNTPLFramework plugin then override original pagination.php */
return $this->_list_footer($list);
}
示例12: getListFooter
function getListFooter()
{
$mainframe = JFactory::getApplication();
$list = array();
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitstart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
if ($this->total < 5) {
return "";
}
$chromePath = JPATH_THEMES . DS . $mainframe->getTemplate() . DS . 'html' . DS . 'pagination.php';
if ($this->skinstyle == 1 && file_exists($chromePath)) {
require_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}
示例13: getListFooter
/**
* Return the pagination footer.
*
* @return string Pagination footer.
*/
public function getListFooter()
{
$list = array();
$list['limit'] = $this->limit;
$list['limitstart'] = $this->limitStart;
$list['total'] = $this->total;
$list['limitfield'] = $this->getLimitBox();
$list['pagescounter'] = $this->getPagesCounter();
$list['pageslinks'] = $this->getPagesLinks();
$templatePath = $this->application->getContainer()->templatePath;
$chromePath = $templatePath . '/' . $this->application->getTemplate() . '/php/pagination.php';
if (file_exists($chromePath)) {
include_once $chromePath;
if (function_exists('pagination_list_footer')) {
return pagination_list_footer($list);
}
}
return $this->_list_footer($list);
}