PluginProbe
Mailchimp List Subscribe Form / 1.2.7
Mailchimp List Subscribe Form v1.2.7
1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 All 55 releases
mailchimp / mailchimp_widget.php

mailchimp_widget.php in Mailchimp List Subscribe Form 1.2.7, at mailchimp_widget.php

598 lines 22.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Displays a MailChimp Signup Form
4 **/
5 function mailchimpSF_signup_form($args = array()) {
6 extract($args);
7
8 $mv = get_option('mc_merge_vars');
9 $igs = get_option('mc_interest_groups');
10
11 // See if we have valid Merge Vars
12 if (!is_array($mv)){
13 echo $before_widget;
14 ?>
15 <div class="mc_error_msg">
16 <?php esc_html_e('There was a problem loading your MailChimp details. Please re-run the setup process under Settings->MailChimp Setup', 'mailchimp_i18n'); ?>
17 </div>
18 <?php
19 echo $after_widget;
20 return;
21 }
22
23 // Get some options
24 $uid = get_option('mc_user_id');
25 $list_name = get_option('mc_list_name');
26
27 if (!empty($before_widget)) {
28 echo $before_widget;
29 }
30
31 $header = get_option('mc_header_content');
32 // See if we have custom header content
33 if (!empty($header)) {
34 // See if we need to wrap the header content in our own div
35 if (strlen($header) == strlen(strip_tags($header))){
36 echo !empty($before_title) ? $before_title : '<div class="mc_custom_border_hdr">';
37 echo $header; // don't escape $header b/c it may have HTML allowed
38 echo !empty($after_title) ? $after_title : '</div><!-- /mc_custom_border_hdr -->';
39 }
40 else {
41 echo $header; // don't escape $header b/c it may have HTML allowed
42 }
43 }
44
45 $sub_heading = trim(get_option('mc_subheader_content'));
46 ?>
47
48 <div id="mc_signup">
49 <form method="post" action="#mc_signup" id="mc_signup_form">
50 <input type="hidden" id="mc_submit_type" name="mc_submit_type" value="html" />
51 <input type="hidden" name="mcsf_action" value="mc_submit_signup_form" />
52 <?php wp_nonce_field('mc_submit_signup_form', '_mc_submit_signup_form_nonce', false); ?>
53
54 <?php
55 if ($sub_heading) {
56 ?>
57 <div id="mc_subheader">
58 <?php echo $sub_heading; ?>
59 </div><!-- /mc_subheader -->
60 <?php
61 }
62 ?>
63
64 <div class="mc_form_inside">
65
66 <div class="updated" id="mc_message">
67 <?php echo mailchimpSF_global_msg(); ?>
68 </div><!-- /mc_message -->
69
70 <?php
71 //don't show the "required" stuff if there's only 1 field to display.
72 $num_fields = 0;
73 foreach((array)$mv as $var) {
74 $opt = 'mc_mv_'.$var['tag'];
75 if ($var['req'] || get_option($opt) == 'on') {
76 $num_fields++;
77 }
78 }
79
80 if (is_array($mv)) {
81 // head on back to the beginning of the array
82 reset($mv);
83 }
84
85 // Loop over our vars, and output the ones that are set to display
86 foreach($mv as $var) {
87 if (!$var['public']) {
88 echo '<div style="display:none;">'.mailchimp_form_field($var, $num_fields).'</div>';
89 }
90 else {
91 echo mailchimp_form_field($var, $num_fields);
92 }
93 }
94
95
96 // Show an explanation of the * if there's more than one field
97 if ($num_fields > 1) {
98 ?>
99 <div id="mc-indicates-required">
100 * = <?php esc_html_e('required field', 'mailchimp_i18n'); ?>
101 </div><!-- /mc-indicates-required -->
102 <?php
103 }
104
105
106 // Show our Interest groups fields if we have them, and they're set to on
107 if (is_array($igs) && !empty($igs)) {
108 foreach ($igs as $ig) {
109 if (is_array($ig) && isset($ig['id'])) {
110 if ($igs && get_option('mc_show_interest_groups_'.$ig['id']) == 'on') {
111 if ($ig['form_field'] != 'hidden') {
112 ?>
113 <div class="mc_interests_header">
114 <?php echo esc_html($ig['name']); ?>
115 </div><!-- /mc_interests_header -->
116 <div class="mc_interest">
117 <?php
118 }
119 else {
120 ?>
121 <div class="mc_interest" style="display: none;">
122 <?php
123 }
124 ?>
125
126 <?php
127 mailchimp_interest_group_field($ig);
128 ?>
129 </div><!-- /mc_interest -->
130
131 <?php
132 }
133 }
134 }
135 }
136
137 if (get_option('mc_email_type_option')) {
138 ?>
139 <div class="mergeRow">
140 <label><?php _e('Preferred Format', 'mailchimp_i18n'); ?></label>
141 <div class="field-group groups">
142 <ul class="mc_list">
143 <li><input type="radio" name="email_type" id="email_type_html" value="html" checked="checked"><label for="email_type_html"><?php _e('HTML', 'mailchimp_i18n'); ?></label></li>
144 <li><input type="radio" name="email_type" id="email_type_text" value="text"><label for="email_type_text"><?php _e('Text', 'mailchimp_i18n'); ?></label></li>
145 <li><input type="radio" name="email_type" id="email_type_mobile" value="mobile"><label for="email_type_mobile"><?php _e('Mobile', 'mailchimp_i18n'); ?></label></li>
146 </ul>
147 </div>
148 </div>
149
150 <?php
151 }
152 ?>
153
154 <div class="mc_signup_submit">
155 <input type="submit" name="mc_signup_submit" id="mc_signup_submit" value="<?php echo esc_attr(get_option('mc_submit_text')); ?>" class="button" />
156 </div><!-- /mc_signup_submit -->
157
158
159 <?php
160 if ( get_option('mc_use_unsub_link') == 'on') {
161 list($key, $dc) = explode("-",get_option('mc_apikey'),2);
162 if (!$dc) $dc = "us1";
163 $host = 'http://'.$dc.'.list-manage.com';
164 ?>
165 <div id="mc_unsub_link" align="center">
166 <a href="<?php echo esc_url($host.'/unsubscribe/?u='.get_option('mc_user_id').'&amp;id='.get_option('mc_list_id')); ?>" target="_blank"><?php esc_html_e('unsubscribe from list', 'mailchimp_i18n'); ?></a>
167 </div><!-- /mc_unsub_link -->
168 <?php
169 }
170 if ( get_option('mc_rewards') == 'on') {
171 ?>
172 <br/>
173 <div id="mc_display_rewards" align="center">
174 <?php esc_html_e('powered by', 'mailchimp_i18n'); ?> <a href="<?php echo esc_url('http://www.mailchimp.com/affiliates/?aid='.get_option('mc_user_id').'&amp;afl=1'); ?>">MailChimp</a>!
175 </div><!-- /mc_display_rewards -->
176 <?php
177 }
178 ?>
179
180 </div><!-- /mc_form_inside -->
181 </form><!-- /mc_signup_form -->
182 </div><!-- /mc_signup_container -->
183 <?php
184 if (!empty($before_widget)) {
185 echo $after_widget;
186 }
187 }
188
189 /**
190 * Generate and display markup for Interest Groups
191 * @param array $ig Set of Interest Groups to generate markup for
192 * @return void
193 */
194 function mailchimp_interest_group_field($ig) {
195 if (!is_array($ig)) {
196 return;
197 }
198 $html = '';
199 $set_name = 'group['.$ig['id'].']';
200 switch ($ig['form_field']) {
201 case 'checkbox':
202 case 'checkboxes':
203 $i = 1;
204 foreach($ig['groups'] as $interest){
205 $interest = $interest['name'];
206 $html .= '
207 <input type="checkbox" name="'.esc_attr($set_name.'['.$i.']').'" id="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest" value="'.esc_attr($interest).'" />
208 <label for="'. esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest_label">'.esc_html($interest).'</label>
209 <br/>';
210 $i++;
211 }
212 break;
213 case 'radio':
214 foreach($ig['groups'] as $interest){
215 $interest = $interest['name'];
216 $html .= '
217 <input type="radio" name="'.esc_attr($set_name).'" id="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest" value="'.esc_attr($interest).'"/>
218 <label for="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest_label">'.esc_html($interest).'</label>
219 <br/>';
220 }
221 break;
222 case 'select':
223 case 'dropdown':
224 $html .= '
225 <select name="'.esc_attr($set_name).'">
226 <option value=""></option>';
227 foreach($ig['groups'] as $interest){
228 $interest = $interest['name'];
229 $html .= '
230 <option value="'.esc_attr($interest).'">'.esc_html($interest).'</option>';
231 }
232 $html .= '
233 </select>';
234 break;
235 case 'hidden':
236 foreach($ig['groups'] as $interest) {
237 $interest = $interest['name'];
238 $html .= '
239 <input type="checkbox" name="'.esc_attr($set_name.'['.$i.']').'" id="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest" value="'.esc_attr($interest).'" />
240 <label for="'. esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest_label">'.esc_html($interest).'</label>';
241 }
242 break;
243 }
244 echo $html;
245 }
246
247 /**
248 * Generate and display markup for form fields
249 * @param array $var Array containing informaoin about the field
250 * @param int $num_fields The number of fields total we'll be generating markup for. Used in calculating required text logic
251 * @return void
252 */
253 function mailchimp_form_field($var, $num_fields) {
254 $opt = 'mc_mv_'.$var['tag'];
255 $html = '';
256 // See if that var is set as required, or turned on (for display)
257 if ($var['req'] || get_option($opt) == 'on') {
258 $label = '<label for="'.esc_attr($opt).'" class="mc_var_label">'.esc_html($var['name']);
259 if ($var['req'] && $num_fields > 1) {
260 $label .= '<span class="mc_required">*</span>';
261 }
262 $label .= '</label>';
263
264 $html .= '
265 <div class="mc_merge_var">
266 '.$label;
267
268 switch ($var['field_type']) {
269 case 'date':
270 $html .= '
271 <input type="text" size="18" value="'.esc_attr($var['default']).'" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="date-pick mc_input"/>';
272 break;
273 case 'radio':
274 if (is_array($var['choices'])) {
275 $html .= '
276 <ul class="mc_list">';
277 foreach ($var['choices'] as $key => $value) {
278 $html .= '
279 <li>
280 <input type="radio" id="'.esc_attr($opt.'_'.$key).'" name="'.esc_attr($opt).'" class="mc_radio" value="'.$value.'"'.checked($var['default'], $value, false).' />
281 <label for="'.esc_attr($opt.'_'.$key).'" class="mc_radio_label">'.esc_html($value).'</label>
282 </li>';
283 }
284 $html .= '
285 </ul>';
286 }
287 break;
288 case 'dropdown':
289 if (is_array($var['choices'])) {
290 $html .= '
291 <br /><select id="'.esc_attr($opt).'" name="'.esc_attr($opt).'" class="mc_select">';
292 foreach ($var['choices'] as $value) {
293 $html .= '
294 <option value="'.esc_attr($value).'"'.selected($value, $var['default'], false).'>'.esc_html($value).'</option>';
295 }
296 $html .= '
297 </select>';
298 }
299 break;
300 case 'birthday':
301 $html .= '
302 <input type="text" size="18" value="'.esc_attr($var['default']).'" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="birthdate-pick mc_input"/>';
303 break;
304 case 'birthday-old':
305 $days = range(1, 31);
306 $months = array(__('January', 'mailchimp_i18n'), __('February', 'mailchimp_i18n'), __('March', 'mailchimp_i18n'), __('April', 'mailchimp_i18n'), __('May', 'mailchimp_i18n'), __('June', 'mailchimp_i18n'), __('July', 'mailchimp_i18n'), __('August', 'mailchimp_i18n'), __('September', 'mailchimp_i18n'), __('October', 'mailchimp_i18n'), __('November', 'mailchimp_i18n'), __('December', 'mailchimp_i18n'), );
307
308 $html .= '
309 <br /><select id="'.esc_attr($opt).'" name="'.esc_attr($opt.'[month]').'" class="mc_select">';
310 foreach ($months as $month_key => $month) {
311 $html .= '
312 <option value="'.$month_key.'">'.$month.'</option>';
313 }
314 $html .= '
315 </select>';
316
317 $html .= '
318 <select id="'.esc_attr($opt).'" name="'.esc_attr($opt.'[day]').'" class="mc_select">';
319 foreach ($days as $day) {
320 $html .= '
321 <option value="'.$day.'">'.$day.'</option>';
322 }
323 $html .= '
324 </select>';
325 break;
326 case 'address':
327 $countries = mailchimp_country_list();
328 $html .= '
329 <br />
330 <label for="'.esc_attr($opt.'-addr1').'" class="mc_address_label">'.__('Street Address', 'mailchimp_i18n').'</label> <br />
331 <input type="text" size="18" value="" name="'.esc_attr($opt.'[addr1]').'" id="'.esc_attr($opt.'-addr1').'" class="mc_input" /> <br />
332 <label for="'.esc_attr($opt.'-addr2').'" class="mc_address_label">'.__('Address Line 2', 'mailchimp_i18n').'</label> <br />
333 <input type="text" size="18" value="" name="'.esc_attr($opt.'[addr2]').'" id="'.esc_attr($opt.'-addr2').'" class="mc_input" /> <br />
334 <label for="'.esc_attr($opt.'-city').'" class="mc_address_label">'.__('City', 'mailchimp_i18n').'</label> <br />
335 <input type="text" size="18" value="" name="'.esc_attr($opt.'[city]').'" id="'.esc_attr($opt.'-city').'" class="mc_input" /> <br />
336 <label for="'.esc_attr($opt.'-state').'" class="mc_address_label">'.__('State', 'mailchimp_i18n').'</label> <br />
337 <input type="text" size="18" value="" name="'.esc_attr($opt.'[state]').'" id="'.esc_attr($opt.'-state').'" class="mc_input" /> <br />
338 <label for="'.esc_attr($opt.'-zip').'" class="mc_address_label">'.__('Zip / Postal', 'mailchimp_i18n').'</label> <br />
339 <input type="text" size="18" value="" maxlength="5" name="'.esc_attr($opt.'[zip]').'" id="'.esc_attr($opt.'-zip').'" class="mc_input" /> <br />
340 <label for="'.esc_attr($opt.'-country').'" class="mc_address_label">'.__('Country', 'mailchimp_i18n').'</label> <br />
341 <select name="'.esc_attr($opt.'[country]').'" id="'.esc_attr($opt.'-country').'">';
342 foreach ($countries as $country_code => $country_name) {
343 $html .= '
344 <option value="'.esc_attr($country_code).'"'.selected($country_code, $var['defaultcountry'], false).'>'.esc_html($country_name).'</option>';
345 }
346 $html .= '
347 </select>';
348 break;
349 case 'zip':
350 $html .= '
351 <input type="text" size="18" maxlength="5" value="" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="mc_input" />';
352 break;
353 case 'phone':
354 $html .= '<br />
355 &#40; <input type="text" size="3" maxlength="3" value="" name="'.esc_attr($opt.'[area]').'" id="'.esc_attr($opt.'-area').'" class="mc_input mc_phone" /> &#41; &ndash;
356 <input type="text" size="3" maxlength="3" value="" name="'.esc_attr($opt.'[detail1]').'" id="'.esc_attr($opt.'-detail1').'" class="mc_input mc_phone" /> &ndash;
357 <input type="text" size="4" maxlength="4" value="" name="'.esc_attr($opt.'[detail2]').'" id="'.esc_attr($opt.'-detail2').'" class="mc_input mc_phone" />
358 ';
359 break;
360 case 'email':
361 case 'url':
362 case 'imageurl':
363 case 'text':
364 case 'number':
365 default:
366 $html .= '
367 <input type="text" size="18" value="'.esc_html($var['default']).'" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="mc_input"/>';
368 break;
369 }
370 if (!empty($var['helptext'])) {
371 $html .= '<span class="mc_help">'.esc_html($var['helptext']).'</span>';
372 }
373 $html .= '
374 </div><!-- /mc_merge_var -->';
375 }
376
377 return $html;
378 }
379
380 /**
381 * MailChimp Subscribe Box widget class
382 */
383 class mailchimpSF_Widget extends WP_Widget {
384
385 function mailchimpSF_Widget() {
386 $widget_ops = array(
387 'description' => __('Displays a MailChimp Subscribe box', 'mailchimp_i18n')
388 );
389 $this->WP_Widget('mailchimpSF_widget', __('MailChimp Widget', 'mailchimp_i18n'), $widget_ops);
390 }
391
392 function widget( $args, $instance ) {
393 if (!is_array($instance)) {
394 $instance = array();
395 }
396 mailchimpSF_signup_form(array_merge($args, $instance));
397 }
398 }
399
400 function mailchimp_country_list() {
401 return array(
402 '164' => __('USA', 'mailchimp_i18n'),
403 '286' => __('Aaland Islands', 'mailchimp_i18n'),
404 '274' => __('Afghanistan', 'mailchimp_i18n'),
405 '2' => __('Albania', 'mailchimp_i18n'),
406 '3' => __('Algeria', 'mailchimp_i18n'),
407 '178' => __('American Samoa', 'mailchimp_i18n'),
408 '4' => __('Andorra', 'mailchimp_i18n'),
409 '5' => __('Angola', 'mailchimp_i18n'),
410 '176' => __('Anguilla', 'mailchimp_i18n'),
411 '175' => __('Antigua And Barbuda', 'mailchimp_i18n'),
412 '6' => __('Argentina', 'mailchimp_i18n'),
413 '7' => __('Armenia', 'mailchimp_i18n'),
414 '179' => __('Aruba', 'mailchimp_i18n'),
415 '8' => __('Australia', 'mailchimp_i18n'),
416 '9' => __('Austria', 'mailchimp_i18n'),
417 '10' => __('Azerbaijan', 'mailchimp_i18n'),
418 '11' => __('Bahamas', 'mailchimp_i18n'),
419 '12' => __('Bahrain', 'mailchimp_i18n'),
420 '13' => __('Bangladesh', 'mailchimp_i18n'),
421 '14' => __('Barbados', 'mailchimp_i18n'),
422 '15' => __('Belarus', 'mailchimp_i18n'),
423 '16' => __('Belgium', 'mailchimp_i18n'),
424 '17' => __('Belize', 'mailchimp_i18n'),
425 '18' => __('Benin', 'mailchimp_i18n'),
426 '19' => __('Bermuda', 'mailchimp_i18n'),
427 '20' => __('Bhutan', 'mailchimp_i18n'),
428 '21' => __('Bolivia', 'mailchimp_i18n'),
429 '22' => __('Bosnia and Herzegovina', 'mailchimp_i18n'),
430 '23' => __('Botswana', 'mailchimp_i18n'),
431 '24' => __('Brazil', 'mailchimp_i18n'),
432 '180' => __('Brunei Darussalam', 'mailchimp_i18n'),
433 '25' => __('Bulgaria', 'mailchimp_i18n'),
434 '26' => __('Burkina Faso', 'mailchimp_i18n'),
435 '27' => __('Burundi', 'mailchimp_i18n'),
436 '28' => __('Cambodia', 'mailchimp_i18n'),
437 '29' => __('Cameroon', 'mailchimp_i18n'),
438 '30' => __('Canada', 'mailchimp_i18n'),
439 '31' => __('Cape Verde', 'mailchimp_i18n'),
440 '32' => __('Cayman Islands', 'mailchimp_i18n'),
441 '33' => __('Central African Republic', 'mailchimp_i18n'),
442 '34' => __('Chad', 'mailchimp_i18n'),
443 '35' => __('Chile', 'mailchimp_i18n'),
444 '36' => __('China', 'mailchimp_i18n'),
445 '37' => __('Colombia', 'mailchimp_i18n'),
446 '38' => __('Congo', 'mailchimp_i18n'),
447 '183' => __('Cook Islands', 'mailchimp_i18n'),
448 '268' => __('Costa Rica', 'mailchimp_i18n'),
449 '275' => __('Cote D\'Ivoire', 'mailchimp_i18n'),
450 '40' => __('Croatia', 'mailchimp_i18n'),
451 '276' => __('Cuba', 'mailchimp_i18n'),
452 '41' => __('Cyprus', 'mailchimp_i18n'),
453 '42' => __('Czech Republic', 'mailchimp_i18n'),
454 '43' => __('Denmark', 'mailchimp_i18n'),
455 '44' => __('Djibouti', 'mailchimp_i18n'),
456 '289' => __('Dominica', 'mailchimp_i18n'),
457 '187' => __('Dominican Republic', 'mailchimp_i18n'),
458 '233' => __('East Timor', 'mailchimp_i18n'),
459 '45' => __('Ecuador', 'mailchimp_i18n'),
460 '46' => __('Egypt', 'mailchimp_i18n'),
461 '47' => __('El Salvador', 'mailchimp_i18n'),
462 '48' => __('Equatorial Guinea', 'mailchimp_i18n'),
463 '49' => __('Eritrea', 'mailchimp_i18n'),
464 '50' => __('Estonia', 'mailchimp_i18n'),
465 '51' => __('Ethiopia', 'mailchimp_i18n'),
466 '191' => __('Faroe Islands', 'mailchimp_i18n'),
467 '52' => __('Fiji', 'mailchimp_i18n'),
468 '53' => __('Finland', 'mailchimp_i18n'),
469 '54' => __('France', 'mailchimp_i18n'),
470 '277' => __('French Polynesia', 'mailchimp_i18n'),
471 '59' => __('Germany', 'mailchimp_i18n'),
472 '60' => __('Ghana', 'mailchimp_i18n'),
473 '194' => __('Gibraltar', 'mailchimp_i18n'),
474 '61' => __('Greece', 'mailchimp_i18n'),
475 '195' => __('Greenland', 'mailchimp_i18n'),
476 '192' => __('Grenada', 'mailchimp_i18n'),
477 '62' => __('Guam', 'mailchimp_i18n'),
478 '198' => __('Guatemala', 'mailchimp_i18n'),
479 '270' => __('Guernsey', 'mailchimp_i18n'),
480 '65' => __('Guyana', 'mailchimp_i18n'),
481 '200' => __('Haiti', 'mailchimp_i18n'),
482 '66' => __('Honduras', 'mailchimp_i18n'),
483 '67' => __('Hong Kong', 'mailchimp_i18n'),
484 '68' => __('Hungary', 'mailchimp_i18n'),
485 '69' => __('Iceland', 'mailchimp_i18n'),
486 '70' => __('India', 'mailchimp_i18n'),
487 '71' => __('Indonesia', 'mailchimp_i18n'),
488 '278' => __('Iran', 'mailchimp_i18n'),
489 '279' => __('Iraq', 'mailchimp_i18n'),
490 '74' => __('Ireland', 'mailchimp_i18n'),
491 '75' => __('Israel', 'mailchimp_i18n'),
492 '76' => __('Italy', 'mailchimp_i18n'),
493 '202' => __('Jamaica', 'mailchimp_i18n'),
494 '78' => __('Japan', 'mailchimp_i18n'),
495 '288' => __('Jersey (Channel Islands)', 'mailchimp_i18n'),
496 '79' => __('Jordan', 'mailchimp_i18n'),
497 '80' => __('Kazakhstan', 'mailchimp_i18n'),
498 '81' => __('Kenya', 'mailchimp_i18n'),
499 '82' => __('Kuwait', 'mailchimp_i18n'),
500 '83' => __('Kyrgyzstan', 'mailchimp_i18n'),
501 '84' => __('Lao People\'s Democratic Republic', 'mailchimp_i18n'),
502 '85' => __('Latvia', 'mailchimp_i18n'),
503 '86' => __('Lebanon', 'mailchimp_i18n'),
504 '281' => __('Libya', 'mailchimp_i18n'),
505 '90' => __('Liechtenstein', 'mailchimp_i18n'),
506 '91' => __('Lithuania', 'mailchimp_i18n'),
507 '92' => __('Luxembourg', 'mailchimp_i18n'),
508 '208' => __('Macau', 'mailchimp_i18n'),
509 '93' => __('Macedonia', 'mailchimp_i18n'),
510 '94' => __('Madagascar', 'mailchimp_i18n'),
511 '95' => __('Malawi', 'mailchimp_i18n'),
512 '96' => __('Malaysia', 'mailchimp_i18n'),
513 '97' => __('Maldives', 'mailchimp_i18n'),
514 '98' => __('Mali', 'mailchimp_i18n'),
515 '99' => __('Malta', 'mailchimp_i18n'),
516 '212' => __('Mauritius', 'mailchimp_i18n'),
517 '101' => __('Mexico', 'mailchimp_i18n'),
518 '102' => __('Moldova, Republic of', 'mailchimp_i18n'),
519 '103' => __('Monaco', 'mailchimp_i18n'),
520 '104' => __('Mongolia', 'mailchimp_i18n'),
521 '290' => __('Montenegro', 'mailchimp_i18n'),
522 '105' => __('Morocco', 'mailchimp_i18n'),
523 '106' => __('Mozambique', 'mailchimp_i18n'),
524 '242' => __('Myanmar', 'mailchimp_i18n'),
525 '107' => __('Namibia', 'mailchimp_i18n'),
526 '108' => __('Nepal', 'mailchimp_i18n'),
527 '109' => __('Netherlands', 'mailchimp_i18n'),
528 '110' => __('Netherlands Antilles', 'mailchimp_i18n'),
529 '213' => __('New Caledonia', 'mailchimp_i18n'),
530 '111' => __('New Zealand', 'mailchimp_i18n'),
531 '112' => __('Nicaragua', 'mailchimp_i18n'),
532 '113' => __('Niger', 'mailchimp_i18n'),
533 '114' => __('Nigeria', 'mailchimp_i18n'),
534 '272' => __('North Korea', 'mailchimp_i18n'),
535 '116' => __('Norway', 'mailchimp_i18n'),
536 '117' => __('Oman', 'mailchimp_i18n'),
537 '118' => __('Pakistan', 'mailchimp_i18n'),
538 '222' => __('Palau', 'mailchimp_i18n'),
539 '282' => __('Palestine', 'mailchimp_i18n'),
540 '119' => __('Panama', 'mailchimp_i18n'),
541 '219' => __('Papua New Guinea', 'mailchimp_i18n'),
542 '120' => __('Paraguay', 'mailchimp_i18n'),
543 '121' => __('Peru', 'mailchimp_i18n'),
544 '122' => __('Philippines', 'mailchimp_i18n'),
545 '123' => __('Poland', 'mailchimp_i18n'),
546 '124' => __('Portugal', 'mailchimp_i18n'),
547 '126' => __('Qatar', 'mailchimp_i18n'),
548 '58' => __('Republic of Georgia', 'mailchimp_i18n'),
549 '128' => __('Romania', 'mailchimp_i18n'),
550 '129' => __('Russia', 'mailchimp_i18n'),
551 '130' => __('Rwanda', 'mailchimp_i18n'),
552 '205' => __('Saint Kitts and Nevis', 'mailchimp_i18n'),
553 '206' => __('Saint Lucia', 'mailchimp_i18n'),
554 '132' => __('Samoa (Independent)', 'mailchimp_i18n'),
555 '227' => __('San Marino', 'mailchimp_i18n'),
556 '133' => __('Saudi Arabia', 'mailchimp_i18n'),
557 '134' => __('Senegal', 'mailchimp_i18n'),
558 '266' => __('Serbia', 'mailchimp_i18n'),
559 '135' => __('Seychelles', 'mailchimp_i18n'),
560 '137' => __('Singapore', 'mailchimp_i18n'),
561 '138' => __('Slovakia', 'mailchimp_i18n'),
562 '139' => __('Slovenia', 'mailchimp_i18n'),
563 '223' => __('Solomon Islands', 'mailchimp_i18n'),
564 '141' => __('South Africa', 'mailchimp_i18n'),
565 '142' => __('South Korea', 'mailchimp_i18n'),
566 '143' => __('Spain', 'mailchimp_i18n'),
567 '144' => __('Sri Lanka', 'mailchimp_i18n'),
568 '293' => __('Sudan', 'mailchimp_i18n'),
569 '146' => __('Suriname', 'mailchimp_i18n'),
570 '147' => __('Swaziland', 'mailchimp_i18n'),
571 '148' => __('Sweden', 'mailchimp_i18n'),
572 '149' => __('Switzerland', 'mailchimp_i18n'),
573 '152' => __('Taiwan', 'mailchimp_i18n'),
574 '153' => __('Tanzania', 'mailchimp_i18n'),
575 '154' => __('Thailand', 'mailchimp_i18n'),
576 '155' => __('Togo', 'mailchimp_i18n'),
577 '232' => __('Tonga', 'mailchimp_i18n'),
578 '234' => __('Trinidad and Tobago', 'mailchimp_i18n'),
579 '156' => __('Tunisia', 'mailchimp_i18n'),
580 '157' => __('Turkey', 'mailchimp_i18n'),
581 '287' => __('Turks &amp; Caicos Islands', 'mailchimp_i18n'),
582 '159' => __('Uganda', 'mailchimp_i18n'),
583 '161' => __('Ukraine', 'mailchimp_i18n'),
584 '162' => __('United Arab Emirates', 'mailchimp_i18n'),
585 '262' => __('United Kingdom', 'mailchimp_i18n'),
586 '163' => __('Uruguay', 'mailchimp_i18n'),
587 '239' => __('Vanuatu', 'mailchimp_i18n'),
588 '166' => __('Vatican City State (Holy See)', 'mailchimp_i18n'),
589 '167' => __('Venezuela', 'mailchimp_i18n'),
590 '168' => __('Vietnam', 'mailchimp_i18n'),
591 '169' => __('Virgin Islands (British)', 'mailchimp_i18n'),
592 '238' => __('Virgin Islands (U.S.)', 'mailchimp_i18n'),
593 '173' => __('Zambia', 'mailchimp_i18n'),
594 '174' => __('Zimbabwe', 'mailchimp_i18n'),
595 );
596 }
597 ?>
598