You are here

function theme_date_views_browser_navigation in Date 6

Same name and namespace in other branches
  1. 5.2 date/date.theme \theme_date_views_browser_navigation()
  2. 5 date_views.inc \theme_date_views_browser_navigation()

Theme for page navigation

File

date/date.theme, line 147
Theme functions.

Code

function theme_date_views_browser_navigation($label, $period, $prev, $next, $view) {
  drupal_add_css(drupal_get_path('module', 'date_api') . '/date.css');
  $output = '<div class="book-navigation date-browser-navigation">';
  $output .= '<div class="page-links">';
  $output .= l(t('‹ prev !period  ', array(
    '!period' => $period,
  )), $prev, array(
    'class' => 'page-previous',
  ));
  $output .= '<h3 class="date-browser-label"><span class="page-up">' . $label . '</span></h3>';
  $output .= l(t('  next !period  ›', array(
    '!period' => $period,
  )), $next, array(
    'class' => 'page-next',
  ));
  $output .= '</div></div>';
  return $output;
  return $output;
}