* * This program 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. */ /** * Smarty {xla} function plugin * * Type: function
* Name: xla
* Purpose: translate in OpenEMR and escape for html attr - Smarty templates
* * Examples: * * {xla t="some words"} * * @param array * @param Smarty */ function smarty_function_xla($params, &$smarty) { if (empty($params['t'])) { $smarty->trigger_error("xk: missing 't' parameter"); return; } else { $translate = $params['t']; } echo xla($translate); }