offsetSet(__('Cinecturlink'), 'cinecturlink2'); } public static function sitemapsURLsCollect($sitemaps) { dcCore::app()->blog->settings->addNamespace('sitemaps'); if (dcCore::app()->plugins->moduleExists('cinecturlink2') && dcCore::app()->blog->settings->sitemaps->sitemaps_cinecturlink2_url ) { $freq = $sitemaps->getFrequency(dcCore::app()->blog->settings->sitemaps->sitemaps_cinecturlink2_fq); $prio = $sitemaps->getPriority(dcCore::app()->blog->settings->sitemaps->sitemaps_cinecturlink2_pr); $base = dcCore::app()->blog->url . dcCore::app()->url->getBase('cinecturlink2'); $sitemaps->addEntry($base, $prio, $freq); dcCore::app()->blog->settings->addNamespace('cinecturlink2'); $C2 = new cinecturlink2(); $cats = $C2->getCategories(); while ($cats->fetch()) { $sitemaps->addEntry($base . '/' . dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_public_caturl . '/' . urlencode($cats->cat_title), $prio, $freq); } } } }