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
  • Class
  • Tree

Overview

Classes summary
CMLLanguage This class provide information about configured languages
CMLPost This class is used to get/set post translation/language or get language by its id
CMLTranslations This class is used to get and store custom translations in CECEPPA_ML_TRANSLATIONS table.
CMLUtils utility class
Functions summary
cml_dropdown_langs Print html dropdown list with all enabled languages
cml_get_browser_lang grab browser language
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.
cml_get_notice return post/page notice in selected language
cml_get_the_link return link of current page in according to selected $language, so if $result != current language this function will return its translation link.
cml_is_homepage Check if current url ( or $url ) is the homepage
cml_show_flags Return flag <ul><li>....</li></ul> list
API documentation generated by ApiGen 2.8.0