embed.php 381 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Embed tabs
  4. *
  5. * @uses $vars['menu']['default']
  6. */
  7. $tabs = array();
  8. foreach ($vars['menu']['default'] as $menu_item) {
  9. $tabs[] = array(
  10. 'title' => $menu_item->getText(),
  11. 'url' => 'embed/tab/' . $menu_item->getName(),
  12. 'link_class' => 'embed-section',
  13. 'selected' => $menu_item->getSelected(),
  14. );
  15. }
  16. echo elgg_view('navigation/tabs', array('tabs' => $tabs));