| @@ 224-230 (lines=7) @@ | ||
| 221 | ||
| 222 | // invoke OnManagerNodePrerender event |
|
| 223 | $prenode = $modx->invokeEvent("OnManagerNodePrerender", array('ph' => $ph)); |
|
| 224 | if (is_array($prenode)) { |
|
| 225 | $phnew = array(); |
|
| 226 | foreach ($prenode as $pnode) { |
|
| 227 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 228 | } |
|
| 229 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 230 | } |
|
| 231 | ||
| 232 | if ($ph['contextmenu']) { |
|
| 233 | $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
|
| @@ 282-288 (lines=7) @@ | ||
| 279 | 'ph' => $ph, |
|
| 280 | 'opened' => '1' |
|
| 281 | )); |
|
| 282 | if (is_array($prenode)) { |
|
| 283 | $phnew = array(); |
|
| 284 | foreach ($prenode as $pnode) { |
|
| 285 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 286 | } |
|
| 287 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 288 | } |
|
| 289 | ||
| 290 | if ($ph['contextmenu']) { |
|
| 291 | $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
|
| @@ 320-326 (lines=7) @@ | ||
| 317 | 'ph' => $ph, |
|
| 318 | 'opened' => '0' |
|
| 319 | )); |
|
| 320 | if (is_array($prenode)) { |
|
| 321 | $phnew = array(); |
|
| 322 | foreach ($prenode as $pnode) { |
|
| 323 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 324 | } |
|
| 325 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 326 | } |
|
| 327 | ||
| 328 | if ($ph['contextmenu']) { |
|
| 329 | $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
|
| @@ 407-413 (lines=7) @@ | ||
| 404 | 'opened' => '0' |
|
| 405 | )); |
|
| 406 | ||
| 407 | if (is_array($prenode)) { |
|
| 408 | $phnew = array(); |
|
| 409 | foreach ($prenode as $pnode) { |
|
| 410 | $phnew = array_merge($phnew, unserialize($pnode)); |
|
| 411 | } |
|
| 412 | $ph = (count($phnew) > 0) ? $phnew : $ph; |
|
| 413 | } |
|
| 414 | ||
| 415 | if ($ph['showChildren'] == 0) { |
|
| 416 | $ph['icon_node_toggle'] = ''; |
|