| @@ 221-227 (lines=7) @@ | ||
| 218 | ||
| 219 | // invoke OnManagerNodePrerender event |
|
| 220 | $prenode = $modx->invokeEvent("OnManagerNodePrerender", array('ph' => $ph)); |
|
| 221 | if (is_array($prenode)) { |
|
| 222 | $phnew = array(); |
|
| 223 | foreach ($prenode as $pnode) { |
|
| 224 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 225 | } |
|
| 226 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 227 | } |
|
| 228 | ||
| 229 | if ($ph['contextmenu']) { |
|
| 230 | $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
|
| @@ 279-285 (lines=7) @@ | ||
| 276 | 'ph' => $ph, |
|
| 277 | 'opened' => '1' |
|
| 278 | )); |
|
| 279 | if (is_array($prenode)) { |
|
| 280 | $phnew = array(); |
|
| 281 | foreach ($prenode as $pnode) { |
|
| 282 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 283 | } |
|
| 284 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 285 | } |
|
| 286 | ||
| 287 | if ($ph['contextmenu']) { |
|
| 288 | $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
|
| @@ 317-323 (lines=7) @@ | ||
| 314 | 'ph' => $ph, |
|
| 315 | 'opened' => '0' |
|
| 316 | )); |
|
| 317 | if (is_array($prenode)) { |
|
| 318 | $phnew = array(); |
|
| 319 | foreach ($prenode as $pnode) { |
|
| 320 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 321 | } |
|
| 322 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 323 | } |
|
| 324 | ||
| 325 | if ($ph['contextmenu']) { |
|
| 326 | $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
|
| @@ 403-409 (lines=7) @@ | ||
| 400 | 'ph' => $ph, |
|
| 401 | 'opened' => '0' |
|
| 402 | )); |
|
| 403 | if (is_array($prenode)) { |
|
| 404 | $phnew = array(); |
|
| 405 | foreach ($prenode as $pnode) { |
|
| 406 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 407 | } |
|
| 408 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 409 | } |
|
| 410 | ||
| 411 | if ($ph['showChildren'] == 0) { |
|
| 412 | $ph['icon_node_toggle'] = ''; |
|