blob: 9b0c067860ec6b86a29d28557417a57a2903f8d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?php
/**
* Elgg standard tools drop down
* This will be populated depending on the plugins active - only plugin navigation will appear here
*
* @package Elgg
* @subpackage Core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*
*/
$menu = get_register('menu');
//var_export($menu);
if (is_array($menu) && sizeof($menu) > 0) {
$alphamenu = array();
foreach($menu as $item) {
$alphamenu[$item->name] = $item;
}
ksort($alphamenu);
?>
<ul id="topbardropdownmenu">
<li class="drop"><a href="#" class="menuitemtools"><?php echo(elgg_echo('tools')); ?></a>
<ul>
<?php
foreach($alphamenu as $item) {
echo "<li><a href=\"{$item->value}\">" . $item->name . "</a></li>";
}
?>
</ul>
</li>
</ul>
<script type="text/javascript">
$(function() {
$('#topbardropdownmenu').elgg_topbardropdownmenu();
});
</script>
<?php
}
?>
|