base : integer
* $item->prefix : string
* $item->link : string
* $item->text : string
*
* pagination_item_inactive
* Input variable $item is an object with fields:
* $item->base : integer
* $item->prefix : string
* $item->link : string
* $item->text : string
*
* This gives template designers ultimate control over how pagination is rendered.
*
* NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both
*/
function pagination_list_footer($list)
{
/**
* Fix javascript jump menu
*
* Remove the onchange=Joomla.submitform from the select tag
* Add in a button with onclick instead
*/
$fixlimit = $list['limitfield'];
$fixlimit = preg_replace('/onchange="Joomla.submitform\(\);"/', '', $fixlimit);
$html = "
";
return $html;
}
function pagination_list_render($list)
{
$html = null;
if ($list['start']['active'])
{
$html .= "";
} else {
$html .= "";
}
if ($list['previous']['active'])
{
$html .= "";
} else {
$html .= "";
}
$html .= "\n";
if ($list['next']['active'])
{
$html .= "";
} else {
$html .= "";
}
if ($list['end']['active'])
{
$html .= "";
} else {
$html .= "";
}
return $html;
}
function pagination_item_active(&$item)
{
if ($item->base > 0)
{
return "text."\" onclick=\"document.adminForm." . $item->prefix . "limitstart.value=".$item->base."; Joomla.submitform();return false;\">".$item->text."";
}
else
{
return "text."\" onclick=\"document.adminForm." . $item->prefix . "limitstart.value=0; Joomla.submitform();return false;\">".$item->text."";
}
}
function pagination_item_inactive(&$item)
{
if ($item->active)
{
$class = 'class="active"';
}
else
{
$class = '';
}
return '' . $item->text . '';
}