You are here

function theme_date_views_browser_full_view in Date 6

Same name and namespace in other branches
  1. 5.2 date/date.theme \theme_date_views_browser_full_view()
  2. 5 date_views.inc \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 175
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(NULL, $period), $url) . '</h5>';
      $display = 'views_view_list';
      break;
    default:
      $output .= date_views_browser_navigation($view, $period);
      $display = 'views_view_teasers';
      break;
  }
  $output .= theme($display, $view, $nodes, $type, $teasers, $links);
  return $output;
}