aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/toolbox.php34
-rw-r--r--views/default/navigation/topbar_tools.php12
2 files changed, 23 insertions, 23 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
diff --git a/views/default/navigation/topbar_tools.php b/views/default/navigation/topbar_tools.php
index 18320d1b7..7a39a0540 100644
--- a/views/default/navigation/topbar_tools.php
+++ b/views/default/navigation/topbar_tools.php
@@ -17,17 +17,17 @@
//var_export($menu);
- if (is_array($menu) && sizeof($menu) > 0) {
- $alphamenu = array();
- foreach($menu as $item) {
- $alphamenu[$item->name] = $item;
- }
+ 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="#">Tools<!--[if IE 7]><!--></a><!--<![endif]-->
+ <li class="drop"><a href="#"><?php echo(elgg_echo('tools')); ?><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<?php