_e('Read more about Opt-Ins', 'cart66'); ?> </a></p> </td> </tr> <tr valign="top"> <th scope="row"><?php _e('Show Lists', 'cart66'); ?> </th> <td> <?php $mcLists = false; if ($mailChimpKey = Cart66Setting::getValue('mailchimp_apikey')) { $mc = new Cart66MailChimp($mailChimpKey); $mcLists = $mc->getLists(); } if (is_array($mcLists)) { $mcSavedListIds = array(); if ($mcSavedLists = Cart66Setting::getValue('mailchimp_list_ids')) { $mcSavedListIds = explode('~', $mcSavedLists); } foreach ($mcLists as $list) { $checked = ''; $val = $list['id'] . '::' . $list['name']; Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] looking for: {$val} in " . print_r($mcSavedListIds, true)); if (in_array($val, $mcSavedListIds)) { $checked = 'checked="checked"'; } ?> <input type="hidden" name="mailchimp_list_ids[]" />