From: Fabio Comuni Date: Fri, 13 Apr 2012 09:56:21 +0000 (+0200) Subject: move html out of lang_selector() and new template lang_selector.tpl X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4496d075e50c7dd8bd3506bac5d97ed2a913ab86;p=friendica.git move html out of lang_selector() and new template lang_selector.tpl --- diff --git a/include/text.php b/include/text.php index 4ec59a6658..8c8db66a9e 100644 --- a/include/text.php +++ b/include/text.php @@ -1068,10 +1068,12 @@ function unamp($s) { if(! function_exists('lang_selector')) { function lang_selector() { global $lang; - $o = '
'; - $o .= ''; + + $tpl = get_markup_template("lang_selector.tpl"); + $o = replace_macros($tpl, array( + '$title' => t('Select an alternate language'), + '$langs' => array($lang_options, $selected), + + )); return $o; }} @@ -1510,4 +1517,4 @@ function fix_mce_lf($s) { $s = str_replace("\r\n","\n",$s); $s = str_replace("\n\n","\n",$s); return $s; -} \ No newline at end of file +} diff --git a/view/lang_selector.tpl b/view/lang_selector.tpl new file mode 100644 index 0000000000..b3a527b40f --- /dev/null +++ b/view/lang_selector.tpl @@ -0,0 +1,10 @@ +
lang
+