-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
39 lines (33 loc) · 1.01 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
if (!defined('IN_CMS')) { exit(); }
/**
* SEO
*
* Plugin for Search Engine Optimalization in Wolf CMS
*
* @package Plugins
* @subpackage SEO
*
* @author Nic Wortel <nic.wortel@nth-root.nl>
* @copyright Nic Wortel, 2012
* @version 0.2.1
*/
if(!defined("SEO")) {
define('SEO', PLUGINS_ROOT.'/seo');
}
Plugin::setInfos(array(
'id' => 'seo',
'title' => __('Search Engine Optimization'),
'description' => __('Plugin for Search Engine Optimization in Wolf CMS.'),
'type' => 'both',
'author' => 'Nic Wortel',
'version' => '0.2.1',
'website' => 'http://www.wolfcms.org/',
'require_wolf_version' => '0.7.4'
));
Plugin::addController('seo', __('SEO'), 'admin_view', true);
AutoLoader::addFolder(SEO.'/models');
Dispatcher::addRoute(array(
'/robots.txt' => '/plugin/seo/robotsTxt',
'/sitemap.xml' => '/plugin/seo/sitemapXml'
));