forked from Labs64/credit-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
credit-tracker.php
executable file
·61 lines (54 loc) · 2.1 KB
/
credit-tracker.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
<?php
/**
* @wordpress-plugin
* Plugin Name: Credit Tracker
* Plugin URI: https://github.com/Labs64/credit-tracker
* Description: A simple way to show credits for the images used on your website.
* Author: Labs64
* Author URI: http://www.labs64.com
* Version: 0.9.9
* Text Domain: credit-tracker
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Requires at least: 3.5.1
* Tested up to: 3.8
*
* @package Credit_Tracker
* @author Labs64 <[email protected]>
* @license GPL-2.0+
* @link http://www.labs64.com
* @copyright 2013 Labs64
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
/**
* Plugin version, used for cache-busting of style and script file references.
*/
define('CT_VERSION', '0.9.9');
/**
* Unique identifier for your plugin.
*
* Use this value (not the variable name) as the text domain when internationalizing strings of text. It should
* match the Text Domain file header in the main plugin file.
*/
define('CT_SLUG', 'credit-tracker');
// main
require_once(plugin_dir_path(__FILE__) . 'credit-tracker-class.php');
require_once(plugin_dir_path(__FILE__) . 'credit-tracker-shortcodes.php');
require_once(plugin_dir_path(__FILE__) . 'credit-tracker-functions.php');
require_once(plugin_dir_path(__FILE__) . 'options.php');
// util
require_once(plugin_dir_path(__FILE__) . '/php/netlicensing/netlicensing.php');
require_once(plugin_dir_path(__FILE__) . '/php/curl/curl.php');
require_once(plugin_dir_path(__FILE__) . '/php/curl/curl_response.php');
// parser
require_once(plugin_dir_path(__FILE__) . '/php/parser/parser.php');
require_once(plugin_dir_path(__FILE__) . '/php/parser/fotolia.php');
require_once(plugin_dir_path(__FILE__) . '/php/parser/istockphoto.php');
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook(__FILE__, array('Credit_Tracker', 'activate'));
register_deactivation_hook(__FILE__, array('Credit_Tracker', 'deactivate'));
add_action('plugins_loaded', array('Credit_Tracker', 'get_instance'));