mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
show a message if conf var is disabled, but do not hide it completely
This commit is contained in:
parent
8c130c06e4
commit
b0478bec3c
|
@ -115,18 +115,21 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
||||||
*/
|
*/
|
||||||
protected function showConfigText($title, $name, $type='', $placeholder='') { /* {{{ */
|
protected function showConfigText($title, $name, $type='', $placeholder='') { /* {{{ */
|
||||||
$settings = $this->params['settings'];
|
$settings = $this->params['settings'];
|
||||||
if(!$this->isVisible($name))
|
|
||||||
return;
|
|
||||||
?>
|
?>
|
||||||
<tr title="<?= getMLText($title."_desc") ?>">
|
<tr title="<?= getMLText($title."_desc") ?>">
|
||||||
<td><?= getMLText($title) ?>:</td>
|
<td><?= getMLText($title) ?>:</td>
|
||||||
<?php
|
<?php
|
||||||
if($type == 'array')
|
if($type == 'array')
|
||||||
$value = $settings->arrayToString($settings->{"_".$name});
|
$value = $settings->arrayToString($settings->{"_".$name});
|
||||||
else
|
else
|
||||||
$value = $settings->{"_".$name};
|
$value = $settings->{"_".$name};
|
||||||
|
echo " <td>";
|
||||||
|
if($this->isVisible($name))
|
||||||
|
$this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder);
|
||||||
|
else
|
||||||
|
echo getMLText('settings_conf_field_not_editable');
|
||||||
|
echo "</td>\n";
|
||||||
?>
|
?>
|
||||||
<td><?php $this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder); ?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user