99a100,110
> $menu = menu_get_menu();
>   $menus = array('' => 'None: Define Manually Below');
>   foreach ($menu['items'][0]['children'] as $choice) {
>     if ($choice > 1) {
>       // Don't use menu 1 (navigation)
>       $menus = $menus + array($choice => $menu['visible'][$choice]['title']);
>     }
>   }
>   
>   $form .= form_select('Use Menu', 'phptemplate_menu_links', variable_get('phptemplate_menu_links', ''), $menus, $description = 'This will allow the secondary links to change depending on what primary link is active. It will override any links defined below.');
> 
155a167,187
>  
>   if (variable_get('phptemplate_menu_links', '')) { 
>     $pid = variable_get('phptemplate_menu_links', '');
>     $menu = menu_get_menu();
>     if (isset($menu['visible'][$pid]) && $menu['visible'][$pid]['children']) {
>       foreach ($menu['visible'][$pid]['children'] as $mid) {
>         $style = (count($menu['visible'][$mid]['children']) ? ((menu_in_active_trail($mid) || ($menu['visible'][$mid]['type'] & MENU_EXPANDED))  ? 'expanded' : 'collapsed') : 'leaf'); 
>         $style .= (drupal_get_normal_path($menu['items'][$mid]['path']) == $_GET['q']) ? ' active' : ''; 
>         $links['primary'][] = "<li class=\"$style\">".theme('menu_item', $mid).'</li>';
>         if (menu_in_active_trail($mid)) {
>           if (isset($menu['visible'][$mid]) && $menu['visible'][$mid]['children']) {
>             foreach ($menu['visible'][$mid]['children'] as $sid) {
>               $sublink = (drupal_get_normal_path($menu['items'][$sid]['path']) == $_GET['q']) ? '<li class="active">' : '<li>';
>               $links['secondary'][] = $sublink.theme('menu_item', $sid).'</li>';
>             }
>           }
>         }
>       }
>     }
>   }
>   else {
171c203
<           $links[$type][] = l($value['text'][$i], $value['link'][$i], $attributes);
---
>           $links[$type][] = '<li>'.l($value['text'][$i], $value['link'][$i], $attributes).'</li>';
