|
@@ 232-234 (lines=3) @@
|
| 229 |
|
$ph = (count($phnew) > 0) ? $phnew : $ph; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
if ($ph['contextmenu']) { |
| 233 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
if ($_SESSION['tree_show_only_folders']) { |
| 237 |
|
if ($row['parent'] == 0) { |
|
@@ 290-292 (lines=3) @@
|
| 287 |
|
$ph = (count($phnew) > 0) ? $phnew : $ph; |
| 288 |
|
} |
| 289 |
|
|
| 290 |
|
if ($ph['contextmenu']) { |
| 291 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 292 |
|
} |
| 293 |
|
|
| 294 |
|
$node .= $modx->parseText($tpl, $ph); |
| 295 |
|
if ($checkFolders) { |
|
@@ 328-330 (lines=3) @@
|
| 325 |
|
$ph = (count($phnew) > 0) ? $phnew : $ph; |
| 326 |
|
} |
| 327 |
|
|
| 328 |
|
if ($ph['contextmenu']) { |
| 329 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 330 |
|
} |
| 331 |
|
|
| 332 |
|
$node .= $modx->parseText($tpl, $ph); |
| 333 |
|
$node .= '</div></div>'; |
|
@@ 379-381 (lines=3) @@
|
| 376 |
|
$tpl = getTplFolderNodeNotChildren(); |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
if ($ph['contextmenu']) { |
| 380 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 381 |
|
} |
| 382 |
|
|
| 383 |
|
$node .= $modx->parseText($tpl, $ph); |
| 384 |
|
if ($ph['donthit'] == 0) { |
|
@@ 422-424 (lines=3) @@
|
| 419 |
|
$tpl = getTplFolderNodeNotChildren(); |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
if ($ph['contextmenu']) { |
| 423 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 424 |
|
} |
| 425 |
|
|
| 426 |
|
$node .= $modx->parseText($tpl, $ph); |
| 427 |
|
$node .= '</div></div>'; |