{* figure out all the classes *}
{assign var=classes value=$height}
{if $highlight_colour}
  {assign var=classes value="`$classes` `$highlight_colour`"}
{/if}
{if $input_length == "words" && $maxlength != ""}
  {assign var=classes value="`$classes` cf_wordcounter max`$maxlength`"}
{elseif $input_length == "chars" && $maxlength != ""}
  {assign var=classes value="`$classes` cf_textcounter max`$maxlength`"}
{/if}

<textarea name="{$NAME}" id="{$NAME}_id" class="{$classes}">{$VALUE}</textarea>

{if $input_length == "words" && $maxlength != ""}
  <div class="cf_counter" id="{$NAME}_counter">
    {$maxlength} {$LANG.phrase_word_limit_p} <span></span> {$LANG.phrase_remaining_words}
  </div>
{elseif $input_length == "chars" && $maxlength != ""}
  <div class="cf_counter" id="{$NAME}_counter">
    {$maxlength} {$LANG.phrase_characters_limit_p} <span></span> {$LANG.phrase_remaining_characters}
  </div>
{/if}

{if $comments}
  <div class="cf_field_comments">{$comments|nl2br}</div>
{/if}