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 = "
\n"; $html .= "\n
"; $html .= "\n".$fixlimit; $html .= "\n
"; $html .= "\n" . $list['pageslinks']; $html .= "\n
".$list['pagescounter']."
"; $html .= "\n"; $html .= "\n
"; return $html; } function pagination_list_render($list) { $html = null; if ($list['start']['active']) { $html .= "
".$list['start']['data']."
"; } else { $html .= "
".$list['start']['data']."
"; } if ($list['previous']['active']) { $html .= "
".$list['previous']['data']."
"; } else { $html .= "
".$list['previous']['data']."
"; } $html .= "\n
"; foreach ($list['pages'] as $page) { $html .= $page['data']; } $html .= "\n
"; if ($list['next']['active']) { $html .= "
".$list['next']['data']."
"; } else { $html .= "
".$list['next']['data']."
"; } if ($list['end']['active']) { $html .= "
".$list['end']['data']."
"; } else { $html .= "
".$list['end']['data']."
"; } 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 . ''; }