Overview

Classes

  • CMLLanguage
  • CMLPost
  • CMLTranslations
  • CMLUtils

Functions

  • cml_dropdown_langs
  • cml_get_browser_lang
  • cml_get_menu
  • cml_get_notice
  • cml_get_the_link
  • cml_is_homepage
  • cml_show_flags
  • Overview
  • Function
  • Tree

Function cml_get_menu

return the id of menu to use in according to current language return value can be used as wp_nav_menu function.

The plugin automatically switch menu in according to current language, you can use this function if automatic switch doesn't works with your theme/framework or if you to force a theme.

Example: <?php;
$menu = cml_get_menu();
wp_nav_menu(array('theme_location' => $menu));
?>
Located at utils.php
API documentation generated by ApiGen 2.8.0