| @@ 2264-2272 (lines=9) @@ | ||
| 2261 | $type = isset($condition['type']) ? $condition['type'] : 'positive'; |
|
| 2262 | $mode = isset($condition['mode']) ? $condition['mode'] : 'add'; |
|
| 2263 | switch ($type) { |
|
| 2264 | case 'positive': |
|
| 2265 | if (in_array($itemId, $array)) { |
|
| 2266 | if ($mode == 'overwrite') { |
|
| 2267 | $class = " $defaultClass $class_to_applied"; |
|
| 2268 | } else { |
|
| 2269 | $class .= " $class_to_applied"; |
|
| 2270 | } |
|
| 2271 | } |
|
| 2272 | break; |
|
| 2273 | case 'negative': |
|
| 2274 | if (!in_array($itemId, $array)) { |
|
| 2275 | if ($mode == 'overwrite') { |
|
| @@ 2273-2281 (lines=9) @@ | ||
| 2270 | } |
|
| 2271 | } |
|
| 2272 | break; |
|
| 2273 | case 'negative': |
|
| 2274 | if (!in_array($itemId, $array)) { |
|
| 2275 | if ($mode == 'overwrite') { |
|
| 2276 | $class = " $defaultClass $class_to_applied"; |
|
| 2277 | } else { |
|
| 2278 | $class .= " $class_to_applied"; |
|
| 2279 | } |
|
| 2280 | } |
|
| 2281 | break; |
|
| 2282 | } |
|
| 2283 | } |
|
| 2284 | if ($isCurrent) { |
|