From e7a54ba0c99d35ec947beb3f0f02e6dd0964d72f Mon Sep 17 00:00:00 2001 From: silvio Date: Thu, 15 Oct 2009 14:45:14 -0300 Subject: CSS change and code cleanup --- jquery_drawer.module | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) (limited to 'jquery_drawer.module') diff --git a/jquery_drawer.module b/jquery_drawer.module index 2dcb707..7d3996a 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -135,11 +135,31 @@ function theme_jquery_drawer($menu_name, $mlid) { // Build the menus $output = jquery_drawer_build($menu); - $output .= ''; // TODO: remove this + + return $output; +} + +/** + * Build the Drawer. + * + * @ingroup themeable + */ +function jquery_drawer_build($menu) { + + $output = ''; $output .= '
'; $output .= '
'; - return $output; + } /** @@ -147,7 +167,7 @@ function theme_jquery_drawer($menu_name, $mlid) { * * @ingroup themeable */ -function jquery_drawer_build($menu) { +function jquery_drawer_show_items($menu) { global $_jquery_drawer_id; @@ -157,7 +177,7 @@ function jquery_drawer_build($menu) { $_jquery_drawer_id = 0; } else { - //$output = ''; return $output; } @@ -213,8 +233,8 @@ function theme_jquery_drawer_javascript() { * @ingroup themeable */ function theme_jquery_drawer_css() { - drupal_add_css(drupal_get_path('module', 'jquery_drawer') .'/style.css'); drupal_add_css(drupal_get_path('module', 'jquery_drawer') .'/jquery_drawer/drw/styles.css'); + drupal_add_css(drupal_get_path('module', 'jquery_drawer') .'/jquery_drawer.css'); } /** @@ -228,5 +248,10 @@ function theme_jquery_drawer_link($link) { } $link['attributes']['rel'] = 'drw'; - return l($link['title'], $link['href'], array('attributes' => array('rel' => 'drw'))); + + $output = '
  • '; + $output .= l($link['title'], $link['href'], array('attributes' => array('rel' => 'drw'))); + $output .= '
  • '; + + return $output; } -- cgit v1.2.3