You are here

function theme_uc_catalog_block in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_catalog/uc_catalog.theme.inc \theme_uc_catalog_block()
  2. 6.2 uc_catalog/uc_catalog.module \theme_uc_catalog_block()

Themes the catalog block.

See also

theme_uc_catalog_item()

1 theme call to theme_uc_catalog_block()
uc_catalog_block_view in uc_catalog/uc_catalog.module
Implements hook_block_view().

File

uc_catalog/uc_catalog.theme.inc, line 15
Theme functions for the uc_catalog module.

Code

function theme_uc_catalog_block($variables) {
  $menu_tree = $variables['menu_tree'];
  $output = '<ul class="catalog menu">';
  foreach ($menu_tree->children as $branch) {
    list($inpath, $html) = _uc_catalog_navigation($branch);
    $output .= $html;
  }
  $output .= '</ul>';
  return $output;
}