diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-03 19:02:49 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-03 19:02:49 -0700 |
commit | c1ae08ad43ef1eafbd92fc9526c2fdecbe5c5977 (patch) | |
tree | b458316db9f39b2b0f820952d2a05ffd1ad145a0 /mod/embed/views/default/navigation/menu | |
parent | e1283016e48e2f785442ee8a0d18cd09376d241c (diff) | |
parent | 9d5c00c78c0666a31485d870a1e657d4557b23c4 (diff) | |
download | elgg-c1ae08ad43ef1eafbd92fc9526c2fdecbe5c5977.tar.gz elgg-c1ae08ad43ef1eafbd92fc9526c2fdecbe5c5977.tar.bz2 |
Merge pull request #70 from cash/embed-menu
Fixes #3852, #3854, #3855 Refs #3567 Embed plugin rewrite
Diffstat (limited to 'mod/embed/views/default/navigation/menu')
-rw-r--r-- | mod/embed/views/default/navigation/menu/embed.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/embed/views/default/navigation/menu/embed.php b/mod/embed/views/default/navigation/menu/embed.php new file mode 100644 index 000000000..1a6a18f05 --- /dev/null +++ b/mod/embed/views/default/navigation/menu/embed.php @@ -0,0 +1,18 @@ +<?php +/** + * Embed tabs + * + * @uses $vars['menu']['default'] + */ + +$tabs = array(); +foreach ($vars['menu']['default'] as $menu_item) { + $tabs[] = array( + 'title' => $menu_item->getText(), + 'url' => 'embed/tab/' . $menu_item->getName(), + 'url_class' => 'embed-section', + 'selected' => $menu_item->getSelected(), + ); +} + +echo elgg_view('navigation/tabs', array('tabs' => $tabs)); |