X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Foptions.tpl;h=2aef407a8ee20b12be2c6beee8f9d1cd869f5ec0;hb=aa1340ebb1e775a36b74dbfc22391ee095d45394;hp=95b2732e6a23112cb4806a5c8c885b26ac922a48;hpb=a7b89aa0274a37d74dc03698e2930952e08f1f17;p=squirrelmail.git diff --git a/templates/default/options.tpl b/templates/default/options.tpl index 95b2732e..2aef407a 100644 --- a/templates/default/options.tpl +++ b/templates/default/options.tpl @@ -3,8 +3,15 @@ * options.tpl * * Template for rendering the options page + * + * The following variables are available to this template: + * $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-2017 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -13,13 +20,69 @@ /** add required includes */ - /** extract variables */ extract($t); + +if ( !empty($topmessage) ) { + echo "
\n$topmessage\n
\n\n"; +} ?> - - - - +
+\n"; + + if (!empty($option['name'])) { + echo " \n" . + " \n" . + " ".$option['name']."\n" . + " \n" . + " \n"; + } + + $hidden_widgets = ''; + foreach ($option['options'] as $opt) { + 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 "; + + echo ''; + + echo "\n \n" . + " \n" . + " ".$opt->createWidget()."\n" . + " \n" . + "\n"; + } else { + $hidden_widgets .= $opt->createWidget(); + } + } + + echo " \n \n" + . $hidden_widgets . "     \n \n \n"; + + echo "\n"; +} +?> +