function theme_views_mini_pager

cis7 theme.inc theme_views_mini_pager($vars)
cle7 theme.inc theme_views_mini_pager($vars)
elmsmedia7 theme.inc theme_views_mini_pager($vars)
icor7 theme.inc theme_views_mini_pager($vars)
meedjum_blog7 theme.inc theme_views_mini_pager($vars)
mooc7 theme.inc theme_views_mini_pager($vars)
3 string references to the theme hook from theme_views_mini_pager()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

views_plugin_pager_mini::render in sites/all/modules/ulmus/views/plugins/views_plugin_pager_mini.inc
Overrides views_plugin_pager_full::render().
views_theme in sites/all/modules/ulmus/views/views.module
Implement hook_theme(). Register views theming functions.
views_theme in sites/all/modules/ulmus/views/views.module
Implement hook_theme(). Register views theming functions.

File

sites/all/modules/ulmus/views/theme/theme.inc, line 1037
Preprocessors and helper functions to make theming easier.

Code

function theme_views_mini_pager($vars) {
  global $pager_page_array, $pager_total;

  $tags = $vars['tags'];
  $element = $vars['element'];
  $parameters = $vars['parameters'];

  // current is the page we are currently paged to
  $pager_current = $pager_page_array[$element] + 1;
  // max is the maximum page number
  $pager_max = $pager_total[$element];
  // End of marker calculations.

  if ($pager_total[$element] > 1) {

    $li_previous = theme('pager_previous', array(
      'text' => (isset($tags[1]) ? $tags[1] : t('‹‹')),
      'element' => $element,
      'interval' => 1,
      'parameters' => $parameters,
    ));
    if (empty($li_previous)) {
      $li_previous = " ";
    }

    $li_next = theme('pager_next', array(
      'text' => (isset($tags[3]) ? $tags[3] : t('››')),
      'element' => $element,
      'interval' => 1,
      'parameters' => $parameters,
    ));

    if (empty($li_next)) {
      $li_next = " ";
    }

    $items[] = array(
      'class' => array('pager-previous'),
      'data' => $li_previous,
    );

    $items[] = array(
      'class' => array('pager-current'),
      'data' => t('@current of @max', array('@current' => $pager_current, '@max' => $pager_max)),
    );

    $items[] = array(
      'class' => array('pager-next'),
      'data' => $li_next,
    );
    return theme('item_list', array(
      'items' => $items,
      'title' => NULL,
      'type' => 'ul',
      'attributes' => array('class' => array('pager')),
    ));
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.