You are here

function _footermap_render in footermap: a footer site map 6

Same name and namespace in other branches
  1. 5.2 footermap.module \_footermap_render()
2 calls to _footermap_render()
footermap_block in ./footermap.module
footermap_footer in ./footermap.module

File

./footermap.module, line 198

Code

function _footermap_render() {
  $recurse = variable_get('recurse_limit', 0);
  $base = variable_get('top_menu', 0);
  $menus = menu_get_menus(TRUE);
  $mapref = array();
  $disp_heading = variable_get('footermap_heading', 0);
  $o = '';
  footermap_get_menu($base, $mapref, $recurse, 0);
  $n = 0;
  foreach ($mapref as $key => $block) {
    $heading = $disp_heading == 1 ? $menus[$key] : '';
    $o .= '<div class="footermap-col" id="footermap-col-' . $n . ' footermap-col-' . $key . '">';
    if ($heading != '') {
      $o .= '<h3>' . $heading . '</h3>';
    }
    $o .= theme('links', $block, array(
      'class' => 'footermap-item links',
    )) . '</div>';
    $n++;
  }
  $o = '<div class="footermap">' . $o . '</div>';
  return $o;
}