[support] How to theme a menu ?

Michel Morelli michel at ziobuddalabs.it
Wed Sep 9 08:42:48 UTC 2009


Ramon Vilar Gavaldà ha scritto:
> Hi Michel
> Can you attach or copy your theme function?
>
> Ramon
>
>   
function spaziocomo_menu_item_link2($link) {
  switch ($link['menu_name']) {
    case 'menu-internalmenu':
      return "<li>".l(check_plain($link['link_title']), 
$link['link_path'])."</li>";
      break;

    default:
      return l($link['title'], $link['href'], $link['localized_options']);
      break;
  }
}

Note that I have changed the name in ...link2() because of the problem 
of the two <li>.

-- 
Michel 'ZioBudda' Morelli                       michel at ziobuddalabs.net
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ziodrupal.net       			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at ziobuddalabs.it



More information about the support mailing list