You are here

public function PagererViewsPagerPlugin::summary_title in Pagerer 7

Return a string to display as the clickable title.

Overrides views_plugin_pager_full::summary_title

File

plugins/pagerer.views.pager.inc, line 24
Pagerer - Definition of the Views pager plugin.

Class

PagererViewsPagerPlugin
Pagerer pager plugin handler class.

Code

public function summary_title() {
  if (!empty($this->options['offset'])) {
    return format_plural($this->options['items_per_page'], "Using preset %preset, @count item, skip @skip", "Using preset %preset, @count items, skip @skip", array(
      '%preset' => $this->options['preset'],
      '@count' => $this->options['items_per_page'],
      '@skip' => $this->options['offset'],
    ));
  }
  return format_plural($this->options['items_per_page'], "Using preset %preset, @count item", "Using preset %preset, @count items", array(
    '%preset' => $this->options['preset'],
    '@count' => $this->options['items_per_page'],
  ));
}