diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-13 20:25:10 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-13 20:25:10 +0000 |
commit | 6b581f4c0e7c4cf4017d0598c8c1b0a99dc31e93 (patch) | |
tree | 2da673cdc1557c9669c62a690cfd0436afc3312f /views/default/navigation | |
parent | 8411a3a27ed0e4fb112275c66860109723178eea (diff) | |
download | elgg-6b581f4c0e7c4cf4017d0598c8c1b0a99dc31e93.tar.gz elgg-6b581f4c0e7c4cf4017d0598c8c1b0a99dc31e93.tar.bz2 |
updated and new stuff pertaining to the customise panel, new jquery also
git-svn-id: https://code.elgg.org/elgg/trunk@923 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation')
-rw-r--r-- | views/default/navigation/toolbox.php | 147 |
1 files changed, 67 insertions, 80 deletions
diff --git a/views/default/navigation/toolbox.php b/views/default/navigation/toolbox.php index e98ccd934..7da992d7d 100644 --- a/views/default/navigation/toolbox.php +++ b/views/default/navigation/toolbox.php @@ -1,80 +1,67 @@ -<?php
-
- /**
- * Elgg standard toolbox
- * The standard user toolbox that displays a users menu options
- * 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');
-
- if (is_array($menu) && sizeof($menu) > 0) {
-
-?>
-<div class="elggtoolbar">
-<div class="elggtoolbar_header"><h1>Your tools</h1></div>
-<ul class="drawers">
-
-<?php
-
- foreach($menu as $item) {
-
-?>
-
- <li class="drawer">
- <h2 class="drawer-handle"><?php echo $item->name ?></h2>
-<?php
-
- if (sizeof($item->children) > 0 ) {
- echo "<ul>";
- foreach($item->children as $subitem) {
-?>
- <li>
- <a href="<?php echo $subitem->value ?>"><?php echo $subitem->name; ?></a>
- </li>
-<?php
- }
- echo "</ul>";
-
- }
-
-?>
- </li>
-
-<?php
-
- }
-
-?>
-
-</ul>
-</div><!-- /.elggtoolbar -->
-
-<?php
-
- }
-
-?>
-
-<script type="text/javascript">
-$(document).ready(function () {
- //$('li.drawer ul:not(:first)').hide();
- $('li.drawer ul').hide();
-
- $('h2.drawer-handle').click(function () {
- $('li.drawer ul:visible').slideUp('medium').prev().removeClass('open');
- $(this).addClass('open').next().slideDown('fast');
- return false;
- });
-});
-</script>
-
-
+<?php + + /** + * Elgg standard toolbox + * The standard user toolbox that displays a users menu options + * 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'); + + if (is_array($menu) && sizeof($menu) > 0) { + +?> +<div class="elggtoolbar"> +<div class="elggtoolbar_header"><h1>Your tools</h1></div> +<ul class="drawers"> + +<?php + + foreach($menu as $item) { + +?> + + <li class="drawer"> + <h2 class="drawer-handle"><?php echo $item->name ?></h2> +<?php + + if (sizeof($item->children) > 0 ) { + echo "<ul>"; + foreach($item->children as $subitem) { +?> + <li> + <a href="<?php echo $subitem->value ?>"><?php echo $subitem->name; ?></a> + </li> +<?php + } + echo "</ul>"; + + } + +?> + </li> + +<?php + + } + +?> + +</ul> +</div><!-- /.elggtoolbar --> + +<?php + + } + +?> + + |