public static function getVars()
 {
     global $Smarty;
     if (!isset($Smarty)) {
         STemplate::create();
     }
     return $Smarty->get_template_vars();
 }