aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-26 13:59:30 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-26 13:59:30 +0000
commit547a686381738fcb93a16894a331d96cdfba6f82 (patch)
tree15ebc109ac17a9f9d189945527b6ed3a3bbb42e1 /views/default/navigation
parentabacefd475ad96223bf5733ac0ce4896814b2df0 (diff)
downloadelgg-547a686381738fcb93a16894a331d96cdfba6f82.tar.gz
elgg-547a686381738fcb93a16894a331d96cdfba6f82.tar.bz2
Closes #304: Thanks for the patch!
git-svn-id: https://code.elgg.org/elgg/trunk@2043 36083f99-b078-4883-b0ff-0f9b5a30f544
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