mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
753d808d2a
|
@ -1187,7 +1187,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
function formField($title, $value, $params=array()) { /* {{{ */
|
function formField($title, $value, $params=array()) { /* {{{ */
|
||||||
if($title !== null) {
|
if($title !== null) {
|
||||||
echo "<div class=\"control-group\">";
|
echo "<div class=\"control-group\">";
|
||||||
echo " <label class=\"control-label\"".(!empty($params['help']) ? " title=\"".$params['help']."\" style=\"cursor: help;\"" : "").">".$title.":</label>";
|
echo " <label class=\"control-label\"".(!empty($params['help']) ? " title=\"".$params['help']."\" style=\"cursor: help;\"" : "").(!empty($value['id']) ? ' for="'.$value['id'].'"' : '').">".$title.":</label>";
|
||||||
echo " <div class=\"controls\">";
|
echo " <div class=\"controls\">";
|
||||||
}
|
}
|
||||||
if(isset($params['field_wrap'][0]))
|
if(isset($params['field_wrap'][0]))
|
||||||
|
|
|
@ -148,27 +148,35 @@ $(document).ready( function() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($enableLanguageSelector) {
|
if($enableLanguageSelector) {
|
||||||
$html = "<select id=\"languageselector\" class=\"form-control\" name=\"lang\">";
|
$options = array();
|
||||||
$html .= "<option value=\"\">-";
|
$options[] = array('', '-');
|
||||||
foreach ($languages as $currLang) {
|
foreach ($languages as $currLang) {
|
||||||
$html .= "<option value=\"".$currLang."\">".getMLText($currLang)."</option>";
|
$options[] = array($currLang, getMLText($currLang));
|
||||||
}
|
}
|
||||||
$html .= "</select>";
|
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("language"),
|
getMLText("language"),
|
||||||
$html
|
array(
|
||||||
|
'element'=>'select',
|
||||||
|
'name'=>'lang',
|
||||||
|
'id'=>'languageselector',
|
||||||
|
'options'=>$options
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($enableThemeSelector) {
|
if($enableThemeSelector) {
|
||||||
$html = "<select id=\"themeselector\" class=\"form-control\" name=\"sesstheme\">";
|
$options = array();
|
||||||
$html .= "<option value=\"\">-";
|
$options[] = array('', '-');
|
||||||
foreach ($themes as $currTheme) {
|
foreach ($themes as $currTheme) {
|
||||||
$html .= "<option value=\"".$currTheme."\">".$currTheme;
|
$options[] = array($currTheme, $currTheme);
|
||||||
}
|
}
|
||||||
$html .= "</select>";
|
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("theme"),
|
getMLText("theme"),
|
||||||
$html
|
array(
|
||||||
|
'element'=>'select',
|
||||||
|
'name'=>'sesstheme',
|
||||||
|
'id'=>'themeselector',
|
||||||
|
'options'=>$options
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->formSubmit(getMLText('submit_login'));
|
$this->formSubmit(getMLText('submit_login'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user