PluginProbe
Mailchimp List Subscribe Form / 1.2.8
Mailchimp List Subscribe Form v1.2.8
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.8, at mailchimp_widget.php

600 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 $i = 1;
237 foreach($ig['groups'] as $interest) {
238 $interest = $interest['name'];
239 $html .= '
240 <input type="checkbox" name="'.esc_attr($set_name.'['.$i.']').'" id="'.esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest" value="'.esc_attr($interest).'" />
241 <label for="'. esc_attr('mc_interest_'.$ig['id'].'_'.$interest).'" class="mc_interest_label">'.esc_html($interest).'</label>';
242 $i++;
243 }
244 break;
245 }
246 echo $html;
247 }
248
249 /**
250 * Generate and display markup for form fields
251 * @param array $var Array containing informaoin about the field
252 * @param int $num_fields The number of fields total we'll be generating markup for. Used in calculating required text logic
253 * @return void
254 */
255 function mailchimp_form_field($var, $num_fields) {
256 $opt = 'mc_mv_'.$var['tag'];
257 $html = '';
258 // See if that var is set as required, or turned on (for display)
259 if ($var['req'] || get_option($opt) == 'on') {
260 $label = '<label for="'.esc_attr($opt).'" class="mc_var_label">'.esc_html($var['name']);
261 if ($var['req'] && $num_fields > 1) {
262 $label .= '<span class="mc_required">*</span>';
263 }
264 $label .= '</label>';
265
266 $html .= '
267 <div class="mc_merge_var">
268 '.$label;
269
270 switch ($var['field_type']) {
271 case 'date':
272 $html .= '
273 <input type="text" size="18" value="'.esc_attr($var['default']).'" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="date-pick mc_input"/>';
274 break;
275 case 'radio':
276 if (is_array($var['choices'])) {
277 $html .= '
278 <ul class="mc_list">';
279 foreach ($var['choices'] as $key => $value) {
280 $html .= '
281 <li>
282 <input type="radio" id="'.esc_attr($opt.'_'.$key).'" name="'.esc_attr($opt).'" class="mc_radio" value="'.$value.'"'.checked($var['default'], $value, false).' />
283 <label for="'.esc_attr($opt.'_'.$key).'" class="mc_radio_label">'.esc_html($value).'</label>
284 </li>';
285 }
286 $html .= '
287 </ul>';
288 }
289 break;
290 case 'dropdown':
291 if (is_array($var['choices'])) {
292 $html .= '
293 <br /><select id="'.esc_attr($opt).'" name="'.esc_attr($opt).'" class="mc_select">';
294 foreach ($var['choices'] as $value) {
295 $html .= '
296 <option value="'.esc_attr($value).'"'.selected($value, $var['default'], false).'>'.esc_html($value).'</option>';
297 }
298 $html .= '
299 </select>';
300 }
301 break;
302 case 'birthday':
303 $html .= '
304 <input type="text" size="18" value="'.esc_attr($var['default']).'" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="birthdate-pick mc_input"/>';
305 break;
306 case 'birthday-old':
307 $days = range(1, 31);
308 $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'), );
309
310 $html .= '
311 <br /><select id="'.esc_attr($opt).'" name="'.esc_attr($opt.'[month]').'" class="mc_select">';
312 foreach ($months as $month_key => $month) {
313 $html .= '
314 <option value="'.$month_key.'">'.$month.'</option>';
315 }
316 $html .= '
317 </select>';
318
319 $html .= '
320 <select id="'.esc_attr($opt).'" name="'.esc_attr($opt.'[day]').'" class="mc_select">';
321 foreach ($days as $day) {
322 $html .= '
323 <option value="'.$day.'">'.$day.'</option>';
324 }
325 $html .= '
326 </select>';
327 break;
328 case 'address':
329 $countries = mailchimp_country_list();
330 $html .= '
331 <br />
332 <label for="'.esc_attr($opt.'-addr1').'" class="mc_address_label">'.__('Street Address', 'mailchimp_i18n').'</label> <br />
333 <input type="text" size="18" value="" name="'.esc_attr($opt.'[addr1]').'" id="'.esc_attr($opt.'-addr1').'" class="mc_input" /> <br />
334 <label for="'.esc_attr($opt.'-addr2').'" class="mc_address_label">'.__('Address Line 2', 'mailchimp_i18n').'</label> <br />
335 <input type="text" size="18" value="" name="'.esc_attr($opt.'[addr2]').'" id="'.esc_attr($opt.'-addr2').'" class="mc_input" /> <br />
336 <label for="'.esc_attr($opt.'-city').'" class="mc_address_label">'.__('City', 'mailchimp_i18n').'</label> <br />
337 <input type="text" size="18" value="" name="'.esc_attr($opt.'[city]').'" id="'.esc_attr($opt.'-city').'" class="mc_input" /> <br />
338 <label for="'.esc_attr($opt.'-state').'" class="mc_address_label">'.__('State', 'mailchimp_i18n').'</label> <br />
339 <input type="text" size="18" value="" name="'.esc_attr($opt.'[state]').'" id="'.esc_attr($opt.'-state').'" class="mc_input" /> <br />
340 <label for="'.esc_attr($opt.'-zip').'" class="mc_address_label">'.__('Zip / Postal', 'mailchimp_i18n').'</label> <br />
341 <input type="text" size="18" value="" maxlength="5" name="'.esc_attr($opt.'[zip]').'" id="'.esc_attr($opt.'-zip').'" class="mc_input" /> <br />
342 <label for="'.esc_attr($opt.'-country').'" class="mc_address_label">'.__('Country', 'mailchimp_i18n').'</label> <br />
343 <select name="'.esc_attr($opt.'[country]').'" id="'.esc_attr($opt.'-country').'">';
344 foreach ($countries as $country_code => $country_name) {
345 $html .= '
346 <option value="'.esc_attr($country_code).'"'.selected($country_code, $var['defaultcountry'], false).'>'.esc_html($country_name).'</option>';
347 }
348 $html .= '
349 </select>';
350 break;
351 case 'zip':
352 $html .= '
353 <input type="text" size="18" maxlength="5" value="" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="mc_input" />';
354 break;
355 case 'phone':
356 $html .= '<br />
357 &#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;
358 <input type="text" size="3" maxlength="3" value="" name="'.esc_attr($opt.'[detail1]').'" id="'.esc_attr($opt.'-detail1').'" class="mc_input mc_phone" /> &ndash;
359 <input type="text" size="4" maxlength="4" value="" name="'.esc_attr($opt.'[detail2]').'" id="'.esc_attr($opt.'-detail2').'" class="mc_input mc_phone" />
360 ';
361 break;
362 case 'email':
363 case 'url':
364 case 'imageurl':
365 case 'text':
366 case 'number':
367 default:
368 $html .= '
369 <input type="text" size="18" value="'.esc_html($var['default']).'" name="'.esc_attr($opt).'" id="'.esc_attr($opt).'" class="mc_input"/>';
370 break;
371 }
372 if (!empty($var['helptext'])) {
373 $html .= '<span class="mc_help">'.esc_html($var['helptext']).'</span>';
374 }
375 $html .= '
376 </div><!-- /mc_merge_var -->';
377 }
378
379 return $html;
380 }
381
382 /**
383 * MailChimp Subscribe Box widget class
384 */
385 class mailchimpSF_Widget extends WP_Widget {
386
387 function mailchimpSF_Widget() {
388 $widget_ops = array(
389 'description' => __('Displays a MailChimp Subscribe box', 'mailchimp_i18n')
390 );
391 $this->WP_Widget('mailchimpSF_widget', __('MailChimp Widget', 'mailchimp_i18n'), $widget_ops);
392 }
393
394 function widget( $args, $instance ) {
395 if (!is_array($instance)) {
396 $instance = array();
397 }
398 mailchimpSF_signup_form(array_merge($args, $instance));
399 }
400 }
401
402 function mailchimp_country_list() {
403 return array(
404 '164' => __('USA', 'mailchimp_i18n'),
405 '286' => __('Aaland Islands', 'mailchimp_i18n'),
406 '274' => __('Afghanistan', 'mailchimp_i18n'),
407 '2' => __('Albania', 'mailchimp_i18n'),
408 '3' => __('Algeria', 'mailchimp_i18n'),
409 '178' => __('American Samoa', 'mailchimp_i18n'),
410 '4' => __('Andorra', 'mailchimp_i18n'),
411 '5' => __('Angola', 'mailchimp_i18n'),
412 '176' => __('Anguilla', 'mailchimp_i18n'),
413 '175' => __('Antigua And Barbuda', 'mailchimp_i18n'),
414 '6' => __('Argentina', 'mailchimp_i18n'),
415 '7' => __('Armenia', 'mailchimp_i18n'),
416 '179' => __('Aruba', 'mailchimp_i18n'),
417 '8' => __('Australia', 'mailchimp_i18n'),
418 '9' => __('Austria', 'mailchimp_i18n'),
419 '10' => __('Azerbaijan', 'mailchimp_i18n'),
420 '11' => __('Bahamas', 'mailchimp_i18n'),
421 '12' => __('Bahrain', 'mailchimp_i18n'),
422 '13' => __('Bangladesh', 'mailchimp_i18n'),
423 '14' => __('Barbados', 'mailchimp_i18n'),
424 '15' => __('Belarus', 'mailchimp_i18n'),
425 '16' => __('Belgium', 'mailchimp_i18n'),
426 '17' => __('Belize', 'mailchimp_i18n'),
427 '18' => __('Benin', 'mailchimp_i18n'),
428 '19' => __('Bermuda', 'mailchimp_i18n'),
429 '20' => __('Bhutan', 'mailchimp_i18n'),
430 '21' => __('Bolivia', 'mailchimp_i18n'),
431 '22' => __('Bosnia and Herzegovina', 'mailchimp_i18n'),
432 '23' => __('Botswana', 'mailchimp_i18n'),
433 '24' => __('Brazil', 'mailchimp_i18n'),
434 '180' => __('Brunei Darussalam', 'mailchimp_i18n'),
435 '25' => __('Bulgaria', 'mailchimp_i18n'),
436 '26' => __('Burkina Faso', 'mailchimp_i18n'),
437 '27' => __('Burundi', 'mailchimp_i18n'),
438 '28' => __('Cambodia', 'mailchimp_i18n'),
439 '29' => __('Cameroon', 'mailchimp_i18n'),
440 '30' => __('Canada', 'mailchimp_i18n'),
441 '31' => __('Cape Verde', 'mailchimp_i18n'),
442 '32' => __('Cayman Islands', 'mailchimp_i18n'),
443 '33' => __('Central African Republic', 'mailchimp_i18n'),
444 '34' => __('Chad', 'mailchimp_i18n'),
445 '35' => __('Chile', 'mailchimp_i18n'),
446 '36' => __('China', 'mailchimp_i18n'),
447 '37' => __('Colombia', 'mailchimp_i18n'),
448 '38' => __('Congo', 'mailchimp_i18n'),
449 '183' => __('Cook Islands', 'mailchimp_i18n'),
450 '268' => __('Costa Rica', 'mailchimp_i18n'),
451 '275' => __('Cote D\'Ivoire', 'mailchimp_i18n'),
452 '40' => __('Croatia', 'mailchimp_i18n'),
453 '276' => __('Cuba', 'mailchimp_i18n'),
454 '41' => __('Cyprus', 'mailchimp_i18n'),
455 '42' => __('Czech Republic', 'mailchimp_i18n'),
456 '43' => __('Denmark', 'mailchimp_i18n'),
457 '44' => __('Djibouti', 'mailchimp_i18n'),
458 '289' => __('Dominica', 'mailchimp_i18n'),
459 '187' => __('Dominican Republic', 'mailchimp_i18n'),
460 '233' => __('East Timor', 'mailchimp_i18n'),
461 '45' => __('Ecuador', 'mailchimp_i18n'),
462 '46' => __('Egypt', 'mailchimp_i18n'),
463 '47' => __('El Salvador', 'mailchimp_i18n'),
464 '48' => __('Equatorial Guinea', 'mailchimp_i18n'),
465 '49' => __('Eritrea', 'mailchimp_i18n'),
466 '50' => __('Estonia', 'mailchimp_i18n'),
467 '51' => __('Ethiopia', 'mailchimp_i18n'),
468 '191' => __('Faroe Islands', 'mailchimp_i18n'),
469 '52' => __('Fiji', 'mailchimp_i18n'),
470 '53' => __('Finland', 'mailchimp_i18n'),
471 '54' => __('France', 'mailchimp_i18n'),
472 '277' => __('French Polynesia', 'mailchimp_i18n'),
473 '59' => __('Germany', 'mailchimp_i18n'),
474 '60' => __('Ghana', 'mailchimp_i18n'),
475 '194' => __('Gibraltar', 'mailchimp_i18n'),
476 '61' => __('Greece', 'mailchimp_i18n'),
477 '195' => __('Greenland', 'mailchimp_i18n'),
478 '192' => __('Grenada', 'mailchimp_i18n'),
479 '62' => __('Guam', 'mailchimp_i18n'),
480 '198' => __('Guatemala', 'mailchimp_i18n'),
481 '270' => __('Guernsey', 'mailchimp_i18n'),
482 '65' => __('Guyana', 'mailchimp_i18n'),
483 '200' => __('Haiti', 'mailchimp_i18n'),
484 '66' => __('Honduras', 'mailchimp_i18n'),
485 '67' => __('Hong Kong', 'mailchimp_i18n'),
486 '68' => __('Hungary', 'mailchimp_i18n'),
487 '69' => __('Iceland', 'mailchimp_i18n'),
488 '70' => __('India', 'mailchimp_i18n'),
489 '71' => __('Indonesia', 'mailchimp_i18n'),
490 '278' => __('Iran', 'mailchimp_i18n'),
491 '279' => __('Iraq', 'mailchimp_i18n'),
492 '74' => __('Ireland', 'mailchimp_i18n'),
493 '75' => __('Israel', 'mailchimp_i18n'),
494 '76' => __('Italy', 'mailchimp_i18n'),
495 '202' => __('Jamaica', 'mailchimp_i18n'),
496 '78' => __('Japan', 'mailchimp_i18n'),
497 '288' => __('Jersey (Channel Islands)', 'mailchimp_i18n'),
498 '79' => __('Jordan', 'mailchimp_i18n'),
499 '80' => __('Kazakhstan', 'mailchimp_i18n'),
500 '81' => __('Kenya', 'mailchimp_i18n'),
501 '82' => __('Kuwait', 'mailchimp_i18n'),
502 '83' => __('Kyrgyzstan', 'mailchimp_i18n'),
503 '84' => __('Lao People\'s Democratic Republic', 'mailchimp_i18n'),
504 '85' => __('Latvia', 'mailchimp_i18n'),
505 '86' => __('Lebanon', 'mailchimp_i18n'),
506 '281' => __('Libya', 'mailchimp_i18n'),
507 '90' => __('Liechtenstein', 'mailchimp_i18n'),
508 '91' => __('Lithuania', 'mailchimp_i18n'),
509 '92' => __('Luxembourg', 'mailchimp_i18n'),
510 '208' => __('Macau', 'mailchimp_i18n'),
511 '93' => __('Macedonia', 'mailchimp_i18n'),
512 '94' => __('Madagascar', 'mailchimp_i18n'),
513 '95' => __('Malawi', 'mailchimp_i18n'),
514 '96' => __('Malaysia', 'mailchimp_i18n'),
515 '97' => __('Maldives', 'mailchimp_i18n'),
516 '98' => __('Mali', 'mailchimp_i18n'),
517 '99' => __('Malta', 'mailchimp_i18n'),
518 '212' => __('Mauritius', 'mailchimp_i18n'),
519 '101' => __('Mexico', 'mailchimp_i18n'),
520 '102' => __('Moldova, Republic of', 'mailchimp_i18n'),
521 '103' => __('Monaco', 'mailchimp_i18n'),
522 '104' => __('Mongolia', 'mailchimp_i18n'),
523 '290' => __('Montenegro', 'mailchimp_i18n'),
524 '105' => __('Morocco', 'mailchimp_i18n'),
525 '106' => __('Mozambique', 'mailchimp_i18n'),
526 '242' => __('Myanmar', 'mailchimp_i18n'),
527 '107' => __('Namibia', 'mailchimp_i18n'),
528 '108' => __('Nepal', 'mailchimp_i18n'),
529 '109' => __('Netherlands', 'mailchimp_i18n'),
530 '110' => __('Netherlands Antilles', 'mailchimp_i18n'),
531 '213' => __('New Caledonia', 'mailchimp_i18n'),
532 '111' => __('New Zealand', 'mailchimp_i18n'),
533 '112' => __('Nicaragua', 'mailchimp_i18n'),
534 '113' => __('Niger', 'mailchimp_i18n'),
535 '114' => __('Nigeria', 'mailchimp_i18n'),
536 '272' => __('North Korea', 'mailchimp_i18n'),
537 '116' => __('Norway', 'mailchimp_i18n'),
538 '117' => __('Oman', 'mailchimp_i18n'),
539 '118' => __('Pakistan', 'mailchimp_i18n'),
540 '222' => __('Palau', 'mailchimp_i18n'),
541 '282' => __('Palestine', 'mailchimp_i18n'),
542 '119' => __('Panama', 'mailchimp_i18n'),
543 '219' => __('Papua New Guinea', 'mailchimp_i18n'),
544 '120' => __('Paraguay', 'mailchimp_i18n'),
545 '121' => __('Peru', 'mailchimp_i18n'),
546 '122' => __('Philippines', 'mailchimp_i18n'),
547 '123' => __('Poland', 'mailchimp_i18n'),
548 '124' => __('Portugal', 'mailchimp_i18n'),
549 '126' => __('Qatar', 'mailchimp_i18n'),
550 '58' => __('Republic of Georgia', 'mailchimp_i18n'),
551 '128' => __('Romania', 'mailchimp_i18n'),
552 '129' => __('Russia', 'mailchimp_i18n'),
553 '130' => __('Rwanda', 'mailchimp_i18n'),
554 '205' => __('Saint Kitts and Nevis', 'mailchimp_i18n'),
555 '206' => __('Saint Lucia', 'mailchimp_i18n'),
556 '132' => __('Samoa (Independent)', 'mailchimp_i18n'),
557 '227' => __('San Marino', 'mailchimp_i18n'),
558 '133' => __('Saudi Arabia', 'mailchimp_i18n'),
559 '134' => __('Senegal', 'mailchimp_i18n'),
560 '266' => __('Serbia', 'mailchimp_i18n'),
561 '135' => __('Seychelles', 'mailchimp_i18n'),
562 '137' => __('Singapore', 'mailchimp_i18n'),
563 '138' => __('Slovakia', 'mailchimp_i18n'),
564 '139' => __('Slovenia', 'mailchimp_i18n'),
565 '223' => __('Solomon Islands', 'mailchimp_i18n'),
566 '141' => __('South Africa', 'mailchimp_i18n'),
567 '142' => __('South Korea', 'mailchimp_i18n'),
568 '143' => __('Spain', 'mailchimp_i18n'),
569 '144' => __('Sri Lanka', 'mailchimp_i18n'),
570 '293' => __('Sudan', 'mailchimp_i18n'),
571 '146' => __('Suriname', 'mailchimp_i18n'),
572 '147' => __('Swaziland', 'mailchimp_i18n'),
573 '148' => __('Sweden', 'mailchimp_i18n'),
574 '149' => __('Switzerland', 'mailchimp_i18n'),
575 '152' => __('Taiwan', 'mailchimp_i18n'),
576 '153' => __('Tanzania', 'mailchimp_i18n'),
577 '154' => __('Thailand', 'mailchimp_i18n'),
578 '155' => __('Togo', 'mailchimp_i18n'),
579 '232' => __('Tonga', 'mailchimp_i18n'),
580 '234' => __('Trinidad and Tobago', 'mailchimp_i18n'),
581 '156' => __('Tunisia', 'mailchimp_i18n'),
582 '157' => __('Turkey', 'mailchimp_i18n'),
583 '287' => __('Turks &amp; Caicos Islands', 'mailchimp_i18n'),
584 '159' => __('Uganda', 'mailchimp_i18n'),
585 '161' => __('Ukraine', 'mailchimp_i18n'),
586 '162' => __('United Arab Emirates', 'mailchimp_i18n'),
587 '262' => __('United Kingdom', 'mailchimp_i18n'),
588 '163' => __('Uruguay', 'mailchimp_i18n'),
589 '239' => __('Vanuatu', 'mailchimp_i18n'),
590 '166' => __('Vatican City State (Holy See)', 'mailchimp_i18n'),
591 '167' => __('Venezuela', 'mailchimp_i18n'),
592 '168' => __('Vietnam', 'mailchimp_i18n'),
593 '169' => __('Virgin Islands (British)', 'mailchimp_i18n'),
594 '238' => __('Virgin Islands (U.S.)', 'mailchimp_i18n'),
595 '173' => __('Zambia', 'mailchimp_i18n'),
596 '174' => __('Zimbabwe', 'mailchimp_i18n'),
597 );
598 }
599 ?>
600