-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbwp-gxs.php
31 lines (28 loc) · 834 Bytes
/
bwp-gxs.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
<?php
// in case someone integrates this plugin in a theme or calling this directly
global $bwp_gxs;
if ((isset($bwp_gxs) && $bwp_gxs instanceof BWP_Sitemaps) || !defined('ABSPATH'))
return;
// require libs manually if PHP version is lower than 5.3.2
// @todo remove this when WordPress drops support for PHP version < 5.3.2
if (version_compare(PHP_VERSION, '5.3.2', '<'))
{
require_once dirname(__FILE__) . '/autoload.php';
}
else
{
// load dependencies using composer autoload
require_once dirname(__FILE__) . '/vendor/autoload.php';
}
/**
* Global instance of the plugin
*
* TODO in 2.0.0 `$bwp_gxs` should be changed to `$bwp_sitemaps`
*
* @var BwP_Sitemaps
*/
$bwp_gxs = new BWP_Sitemaps(array(
'title' => 'Better WordPress Google XML Sitemaps',
'version' => '1.4.0',
'domain' => 'bwp-google-xml-sitemaps'
));