mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
handle extension conf parameters of type 'date'
This commit is contained in:
parent
929c93fdb9
commit
2213ea7e29
|
@ -59,7 +59,7 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
||||||
$class = 'input-medium';
|
$class = 'input-medium';
|
||||||
else
|
else
|
||||||
$class = 'input-small';
|
$class = 'input-small';
|
||||||
$html .= '<input '.($type=='password' ? 'type="password"' : ($type=='number' ? 'type="number"' : 'type="text"')).' class="form-control '.$class.'" name="'.$name.'" value="'.$value.'" placeholder="'.$placeholder.'"/>';
|
$html .= '<input '.($type=='password' ? 'type="password"' : ($type=='number' ? 'type="number"' : ($type=='color' ? 'type="color"' : 'type="text"'))).' class="form-control '.$class.'" name="'.$name.'" value="'.$value.'" placeholder="'.$placeholder.'"/>';
|
||||||
}
|
}
|
||||||
return $html;
|
return $html;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
@ -685,6 +685,12 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk))
|
||||||
case 'hook':
|
case 'hook':
|
||||||
echo $this->callHook('showConfig', $confkey, $extname, $extconf);
|
echo $this->callHook('showConfig', $confkey, $extname, $extconf);
|
||||||
break;
|
break;
|
||||||
|
case "date":
|
||||||
|
$this->formField(
|
||||||
|
null,
|
||||||
|
$this->getDateChooser((isset($settings->_extensions[$extname][$confkey]) ? getReadableDate($settings->_extensions[$extname][$confkey]) : ''), "extensions[".$extname."][".$confkey."]", $this->params['session']->getLanguage())
|
||||||
|
);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$this->showTextField("extensions[".$extname."][".$confkey."]", isset($settings->_extensions[$extname][$confkey]) ? $settings->_extensions[$extname][$confkey] : '', isset($conf['type']) ? $conf['type'] : '', isset($conf['placeholder']) ? $conf['placeholder'] : '');
|
$this->showTextField("extensions[".$extname."][".$confkey."]", isset($settings->_extensions[$extname][$confkey]) ? $settings->_extensions[$extname][$confkey] : '', isset($conf['type']) ? $conf['type'] : '', isset($conf['placeholder']) ? $conf['placeholder'] : '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user