From 8311cba002dfcaf1836530b978f944f7228ac004 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 21 Sep 2011 17:00:50 +0200 Subject: Replaced Smarty with STE and started the backend. --- ratatoeskr/sys/init_ste.php | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ratatoeskr/sys/init_ste.php (limited to 'ratatoeskr/sys/init_ste.php') diff --git a/ratatoeskr/sys/init_ste.php b/ratatoeskr/sys/init_ste.php new file mode 100644 index 0000000..567a32b --- /dev/null +++ b/ratatoeskr/sys/init_ste.php @@ -0,0 +1,46 @@ +register_tag( + "l10n_replace", + function($ste, $params, $sub) + { + $content = $sub($ste); + foreach($params as $name => $replace) + $content = str_replace("[[$name]]", $replace, $content); + return $content; + } +); +$ste->register_tag( + "capitalize", + function($ste, $params, $sub) + { + return ucwords($sub($ste)); + } +); + +?> -- cgit v1.2.3-70-g09d2