| | |
| | | if ($current) { |
| | | $product_name = $RCMAIL->config->get('product_name', 'Roundcube Webmail'); |
| | | $RCMAIL->output->add_script(sprintf("%s.check_protocol_handler('%s', '#mailtoprotohandler');", |
| | | rcmail_output::JS_OBJECT_NAME, rcube::JQ($product_name)), 'foot'); |
| | | rcmail_output::JS_OBJECT_NAME, rcube::JQ($product_name)), 'docready'); |
| | | } |
| | | |
| | | $blocks['browser']['options']['mailtoprotohandler'] = array( |
| | | 'content' => html::a(array( |
| | | 'href' => '#', |
| | | 'id' => 'mailtoprotohandler'), rcube::Q($RCMAIL->gettext('mailtoprotohandler'))), |
| | | 'href' => '#', |
| | | 'id' => 'mailtoprotohandler' |
| | | ), |
| | | rcube::Q($RCMAIL->gettext('mailtoprotohandler'))) . |
| | | html::span('mailtoprotohandler-status', ''), |
| | | ); |
| | | |
| | | break; |
| | |
| | | $data = $RCMAIL->plugins->exec_hook('preferences_list', |
| | | array('section' => $sect['id'], 'blocks' => $blocks, 'current' => $current)); |
| | | |
| | | $advanced_prefs = $config['advanced_prefs']; |
| | | $advanced_prefs = (array) $RCMAIL->config->get('advanced_prefs'); |
| | | |
| | | // create output |
| | | foreach ($data['blocks'] as $key => $block) { |