Sitemap settings

This commit is contained in:
Diego Najar 2017-10-13 23:40:23 +02:00
parent 0ebee8526a
commit 69facb09b4
2 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,6 @@
"plugin-data": "plugin-data":
{ {
"name": "Sitemap", "name": "Sitemap",
"description": "This plugin generates a Sitemap.xml of your site." "description": "This plugin generates a sitemap.xml of your site."
} }
} }

View File

@ -2,6 +2,19 @@
class pluginSitemap extends Plugin { class pluginSitemap extends Plugin {
// Method called on the settings of the plugin on the admin area
public function form()
{
global $Language;
$html = '<div>';
$html .= '<label>'.$Language->get('Sitemap URL').'</label>';
$html .= '<a href="'.Theme::sitemapUrl().'">'.Theme::sitemapUrl().'</a>';
$html .= '</div>';
return $html;
}
private function createXML() private function createXML()
{ {
global $Site; global $Site;