Initial commit

This commit is contained in:
Némunaire 2013-10-09 15:40:23 +02:00
commit 998d011cd3
233 changed files with 36893 additions and 0 deletions

View file

@ -0,0 +1,33 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {text} function plugin
*
* Type: function<br>
* Name: text<br>
* @author Némunaire <nemunaire@gmail.com>
*/
function smarty_function_text($params, &$template)
{
if (empty($params["lang"]))
{
if (isset($params['assign']))
$template->assign($params['assign'], Lang::getText($params["file"], $params["path"]));
else
return Lang::getText($params["file"], $params["path"]);
}
else
{
if (isset($params['assign']))
$template->assign($params['assign'], Lang::getText($params["file"], $params["path"], $params["lang"]));
else
return Lang::getText($params["file"], $params["path"], $params["lang"]);
}
}
?>