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_show_flags

Return flag <ul><li>....</li></ul> list

Located at utils.php
Parameters summary
array $args is parameters list:
  • show ( string ) - choose what to display:
    default: text
  • text: show only language name
  • slug: show language slug
  • none: show no text
  • show_flag ( boolean ) - show flag?
    default: true
  • size ( string ) - flag size
    you can use constants:
    CML_FLAG_TINY ( 16x11 )
    CML_FLAG_SMALL ( 32x23 )
    default: CML_FLAG_TINY
    • tiny
    • small
  • class_name ( string ) - secondary classname to assign to the list default: "" generated >ul< list has primary class "cml_flags", with that parameter you can assign a secondary one.
  • echo ( boolean ) - If true print list, otherwise return string containing generated list
    default: true
  • linked ( boolean ) - If true flags link to current translation, false will link to homepage
    default: true
  • only_existings ( boolean ) - show only flags in which current page exists.
    default: false
  • queried ( boolean ) - use queried object instead of get_the_ID() or other methods, so output will be generated in according to main query, not current one. default: false
API documentation generated by ApiGen 2.8.0