Explorar o código

Allow text area options to use trailing_text attribute

pdontthink %!s(int64=17) %!d(string=hai) anos
pai
achega
47bfd72fa9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      templates/default/options.tpl

+ 2 - 0
templates/default/options.tpl

@@ -51,6 +51,8 @@ foreach ($options as $option) {
              || $opt->type == SMOPT_TYPE_BOOLEAN) {
                 echo '<label for="new_' . $opt->name . '">'
                    . $opt->caption . '</label>';
+            } else if ($opt->type == SMOPT_TYPE_TEXTAREA && !empty($opt->trailing_text)) {
+                echo $opt->caption . '<br />' . $opt->trailing_text;
             } else {
                 echo $opt->caption;
             }