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 4.8.6 4.8.7 4.8.8 4.8.9 4.9.0 4.9.1 4.9.10 4.9.11 4.9.12 4.9.13 4.9.14 4.9.15 4.9.16 4.9.17 4.9.18 4.9.19 4.9.2 4.9.20 4.9.21 4.9.3 4.9.4 4.9.5 4.9.6 4.9.7 4.9.8 4.9.9 trunk 1.1.5 1.2.1 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8
mailchimp-for-wp / includes / class-tools.php
mailchimp-for-wp / includes Last commit date
admin 9 years ago api 9 years ago forms 9 years ago integrations 9 years ago mailchimp 9 years ago views 9 years ago class-array-bag.php 10 years ago class-container.php 10 years ago class-debug-log-reader.php 9 years ago class-debug-log.php 9 years ago class-dynamic-content-tags.php 9 years ago class-field-formatter.php 9 years ago class-field-guesser.php 9 years ago class-list-data-mapper.php 9 years ago class-mailchimp.php 9 years ago class-plugin.php 10 years ago class-queue-job.php 10 years ago class-queue.php 9 years ago class-request.php 10 years ago class-tools.php 9 years ago class-validator.php 10 years ago class-visitor-tracking.php 9 years ago default-actions.php 9 years ago default-filters.php 9 years ago deprecated-functions.php 9 years ago functions.php 9 years ago
class-tools.php
288 lines
1 <?php
2
3 /**
4 * Class MC4WP_Tools
5 *
6 * @access private
7 * @ignore
8 */
9 class MC4WP_Tools {
10
11 /**
12 * @deprecated
13 * @param $datetime
14 * @param string $format
15 *
16 * @return bool|string
17 */
18 public static function mysql_datetime_to_local_datetime( $datetime, $format = '' ) {
19
20 if( $format === '' ) {
21 $format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
22 }
23
24 // add or subtract GMT offset to given mysql time
25 $local_datetime = strtotime( $datetime ) + ( get_option( 'gmt_offset') * HOUR_IN_SECONDS );
26
27 return date( $format, $local_datetime );
28 }
29
30 /**
31 * @return array
32 */
33 public static function get_countries() {
34 return array(
35 'AF' => 'Afghanistan',
36 'AX' => 'Aland Islands',
37 'AL' => 'Albania',
38 'DZ' => 'Algeria',
39 'AS' => 'American Samoa',
40 'AD' => 'Andorra',
41 'AO' => 'Angola',
42 'AI' => 'Anguilla',
43 'AQ' => 'Antarctica',
44 'AG' => 'Antigua and Barbuda',
45 'AR' => 'Argentina',
46 'AM' => 'Armenia',
47 'AW' => 'Aruba',
48 'AU' => 'Australia',
49 'AT' => 'Austria',
50 'AZ' => 'Azerbaijan',
51 'BS' => 'Bahamas',
52 'BH' => 'Bahrain',
53 'BD' => 'Bangladesh',
54 'BB' => 'Barbados',
55 'BY' => 'Belarus',
56 'BE' => 'Belgium',
57 'BZ' => 'Belize',
58 'BJ' => 'Benin',
59 'BM' => 'Bermuda',
60 'BT' => 'Bhutan',
61 'BO' => 'Bolivia',
62 'BQ' => 'Bonaire, Saint Eustatius and Saba',
63 'BA' => 'Bosnia and Herzegovina',
64 'BW' => 'Botswana',
65 'BV' => 'Bouvet Island',
66 'BR' => 'Brazil',
67 'IO' => 'British Indian Ocean Territory',
68 'VG' => 'British Virgin Islands',
69 'BN' => 'Brunei',
70 'BG' => 'Bulgaria',
71 'BF' => 'Burkina Faso',
72 'BI' => 'Burundi',
73 'KH' => 'Cambodia',
74 'CM' => 'Cameroon',
75 'CA' => 'Canada',
76 'CV' => 'Cape Verde',
77 'KY' => 'Cayman Islands',
78 'CF' => 'Central African Republic',
79 'TD' => 'Chad',
80 'CL' => 'Chile',
81 'CN' => 'China',
82 'CX' => 'Christmas Island',
83 'CC' => 'Cocos Islands',
84 'CO' => 'Colombia',
85 'KM' => 'Comoros',
86 'CK' => 'Cook Islands',
87 'CR' => 'Costa Rica',
88 'HR' => 'Croatia',
89 'CU' => 'Cuba',
90 'CW' => 'Curacao',
91 'CY' => 'Cyprus',
92 'CZ' => 'Czech Republic',
93 'CD' => 'Democratic Republic of the Congo',
94 'DK' => 'Denmark',
95 'DJ' => 'Djibouti',
96 'DM' => 'Dominica',
97 'DO' => 'Dominican Republic',
98 'TL' => 'East Timor',
99 'EC' => 'Ecuador',
100 'EG' => 'Egypt',
101 'SV' => 'El Salvador',
102 'GQ' => 'Equatorial Guinea',
103 'ER' => 'Eritrea',
104 'EE' => 'Estonia',
105 'ET' => 'Ethiopia',
106 'FK' => 'Falkland Islands',
107 'FO' => 'Faroe Islands',
108 'FJ' => 'Fiji',
109 'FI' => 'Finland',
110 'FR' => 'France',
111 'GF' => 'French Guiana',
112 'PF' => 'French Polynesia',
113 'TF' => 'French Southern Territories',
114 'GA' => 'Gabon',
115 'GM' => 'Gambia',
116 'GE' => 'Georgia',
117 'DE' => 'Germany',
118 'GH' => 'Ghana',
119 'GI' => 'Gibraltar',
120 'GR' => 'Greece',
121 'GL' => 'Greenland',
122 'GD' => 'Grenada',
123 'GP' => 'Guadeloupe',
124 'GU' => 'Guam',
125 'GT' => 'Guatemala',
126 'GG' => 'Guernsey',
127 'GN' => 'Guinea',
128 'GW' => 'Guinea-Bissau',
129 'GY' => 'Guyana',
130 'HT' => 'Haiti',
131 'HM' => 'Heard Island and McDonald Islands',
132 'HN' => 'Honduras',
133 'HK' => 'Hong Kong',
134 'HU' => 'Hungary',
135 'IS' => 'Iceland',
136 'IN' => 'India',
137 'ID' => 'Indonesia',
138 'IR' => 'Iran',
139 'IQ' => 'Iraq',
140 'IE' => 'Ireland',
141 'IM' => 'Isle of Man',
142 'IL' => 'Israel',
143 'IT' => 'Italy',
144 'CI' => 'Ivory Coast',
145 'JM' => 'Jamaica',
146 'JP' => 'Japan',
147 'JE' => 'Jersey',
148 'JO' => 'Jordan',
149 'KZ' => 'Kazakhstan',
150 'KE' => 'Kenya',
151 'KI' => 'Kiribati',
152 'XK' => 'Kosovo',
153 'KW' => 'Kuwait',
154 'KG' => 'Kyrgyzstan',
155 'LA' => 'Laos',
156 'LV' => 'Latvia',
157 'LB' => 'Lebanon',
158 'LS' => 'Lesotho',
159 'LR' => 'Liberia',
160 'LY' => 'Libya',
161 'LI' => 'Liechtenstein',
162 'LT' => 'Lithuania',
163 'LU' => 'Luxembourg',
164 'MO' => 'Macao',
165 'MK' => 'Macedonia',
166 'MG' => 'Madagascar',
167 'MW' => 'Malawi',
168 'MY' => 'Malaysia',
169 'MV' => 'Maldives',
170 'ML' => 'Mali',
171 'MT' => 'Malta',
172 'MH' => 'Marshall Islands',
173 'MQ' => 'Martinique',
174 'MR' => 'Mauritania',
175 'MU' => 'Mauritius',
176 'YT' => 'Mayotte',
177 'MX' => 'Mexico',
178 'FM' => 'Micronesia',
179 'MD' => 'Moldova',
180 'MC' => 'Monaco',
181 'MN' => 'Mongolia',
182 'ME' => 'Montenegro',
183 'MS' => 'Montserrat',
184 'MA' => 'Morocco',
185 'MZ' => 'Mozambique',
186 'MM' => 'Myanmar',
187 'NA' => 'Namibia',
188 'NR' => 'Nauru',
189 'NP' => 'Nepal',
190 'NL' => 'Netherlands',
191 'NC' => 'New Caledonia',
192 'NZ' => 'New Zealand',
193 'NI' => 'Nicaragua',
194 'NE' => 'Niger',
195 'NG' => 'Nigeria',
196 'NU' => 'Niue',
197 'NF' => 'Norfolk Island',
198 'KP' => 'North Korea',
199 'MP' => 'Northern Mariana Islands',
200 'NO' => 'Norway',
201 'OM' => 'Oman',
202 'PK' => 'Pakistan',
203 'PW' => 'Palau',
204 'PS' => 'Palestinian Territory',
205 'PA' => 'Panama',
206 'PG' => 'Papua New Guinea',
207 'PY' => 'Paraguay',
208 'PE' => 'Peru',
209 'PH' => 'Philippines',
210 'PN' => 'Pitcairn',
211 'PL' => 'Poland',
212 'PT' => 'Portugal',
213 'PR' => 'Puerto Rico',
214 'QA' => 'Qatar',
215 'CG' => 'Republic of the Congo',
216 'RE' => 'Reunion',
217 'RO' => 'Romania',
218 'RU' => 'Russia',
219 'RW' => 'Rwanda',
220 'BL' => 'Saint Barthelemy',
221 'SH' => 'Saint Helena',
222 'KN' => 'Saint Kitts and Nevis',
223 'LC' => 'Saint Lucia',
224 'MF' => 'Saint Martin',
225 'PM' => 'Saint Pierre and Miquelon',
226 'VC' => 'Saint Vincent and the Grenadines',
227 'WS' => 'Samoa',
228 'SM' => 'San Marino',
229 'ST' => 'Sao Tome and Principe',
230 'SA' => 'Saudi Arabia',
231 'SN' => 'Senegal',
232 'RS' => 'Serbia',
233 'SC' => 'Seychelles',
234 'SL' => 'Sierra Leone',
235 'SG' => 'Singapore',
236 'SX' => 'Sint Maarten',
237 'SK' => 'Slovakia',
238 'SI' => 'Slovenia',
239 'SB' => 'Solomon Islands',
240 'SO' => 'Somalia',
241 'ZA' => 'South Africa',
242 'GS' => 'South Georgia and the South Sandwich Islands',
243 'KR' => 'South Korea',
244 'SS' => 'South Sudan',
245 'ES' => 'Spain',
246 'LK' => 'Sri Lanka',
247 'SD' => 'Sudan',
248 'SR' => 'Suriname',
249 'SJ' => 'Svalbard and Jan Mayen',
250 'SZ' => 'Swaziland',
251 'SE' => 'Sweden',
252 'CH' => 'Switzerland',
253 'SY' => 'Syria',
254 'TW' => 'Taiwan',
255 'TJ' => 'Tajikistan',
256 'TZ' => 'Tanzania',
257 'TH' => 'Thailand',
258 'TG' => 'Togo',
259 'TK' => 'Tokelau',
260 'TO' => 'Tonga',
261 'TT' => 'Trinidad and Tobago',
262 'TN' => 'Tunisia',
263 'TR' => 'Turkey',
264 'TM' => 'Turkmenistan',
265 'TC' => 'Turks and Caicos Islands',
266 'TV' => 'Tuvalu',
267 'VI' => 'U.S. Virgin Islands',
268 'UG' => 'Uganda',
269 'UA' => 'Ukraine',
270 'AE' => 'United Arab Emirates',
271 'GB' => 'United Kingdom',
272 'US' => 'United States',
273 'UM' => 'United States Minor Outlying Islands',
274 'UY' => 'Uruguay',
275 'UZ' => 'Uzbekistan',
276 'VU' => 'Vanuatu',
277 'VA' => 'Vatican',
278 'VE' => 'Venezuela',
279 'VN' => 'Vietnam',
280 'WF' => 'Wallis and Futuna',
281 'EH' => 'Western Sahara',
282 'YE' => 'Yemen',
283 'ZM' => 'Zambia',
284 'ZW' => 'Zimbabwe',
285 );
286 }
287
288 }