@@ 45-54 (lines=10) @@ | ||
42 | if (isset($options['display_options'])) { |
|
43 | foreach ($options['display_options'] as $option) { |
|
44 | switch ($option) { |
|
45 | case 'highlight_positive': |
|
46 | if (0 < $value) { |
|
47 | ||
48 | $color = $context->meta()->getOption('positive_color'); |
|
49 | $context->style('bg', (string) $nav, [ |
|
50 | 'color' => $color |
|
51 | ]); |
|
52 | } |
|
53 | ||
54 | break; |
|
55 | case 'highlight_negative': |
|
56 | if (0 > $value) { |
|
57 | $color = $context->meta()->getOption('negative_color'); |
|
@@ 55-62 (lines=8) @@ | ||
52 | } |
|
53 | ||
54 | break; |
|
55 | case 'highlight_negative': |
|
56 | if (0 > $value) { |
|
57 | $color = $context->meta()->getOption('negative_color'); |
|
58 | $context->style('bg', (string) $nav, [ |
|
59 | 'color' => $color |
|
60 | ]); |
|
61 | } |
|
62 | break; |
|
63 | } |
|
64 | } |
|
65 | } |