function _zurb_foundation_links

cis7 template.php _zurb_foundation_links($links)

Helper function to output a Drupal menu as a Foundation Top Bar.

Parameters

array: An array of menu links.

Return value

string A rendered list of links, with no <ul> or <ol> wrapper.

See also

zurb_foundation_links__system_main_menu()

zurb_foundation_links__system_secondary_menu()

4 calls to _zurb_foundation_links()
zurb_foundation_links__dropdown_button in sites/all/themes/local_contrib/zurb-foundation/template.php
Implements theme_links() with foundations dropdown button markup.
zurb_foundation_links__split_button in sites/all/themes/local_contrib/zurb-foundation/template.php
Implements theme_links() with foundations split button markup.
zurb_foundation_links__topbar_main_menu in sites/all/themes/local_contrib/zurb-foundation/template.php
Implements theme_links() targeting the main menu specifically. Formats links for Top Bar http://foundation.zurb.com/docs/components/top-bar.html
zurb_foundation_links__topbar_secondary_menu in sites/all/themes/local_contrib/zurb-foundation/template.php
Implements theme_links() targeting the secondary menu specifically. Formats links for Top Bar http://foundation.zurb.com/docs/components/top-bar.html

File

sites/all/themes/local_contrib/zurb-foundation/template.php, line 177

Code

function _zurb_foundation_links($links) {
  $output = '';

  foreach (element_children($links) as $key) {
    $output .= _zurb_foundation_render_link($links[$key]);
  }

  return $output;
}