update
This commit is contained in:
24
core/plugins/Smarty/function.translate_to_title.php
Normal file
24
core/plugins/Smarty/function.translate_to_title.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?
|
||||
/*
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* File: function.translate.php
|
||||
* Type: function
|
||||
* Name: link
|
||||
* Purpose: zwraca przetlumaczony tekst
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
|
||||
function smarty_function_translate_to_title($param, &$smarty)
|
||||
{
|
||||
|
||||
$string = Dictionary::Translate($param['word']);
|
||||
$arrayTitle = Utils::TextToUpperArray($string, $param['lang']);
|
||||
|
||||
$ret = "<span style=\"font-family:'Times New Roman'; font-size:28px; color: red; margin-right: -2px; pading: 0px;\">{$arrayTitle[0]}</span>";
|
||||
$ret .= "<span style=\"font-family:'Times New Roman'; font-size:21px; margin-left: 0px; pading: 0px; letter-spacing: 1px;\">{$arrayTitle[1]}</span>";
|
||||
|
||||
return $ret;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user