/**
 * Smarty {static_metas} function plugin
 *
 * Type:     function
 * Name:     static_metas
 * Date:     January, 2010
 * Purpose:  Ajoute une métas statique
 * Examples: {static_metas param=""}
 * Output:   
 * @link 
 * @author   Gerits Aurelien
 * @version  1.1
 * @param array
 * @param Smarty
 * @return string
 */
function smarty_function_static_metas($params, $template)
{
    $param = !empty($params['param']) ? $params['param'] : "";
    $dynamic = $params['dynamic'];
    if (!isset($param)) {
        trigger_error("config: missing 'param' parameter");
        return;
    }
    if ($param == null) {
        if (empty($dynamic)) {
            $seo = magixglobal_model_system::extract_domain();
        } else {
            $seo = $dynamic;
        }
    } elseif ($param != null) {
        $seo = $param;
    }
    return magixcjquery_form_helpersforms::inputClean($seo);
}