Procedural File: function.switch_language.php

Source Location: /CORE/addon/smarty/plugins/function.switch_language.php

Page Details

BIGACE - a PHP and MySQL based Web CMS.

Copyright (C) Kevin Papst.

BIGACE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author:  Kevin Papst
Version:  $Id: function.switch_language.php,v 1.13 2009/02/27 23:13:28 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License
Functions
smarty_function_switch_language  [line 41]

void smarty_function_switch_language( $params, &$smarty  )

Returns the configured Languages as Flag images with a link to switch the session language

Parameter:

  • languages = comma separated list of locales (required!)
  • directory = where the images are taken from (optional)
  • hideActive = do not show active language link (default false)
  • images = if set to false the language names will be displayed (default true)
  • locale = the locale to display the language names
  • delimiter = the delimiter between the passed locales
  • spacer = the spacer between the languages
  • alt = the alt attribute for the images (one for all)
  • altexts = delimiter separated list of alt texts for the images (order of text must be order as given in languages parameter)
  • title = title attributes for the links
  • id = menu ID if you don't want to link to the current page
  • css = css class to be used

Parameters:
   $params: 
   &$smarty: 


[ Top ]