function theme_views_bonus_summary_combo in Views Bonus Pack 5
Combo full page theme $level, $args, and $summary are only available if called by summary view
1 call to theme_views_bonus_summary_combo()
- theme_views_bonus_summary_combo_summary in ./
views_bonus_summary_combo.module - The combo summary theme, a wrapper function to send summary page theme through the full page theme passing along $level, $args, and setting $summary = TRUE
File
- ./
views_bonus_summary_combo.module, line 21
Code
function theme_views_bonus_summary_combo($view, $nodes, $type, $level = NULL, $args = NULL, $summary = FALSE) {
$teasers = TRUE;
$links = TRUE;
// keep the title from displaying both in the summary and full view
drupal_set_title($title);
unset($view->page_title);
// create page bottom first -- may be either a full view or a summary view
// it is possible to have several levels of summary views if multiple arguments set to summary are used
if ($summary && $level == 0 && isset($view->argument[0])) {
// don't display bottom if it will be same top level summary view displayed on top
$bottom = '';
}
elseif ($summary) {
// a summary view on the bottom of the page should be the regular summary view
$bottom = theme('views_summary', $view, $type, $level, $nodes, $args);
}
else {
// otherwise display the full view
$bottom = theme('views_view_nodes', $view, $nodes, $view->page_type, $teasers, $links);
}
// the summary view on the top of the page should always be the top level summary view
// create this only after bottom view has been generated to avoid wiping out values from the original view
if (isset($view->argument[0])) {
$summary = views_build_view('items', $view, array(), false, $view->nodes_per_page);
$top = theme('views_bonus_summary_combo_top', $view, $summary['items']);
}
return $top . $bottom;
}