You are here

function pagerer_theme in Pagerer 7

Same name and namespace in other branches
  1. 8.2 pagerer.module \pagerer_theme()
  2. 8 pagerer.module \pagerer_theme()

Implements hook_theme().

File

./pagerer.module, line 103
Pagerer

Code

function pagerer_theme() {
  $common_theme = drupal_common_theme();
  $theme = array(
    'pagerer_link' => array(
      'variables' => $common_theme['pager_link']['variables'],
    ),
    'pagerer' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'preset' => NULL,
        'left_pane' => array(
          'theme_name' => 'none',
        ),
        'center_pane' => array(
          'theme_name' => 'pagerer_standard',
        ),
        'right_pane' => array(
          'theme_name' => 'none',
        ),
      ),
    ),
    'pagerer_standard' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'quantity' => $common_theme['pager']['variables']['quantity'],
        'display_restriction' => 'default',
        'display' => 'pages',
        'label_display' => 'none',
        'current_display' => 'normal',
        'total_display' => 'none',
        'first_link' => 'not_on_first',
        'previous_link' => 'not_on_first',
        'next_link' => 'not_on_last',
        'last_link' => 'not_on_last',
        'pager_breaker' => '…',
        'pager_separator' => 'none',
        'range_separator' => '-',
        'fl_breakers' => TRUE,
        'widget_resize' => TRUE,
        'slider_action' => 'tickmark',
        'slider_action_timelapse' => 0,
        'slider_navigation_icons' => 'yes',
      ),
    ),
    'pagerer_adaptive' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'quantity' => 5,
        'display_restriction' => 'default',
        'display' => 'pages',
        'label_display' => 'none',
        'current_display' => 'normal',
        'total_display' => 'none',
        'first_link' => 'never',
        'previous_link' => 'never',
        'next_link' => 'never',
        'last_link' => 'never',
        'progr_links' => 'relative',
        'pager_breaker' => '…',
        'pager_separator' => 'none',
        'range_separator' => '-',
        'fl_breakers' => TRUE,
        'widget_resize' => TRUE,
        'slider_action' => 'tickmark',
        'slider_action_timelapse' => 0,
        'slider_navigation_icons' => 'yes',
      ),
    ),
    'pagerer_progressive' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'quantity' => 5,
        'display_restriction' => 'default',
        'display' => 'pages',
        'label_display' => 'none',
        'current_display' => 'normal',
        'total_display' => 'none',
        'first_link' => 'never',
        'previous_link' => 'never',
        'next_link' => 'never',
        'last_link' => 'never',
        'progr_links' => 'relative',
        'factors' => '2.5,5,10',
        'pager_breaker' => '…',
        'pager_separator' => 'none',
        'range_separator' => '-',
        'fl_breakers' => TRUE,
        'widget_resize' => TRUE,
        'slider_action' => 'tickmark',
        'slider_action_timelapse' => 0,
        'slider_navigation_icons' => 'yes',
      ),
    ),
    'pagerer_mini' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'quantity' => $common_theme['pager']['variables']['quantity'],
        'display_restriction' => 'default',
        'display' => 'pages',
        'label_display' => 'before_current',
        'current_display' => 'widget',
        'total_display' => 'after_current',
        'first_link' => 'always',
        'previous_link' => 'always',
        'next_link' => 'always',
        'last_link' => 'always',
        'pager_breaker' => '…',
        'pager_separator' => 'none',
        'range_separator' => '-',
        'fl_breakers' => FALSE,
        'widget_resize' => TRUE,
        'slider_action' => 'tickmark',
        'slider_action_timelapse' => 0,
        'slider_navigation_icons' => 'yes',
      ),
    ),
    'pagerer_slider' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'quantity' => $common_theme['pager']['variables']['quantity'],
        'display_restriction' => 'default',
        'display' => 'pages',
        'label_display' => 'before_current',
        'current_display' => 'slider',
        'total_display' => 'after_current',
        'first_link' => 'never',
        'previous_link' => 'never',
        'next_link' => 'never',
        'last_link' => 'never',
        'pager_breaker' => '…',
        'pager_separator' => 'none',
        'range_separator' => '-',
        'fl_breakers' => FALSE,
        'widget_resize' => TRUE,
        'slider_action' => 'tickmark',
        'slider_action_timelapse' => 0,
        'slider_navigation_icons' => 'yes',
      ),
    ),
    'pagerer_scrollpane' => array(
      'variables' => array(
        'element' => $common_theme['pager']['variables']['element'],
        'parameters' => $common_theme['pager']['variables']['parameters'],
        'quantity' => $common_theme['pager']['variables']['quantity'],
        'display_restriction' => 'default',
        'display' => 'pages',
        'label_display' => 'none',
        'current_display' => 'scrollpane',
        'total_display' => 'none',
        'first_link' => 'never',
        'previous_link' => 'never',
        'next_link' => 'never',
        'last_link' => 'never',
        'pager_breaker' => '…',
        'pager_separator' => 'none',
        'range_separator' => '-',
        'fl_breakers' => FALSE,
        'widget_resize' => TRUE,
        'slider_action' => 'tickmark',
        'slider_action_timelapse' => 0,
        'slider_navigation_icons' => 'yes',
      ),
    ),
    'pagerer_preset_list' => array(
      'render element' => 'form',
      'file' => 'pagerer.admin.inc',
    ),
  );
  return $theme;
}