David Carter
2013-05-29 52deb18d9646116114f9649c87ffc4f0bc378db1
program/steps/settings/func.inc
@@ -418,6 +418,17 @@
      );
    }
    // show checkbox to show email instead of name
    if (!isset($no_override['message_show_email'])) {
      $field_id = 'rcmfd_message_show_email';
      $input_msgshowemail = new html_checkbox(array('name' => '_message_show_email', 'id' => $field_id, 'value' => 1));
      $blocks['main']['options']['message_show_email'] = array(
        'title' => html::label($field_id, Q(rcube_label('showemail'))),
        'content' => $input_msgshowemail->show($config['message_show_email']?1:0),
      );
    }
    // show checkbox for HTML/plaintext messages
    if (!isset($no_override['prefer_html'])) {
      $field_id = 'rcmfd_htmlmsg';
@@ -653,14 +664,15 @@
    }
    if (!isset($no_override['default_font'])) {
      $field_id     = 'rcmfd_default_font';
      $fonts        = rcube_fontdefs();
      $default_font = $config['default_font'] ? $config['default_font'] : 'Verdana';
      $field_id = 'rcmfd_default_font';
      $fonts    = rcube_fontdefs();
      $selected = $config['default_font'];
      $select = '<select name="_default_font" id="'.$field_id.'">';
      $select .= '<option value=""' . (!$selected ? ' selected="selected"' : '') . '>---</option>';
      foreach ($fonts as $fname => $font)
        $select .= '<option value="'.$fname.'"'
          . ($fname == $default_font ? ' selected="selected"' : '')
          . ($fname == $selected ? ' selected="selected"' : '')
          . ' style=\'font-family: ' . $font . '\'>'
          . Q($fname) . '</option>';
      $select .= '</select>';
@@ -758,6 +770,19 @@
      'main' => array('name' => Q(rcube_label('mainoptions'))),
    );
    if (!isset($no_override['show_actual_foldernames'])) {
      $field_id = 'show_actual_foldernames';
      $input_show_actual_foldernames =
          new html_checkbox(array('name' => '_show_actual_foldernames',
                                  'id' => $field_id, 'value' => 1));
      $blocks['main']['options']['show_actul_foldernames'] = array(
        'title' => html::label($field_id,
                               Q(rcube_label('show_actual_foldernames'))),
        'content' => $input_show_actual_foldernames->show($config['show_actual_foldernames']?1:0),
      );
    }
    // Configure special folders
    if (!isset($no_override['default_folders'])) {
      // load folders list only when needed