Name

CSS_CONTRAST — CSS class to designate problems

SYNOPSIS

{ class }

DESCRIPTION

CSS_CONTRAST is used by [error] and [formel] to designate problems. Both use mv_contrast as default if CSS_CONTRAST has no value.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Variable CSS_CONTRAST error

NOTES

AVAILABILITY

CSS_CONTRAST is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/UserTag/formel.tag
Line 41 (context shows lines 31-45)

}
else {
  $error = $Tag->error({name => $checkfor, keep => $keep});
}

if ($error) {
  if ($opt->{signal}) {
    sprintf($opt->{signal}, $label);
  }
  else {
    my $contrast = $::Variable->{CSS_CONTRAST} || 'mv_contrast';
    qq{<span class="$contrast">$label</span>};
  }  
}
else {      

Source: code/SystemTag/error.coretag
Line 140 (context shows lines 130-144 in tag_error():33)

# store the error label in user's session for later
# possible use in [error show_label=1] calls
$Vend::Session->{errorlabels}{$var} = $opt->{std_label};
if($text) {
# do nothing
}
elsif(defined $::Variable->{MV_ERROR_STD_LABEL}) {
$text = $::Variable->{MV_ERROR_STD_LABEL};
}
else {
my $contrast = $::Variable->{CSS_CONTRAST} || 'mv_contrast';
  $text = <<EOF;
<span class="$contrast">{LABEL} <small><i>(%s)</i></small></span>
[else]{REQUIRED <b>}{LABEL}{REQUIRED </b>}[/else]
EOF

AUTHORS

Interchange Development Group

SEE ALSO

error(7ic), formel(7ic)

DocBook! Interchange!