|
@@ 239-241 (lines=3) @@
|
| 236 |
|
$ph = (count($phnew) > 0) ? $phnew : $ph; |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
if($ph['contextmenu']) { |
| 240 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
if($_SESSION['tree_show_only_folders']) { |
| 244 |
|
if($row['parent'] == 0) { |
|
@@ 297-299 (lines=3) @@
|
| 294 |
|
$ph = (count($phnew) > 0) ? $phnew : $ph; |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
if($ph['contextmenu']) { |
| 298 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
$node .= $modx->parseText($tpl, $ph); |
| 302 |
|
if($checkFolders) { |
|
@@ 335-337 (lines=3) @@
|
| 332 |
|
$ph = (count($phnew) > 0) ? $phnew : $ph; |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
if($ph['contextmenu']) { |
| 336 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
$node .= $modx->parseText($tpl, $ph); |
| 340 |
|
$node .= '</div></div>'; |
|
@@ 386-388 (lines=3) @@
|
| 383 |
|
$tpl = getTplFolderNodeNotChildren(); |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
if($ph['contextmenu']) { |
| 387 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 388 |
|
} |
| 389 |
|
|
| 390 |
|
$node .= $modx->parseText($tpl, $ph); |
| 391 |
|
if($ph['donthit'] == 0) { |
|
@@ 428-430 (lines=3) @@
|
| 425 |
|
$tpl = getTplFolderNodeNotChildren(); |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
if($ph['contextmenu']) { |
| 429 |
|
$ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"'; |
| 430 |
|
} |
| 431 |
|
|
| 432 |
|
$node .= $modx->parseText($tpl, $ph); |
| 433 |
|
$node .= '</div></div>'; |