You are here

function theme_date_views_browser_full_view in Date 5

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

View, themed so it can be overridden $display -- views_view_list, views_view_table, views_view_teasers, views_view_nodes

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

File

./date_views.inc, line 851

Code

function theme_date_views_browser_full_view($view, $nodes, $type) {
  $teasers = true;
  $links = true;
  drupal_add_css(drupal_get_path('module', 'date_api') . '/date.css');
  $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;
}