-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-tbk-ws-donations.php
71 lines (61 loc) · 1.54 KB
/
wp-tbk-ws-donations.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
<?php
/**
* Plugin Name: Transbank WebServices donations shortcode form
* Plugin URI: http://www.cloudweb.cl
* Description: [tbk_donate]
* Version: 0.1.2
* Author: Víctor Mellado
* Author URI: http://ahmadawais.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: ABS
*
* @link http://www.cloudweb.cl
* @package ABS
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define global constants.
*
* @since 1.0.0
*/
// Plugin version.
if ( ! defined( 'ABS_VERSION' ) ) {
define( 'ABS_VERSION', '2.0.0' );
}
if ( ! defined( 'ABS_NAME' ) ) {
define( 'ABS_NAME', trim( dirname( plugin_basename( __FILE__ ) ), '/' ) );
}
if ( ! defined('ABS_DIR' ) ) {
define( 'ABS_DIR', WP_PLUGIN_DIR . '/' . ABS_NAME );
}
if ( ! defined('ABS_URL' ) ) {
define( 'ABS_URL', WP_PLUGIN_URL . '/' . ABS_NAME );
}
/**
* Link.
*
* @since 1.0.0
*/
if ( file_exists( ABS_DIR . '/shortcode/shortcode-link.php' ) ) {
require_once( ABS_DIR . '/shortcode/shortcode-link.php' );
}
/**
* Donations form.
*
* @since 0.0.0
*/
if ( file_exists( ABS_DIR . '/shortcode/shortcode-donations-form.php' ) ) {
require_once( ABS_DIR . '/shortcode/shortcode-donations-form.php' );
}
/**
* Donations form-process
*
* @since 0.0.0
*/
if ( file_exists( ABS_DIR . '/shortcode/shortcode-donations-process.php' ) ) {
require_once( ABS_DIR . '/shortcode/shortcode-donations-process.php' );
}