当前位置:Gxlcms > PHP教程 > Drupal7导航条

Drupal7导航条

时间:2021-07-01 10:21:17 帮助过:19人阅读

可输出二级子菜单
  1. if (module_exists('i18n_menu')) {
  2. $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
  3. } else {
  4. $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu'));
  5. }
  6. print drupal_render($main_menu_tree);
  7. endif; ?>

人气教程排行