diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-04-16 10:55:32 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-04-16 10:55:32 +0200 |
commit | 09225a41ec7135031a4c0304b8dcdccd45904939 (patch) | |
tree | d751cfdae71b8c43bee39f785b890ead89f8d812 /program/steps/settings/func.inc | |
parent | 489409f30f2495a1dff43ead9d201a4b28cdbe82 (diff) |
Add option to place signature at bottom of the quoted text even in top-posting mode [sig_below]
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r-- | program/steps/settings/func.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 46aed3019..c763dd39a 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -845,6 +845,20 @@ function rcmail_user_prefs($current = null) ); } + if (!isset($no_override['sig_below'])) { + if (!$current) { + continue 2; + } + + $field_id = 'rcmfd_sig_below'; + $input = new html_checkbox(array('name' => '_sig_below', 'id' => $field_id, 'value' => 1)); + + $blocks['sig']['options']['sig_below'] = array( + 'title' => html::label($field_id, rcube::Q($RCMAIL->gettext('sigbelow'))), + 'content' => $input->show($RCMAIL->config->get('sig_below') ? 1 : 0), + ); + } + if (!isset($no_override['strip_existing_sig'])) { if (!$current) { continue 2; |