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; }
/** * 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); }
/** * 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(); }
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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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(); }
/** * 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); }
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); }
/** * 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); }