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 .= '
'. $list['start']['data']. '
'; } else { $html .= '
'. $list['start']['data']. '
'; } if ($list['previous']['active']) { $html .= '
'; } else { $html .= '
'; } $html .= '
'; foreach ($list['pages'] as $page) { $html .= $page['data']; } $html .= '
'; if ($list['next']['active']) { $html .= '
'; } else { $html .= '
'; } 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 ''.$item->text. ''; } else { return ''.$item->text. ''; } } function pagination_item_inactive(&$item) { if ($item->active) { $class = 'class="active"'; } else { $class = ''; } return '' . $item->text . ''; }