Greetings!
I'm very new to Drupal. I've read many resources on this Drupal's website, read a few books, and Google anything else.
I'm trying to recreate a static site using Drupal 7 and am a bit stuck on the menu.
In the original site, there are five links--Home, Interactive Labs, Units, Support Materials, and Glossary. The Units link isn't really a link however but Drupal wasn't allowing me to add a non-link or a page that doesn't exist into my menu. It has three child lists--Microeconomics, Macroeconomics, and International. Each list has n-children. I figured out how to add a custom class to each <li> by using:
function econocize_menu_link(&$variables)
{
$element = $variables['element'];
$class = toCssNameFormat($element['#original_link']['link_title']);
$element['#attributes']['class'][] = 'menu-'.$class;
$submenu = '';
if($element['#below'])
{
$submenu = '<ul class="menu submenu submenu-'.$class.'">'.render($element['#below'])."</ul>";
}
$link = l($element['#title'], $element['#href'], $element['#localized_options']);
return '<li'.drupal_attributes($element['#attributes']).'>'.$link.$submenu."</li>\n";
}
which is a combination of different forum posts I already found and some of my own code.