Merge pull request #2044 from fabrixxm/issue_1249
User language setting is a setting and now is between settings in settings page
This commit is contained in:
commit
b7507a8f22
|
@ -27,7 +27,6 @@ function nav(&$a) {
|
||||||
|
|
||||||
$a->page['nav'] .= replace_macros($tpl, array(
|
$a->page['nav'] .= replace_macros($tpl, array(
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$langselector' => lang_selector(),
|
|
||||||
'$sitelocation' => $nav_info['sitelocation'],
|
'$sitelocation' => $nav_info['sitelocation'],
|
||||||
'$nav' => $nav_info['nav'],
|
'$nav' => $nav_info['nav'],
|
||||||
'$banner' => $nav_info['banner'],
|
'$banner' => $nav_info['banner'],
|
||||||
|
|
|
@ -161,3 +161,26 @@ function string_plural_select_default($n) {
|
||||||
return ($n != 1);
|
return ($n != 1);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return installed languages as associative array
|
||||||
|
* [
|
||||||
|
* lang => lang,
|
||||||
|
* ...
|
||||||
|
* ]
|
||||||
|
*/
|
||||||
|
function get_avaiable_languages() {
|
||||||
|
$lang_choices = array();
|
||||||
|
$langs = glob('view/*/strings.php'); /**/
|
||||||
|
|
||||||
|
if(is_array($langs) && count($langs)) {
|
||||||
|
if(! in_array('view/en/strings.php',$langs))
|
||||||
|
$langs[] = 'view/en/';
|
||||||
|
asort($langs);
|
||||||
|
foreach($langs as $l) {
|
||||||
|
$t = explode("/",$l);
|
||||||
|
$lang_choices[$t[1]] = $t[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $lang_choices;
|
||||||
|
}
|
||||||
|
|
|
@ -1738,50 +1738,6 @@ function unamp($s) {
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(! function_exists('lang_selector')) {
|
|
||||||
/**
|
|
||||||
* get html for language selector
|
|
||||||
* @global string $lang
|
|
||||||
* @return string
|
|
||||||
* @template lang_selector.tpl
|
|
||||||
*/
|
|
||||||
function lang_selector() {
|
|
||||||
global $lang;
|
|
||||||
|
|
||||||
$langs = glob('view/*/strings.php');
|
|
||||||
|
|
||||||
$lang_options = array();
|
|
||||||
$selected = "";
|
|
||||||
|
|
||||||
if(is_array($langs) && count($langs)) {
|
|
||||||
$langs[] = '';
|
|
||||||
if(! in_array('view/en/strings.php',$langs))
|
|
||||||
$langs[] = 'view/en/';
|
|
||||||
asort($langs);
|
|
||||||
foreach($langs as $l) {
|
|
||||||
if($l == '') {
|
|
||||||
$lang_options[""] = t('default');
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$ll = substr($l,5);
|
|
||||||
$ll = substr($ll,0,strrpos($ll,'/'));
|
|
||||||
$selected = (($ll === $lang && (x($_SESSION, 'language'))) ? $ll : $selected);
|
|
||||||
$lang_options[$ll]=$ll;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$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;
|
|
||||||
}}
|
|
||||||
|
|
||||||
|
|
||||||
if(! function_exists('return_bytes')) {
|
if(! function_exists('return_bytes')) {
|
||||||
/**
|
/**
|
||||||
* return number of bytes in size (K, M, G)
|
* return number of bytes in size (K, M, G)
|
||||||
|
|
12
index.php
12
index.php
|
@ -102,13 +102,13 @@ session_start();
|
||||||
* Language was set earlier, but we can over-ride it in the session.
|
* Language was set earlier, but we can over-ride it in the session.
|
||||||
* We have to do it here because the session was just now opened.
|
* We have to do it here because the session was just now opened.
|
||||||
*/
|
*/
|
||||||
|
if (x($_SESSION,'authenticated') && !x($_SESSION,'language')) {
|
||||||
if(array_key_exists('system_language',$_POST)) {
|
// we didn't loaded user data yet, but we need user language
|
||||||
if(strlen($_POST['system_language']))
|
$r = q("SELECT language FROM user WHERE uid=%d", intval($_SESSION['uid']));
|
||||||
$_SESSION['language'] = $_POST['system_language'];
|
$_SESSION['language'] = $lang;
|
||||||
else
|
if (count($r)>0) $_SESSION['language'] = $r[0]['language'];
|
||||||
unset($_SESSION['language']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
|
if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
|
||||||
$lang = $_SESSION['language'];
|
$lang = $_SESSION['language'];
|
||||||
load_translation_table($lang);
|
load_translation_table($lang);
|
||||||
|
|
|
@ -603,18 +603,7 @@ function admin_page_site_post(&$a){
|
||||||
function admin_page_site(&$a) {
|
function admin_page_site(&$a) {
|
||||||
|
|
||||||
/* Installed langs */
|
/* Installed langs */
|
||||||
$lang_choices = array();
|
$lang_choices = get_avaiable_languages();
|
||||||
$langs = glob('view/*/strings.php'); /**/
|
|
||||||
|
|
||||||
if(is_array($langs) && count($langs)) {
|
|
||||||
if(! in_array('view/en/strings.php',$langs))
|
|
||||||
$langs[] = 'view/en/';
|
|
||||||
asort($langs);
|
|
||||||
foreach($langs as $l) {
|
|
||||||
$t = explode("/",$l);
|
|
||||||
$lang_choices[$t[1]] = $t[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strlen(get_config('system','directory_submit_url')) AND
|
if (strlen(get_config('system','directory_submit_url')) AND
|
||||||
!strlen(get_config('system','directory'))) {
|
!strlen(get_config('system','directory'))) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ function navigation_content(&$a) {
|
||||||
$tpl = get_markup_template('navigation.tpl');
|
$tpl = get_markup_template('navigation.tpl');
|
||||||
return replace_macros($tpl, array(
|
return replace_macros($tpl, array(
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$langselector' => lang_selector(),
|
|
||||||
'$sitelocation' => $nav_info['sitelocation'],
|
'$sitelocation' => $nav_info['sitelocation'],
|
||||||
'$nav' => $nav_info['nav'],
|
'$nav' => $nav_info['nav'],
|
||||||
'$banner' => $nav_info['banner'],
|
'$banner' => $nav_info['banner'],
|
||||||
|
|
|
@ -386,6 +386,8 @@ function settings_post(&$a) {
|
||||||
$username = ((x($_POST,'username')) ? notags(trim($_POST['username'])) : '');
|
$username = ((x($_POST,'username')) ? notags(trim($_POST['username'])) : '');
|
||||||
$email = ((x($_POST,'email')) ? notags(trim($_POST['email'])) : '');
|
$email = ((x($_POST,'email')) ? notags(trim($_POST['email'])) : '');
|
||||||
$timezone = ((x($_POST,'timezone')) ? notags(trim($_POST['timezone'])) : '');
|
$timezone = ((x($_POST,'timezone')) ? notags(trim($_POST['timezone'])) : '');
|
||||||
|
$language = ((x($_POST,'language')) ? notags(trim($_POST['language'])) : '');
|
||||||
|
|
||||||
$defloc = ((x($_POST,'defloc')) ? notags(trim($_POST['defloc'])) : '');
|
$defloc = ((x($_POST,'defloc')) ? notags(trim($_POST['defloc'])) : '');
|
||||||
$openid = ((x($_POST,'openid_url')) ? notags(trim($_POST['openid_url'])) : '');
|
$openid = ((x($_POST,'openid_url')) ? notags(trim($_POST['openid_url'])) : '');
|
||||||
$maxreq = ((x($_POST,'maxreq')) ? intval($_POST['maxreq']) : 0);
|
$maxreq = ((x($_POST,'maxreq')) ? intval($_POST['maxreq']) : 0);
|
||||||
|
@ -532,7 +534,15 @@ function settings_post(&$a) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = q("UPDATE `user` SET `username` = '%s', `email` = '%s', `openid` = '%s', `timezone` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s', `notify-flags` = %d, `page-flags` = %d, `default-location` = '%s', `allow_location` = %d, `maxreq` = %d, `expire` = %d, `openidserver` = '%s', `def_gid` = %d, `blockwall` = %d, `hidewall` = %d, `blocktags` = %d, `unkmail` = %d, `cntunkmail` = %d WHERE `uid` = %d",
|
|
||||||
|
$r = q("UPDATE `user` SET `username` = '%s', `email` = '%s',
|
||||||
|
`openid` = '%s', `timezone` = '%s',
|
||||||
|
`allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s',
|
||||||
|
`notify-flags` = %d, `page-flags` = %d, `default-location` = '%s',
|
||||||
|
`allow_location` = %d, `maxreq` = %d, `expire` = %d, `openidserver` = '%s',
|
||||||
|
`def_gid` = %d, `blockwall` = %d, `hidewall` = %d, `blocktags` = %d,
|
||||||
|
`unkmail` = %d, `cntunkmail` = %d, `language` = '%s'
|
||||||
|
WHERE `uid` = %d",
|
||||||
dbesc($username),
|
dbesc($username),
|
||||||
dbesc($email),
|
dbesc($email),
|
||||||
dbesc($openid),
|
dbesc($openid),
|
||||||
|
@ -554,11 +564,15 @@ function settings_post(&$a) {
|
||||||
intval($blocktags),
|
intval($blocktags),
|
||||||
intval($unkmail),
|
intval($unkmail),
|
||||||
intval($cntunkmail),
|
intval($cntunkmail),
|
||||||
|
dbesc($language),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
if($r)
|
if($r)
|
||||||
info( t('Settings updated.') . EOL);
|
info( t('Settings updated.') . EOL);
|
||||||
|
|
||||||
|
// clear session language
|
||||||
|
unset($_SESSION['language']);
|
||||||
|
|
||||||
$r = q("UPDATE `profile`
|
$r = q("UPDATE `profile`
|
||||||
SET `publish` = %d,
|
SET `publish` = %d,
|
||||||
`name` = '%s',
|
`name` = '%s',
|
||||||
|
@ -985,6 +999,7 @@ function settings_content(&$a) {
|
||||||
$email = $a->user['email'];
|
$email = $a->user['email'];
|
||||||
$nickname = $a->user['nickname'];
|
$nickname = $a->user['nickname'];
|
||||||
$timezone = $a->user['timezone'];
|
$timezone = $a->user['timezone'];
|
||||||
|
$language = $a->user['language'];
|
||||||
$notify = $a->user['notify-flags'];
|
$notify = $a->user['notify-flags'];
|
||||||
$defloc = $a->user['default-location'];
|
$defloc = $a->user['default-location'];
|
||||||
$openid = $a->user['openid'];
|
$openid = $a->user['openid'];
|
||||||
|
@ -1168,6 +1183,8 @@ function settings_content(&$a) {
|
||||||
else
|
else
|
||||||
$public_post_link = '&public=1';
|
$public_post_link = '&public=1';
|
||||||
|
|
||||||
|
/* Installed langs */
|
||||||
|
$lang_choices = get_avaiable_languages();
|
||||||
|
|
||||||
$o .= replace_macros($stpl, array(
|
$o .= replace_macros($stpl, array(
|
||||||
'$ptitle' => t('Account Settings'),
|
'$ptitle' => t('Account Settings'),
|
||||||
|
@ -1190,6 +1207,7 @@ function settings_content(&$a) {
|
||||||
'$username' => array('username', t('Full Name:'), $username,''),
|
'$username' => array('username', t('Full Name:'), $username,''),
|
||||||
'$email' => array('email', t('Email Address:'), $email, '', '', '', 'email'),
|
'$email' => array('email', t('Email Address:'), $email, '', '', '', 'email'),
|
||||||
'$timezone' => array('timezone_select' , t('Your Timezone:'), select_timezone($timezone), ''),
|
'$timezone' => array('timezone_select' , t('Your Timezone:'), select_timezone($timezone), ''),
|
||||||
|
'$language' => array('language', t('Your Language:'), $language, t('Set the language we use to show you friendica interface and to send you emails'), $lang_choices),
|
||||||
'$defloc' => array('defloc', t('Default Post Location:'), $defloc, ''),
|
'$defloc' => array('defloc', t('Default Post Location:'), $defloc, ''),
|
||||||
'$allowloc' => array('allow_location', t('Use Browser Location:'), ($a->user['allow_location'] == 1), ''),
|
'$allowloc' => array('allow_location', t('Use Browser Location:'), ($a->user['allow_location'] == 1), ''),
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" >lang</div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v|escape:'html'}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -27,6 +27,7 @@
|
||||||
{{include file="field_input.tpl" field=$email}}
|
{{include file="field_input.tpl" field=$email}}
|
||||||
{{include file="field_password.tpl" field=$password4}}
|
{{include file="field_password.tpl" field=$password4}}
|
||||||
{{include file="field_custom.tpl" field=$timezone}}
|
{{include file="field_custom.tpl" field=$timezone}}
|
||||||
|
{{include file="field_select.tpl" field=$language}}
|
||||||
{{include file="field_input.tpl" field=$defloc}}
|
{{include file="field_input.tpl" field=$defloc}}
|
||||||
{{include file="field_checkbox.tpl" field=$allowloc}}
|
{{include file="field_checkbox.tpl" field=$allowloc}}
|
||||||
|
|
||||||
|
|
|
@ -3394,11 +3394,6 @@ aside input[type='text'] {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language-selector {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#group-members {
|
#group-members {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
@ -3576,20 +3571,6 @@ aside input[type='text'] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: fixed;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
opacity: 0.2;
|
|
||||||
filter:alpha(opacity=20);
|
|
||||||
}
|
|
||||||
|
|
||||||
#lang-select-icon:hover {
|
|
||||||
opacity: 1;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notif-image {
|
.notif-image {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
|
@ -3601,7 +3582,6 @@ aside input[type='text'] {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugins settings
|
* Plugins settings
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" ></div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -27,6 +27,7 @@
|
||||||
{{include file="field_input.tpl" field=$email}}
|
{{include file="field_input.tpl" field=$email}}
|
||||||
{{include file="field_password.tpl" field=$password4}}
|
{{include file="field_password.tpl" field=$password4}}
|
||||||
{{include file="field_custom.tpl" field=$timezone}}
|
{{include file="field_custom.tpl" field=$timezone}}
|
||||||
|
{{include file="field_select.tpl" field=$language}}
|
||||||
{{include file="field_input.tpl" field=$defloc}}
|
{{include file="field_input.tpl" field=$defloc}}
|
||||||
{{include file="field_checkbox.tpl" field=$allowloc}}
|
{{include file="field_checkbox.tpl" field=$allowloc}}
|
||||||
|
|
||||||
|
|
|
@ -125,8 +125,6 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify,nav #nav-notifications-linkm
|
||||||
#notify-update{background-position:-60px 0px;}
|
#notify-update{background-position:-60px 0px;}
|
||||||
#home-update{background-position:-90px 0px;}
|
#home-update{background-position:-90px 0px;}
|
||||||
#intro-update{background-position:-120px 0px;}
|
#intro-update{background-position:-120px 0px;}
|
||||||
#lang-select-icon{cursor:pointer;position:fixed;left:28px;bottom:6px;z-index:10;}
|
|
||||||
#language-selector{position:fixed;bottom:2px;left:52px;z-index:10;}
|
|
||||||
.menu-popup{position:absolute;display:none;background:white;color:#2e2f2e;margin:0px;padding:0px;font-size:small;line-height:1.2;border:3px solid #88a9d2;-o-border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;z-index:100000;-moz-box-shadow:5px 5px 5px 0px #111111;-o-box-shadow:5px 5px 5px 0px #111111;-webkit-box-shadow:5px 5px 5px 0px #111111;-ms-box-shadow:5px 5px 5px 0px #111111;box-shadow:5px 5px 5px 0px #111111;}.menu-popup a{display:block;color:#2e2f2e;padding:5px 10px;text-decoration:none;}.menu-popup a:hover{color:#eeeecc;background-color:#88a9d2;}
|
.menu-popup{position:absolute;display:none;background:white;color:#2e2f2e;margin:0px;padding:0px;font-size:small;line-height:1.2;border:3px solid #88a9d2;-o-border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;z-index:100000;-moz-box-shadow:5px 5px 5px 0px #111111;-o-box-shadow:5px 5px 5px 0px #111111;-webkit-box-shadow:5px 5px 5px 0px #111111;-ms-box-shadow:5px 5px 5px 0px #111111;box-shadow:5px 5px 5px 0px #111111;}.menu-popup a{display:block;color:#2e2f2e;padding:5px 10px;text-decoration:none;}.menu-popup a:hover{color:#eeeecc;background-color:#88a9d2;}
|
||||||
.menu-popup .menu-sep{border-top:1px solid #4e4f4e;}
|
.menu-popup .menu-sep{border-top:1px solid #4e4f4e;}
|
||||||
.menu-popup li{float:none;overflow:auto;height:auto;display:block;}.menu-popup li img{float:left;width:16px;height:16px;padding-right:5px;}
|
.menu-popup li{float:none;overflow:auto;height:auto;display:block;}.menu-popup li img{float:left;width:16px;height:16px;padding-right:5px;}
|
||||||
|
|
|
@ -798,19 +798,7 @@ nav #nav-notifications-linkmenu {
|
||||||
#intro-update {
|
#intro-update {
|
||||||
background-position: -120px 0px;
|
background-position: -120px 0px;
|
||||||
}
|
}
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: fixed;
|
|
||||||
left: 28px;
|
|
||||||
bottom: 6px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
#language-selector {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 2px;
|
|
||||||
left: 52px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
.menu-popup {
|
.menu-popup {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -125,8 +125,6 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify,nav #nav-notifications-linkm
|
||||||
#notify-update{background-position:-60px 0px;}
|
#notify-update{background-position:-60px 0px;}
|
||||||
#home-update{background-position:-90px 0px;}
|
#home-update{background-position:-90px 0px;}
|
||||||
#intro-update{background-position:-120px 0px;}
|
#intro-update{background-position:-120px 0px;}
|
||||||
#lang-select-icon{cursor:pointer;position:fixed;left:28px;bottom:6px;z-index:10;}
|
|
||||||
#language-selector{position:fixed;bottom:2px;left:52px;z-index:10;}
|
|
||||||
.menu-popup{position:absolute;display:none;background:white;color:#111111;margin:0px;padding:0px;font-size:small;line-height:1.2;border:3px solid #3465a4;-o-border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;z-index:100000;-moz-box-shadow:5px 5px 5px 0px #111111;-o-box-shadow:5px 5px 5px 0px #111111;-webkit-box-shadow:5px 5px 5px 0px #111111;-ms-box-shadow:5px 5px 5px 0px #111111;box-shadow:5px 5px 5px 0px #111111;}.menu-popup a{display:block;color:#111111;padding:5px 10px;text-decoration:none;}.menu-popup a:hover{color:#eeeeec;background-color:#3465a4;}
|
.menu-popup{position:absolute;display:none;background:white;color:#111111;margin:0px;padding:0px;font-size:small;line-height:1.2;border:3px solid #3465a4;-o-border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;z-index:100000;-moz-box-shadow:5px 5px 5px 0px #111111;-o-box-shadow:5px 5px 5px 0px #111111;-webkit-box-shadow:5px 5px 5px 0px #111111;-ms-box-shadow:5px 5px 5px 0px #111111;box-shadow:5px 5px 5px 0px #111111;}.menu-popup a{display:block;color:#111111;padding:5px 10px;text-decoration:none;}.menu-popup a:hover{color:#eeeeec;background-color:#3465a4;}
|
||||||
.menu-popup .menu-sep{border-top:1px solid #4e4f4e;}
|
.menu-popup .menu-sep{border-top:1px solid #4e4f4e;}
|
||||||
.menu-popup li{float:none;overflow:auto;height:auto;display:block;}.menu-popup li img{float:left;width:16px;height:16px;padding-right:5px;}
|
.menu-popup li{float:none;overflow:auto;height:auto;display:block;}.menu-popup li img{float:left;width:16px;height:16px;padding-right:5px;}
|
||||||
|
|
|
@ -799,19 +799,7 @@ nav #nav-notifications-linkmenu {
|
||||||
#intro-update {
|
#intro-update {
|
||||||
background-position: -120px 0px;
|
background-position: -120px 0px;
|
||||||
}
|
}
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: fixed;
|
|
||||||
left: 28px;
|
|
||||||
bottom: 6px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
#language-selector {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 2px;
|
|
||||||
left: 52px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
.menu-popup {
|
.menu-popup {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" ></div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -2713,12 +2713,6 @@ aside input[type='text'] {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language-selector {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#group-members {
|
#group-members {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
@ -2888,19 +2882,6 @@ aside input[type='text'] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
opacity: 0.2;
|
|
||||||
filter:alpha(opacity=20);
|
|
||||||
}
|
|
||||||
|
|
||||||
#lang-select-icon:hover {
|
|
||||||
opacity: 1;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notif-image {
|
.notif-image {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" ></div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -2493,11 +2493,6 @@ aside input[type='text'] {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language-selector {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#group-members {
|
#group-members {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
@ -2668,19 +2663,6 @@ aside input[type='text'] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
opacity: 0.2;
|
|
||||||
filter:alpha(opacity=20);
|
|
||||||
}
|
|
||||||
|
|
||||||
#lang-select-icon:hover {
|
|
||||||
opacity: 1;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notif-image {
|
.notif-image {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
|
|
@ -3389,11 +3389,6 @@ aside input[type='text'] {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language-selector {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#group-members {
|
#group-members {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
@ -3570,20 +3565,6 @@ aside input[type='text'] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: fixed;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
opacity: 0.2;
|
|
||||||
filter:alpha(opacity=20);
|
|
||||||
}
|
|
||||||
|
|
||||||
#lang-select-icon:hover {
|
|
||||||
opacity: 1;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notif-image {
|
.notif-image {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" ></div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -27,6 +27,7 @@
|
||||||
{{include file="field_input.tpl" field=$email}}
|
{{include file="field_input.tpl" field=$email}}
|
||||||
{{include file="field_password.tpl" field=$password4}}
|
{{include file="field_password.tpl" field=$password4}}
|
||||||
{{include file="field_custom.tpl" field=$timezone}}
|
{{include file="field_custom.tpl" field=$timezone}}
|
||||||
|
{{include file="field_select.tpl" field=$language}}
|
||||||
{{include file="field_input.tpl" field=$defloc}}
|
{{include file="field_input.tpl" field=$defloc}}
|
||||||
{{include file="field_checkbox.tpl" field=$allowloc}}
|
{{include file="field_checkbox.tpl" field=$allowloc}}
|
||||||
|
|
||||||
|
|
|
@ -3159,12 +3159,6 @@ aside input[type='text'] {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language-selector {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#group-members {
|
#group-members {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
@ -3351,19 +3345,6 @@ aside input[type='text'] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
opacity: 0.2;
|
|
||||||
filter:alpha(opacity=20);
|
|
||||||
}
|
|
||||||
|
|
||||||
#lang-select-icon:hover {
|
|
||||||
opacity: 1;
|
|
||||||
filter:alpha(opacity=100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notif-image {
|
.notif-image {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" ></div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -575,19 +575,7 @@ ul#user-menu-popup li a.nav-sep {
|
||||||
background-position: 0px 0px;
|
background-position: 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
bottom: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
left: 25px;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
#language-selector {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 2px;
|
|
||||||
left: 55px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =================== */
|
/* =================== */
|
||||||
/* = System Messages = */
|
/* = System Messages = */
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
<div id="lang-select-icon" class="icon s22 language" title="{{$title}}" onclick="openClose('language-selector');" ></div>
|
|
||||||
<div id="language-selector" style="display: none;" >
|
|
||||||
<form action="#" method="post" >
|
|
||||||
<select name="system_language" onchange="this.form.submit();" >
|
|
||||||
{{foreach $langs.0 as $v=>$l}}
|
|
||||||
<option value="{{$v}}" {{if $v==$langs.1}}selected="selected"{{/if}}>{{$l}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -388,18 +388,7 @@ ul#user-menu-popup li a.nav-sep { border-top: 1px solid #989898; border-style:in
|
||||||
#intro-update { background-position: 0px -84px; }
|
#intro-update { background-position: 0px -84px; }
|
||||||
#home-update { background-position: 0px 0px; }
|
#home-update { background-position: 0px 0px; }
|
||||||
|
|
||||||
#lang-select-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
left: 5px;
|
|
||||||
top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#language-selector {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =================== */
|
/* =================== */
|
||||||
/* = System Messages = */
|
/* = System Messages = */
|
||||||
|
|
Loading…
Reference in a new issue