diff options
Diffstat (limited to 'views/default/navigation/toolbox.php')
-rw-r--r-- | views/default/navigation/toolbox.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/views/default/navigation/toolbox.php b/views/default/navigation/toolbox.php index 91a96d1fb..456db14fa 100644 --- a/views/default/navigation/toolbox.php +++ b/views/default/navigation/toolbox.php @@ -14,18 +14,18 @@ * */ - $menu = get_register('menu');
+ $menu = get_register('menu'); $contexts = $vars['config']->menucontexts; if (is_array($menu) && sizeof($menu) > 0) { ?> <div class="elggtoolbar"> -<div class="elggtoolbar_header"><h1>Your tools</h1></div> +<div class="elggtoolbar_header"><h1><?php echo(elgg_echo('tools:yours')); ?></h1></div> <ul class="drawers"> <?php -
+ $key = 0; foreach($menu as $item) { @@ -51,7 +51,7 @@ ?> </li> -<?php
+<?php $key++; } @@ -64,21 +64,21 @@ <?php } -
- if (in_array(get_context(),$contexts)) {
+ + if (in_array(get_context(),$contexts)) { $key = array_search(get_context(),$contexts); ?> -<script language="javascript">
- $(document).ready(function(){
- $('h2#nav_<?php echo $contexts[$key]; ?>').click();
- });
-</script>
-
-
-<?php
-
- }
-
+<script language="javascript"> + $(document).ready(function(){ + $('h2#nav_<?php echo $contexts[$key]; ?>').click(); + }); +</script> + + +<?php + + } + ?>
\ No newline at end of file |