scope, array('com_content', 'com_finder', 'com_search', 'com_tags'))) {
function pagination_list_render($list) {
// find out the id of the page, that is the current page
$currentId = 0;
foreach ($list['pages'] as $id => $page) {
if (!$page['active']) {
$currentId = $id;
}
}
// set the range for the inner pages that should be displayed
// this displays + - $range page-buttons arround the current page
// due to joomla-restrictions there won't be displayed more than -5 and +4 buttons.
$range = 3;
// start building pagination-list
$html = array('
";
return implode("\n", $html);
}
function pagination_item_active($item) {
$cls = '';
$title = '';
if ($item->text == JText::_('JNEXT')) {
$item->text = '';
$cls = "next";
$title = JText::_('JNEXT');
}
else if ($item->text == JText::_('JPREV')) {
$item->text = '';
$cls = "previous";
$title = JText::_('JPREV');
}
else if ($item->text == JText::_('JLIB_HTML_START')) {
$item->text = '';
$cls = "first";
$title = JText::_('JLIB_HTML_START');
}
else if ($item->text == JText::_('JLIB_HTML_END')) {
$item->text = '';
$cls = "last";
$title = JText::_('JLIB_HTML_END');
}
return ''.$item->text.'';
}
function pagination_item_inactive(&$item) {
return ''.$item->text.'';
}
}