/** Get the content tree for this kind of content */ function getTree(&$xmap, &$parent, &$params) { if (defined('JPATH_SITE')) { $mosConfig_absolute_path = JPATH_SITE; } else { global $mosConfig_absolute_path; } //Include the jomres stuff require_once 'components/com_jomres/integration.php'; $link_query = parse_url($parent->link); parse_str(html_entity_decode($link_query['query']), $link_vars); $task = xmap_com_jomres::getParam($link_vars, 'task', ""); if ($task != "") { return $tree; } $priority = xmap_com_jomres::getParam($params, 'priority', $parent->priority); $changefreq = xmap_com_jomres::getParam($params, 'changefreq', $parent->changefreq); if ($priority == '-1') { $priority = $parent->priority; } if ($changefreq == '-1') { $changefreq = $parent->changefreq; } $params['priority'] = $priority; $params['changefreq'] = $changefreq; xmap_com_jomres::getCategoryTree($xmap, $parent, $params, $prop); return true; }