wb-archiv283/branches/2.8.x/wb/include/quickSkin_alpha/_lib/qx/qx_WB_TXT.php @ 1585
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* QuickSkin Extension WB_TXT
|
4 |
* This function will replace the string with the value of WebsiteBaker CMS's $TEXT[] array
|
5 |
*
|
6 |
* Usage Example:
|
7 |
* in Template use:{WB_TXT:"SAVE"}
|
8 |
* returns the translated string
|
9 |
*
|
10 |
* @author WebsiteBaker Org e.V.
|
11 |
*
|
12 |
*/
|
13 |
function qx_WB_TXT ( $var ) { |
14 |
$LANG_ARRAY = $GLOBALS['TEXT']; |
15 |
$ret_val = isset($LANG_ARRAY[$var]) ? $LANG_ARRAY[$var] : ('<span style="color:#777">'.$var.'</span>'); |
16 |
return $ret_val; |
17 |
}
|