*/ class SitemapModule extends GalleryModule { function SitemapModule() { global $gallery; $this->setId('sitemap'); $this->setName($gallery->i18n('Sitemap')); $this->setDescription($gallery->i18n('Generate a Google Sitemap for your Gallery')); $this->setVersion('1.0.0'); $this->setGroup('export', $gallery->i18n('Export')); $this->setCallbacks('getSiteAdminViews'); $this->setRequiredCoreApi(array(7, 0)); $this->setRequiredModuleApi(array(3, 0)); } /** * @see GalleryModule::getSiteAdminViews(); */ function getSiteAdminViews() { $data = array(array('name' => $this->translate('Google Sitemap'), 'view' => 'sitemap.AdminSitemap')); return array(null, $data); } /** * @see GalleryModule::getRewriteRules */ function getRewriteRules() { $rules = array(); $rule = array(); $rule['match'] = array('view' => 'sitemap.Sitemap'); $rule['pattern'] = 'sitemap'; $rule['comment'] = $this->translate('Download Sitemap'); $rules[] = $rule; return $rules; } } ?>