This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
sponsorship-manager.php
executable file
·81 lines (65 loc) · 2.68 KB
/
sponsorship-manager.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
74
75
76
77
78
79
80
81
<?php
/**
* Sponsorship Manager Plugin
*
* @package Sponsorship Manager
* @version 0.0.3
*/
/*
Plugin Name: Sponsorship Manager
Plugin URI: http://www.alleyinteractive.com/
Description: Manage sponsored content campaigns from within WordPress
Author: Alley Interactive
Version: 0.0.3
Author URI: http://www.alleyinteractive.com/
*/
/* This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* Filesystem Path to Sponsorship Manager
*
* @var string
*/
define( 'SPONSORSHIP_MANAGER_PATH', dirname( __FILE__ ) );
/**
* Slug of taxonomy representing sponsorship campaigns
*
* @var string
*/
define( 'SPONSORSHIP_MANAGER_CAMPAIGN_TAXONOMY', 'sponsorship_campaign' );
/**
* wait until after theme is loaded before setting up the plugin
*/
function sponsorship_manager_setup() {
// Load helpers
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/modules/class-sponsorship-tracking-pixel.php' );
// Load archiveless class
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/modules/class-sponsorship-archiveless.php' );
// Load main plugin class
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/modules/class-sponsorship-manager.php' );
// Load campaign class
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/modules/class-sponsorship-manager-campaign.php' );
// Load post templating class
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/modules/class-sponsorship-manager-post-template.php' );
// Load ad slots class
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/modules/class-sponsorship-manager-ad-slots.php' );
// Load template tags
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/template-tags.php' );
// Fieldmanager Fields
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/fields.php' );
// Taxonomy Base Class
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/taxonomies/class-sponsorship-manager-taxonomy.php' );
// Sponsorship Campaigns Taxonomy (tax:sponsorship_campaign)
require_once( SPONSORSHIP_MANAGER_PATH . '/inc/taxonomies/class-sponsorship-manager-taxonomy-sponsorship-campaign.php' );
}
add_action( 'after_setup_theme', 'sponsorship_manager_setup', 99 );