HEX
Server: Apache/2
System: Linux indiandc.serversfarm.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: webinastepupedu (1398)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/webinastepupedu/public_html/wp-content/plugins/chaty-pro/views/admin/mailpoet-integration.php
<?php
/**
 * MSE Mailpoet Integration
 *
 * @author  : Premio <contact@premio.io>
 * @license : GPL2
 * */

if (defined('ABSPATH') === false) {
    exit;
}

if (class_exists('\MailPoet\API\API')) :
    $mailpoet_list = ( isset($value['mailpoet_list'])) ? $value['mailpoet_list'] : '';
    ?>

    <div class="mailpoet-settings <?php echo ($mailpoet_enable == "yes") ? "active" : "" ?>">
        <div class="chaty-setting-col">
            <label class="font-primary text-cht-gray-150" for="sfba_mailchimp_lists">
                <span><?php esc_html_e('Select a MailPoet list', 'chaty');?></span>
            </label>
            <div class="">
                <select class="w-full" id="sfba_mailchimp_lists" name="cht_social_<?php echo esc_attr($social['slug']); ?>[mailpoet_list]">
                    <option value="">Select a list</option>
                    <?php
                    if (!empty($mailpoet_lists)) :
                        foreach ($mailpoet_lists as $lists) :
                            if ($lists['id'] != '' && $lists['name'] != '') {
                                ?>
                                <option value="<?php echo esc_attr($lists['id'])?>" <?php selected($lists['id'], @$mailpoet_list, true);?>><?php echo esc_html($lists['name'])?></option>
                            <?php }
                        endforeach;
                    endif;
                    ?>
                </select>
            </div>
        </div>
    </div>

<?php endif;