class-affiliates.php
1.8 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/**
* class-affiliates.php
*
* Copyright (c) 2010 - 2014 "kento" Karim Rahimpur www.itthinx.com
*
* This code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*
* This code 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.
*
* This header and all notices must be kept intact.
*
* @author Karim Rahimpur
* @package affiliates
* @since 2.7.0
*/
if ( !defined( 'ABSPATH' ) ) {
exit;
}
/**
* Base class.
*/
class Affiliates {
/**
* Default currency code.
*
* @var string
*/
const DEFAULT_CURRENCY = 'USD';
/**
* Supported currencies.
*
* @var array
*/
public static $supported_currencies = null;
/**
* Assignments.
*/
public static function init() {
self::$supported_currencies = apply_filters(
'affiliates_supported_currencies',
array(
// Australian Dollar
'AUD',
// Brazilian Real
'BRL',
// Canadian Dollar
'CAD',
// Czech Koruna
'CZK',
// Danish Krone
'DKK',
// Euro
'EUR',
// Hong Kong Dollar
'HKD',
// Hungarian Forint
'HUF',
// Israeli New Sheqel
'ILS',
// Japanese Yen
'JPY',
// Malaysian Ringgit
'MYR',
// Mexican Peso
'MXN',
// Norwegian Krone
'NOK',
// New Zealand Dollar
'NZD',
// Philippine Peso
'PHP',
// Polish Zloty
'PLN',
// Pound Sterling
'GBP',
// Singapore Dollar
'SGD',
// Swedish Krona
'SEK',
// Swiss Franc
'CHF',
// Taiwan New Dollar
'TWD',
// Thai Baht
'THB',
// Turkish Lira
'TRY',
// U.S. Dollar
'USD'
)
);
}
}
Affiliates::init();