X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Foptions.tpl;h=c0cd1b2b3f957f2f0f665b0b3060fde3c805d740;hp=17a2b550d791d8d2542765e76bac2561838f2382;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=ce910bcaa2fcf8661061662923b8f8b768467009 diff --git a/templates/default/options.tpl b/templates/default/options.tpl index 17a2b550..c0cd1b2b 100644 --- a/templates/default/options.tpl +++ b/templates/default/options.tpl @@ -5,12 +5,13 @@ * Template for rendering the options page * * The following variables are available to this template: - * $options - array of options as built by SquirrelMail. Important fields - * in this array include (but are not limited to): - * $el['name'] - The name of the option group - * $el['options'] - array of squirrelOption objects + * $option_groups - array of option groups and their options as + * built by SquirrelMail. Important fields + * in this array include (but are not limited to): + * ['name'] - The name of the option group + * ['options'] - array of squirrelOption objects * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -30,7 +31,7 @@ if ( !empty($topmessage) ) {
\n"; if (!empty($option['name'])) { @@ -43,17 +44,29 @@ foreach ($options as $option) { $hidden_widgets = ''; foreach ($option['options'] as $opt) { - if ($opt->type != SMOPT_TYPE_HIDDEN) { + if ($opt->type == SMOPT_TYPE_INFO) { + echo "\n" + . " \n" + . " \n" + . " \n" + . " \n" + . " \n" + . "
\n" + . $opt->createWidget() . "\n" + . "
\n" + . " \n" + . "\n"; + + } else if ($opt->type != SMOPT_TYPE_HIDDEN) { echo "\n" . - " \n "; + " caption_wrap ? '' : ' style="white-space:nowrap"') . ">\n "; - if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX - || $opt->type == SMOPT_TYPE_BOOLEAN) { - echo ''; - } else { - echo $opt->caption; + echo ''; echo "\n \n" . " \n" .