@@ 2125-2133 (lines=9) @@ | ||
2122 | $type = isset($condition['type']) ? $condition['type'] : 'positive'; |
|
2123 | $mode = isset($condition['mode']) ? $condition['mode'] : 'add'; |
|
2124 | switch ($type) { |
|
2125 | case 'positive': |
|
2126 | if (in_array($itemId, $array)) { |
|
2127 | if ($mode == 'overwrite') { |
|
2128 | $class = " $defaultClass $class_to_applied"; |
|
2129 | } else { |
|
2130 | $class .= " $class_to_applied"; |
|
2131 | } |
|
2132 | } |
|
2133 | break; |
|
2134 | case 'negative': |
|
2135 | if (!in_array($itemId, $array)) { |
|
2136 | if ($mode == 'overwrite') { |
|
@@ 2134-2142 (lines=9) @@ | ||
2131 | } |
|
2132 | } |
|
2133 | break; |
|
2134 | case 'negative': |
|
2135 | if (!in_array($itemId, $array)) { |
|
2136 | if ($mode == 'overwrite') { |
|
2137 | $class = " $defaultClass $class_to_applied"; |
|
2138 | } else { |
|
2139 | $class .= " $class_to_applied"; |
|
2140 | } |
|
2141 | } |
|
2142 | break; |
|
2143 | } |
|
2144 | } |
|
2145 | if ($isCurrent) { |