Aleksander Machniak
2013-05-31 3863a9d2c5515fe4c61c433503450531098358ec
program/steps/settings/func.inc
@@ -152,6 +152,8 @@
    $blocks = array(
      'main'    => array('name' => Q(rcube_label('mainoptions'))),
      'skin'    => array('name' => Q(rcube_label('skin'))),
      'browser' => array('name' => Q(rcube_label('browseroptions'))),
    );
    // language selection
@@ -263,8 +265,6 @@
        $field_id = 'rcmfd_skin';
        $input_skin = new html_radiobutton(array('name'=>'_skin'));
        $blocks['skin'] = array('name' => Q(rcube_label('skin')),);
        foreach($skins as $skin) {
          $thumbnail = "./skins/$skin/thumbnail.png";
          if (!is_file($thumbnail))
@@ -290,17 +290,27 @@
      }
    }
    // standard_windows option decides if new windows should be
    // opened as popups or standard windows (which can be handled by browsers as tabs)
    if (!isset($no_override['standard_windows'])) {
      $field_id = 'rcmfd_standard_windows';
      $checkbox = new html_checkbox(array('name' => '_standard_windows', 'id' => $field_id, 'value' => 1));
      $blocks['browser']['options']['standard_windows'] = array(
        'title' => html::label($field_id, Q(rcube_label('standardwindows'))),
        'content' => $checkbox->show($config['standard_windows']?1:0),
      );
    }
    $product_name = $RCMAIL->config->get('product_name', 'Roundcube Webmail');
    $RCMAIL->output->add_script(sprintf("%s.check_protocol_handler('%s', '#mailtoprotohandler');",
      JS_OBJECT_NAME, JQ($product_name)), 'foot');
    $blocks['browser'] = array(
      'name' => Q(rcube_label('browseroptions')),
      'options' => array('mailtoprotohandler' => array(
    $blocks['browser']['options']['mailtoprotohandler'] = array(
        'content' => html::a(array(
          'href' => '#',
          'id' => 'mailtoprotohandler'), Q(rcube_label('mailtoprotohandler'))),
        )),
    );
    break;