CPG-Nuke source documentation ⇒ CPG Dragonfly™ CMS
Files - Classes
  includes/functions/language.php
properties
functions
lang_selectbox

string lang_selectbox(string $current, string $fieldname, boolean $all)

Returns a language <select> dropdown to use anywhere in the output.

Arguments

  • $current

    current language for example: english

  • $fieldname [optional, default value = 'alanguage']

    the name for the <select> tag

  • $all [optional, default value = true]

    also show the _ALL languages option