From f19cc1e5d34c95188f03e2480c6eaf4e1f2bb40c Mon Sep 17 00:00:00 2001
From: discipolo <discipolo@105174.no-reply.drupal.org>
Date: Sat, 20 Jul 2013 18:22:45 +0200
Subject: [PATCH] add link title as class - no option, no alphanumerics,
 withcolons

---
 superfish.module | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/superfish.module b/superfish.module
index a460641..4c1a273 100644
--- a/superfish.module
+++ b/superfish.module
@@ -1740,6 +1740,8 @@ function theme_superfish_build($variables) {
 
     if (!isset($menu_item['link']['hidden']) || $menu_item['link']['hidden'] == 0) {
       $item_class[] = ($trail && in_array($mlid, $trail)) ? 'active-trail' : '';
+      $title_id = strtolower(strip_tags($menu_item['link']['link_title']));
+      $item_class[] =  $title_id;
 
       // Add helper classes to the menu items and hyperlinks.
       $settings['firstlast'] = ($settings['dfirstlast'] == 1 && $total_children == 1) ? 0 : $settings['firstlast'];
@@ -2025,4 +2027,4 @@ function theme_superfish_menu_item_link($variables) {
   $menu_item = $variables['menu_item'];
   $link_options = $variables['link_options'];
   return l($menu_item['link']['title'], $menu_item['link']['href'], $link_options);
-}
\ No newline at end of file
+}
-- 
1.8.1.4

