You are here

function theme_date_views_browser_full_view in Date 5.2

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

View, themed so it can be overridden

Set $display to views_view_list, views_view_table, views_view_teasers, or views_view_nodes

As an alternative, override this theme and set the display to date_views_browser_items for a display of only the current item value to keep multiple value dates from repeating the whole teaser each time.

1 theme call to theme_date_views_browser_full_view()
theme_date_views_browser_summary_view in date/date.theme
Display a summary version of a view.

File

date/date.theme, line 220
Theme functions.

Code

function theme_date_views_browser_full_view($view, $nodes, $type) {
  $teasers = true;
  $links = true;
  $date_views_browser_views = date_views_browser_get_views();
  $period = $date_views_browser_views[$view->name]->options;
  switch ($type) {
    case 'block':
      $arg = date_views_browser_period_arg(NULL, $view->argument[0]['options']);
      if ($view->url) {
        $url = $view->url . '/' . $arg;
      }
      $output .= '<h5 class="date-browser-block-label">' . l(date_views_browser_period_label($arg, $period), $url, array(), NULL, NULL, FALSE, TRUE) . '</h5>';
      $display = 'views_view_list';
      break;
    default:
      $output .= date_views_browser_navigation($view, $period);
      $display = 'date_view_nodes';
      break;
  }
  $output .= theme($display, $view, $nodes, $type, $teasers, $links);
  return $output;
}