You are here

function theme_pagerer_progressive in Pagerer 7

This theme provides links to pages progressively more distant from current.

Besides links to the 'neigborhood' of current page, creates a list of links which are progressively more distant from current page, displaying either a page number or an offset from current page.

This is controlled via the 'progr_links' theme variable, which can take a value either 'absolute' or 'relative'.

Examples:

page 9 out of 212, progr_links 'absolute', display 'pages': ------------------------------------------------------------------- 1 . 4 . 7 8 [9] 10 11 . 14 . 19 . 59 . 109 . 212 -------------------------------------------------------------------

page 9 out of 212, progr_links 'relative', display 'pages': ------------------------------------------------------------------- 1 . -5 . 7 8 [9] 10 11 . +5 . +10 . +50 . +100 . 212 -------------------------------------------------------------------

The 'factors' theme variable controls the quantity of progressive links generated. Each value in the comma delimited string will be used as a scale factor for a progressive series of pow(10, n).

Examples: 'factors' => '10' will generate links for page offsets

..., -1000, -100, -10, 10, 100, 1000, ....

'factors' => '5,10' will generate links for page offsets

..., -1000, -500, -100, -50, -10, -5, 5, 10, 50, 100, 500, 1000, ....

etc.

1 theme call to theme_pagerer_progressive()
pagerer_example_page in ./pagerer_example.module
Build the pagerer example.

File

./pagerer.module, line 708
Pagerer

Code

function theme_pagerer_progressive($variables) {
  return _pagerer_theme_handler('pagerer_progressive', $variables);
}