var toMove =нужно добавитьtoMove.find("script").remove();
if(!function_exists("catalog")) { ... }
if(!function_exists("catalog")) {
function catalog(& $main,& $joined){
...
}
}
<?php
/* Вывод документов определенного уровня */
$GLOBALS["level"] = isset($level) ? (int)$level : 1;
$filters["custom"]["levelFilter"] = array("id","levelFilter");
if (!function_exists("levelFilter")) {
function levelFilter($resource) {
global $modx,$level;
if (count($modx->getParentIds($resource['id'])) == $level) {
return 1;
} else {
return 0;
}
}
}
?>
Параметр &level — уровень от корня сайта
Temus