-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInit.php
More file actions
63 lines (41 loc) · 1.15 KB
/
Init.php
File metadata and controls
63 lines (41 loc) · 1.15 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/*
Plugin Name: Twist (Esri w/ Wordpress)
Plugin URI: http://github.com/phpmaps/map-plugin
Description: Prototype ArcGIS Tech w/ Wordpress
Version: 1.0 rev 1 (Blue Jay)
Author: Doug Carroll
Author URI: http://phpmaps.github.io/me/
*/
namespace Twist;
use Twist;
/**
*
* @author Doug Carroll
* @email dougbcarroll@gmail.com
*
*/
define('PLUGIN_NAME', "Twist (Esri w/ Wordpress)");
define('PLUGIN_DIR', plugin_dir_path(__FILE__));
define('PLUGIN_URL', WP_PLUGIN_URL."/".dirname(plugin_basename(__FILE__)));
function loader($file){
$classes = array(
PLUGIN_DIR . 'Utilities.php',
PLUGIN_DIR . 'Logger.php',
PLUGIN_DIR . 'Reg.php',
PLUGIN_DIR . 'Maps.php'
);
foreach ($classes as $k => $file){
$file = sprintf('%s', $file);
if(is_file($file) && !class_exists($file) ){
include_once $file;
}
}
}
if(!function_exists('loader')){
spl_autoload_register('Twist\loader');
}
//$registration = new \Reg(__FILE__);
$log = new Logger("Creating Logger");
$maps = new Maps();
?>