function views_plugin_pager_mini::render

Overrides views_plugin_pager_full::render

File

plugins/views_plugin_pager_mini.inc, line 56

Class

views_plugin_pager_mini
The plugin to handle mini pager.

Code

public function render($input) {
    // Overrides the full pager renderer by changing the theme function and
    // leaving out variables that are not used in the mini pager.
    $pager_theme = views_theme_functions('views_mini_pager', $this->view, $this->display);
    // The 1, 3 index are correct.
    // @see theme_pager().
    $tags = array(
        1 => $this->options['tags']['previous'],
        3 => $this->options['tags']['next'],
    );
    return theme($pager_theme, array(
        'tags' => $tags,
        'element' => $this->get_pager_id(),
        'parameters' => $input,
    ));
}