Beispiel #1
0
function xmapShowNavigator($config)
{
    require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'XmapNav.php';
    $sitemapid = JRequest::getInt('sitemap', 0);
    $link = urldecode(JRequest::getVar('link', ''));
    $name = JRequest::getCmd('e_name', '');
    if (!$sitemapid) {
        $sitemapid = $config->sitemap_default;
    }
    $sitemap = new XmapSitemap($database);
    if (!$sitemap->load($sitemapid)) {
        echo _XMAP_INVALID_SITEMAP;
        return false;
    }
    JHTML::script('mootree.js', 'media/system/js/');
    JHTML::stylesheet('mootree.css', 'media/system/css/');
    XmapAdminHtml::showNavigator($sitemapid, $name);
}