diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-11 19:01:47 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-11 19:01:47 +0000 |
commit | 1af3b8e10022323769a7080532a9a89f907407c6 (patch) | |
tree | 0da1753381d797c4f14c6ae4f2e977c0d0731bbe /core/helpers | |
parent | f3d40c02ecdf061a21e877e03e6c91d9b6c4b2c9 (diff) |
Changes to the Menu.php:
1) separate the classes that are generated by the Menu class from what is used for the rendering. The classes that are generated are gMenu, gMenuElement, and gMenuDialog for the Menu, Menu_Element and MenuDialog classes respectively.
2) Changed the ui.init.js to add the appropriate rendering classes to the above classes. All gMenu elements have the sf-menu class added. All elements of class gMenuDialog have the gDialogLink class added.
3) Use Superfish for the menus so they now float properly.
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/core_block.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index d3c61fa8..779bb475 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -21,9 +21,7 @@ class core_block_Core { public static function head($theme) { $url = url::base(true); - $head[] = "<script>var base_url = \"$url\";</script>"; - $head[] = '<script src="' . url::file("core/js/menu.js") . '" type="text/javascript"></script>'; - return implode("\n", $head); + return "<script>var base_url = \"$url\";</script>\n"; } public static function page_bottom($theme) { |