-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaf_creations.php
73 lines (62 loc) · 1.92 KB
/
caf_creations.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/*
Plugin Name: Caf Creations
Plugin URI: http://www.oleville.com
Description: Provides ability to display/collect caf creation data
Version: 0
Author: Margaret Zimmermann
License: GPL2
*/
/*
Copyright 2016 Margaret Zimmermann (email : mzimmermann1234@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if(!class_exists('Oleville_Caf_Creations'))
{
class Oleville_Caf_Creations
{
/**
* Construct the plugin object
*/
public function __construct()
{
// Activate Shortcode Database
require_once(sprintf("%s/creation-type.php", dirname(__FILE__)));
$creation_type = new Creation_Type();
// Activate Shortcode
require_once(sprintf("%s/shortcodes.php", dirname(__FILE__)));
$oleville_caf_creations_shortcode = new Oleville_Caf_Creations_Shortcode();
}
/**
* Activate the plugin
*/
public static function activate()
{
//do nothing
}
/**
* Deactivate the plugin
*/
public static function deactivate()
{
//do nothing
}
}
}
//registers instilation and deinstalation hooks (call above functions)
if(class_exists('Oleville_Caf_Creations')) {
register_activation_hook(__FILE__, array('Oleville_Caf_Creations', 'activate'));
register_deactivation_hook(__FILE__, array('Oleville_Caf_Creations', 'deactivate'));
$oleville_Caf_Creations = new Oleville_Caf_Creations();
}
//I like it :P
?>