diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-04 15:24:59 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-04 15:24:59 +0000 |
commit | da78f2cf03d4586845cc31c86e026661a5ae0fa1 (patch) | |
tree | b4840649f6db47df745a107c10764a03a3c31d15 /views/default/navigation/topbar_tools.php | |
parent | 43571d4d5381cc3e2a8ba3e05da6cb6982a1d960 (diff) | |
download | elgg-da78f2cf03d4586845cc31c86e026661a5ae0fa1.tar.gz elgg-da78f2cf03d4586845cc31c86e026661a5ae0fa1.tar.bz2 |
updates to toolbar menu fixes, error messages, owner block
git-svn-id: https://code.elgg.org/elgg/trunk@1683 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/topbar_tools.php')
-rw-r--r-- | views/default/navigation/topbar_tools.php | 130 |
1 files changed, 64 insertions, 66 deletions
diff --git a/views/default/navigation/topbar_tools.php b/views/default/navigation/topbar_tools.php index b6968d9ea..bb9021380 100644 --- a/views/default/navigation/topbar_tools.php +++ b/views/default/navigation/topbar_tools.php @@ -1,66 +1,64 @@ -<?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) {
-
-?>
-
-<ul id="tools_menu">
- <li><a href="#">Tools</a>
- <ul>
- <?php
-
- foreach($menu as $item) {
-
- echo "<li><a href=\"{$item->value}\">" . $item->name . "</a></li>";
-
- }
-
- ?>
- </ul>
- </li>
-</ul>
-
-<?php
-
- }
-
-?>
-
-<script type="text/javascript">
-function tools_menu(){
-$(" #tools_menu ul ").css({display: "none"}); // opera + ie fix
-$(" #tools_menu li").hover(function(){
- $(this).find('ul:first').css("display", "none");
- $(this).find('ul:first').slideDown("fast");
- $(this).parent().parent().parent().find("#tools_menu a").addClass('tools_menu_on');
-
- },function(){
- $(this).find('ul:first').slideUp("fast");
- $(this).parent().parent().parent().find("#tools_menu a").removeClass('tools_menu_on');
- });
-}
-
-
-
- $(document).ready(function(){
- tools_menu();
-});
-</script>
-
+<?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) { + +?> + +<ul id="tools_menu"> + <li><a href="#">Tools</a> + <ul> + <?php + + foreach($menu as $item) { + + echo "<li><a href=\"{$item->value}\">" . $item->name . "</a></li>"; + + } + + ?> + </ul> + </li> +</ul> + +<?php + + } + +?> + +<script type="text/javascript"> +function tools_menu(){ +$(" #tools_menu li").hover(function(){ + $(this).find('ul:first').slideDown("fast"); + $(this).parent().parent().parent().find("#tools_menu a").addClass('tools_menu_on'); + + },function(){ + $(this).find('ul:first').slideUp("fast"); + $(this).parent().parent().parent().find("#tools_menu a").removeClass('tools_menu_on'); + }); +} + + + + $(document).ready(function(){ + tools_menu(); +}); +</script> + |