X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Foptions.tpl;h=c6a15627a1e4e8a0e762a9793a23f97592cbbbd3;hp=30c56226dcdce7f3031f635e5025381d1db9e953;hb=12ba9472f717849de39ad2648d2613f23a048077;hpb=e7d5cb0e3857d41e02b35006356b6b021929320f diff --git a/templates/default/options.tpl b/templates/default/options.tpl index 30c56226..c6a15627 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-2011 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,19 +44,28 @@ 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" . " caption_wrap ? '' : ' style="white-space:nowrap"') . ">\n "; - if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX - || $opt->type == SMOPT_TYPE_BOOLEAN) { - echo ''; - } else if ($opt->type == SMOPT_TYPE_TEXTAREA && !empty($opt->trailing_text)) { - echo $opt->caption . '
' . $opt->trailing_text . ''; - } else { - echo $opt->caption; + echo ''; echo "\n \n" . " \n" .