/** * Displays the Add Event / Update Event "MailChimp List Integration" option. It will use the get_lists MailChimpController function to populate the dropdown. * If there are no lists within the MailChimp instance, or if the MailChimp integration has not been configured, nothing will be returned. */ function event_list_selection() { //grab the lists from the MailChimp integration. $lists = MailChimpController::get_lists(); //do not display the mailchimp integration settings if there are no lists to display //this will likely only happen if the API key is invalid, or has not been setup. if (!empty($lists)) { ?> <div style="display: block;" id="mailchimp-options" class="postbox"> <div class="handlediv" title="Click to toggle"><br /> </div> <h3 class="hndle"><span> <?php _e('MailChimp List Integration', 'event_espresso'); ?> </span></h3> <div class="inside"> <p> <a class="thickbox" href="#TB_inline?height=400&width=500&inlineId=mailchimp-list-integration" target="_blank"><img src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL; ?> images/question-frame.png" width="16" height="16" alt="Help Link" /></a> <?php echo $lists; ?> </p> </div> </div> <?php ### help dialogue ### ?> <div id="mailchimp-list-integration" style="display:none"> <div class="TB-ee-frame"> <h2><?php _e("MailChimp List Integration", "event_espresso"); ?> </h2> <p><?php _e("The following information will be sent to the selected MailChimp list for future communications <ul><li>Registrant's First Name</li><li>Registrant's Last Name</li><li>Registrant's Email Address</li></ul>", 'event-espresso'); ?> </p> </div> </div> <?php } }
/** * Displays the Add Event / Update Event "MailChimp List Integration" option. It will use the get_lists MailChimpController function to populate the dropdown. * If there are no lists within the MailChimp instance, or if the MailChimp integration has not been configured, nothing will be returned. */ function event_list_selection() { //grab the lists from the MailChimp integration. $lists = MailChimpController::get_lists(); //do not display the mailchimp integration settings if there are no lists to display //this will likely only happen if the API key is invalid, or has not been setup. if (!empty($lists)) { ?> <div style="display: block;" id="mailchimp-options" class="postbox"> <div class="handlediv" title="Click to toggle"><br /> </div> <h3 class="hndle"><span> <?php _e('MailChimp List Integration', 'event_espresso'); ?> </span></h3> <div class="inside"> <p> <?php echo $lists; ?> </p> </div> </div> <?php ### help dialogue ### ?> <div id="mailchimp-list-integration" style="display:none"> <div class="TB-ee-frame"> <h2><?php _e("MailChimp List Integration", "event_espresso"); ?> </h2> <p><?php _e("The following information will be sent to the selected MailChimp list for future communications <ul><li>Registrant's First Name</li><li>Registrant's Last Name</li><li>Registrant's Email Address</li></ul>", 'event-espresso'); ?> </p> </div> </div> <?php } }