Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file modifier.countryflag.php

Documentation is available at modifier.countryflag.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * Smarty plugin
  10.  * -------------------------------------------------------------
  11.  * Type:     modifier
  12.  * Name:     countryflag
  13.  * Purpose:  get countryflag for a given user
  14.  * -------------------------------------------------------------
  15.  */
  16. {
  17.   global $gBitSystem;
  18.   $flag $gBitSystem->getConfig('users_country','Other',$user);
  19.   return "<img alt='flag' src='".IMG_PKG_URL."flags/".$flag.".gif' />";
  20. }
  21.  
  22. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:09 +0000 by phpDocumentor 1.5.0-lsces