<?php
global $current_user, $arformcontroller, $maincontroller;

global $arformcontroller,$arformsplugin;
$setvaltolic = 0;
$setvaltolic = $arformcontroller->$arformsplugin();
?>
<style>
    
</style>

<div class="wrap arf_setting_page">

    <div class="top_bar">
        <span class="h2"><?php echo addslashes(esc_html__('General Settings', 'ARForms')); ?></span>
    </div>
	
	<?php
    if ($setvaltolic != 1) {
        $admin_css_url = admin_url('admin.php?page=ARForms-license');
        ?>

        <div style="margin-top:20px;margin-bottom:10px;border-left: 4px solid #ffba00;box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);height:40px;width:99%;padding:10px 0px 10px 25px;background-color:#f2f2f2;color:#000000;font-size:17px;display:block;visibility:visible;text-align:left;" >ARForms License is not activated. Please activate license from <a href="<?php echo $admin_css_url; ?>">here</a></div>
    <?php } ?>
	
    <div id="poststuff" class="metabox-holder">


        <div id="post-body">

            <div class="inside" style="background-color:#ffffff;">

                <div class="formsettings1" style="background-color:#ffffff;">

                    <div class="setting_tabrow">



                        <div class="arftab" style="padding: 0px;">
                            <?php
                            $setting_tab = get_option('arforms_current_tab');
                            $setting_tab = (!isset($setting_tab) || empty($setting_tab) ) ? 'general_settings' : $setting_tab;
                            ?>

                            <ul id="arfsettingpagenav" class="arfmainformnavigation" style="height:42px; padding-bottom:0px; margin-bottom:0px;">


                                <li style="width:auto !important" class="general_settings <?php
                                if ($setting_tab == 'general_settings') {
                                    echo 'btn_sld';
                                } else {
                                    echo 'tab-unselected';
                                }
                                ?>">
                                    <a href="javascript:show_form_settimgs('general_settings','autoresponder_settings');"><?php echo addslashes(esc_html__('General Settings', 'ARForms')); ?></a>
                                </li>


                                <li style="width:auto !important" class="autoresponder_settings <?php
                                if ($setting_tab == 'autoresponder_settings') {
                                    echo 'btn_sld';
                                } else {
                                    echo 'tab-unselected';
                                }
                                ?>">
                                    <a href="javascript:show_form_settimgs('autoresponder_settings','general_settings');"><?php echo addslashes(esc_html__('Email Marketing Tools', 'ARForms')); ?></a>
                                </li>

                                <?php foreach ($sections as $sec_name => $section) { ?>


                                    <li><a href="#<?php echo $sec_name ?>_settings"><?php echo ucfirst($sec_name) ?></a></li>


                                <?php } ?>

                            </ul>



                        </div>

                    </div>



                    <form name="frm_settings_form" method="post" enctype="multipart/form-data" class="frm_settings_form" onsubmit="return global_form_validate();">


                        <input type="hidden" name="arfaction" value="process-form" />

                        <input type="hidden" name="arfcurrenttab" id="arfcurrenttab" value="<?php echo get_option('arforms_current_tab'); ?>" />

                        <?php wp_nonce_field('update-options'); ?>

                        <div style="margin-left: 15px;">
                                <?php
                                if (is_admin()) {
                                    if (isset($message) && $message != '') {
                                ?>
                                        <script type="text/javascript" language="javascript"> 
                                            setTimeout(function () {
                                                success_msg();
                                            }, 100);
                                        </script>
                                <?php
                                    }
                                    if( !empty( $errors ) ){
                                ?>
                                        <script type="text/javascript">
                                            setTimeout(function(){
                                                error_msg();
                                            },100);
                                        </script>
                                <?php
                                    }
                                ?>
                                    <div id="success_message" class="arf_success_message">
                                        <div class="message_descripiton">
                                            <div style="float: left; margin-right: 15px;" id="arf_settings_msg"><?php
                                            }  if (isset($message) && $message != '') { echo $message; }
                                            if (is_admin()) {
                                                ?></div>
                                            <div class="message_svg_icon">
                                                <svg style="height: 14px;width: 14px;"><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M6.075,14.407l-5.852-5.84l1.616-1.613l4.394,4.385L17.181,0.411 l1.616,1.613L6.392,14.407H6.075z"></path></svg>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="error_message" class="arf_error_message">
                                        <div class="message_descripiton">
                                            <?php
                                            if( !empty( $errors ) ){
                                                if( is_array( $errors ) && count( $errors ) > 0 ){
                                                    foreach( $errors as $error ){
                                                        echo stripslashes_deep( $error ) . '<br/>';
                                                    }
                                                } else {
                                                    echo stripslashes_deep( $errors );
                                                }
                                            }
                                            ?>
                                        </div>
                                    </div>
                                    <?php
                                }
                            
                            ?>
                        </div>

                        <div style="clear:both"></div>




                        <div id="general_settings" style="border-top:none; background-color:#FFFFFF; border-radius:5px 5px 5px 5px;-webkit-border-radius:5px 5px 5px 5px;-o-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;   padding-top:50px;padding-left:50px;padding-right: 50px;<?php if ($setting_tab != 'general_settings') echo 'display:none;'; ?>">


                            <table class="form-table" style="margin-top:0px;">

                                <?php
                                $hostname = $_SERVER["SERVER_NAME"];

                                $setvaltolic = 0;
                                global $check_current_val;
                                $setvaltolic = $arformcontroller->$check_current_val();
                                ?>

                                <?php
                                if (is_rtl()) {
                                    $float_style = 'float:right;';
                                } else {
                                    $float_style = 'float:left;';
                                }

                                function is_captcha_act(){
                                    if(!function_exists('is_plugin_active')){
                                        include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
                                    }
                                    return is_plugin_active('arformsgooglecaptcha/arformsgooglecaptcha.php');
                                }

                                    if(!is_captcha_act())
                                    { 
                                        $show_capt =  'style="display:none"';
                                    }else{
                                        $show_capt = 'style="display:table-row"';
                                    }
                                ?>

                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td class="lbltitle" colspan="2"><?php echo addslashes(esc_html__('reCAPTCHA Configuration', 'ARForms')); ?>&nbsp;
                                    </td>
                                </tr>

                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td colspan="2" style="padding-left:0px; padding-bottom:30px;padding-top:15px;">
                                        <label class="lblsubtitle"><?php echo stripslashes(esc_html__('reCAPTCHA requires an API key, consisting of a "site" and a "private" key. You can sign up for a', 'ARForms')); ?>&nbsp;&nbsp;<a href="https://www.google.com/recaptcha/" target="_blank" class="arlinks"><b><?php echo addslashes(esc_html__('free reCAPTCHA key', 'ARForms')); ?></b></a>.</label>
                                    </td>
                                </tr>

                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td class="tdclass" style="padding-left:30px;" width="18%">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Site Key', 'ARForms')); ?></label>
                                    </td>

                                    <td>
                                        <input type="text" name="frm_pubkey" id="frm_pubkey" class="txtmodal1" size="42" value="<?php echo esc_attr($arfsettings->pubkey) ?>" />
                                    </td>
                                </tr>


                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td class="tdclass">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Secret Key', 'ARForms')); ?></label>
                                    </td>

                                    <td>
                                        <input type="text" name="frm_privkey" id="frm_privkey" class="txtmodal1" size="42" value="<?php echo esc_attr($arfsettings->privkey) ?>" />
                                    </td>
                                </tr>

                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td class="tdclass">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('reCAPTCHA Theme', 'ARForms')); ?></label>
                                    </td>

                                    <td style="padding-bottom:10px;">
                                        <?php
                                        $responder_list_option = array();
                                        $selected_list_id = '';
                                        $selected_list_label = '';

                                        foreach (array('light' => addslashes(esc_html__('Light', 'ARForms')), 'dark' => addslashes(esc_html__('Dark', 'ARForms'))) as $theme_value => $theme_name) {
                                            if ($arfsettings->re_theme == $theme_value) {
                                                $selected_list_id = esc_attr($theme_value);
                                                $responder_list_option[esc_attr($theme_value)] = $theme_name;
                                            }

                                            $responder_list_option[esc_attr($theme_value)] = $theme_name;
                                            ?>
                                        <?php } ?>

                                        <div class="sltstandard" style="float:none;">
                                            <?php
                                                echo $maincontroller->arf_selectpicker_dom( 'frm_re_theme', 'frm_re_theme', '', 'width:400px;', $selected_list_id, array(), $responder_list_option );
                                            ?>
                                        </div>
                                    </td>
                                </tr>


                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td class="tdclass">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('reCAPTCHA Language', 'ARForms')); ?></label>
                                    </td>

                                    <td style="padding-bottom:10px;">
                                        <div class="sltstandard" style="float:none;  margin-top:5px;">
                                            <?php
                                            $responder_list_option = array();
                                            $selected_list_id = 'en';
                                            $selected_list_label = addslashes(esc_html__('English (US)', 'ARForms'));
                                            $rclang = array();
                                            $rclang['en'] = addslashes(esc_html__('English (US)', 'ARForms'));
                                            $rclang['ar'] = addslashes(esc_html__('Arabic', 'ARForms'));
                                            $rclang['bn'] = addslashes(esc_html__('Bengali', 'ARForms'));
                                            $rclang['bg'] = addslashes(esc_html__('Bulgarian', 'ARForms'));
                                            $rclang['ca'] = addslashes(esc_html__('Catalan', 'ARForms'));
                                            $rclang['zh-CN'] = addslashes(esc_html__('Chinese(Simplified)', 'ARForms'));
                                            $rclang['zh-TW'] = addslashes(esc_html__('Chinese(Traditional)', 'ARForms'));
                                            $rclang['hr'] = addslashes(esc_html__('Croatian', 'ARForms'));
                                            $rclang['cs'] = addslashes(esc_html__('Czech', 'ARForms'));
                                            $rclang['da'] = addslashes(esc_html__('Danish', 'ARForms'));
                                            $rclang['nl'] = addslashes(esc_html__('Dutch', 'ARForms'));
                                            $rclang['en-GB'] = addslashes(esc_html__('English (UK)', 'ARForms'));
                                            $rclang['et'] = addslashes(esc_html__('Estonian', 'ARForms'));
                                            $rclang['fil'] = addslashes(esc_html__('Filipino', 'ARForms'));
                                            $rclang['fi'] = addslashes(esc_html__('Finnish', 'ARForms'));
                                            $rclang['fr'] = addslashes(esc_html__('French', 'ARForms'));
                                            $rclang['fr-CA'] = addslashes(esc_html__('French (Canadian)', 'ARForms'));
                                            $rclang['de'] = addslashes(esc_html__('German', 'ARForms'));
                                            $rclang['gu'] = addslashes(esc_html__('Gujarati', 'ARForms'));
                                            $rclang['de-AT'] = addslashes(esc_html__('German (Autstria)', 'ARForms'));
                                            $rclang['de-CH'] = addslashes(esc_html__('German (Switzerland)', 'ARForms'));
                                            $rclang['el'] = addslashes(esc_html__('Greek', 'ARForms'));
                                            $rclang['iw'] = addslashes(esc_html__('Hebrew', 'ARForms'));
                                            $rclang['hi'] = addslashes(esc_html__('Hindi', 'ARForms'));
                                            $rclang['hu'] = addslashes(esc_html__('Hungarian', 'ARForms'));
                                            $rclang['id'] = addslashes(esc_html__('Indonesian', 'ARForms'));
                                            $rclang['it'] = addslashes(esc_html__('Italian', 'ARForms'));
                                            $rclang['ja'] = addslashes(esc_html__('Japanese', 'ARForms'));
                                            $rclang['kn'] = addslashes(esc_html__('Kannada', 'ARForms'));
                                            $rclang['ko'] = addslashes(esc_html__('Korean', 'ARForms'));
                                            $rclang['lv'] = addslashes(esc_html__('Latvian', 'ARForms'));
                                            $rclang['lt'] = addslashes(esc_html__('Lithuanian', 'ARForms'));
                                            $rclang['ms'] = addslashes(esc_html__('Malay', 'ARForms'));
                                            $rclang['ml'] = addslashes(esc_html__('Malayalam', 'ARForms'));
                                            $rclang['mr'] = addslashes(esc_html__('Marathi', 'ARForms'));
                                            $rclang['no'] = addslashes(esc_html__('Norwegian', 'ARForms'));
                                            $rclang['fa'] = addslashes(esc_html__('Persian', 'ARForms'));
                                            $rclang['pl'] = addslashes(esc_html__('Polish', 'ARForms'));
                                            $rclang['pt'] = addslashes(esc_html__('Portuguese', 'ARForms'));
                                            $rclang['pt-BR'] = addslashes(esc_html__('Portuguese (Brazil)', 'ARForms'));
                                            $rclang['pt-PT'] = addslashes(esc_html__('Portuguese (Portugal)', 'ARForms'));
                                            $rclang['ro'] = addslashes(esc_html__('Romanian', 'ARForms'));
                                            $rclang['ru'] = addslashes(esc_html__('Russian', 'ARForms'));
                                            $rclang['sr'] = addslashes(esc_html__('Serbian', 'ARForms'));
                                            $rclang['sk'] = addslashes(esc_html__('Slovak', 'ARForms'));
                                            $rclang['sl'] = addslashes(esc_html__('Slovenian', 'ARForms'));
                                            $rclang['es'] = addslashes(esc_html__('Spanish', 'ARForms'));
                                            $rclang['es-149'] = addslashes(esc_html__('Spanish (Latin America)', 'ARForms'));
                                            $rclang['sv'] = addslashes(esc_html__('Swedish', 'ARForms'));
                                            $rclang['ta'] = addslashes(esc_html__('Tamil', 'ARForms'));
                                            $rclang['te'] = addslashes(esc_html__('Telugu', 'ARForms'));
                                            $rclang['th'] = addslashes(esc_html__('Thai', 'ARForms'));
                                            $rclang['tr'] = addslashes(esc_html__('Turkish', 'ARForms'));
                                            $rclang['uk'] = addslashes(esc_html__('Ukrainian', 'ARForms'));
                                            $rclang['ur'] = addslashes(esc_html__('Urdu', 'ARForms'));
                                            $rclang['vi'] = addslashes(esc_html__('Vietnamese', 'ARForms'));
                                            ?>
                                            <?php
                                            foreach ($rclang as $lang => $lang_name) {
                                                if ($arfsettings->re_lang == $lang) {
                                                    $selected_list_id = esc_attr($lang);
                                                    $responder_list_option[esc_attr($lang)] = $lang_name;
                                                }

                                                $responder_list_option[esc_attr($lang)] = $lang_name;
                                            }
                                            ?>
                                            
                                            <?php
                                                echo $maincontroller->arf_selectpicker_dom( 'frm_re_lang', 'frm_re_lang', '', 'width:400px;', $selected_list_id, array(), $responder_list_option, false, array(), false, array(), false, array(), true );
                                            ?>
                                        </div>
                                    </td>
                                </tr>

                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td class="tdclass" >
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('reCAPTCHA Failed Message', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label>
                                    </td>
                                    
                                    <td>
                                        <input type="text" class="txtmodal1" value="<?php echo esc_attr($arfsettings->re_msg) ?>" id="re_msg" name="frm_re_msg" />
                                        <div class="arferrmessage" id="arferrorsubmitvalue_captcha" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>
                                    </td>
                                </tr>

                                <tr class="arfmainformfield" valign="top" <?php echo $show_capt;?>>
                                    <td colspan="2"><div style="width:96%" class="dotted_line"></div></td>
                                </tr>
                
                                <?php
                                if (is_rtl()) {
                                    $float_style = 'float:right;';
                                } else {
                                    $float_style = 'float:left;';
                                }
                                ?>
                                <tr class="arfmainformfield">
                                    <td valign="top" colspan="2" class="lbltitle titleclass"><?php echo addslashes(esc_html__('Default Messages On Form', 'ARForms')); ?> </td>
                                </tr>

                                <tr>
                                    <td class="tdclass"  style="padding-left:30px;" width="18%">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Blank Field', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label> <br/>
                                    </td>
                                    <td class="arfmainformfield" >
                                        <input type="text" id="frm_blank_msg" name="frm_blank_msg" class="txtmodal1" value="<?php echo esc_attr($arfsettings->blank_msg) ?>" style=" <?php echo $float_style; ?>"/>

                                        <div class="arf_tooltip_main" style=" <?php echo $float_style; ?>"><img alt='' src="<?php echo ARFIMAGESURL ?>/tooltips-icon.png" alt="?" class="arfhelptip" title="<?php echo addslashes(esc_html__('Message will be displayed when required fields is left blank.', 'ARForms')); ?>" style="margin-left:10px; margin-top:4px;"/></div>
                                        <div style="clear:both"></div>
                                        <div class="arferrmessage" id="arfblankerrmsg" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>
                                    </td>


                                </tr>
                                <tr class="arfmainformfield">
                                    <td class="tdclass">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Incorrect Field', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label> <br/>

                                    </td>

                                    <td >
                                        <input type="text" id="arfinvalidmsg" name="frm_invalid_msg" class="txtmodal1" value="<?php echo esc_attr($arfsettings->invalid_msg) ?>" style=" <?php echo $float_style; ?>"/>

                                        <div class="arf_tooltip_main" style=" <?php echo $float_style; ?>"><img alt='' src="<?php echo ARFIMAGESURL ?>/tooltips-icon.png" alt="?" class="arfhelptip" title="<?php echo addslashes(esc_html__('Message will be displayed when incorrect data is inserted of missing.', 'ARForms')); ?>" style="margin-left:10px; margin-top:4px;"/></div>
                                        <div style="clear:both"></div>
                                        <div class="arferrmessage" id="arfinvalidmsg_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms'));; ?></div>
                                    </td>


                                    </td>
                                </tr>
                                <tr class="arfmainformfield">
                                    <td class="tdclass">


                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Success Message', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label> </td>

                                    <td>

                                        <input type="text" id="arfsuccessmsg" name="frm_success_msg" class="txtmodal1" value="<?php echo esc_attr($arfsettings->success_msg) ?>" style=" <?php echo $float_style; ?>"/>

                                        <div class="arf_tooltip_main" style=" <?php echo $float_style; ?>"><img alt='' src="<?php echo ARFIMAGESURL ?>/tooltips-icon.png" alt="?" class="arfhelptip" title="<?php echo addslashes(esc_html__('Default message displayed after form is submitted.', 'ARForms')); ?>" style="margin-left:10px; margin-top:4px;"/></div>
                                        <div style="clear:both"></div>

                                        <div class="arferrmessage" id="arfsuccessmsgerr" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>


                                    </td>


                                </tr>


                                <tr class="arfmainformfield">


                                    <td class="tdclass">


                                        <label class="lblsubtitle"><?php echo esc_html__('Submission Failed Message', 'ARForms'); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label></td>

                                    <td >

                                        <input type="text" id="arfmessagefailed" name="frm_failed_msg" class="txtmodal1" value="<?php echo esc_attr($arfsettings->failed_msg) ?>" style=" <?php echo $float_style; ?>"/>

                                        <div class="arf_tooltip_main" style=" <?php echo $float_style; ?>"><img alt='' src="<?php echo ARFIMAGESURL ?>/tooltips-icon.png" alt="?" class="arfhelptip" title="<?php echo addslashes(esc_html__('Message will be displayed when form is submitted but Duplicate entry exists.', 'ARForms')); ?>" style="margin-left:10px; margin-top:4px;"/></div>
                                        <div style="clear:both"></div>

                                        <div class="arferrmessage" id="arferrormessagefailed" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>


                                    </td>


                                </tr>


                                <tr class="arfmainformfield">


                                    <td class="tdclass" >


                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Default Submit Button', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label></td>


                                    <td >

                                        <input type="text" class="txtmodal1" value="<?php echo esc_attr($arfsettings->submit_value) ?>" id="arfvaluesubmit" name="frm_submit_value" />
                                        <div class="arferrmessage" id="arferrorsubmitvalue" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>


                                    </td>


                                </tr>
                                <tr class="arfmainformfield" valign="top">
                                    <td colspan="2"><div style="width:96%" class="dotted_line"></div></td>
                                </tr>


                                <tr class="arfmainformfield">
                                    <td valign="top" colspan="2" class="lbltitle titleclass"><?php echo addslashes(esc_html__('Email Settings', 'ARForms')); ?></td>
                                </tr>

                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('From/Replyto Name', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label> </td>


                                    <td valign="top" style="padding-bottom:10px;">


                                        <input type="text" class="txtmodal1" id="frm_reply_to_name" name="frm_reply_to_name" value="<?php echo $arfsettings->reply_to_name; ?>" style="width:400px;">
                                        <div class="arferrmessage" id="frm_reply_to_name_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>

                                    </td>


                                </tr>


                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('From Email', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="text" class="txtmodal1" id="frm_reply_to" name="frm_reply_to" value="<?php echo $arfsettings->reply_to; ?>" style="width:400px;">
                                        <div class="arferrmessage" id="frm_reply_to_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>
                                    </td>
                                </tr>

                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Reply to Email', 'ARForms')); ?>&nbsp;&nbsp;<span style="vertical-align:middle" class="arfglobalrequiredfield">*</span></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="text" class="txtmodal1" id="reply_to_email" name="reply_to_email" value="<?php echo $arfsettings->reply_to_email; ?>" style="width:400px;">
                                        <div class="arferrmessage" id="frm_reply_to_email_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div>
                                    </td>
                                </tr>

                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Send Email SMTP', 'ARForms')); ?></label> </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div">
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" class="arf_custom_radio arf_submit_action" name="frm_smtp_server" id="arf_wordpress_smtp" value="wordpress" <?php checked($arfsettings->smtp_server, 'wordpress'); ?> onchange="arfchangesmtpsetting();"  />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="arf_wordpress_smtp"><?php echo addslashes(esc_html__('WordPress Server', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div">
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" class="arf_custom_radio arf_submit_action" name="frm_smtp_server" id="arf_custom_custom" onchange="arfchangesmtpsetting();" value="custom" <?php checked($arfsettings->smtp_server, 'custom'); ?>  />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="arf_custom_custom"><?php echo addslashes(esc_html__('SMTP Server', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div">
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" class="arf_custom_radio arf_submit_action" name="frm_smtp_server" id="arf_wordpress_phpmailer" value="phpmailer" <?php checked($arfsettings->smtp_server, 'phpmailer'); ?> onchange="arfchangesmtpsetting();"  />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="arf_wordpress_phpmailer"><?php echo addslashes(esc_html__('PHP Mailer', 'ARForms')); ?></label>
                                            </span>
                                        </div>

                                        <!-- Gmail API  -->
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div">
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" class="arf_custom_radio arf_submit_action" name="frm_smtp_server" id="arf_wordpress_gmail" value="arf_gmail_api" <?php checked($arfsettings->smtp_server, 'arf_gmail_api'); ?> onchange="arfchangesmtpsetting();"  />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="arf_wordpress_gmail"><?php echo addslashes(esc_html__('Google/Gmail API', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>

                                <tr class="arf_check_email_format" <?php if($arfsettings->smtp_server == 'arf_gmail_api'){ echo 'style="display:none"'; } ?>>
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Email Format', 'ARForms')); ?></label> </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" name="arf_email_format" id="arf_email_html" class="arf_submit_action arf_custom_radio" value="html" <?php
                                                    if ($arfsettings->arf_email_format == 'html' || $arfsettings->arf_email_format == '') {
                                                        echo 'checked="checked"';
                                                    } else {
                                                        echo '';
                                                    }
                                                    ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="arf_email_html"><?php echo addslashes(esc_html__('HTML', 'ARForms')); ?></label>
                                            </span>
                                        </div>

                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" name="arf_email_format" id="arf_email_plain" class="arf_submit_action arf_custom_radio" value="plain" <?php checked($arfsettings->arf_email_format, 'plain'); ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="arf_email_plain"><?php echo addslashes(esc_html__('Plain Text', 'ARForms')); ?></label>
                                            </span>
                                        </div>

                                    </td>
                                </tr>

                                <!-- Google/Gmail api related changes start -->
                                <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?>>
                                    <td class="tdclass"></td>
                                    <td colspan="2" style="padding:0 15px 10px;">
                                    <span style="color:#ff0000;">
                                        <?php echo __("Note: The Gmail mailer works well for sites that send low numbers of emails. However, Gmail's API has rate limitations and a number of additional restrictions that can lead to challenges during setup. If you expect to send a high volume of emails, or if you find that your web host is not compatible with the Gmail API restrictions, then we recommend considering a different mailer option.","ARForms"); ?>
                                    </span>
                                    </td>
                                </tr>
                                <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >   
                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Client ID', 'ARForms'); ?></label></td>
                                        <td valign="top" style="padding-bottom:10px;">
                                            <input type="text" class="txtmodal1" id="frm_gmail_api_clientid" name="frm_gmail_api_clientid" value="<?php echo $arfsettings->gmail_api_clientid; ?>" style="width:400px;">
                                        </td>
                                    </tr>

                                    <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; }  ?> >
                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Client Secret', 'ARForms'); ?></label></td>
                                        <td valign="top" style="padding-bottom:10px;">
                                            <input type="text" class="txtmodal1" id="frm_gmail_api_clientsecret" name="frm_gmail_api_clientsecret" value="<?php echo $arfsettings->gmail_api_clientsecret; ?>" style="width:400px;">
                                        </td>
                                    </tr>

                                    <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >
                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Authorized redirect URI', 'ARForms'); ?></label></td>
                                        <td valign="top" style="padding-bottom:10px;">
                                                <?php $authURL = get_home_url(). '?arf_page=arforms-gmail-callback' ?>
                                            <input type="text" class="txtmodal1" id="frm_gmail_auth_url" name="frm_gmail_auth_uri" value="<?php echo $authURL?>" readonly>

                                            <span style="width: 30px; height: 30px; display: inline-block; margin-left: 10px; cursor:pointer;" id="arf_gmail_api_copy" data-copy-title="<?php esc_html_e('Click to Copy','ARForms') ?>" data-copied-title="<?php esc_html_e('Copied to Clipboard','ARForms'); ?>" ><i class="far fa-copy" style="font-size:18px; padding:2px; color:#3f74e7; cursor:pointer; position:relative;top:2px;left:-2px;"></i></span>

                                        </td>
                                    </tr>

                                    <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >
                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Authentication Token', 'ARForms'); ?></label></td>
                                        <td valign="top" style="padding-bottom:10px;">
                                                <?php 
                                                    $gmail_api_access_token = get_option('arf_gmail_api_access_token'); 
                                                    $gmail_api_access_token = json_decode( $gmail_api_access_token, true );

                                                    $gmail_api_outh_data = get_option('bookingpress_gmail_auth');
                                                    $gmail_api_outh_data = json_decode( $gmail_api_outh_data, true );
                                                ?>
                                            <input type="text" class="txtmodal1" id="frm_gmail_api_accesstoken" name="frm_gmail_api_accesstoken" value="<?php echo $gmail_api_access_token; ?>" style="width:400px;" disabled>
                                            <?php 
                                                $gmail_connected_email = get_option('arf_gmail_api_connected_email');
                                                $gmail_connected_email = json_decode($gmail_connected_email, true);
                                            ?>
                                            <input type="hidden" id="arf_connected_email" name="arf_connected_email" value="<?php echo $gmail_connected_email; ?>">

                                            <span id="arf_google_api_auth_link_remove" style="<?php if($gmail_api_access_token != '') { echo "display:inline-block; margin-left:5px;";} else { echo "display:none;";} ?>">
                                                <a target="_blank" id="arf_gmail_disconnect_btn" onclick="arf_gmail_api_remove('<?php echo $arfsettings->gmail_api_clientid; ?>','<?php echo $arfsettings->gmail_api_clientsecret; ?> ',' <?php echo $gmail_api_access_token; ?>',' <?php echo $gmail_connected_email; ?> ',' <?php echo $gmail_api_outh_data; ?>');" class="arlinks">Disconnect</a>
                                            </span>

                                            <span id="arf_google_api_auth_link" style="<?php if( $gmail_api_access_token == '' ) { echo "display:inline-block; margin-left:5px;"; } else { echo "display:none;";} ?>" >
                                                <a target="_blank" class="arf_gmail_connect_btn" onclick="arf_connect_gmail_api('<?php echo $authURL; ?>','<?php echo $arfsettings->gmail_api_clientid; ?>','<?php echo $arfsettings->gmail_api_clientsecret; ?> ');" class="arlinks">Connect</a>
                                            </span>
                                        </td>
                                    </tr>

                                    <?php
                                        $gmail_test_mail_style = "disabled='disabled'";
                                        $gmail_test_main_class = "arfdisabled";

                                        if ($arfsettings->smtp_server == "arf_gmail_api" && $arfsettings->gmail_api_clientid != "" && $arfsettings->gmail_api_clientsecret != "") {
                                            $gmail_test_mail_style = "";
                                            $gmail_test_main_class = "";
                                        } else {
                                            $gmail_test_mail_style = "disabled='disabled'";
                                            $gmail_test_main_class = "arfdisabled";
                                        }
                                    ?>
                                <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lbltitle">
                                            <?php echo addslashes(esc_html__('Send Test E-mail', 'ARForms')); ?>
                                        </label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <label id="arf_success_test_gmail"><?php echo addslashes(esc_html__('Your test mail is successfully sent', 'ARForms')); ?> </label>
                                        <label id="arf_error_test_gmail"><?php echo addslashes(esc_html__('Your test mail is not sent for some reason, Please check your Gmail setting', 'ARForms')); ?> </label>
                                    </td>
                                </tr>
                                <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lblsubtitle">
                                            <?php echo addslashes(esc_html__('To', 'ARForms')); ?>
                                        </label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="text" id="sendtestgmail_to" name="sendtestgmail_to" class="txtmodal1 <?php echo $gmail_test_main_class; ?>" value="<?php echo isset($arfsettings->smtp_send_test_mail_to) ? $arfsettings->smtp_send_test_mail_to : '' ?>" <?php echo $gmail_test_mail_style; ?> />
                                    </td>
                                </tr>

                                <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lblsubtitle">
                                            <?php echo addslashes(esc_html__('Message', 'ARForms')); ?>
                                        </label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <textarea class="txtmultinew testmailmsg  <?php echo $gmail_test_main_class; ?>" name="sendtestgmail_msg" <?php echo $gmail_test_mail_style; ?> id="sendtestgmail_msg" ><?php echo isset($arfsettings->smtp_send_test_mail_msg) ? $arfsettings->smtp_send_test_mail_msg : '' ?></textarea>
                                    </td>
                                </tr>

                                <tr class="arfgmailapisetting" <?php if ($arfsettings->smtp_server != 'arf_gmail_api') { echo 'style="display:none;"'; } ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lblsubtitle">&nbsp;</label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="button" value="<?php echo addslashes(esc_html__('Send test mail', 'ARForms')); ?>" class="rounded_button arf_btn_dark_blue <?php echo $gmail_test_main_class; ?>" id="arf_send_test_gmail" <?php echo $gmail_test_mail_style; ?> style="<?php echo (is_rtl()) ? 'margin-right: -4px;' : 'margin-left: -4px;'; ?>color:#ffffff;width: 118px !important;"> <img alt='' src="<?php echo ARFIMAGESURL . '/ajax_loader_gray_32.gif'; ?>" id="arf_send_test_gmail_loader" style="display:none;position:relative;left:5px;top:5px;" width="16" height="16" /> <span  class="lblnotetitle">(<?php echo addslashes(esc_html__('Test e-mail works only after configure Gmail API settings', 'ARForms')); ?>)</span>
                                    </td>
                                </tr>
                            <!-- Google/Gmail api related changes end -->

                                <tr class="arfsmptpsettings" <?php echo ($arfsettings->smtp_server != 'custom') ? 'style="display:none;"' : ''; ?> >
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Authentication', 'ARForms')); ?></label> </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <div class="arf_custom_checkbox_div">
                                            <div class="arf_custom_checkbox_wrapper">
                                                <input type="checkbox" class="" onclick="arf_is_smtp_authentication();" id="is_smtp_authentication" name="is_smtp_authentication" value="1" <?php checked($arfsettings->is_smtp_authentication, 1) ?> style="border:none;">
                                                <svg width="18px" height="18px">
                                                <?php echo ARF_CUSTOM_UNCHECKED_ICON; ?>
                                                <?php echo ARF_CUSTOM_CHECKED_ICON; ?>
                                                </svg>
                                            </div>
                                            <span style="margin-left: 5px;"><label for="is_smtp_authentication"><?php echo esc_html__('Enable SMTP authentication', 'ARForms'); ?></label></span>
                                        </div>
                                    </td>
                                </tr>


                                <tr class="arfsmptpsettings" <?php if ($arfsettings->smtp_server != 'custom') { echo 'style="display:none;"'; } ?> >
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('SMTP Host', 'ARForms')); ?></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="text" class="txtmodal1" id="frm_smtp_host" name="frm_smtp_host" value="<?php echo $arfsettings->smtp_host; ?>" style="width:400px;">
                                    </td>
                                </tr>

                                <tr class="arfsmptpsettings" <?php
                                if ($arfsettings->smtp_server != 'custom') {
                                    echo 'style="display:none;"';
                                }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('SMTP Port', 'ARForms')); ?></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input onkeyup="arf_show_test_mail();" type="text" class="txtmodal1" id="frm_smtp_port" name="frm_smtp_port" value="<?php echo $arfsettings->smtp_port; ?>" style="width:400px;">
                                    </td>
                                </tr>

                                <tr class="arfsmptpsettings arf_authentication_field" <?php if ($arfsettings->smtp_server != 'custom') { echo 'style="display:none;"'; } else { if ($arfsettings->is_smtp_authentication != '1') { echo 'style="display:none;"'; } }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('SMTP Username', 'ARForms'); ?></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input onkeyup="arf_show_test_mail();" type="text" class="txtmodal1" id="frm_smtp_username" name="frm_smtp_username" value="<?php echo $arfsettings->smtp_username; ?>" style="width:400px;">
                                    </td>
                                </tr>


                                <tr class="arfsmptpsettings arf_authentication_field" <?php if ($arfsettings->smtp_server != 'custom') { echo 'style="display:none;"'; } else { if ($arfsettings->is_smtp_authentication != '1') { echo 'style="display:none;"'; } } ?> >
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('SMTP Password', 'ARForms')); ?></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input onkeyup="arf_show_test_mail();" type="password" class="txtmodal1" id="frm_smtp_password" name="frm_smtp_password" value="<?php echo $arfsettings->smtp_password; ?>" style="width:400px;">


                                    </td>
                                </tr>


                                <tr class="arfsmptpsettings" <?php
                                if ($arfsettings->smtp_server != 'custom') {
                                    echo 'style="display:none;"';
                                }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('SMTP Encryption', 'ARForms')); ?></label></td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" name="frm_smtp_encryption" id="frm_smtp_encryption_none" class="arf_submit_action arf_custom_radio" value="none" <?php checked($arfsettings->smtp_encryption, 'none'); ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="frm_smtp_encryption_none"><?php echo addslashes(esc_html__('None', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" name="frm_smtp_encryption" id="frm_smtp_encryption_ssl" class="arf_submit_action arf_custom_radio" value="ssl" <?php checked($arfsettings->smtp_encryption, 'ssl'); ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="frm_smtp_encryption_ssl"><?php echo addslashes(esc_html__('SSL', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" name="frm_smtp_encryption" id="frm_smtp_encryption_tls" class="arf_submit_action arf_custom_radio" value="tls" <?php checked($arfsettings->smtp_encryption, 'tls'); ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="frm_smtp_encryption_tls"><?php echo addslashes(esc_html__('TLS', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <?php
                                $smtp_test_mail_style = "disabled='disabled'";
                                $smtp_test_main_class = "arfdisabled";

                                if ($arfsettings->is_smtp_authentication == '1') {
                                    if ($arfsettings->smtp_server == "custom" && $arfsettings->smtp_port != "" && $arfsettings->smtp_host != "" && $arfsettings->smtp_username != "" && $arfsettings->smtp_password != "") {
                                        $smtp_test_mail_style = "";
                                        $smtp_test_main_class = "";
                                    } else {
                                        $smtp_test_mail_style = "disabled='disabled'";
                                        $smtp_test_main_class = "arfdisabled";
                                    }
                                } else {
                                    if ($arfsettings->smtp_server == "custom" && $arfsettings->smtp_port != "" && $arfsettings->smtp_host != "") {
                                        $smtp_test_mail_style = "";
                                        $smtp_test_main_class = "";
                                    } else {
                                        $smtp_test_mail_style = "disabled='disabled'";
                                        $smtp_test_main_class = "arfdisabled";
                                    }
                                }
                                ?>
                                <tr class="arfsmptpsettings" <?php
                                if ($arfsettings->smtp_server != 'custom') {
                                    echo 'style="display:none;"';
                                }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lbltitle">
                                            <?php echo addslashes(esc_html__('Send Test E-mail', 'ARForms')); ?>
                                        </label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <label id="arf_success_test_mail"><?php echo addslashes(esc_html__('Your test mail is successfully sent', 'ARForms')); ?> </label>
                                        <label id="arf_error_test_mail"><?php echo addslashes(esc_html__('Your test mail is not sent for some reason, Please check your SMTP setting', 'ARForms')); ?> </label>
                                    </td>
                                </tr>
                                <tr class="arfsmptpsettings" <?php
                                if ($arfsettings->smtp_server != 'custom') {
                                    echo 'style="display:none;"';
                                }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lblsubtitle">
                                            <?php echo addslashes(esc_html__('To', 'ARForms')); ?>
                                        </label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="text" id="sendtestmail_to" name="sendtestmail_to" class="txtmodal1 <?php echo $smtp_test_main_class; ?>" value="<?php echo isset($arfsettings->smtp_send_test_mail_to) ? $arfsettings->smtp_send_test_mail_to : '' ?>" <?php echo $smtp_test_mail_style; ?> />
                                    </td>
                                </tr>

                                <tr class="arfsmptpsettings" <?php
                                if ($arfsettings->smtp_server != 'custom') {
                                    echo 'style="display:none;"';
                                }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lblsubtitle">
                                            <?php echo addslashes(esc_html__('Message', 'ARForms')); ?>
                                        </label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <textarea class="txtmultinew testmailmsg  <?php echo $smtp_test_main_class; ?>" name="sendtestmail_msg" <?php echo $smtp_test_mail_style; ?> id="sendtestmail_msg" ><?php echo isset($arfsettings->smtp_send_test_mail_msg) ? $arfsettings->smtp_send_test_mail_msg : '' ?></textarea>
                                    </td>
                                </tr>

                                <tr class="arfsmptpsettings" <?php
                                if ($arfsettings->smtp_server != 'custom') {
                                    echo 'style="display:none;"';
                                }
                                ?> >
                                    <td class="tdclass" valign="top" style="padding-left:20px;">
                                        <label class="lblsubtitle">&nbsp;</label>
                                    </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <input type="button" value="<?php echo addslashes(esc_html__('Send test mail', 'ARForms')); ?>" class="rounded_button arf_btn_dark_blue <?php echo $smtp_test_main_class; ?>" id="arf_send_test_mail" <?php echo $smtp_test_mail_style; ?> style="<?php echo (is_rtl()) ? 'margin-right: -4px;' : 'margin-left: -4px;'; ?>color:#ffffff;width: 118px !important;"> <img alt='' src="<?php echo ARFIMAGESURL . '/ajax_loader_gray_32.gif'; ?>" id="arf_send_test_mail_loader" style="display:none;position:relative;left:5px;top:5px;" width="16" height="16" /> <span  class="lblnotetitle">(<?php echo addslashes(esc_html__('Test e-mail works only after configure SMTP server settings', 'ARForms')); ?>)</span>
                                    </td>
                                </tr>
                                <tr class="arfmainformfield" valign="top">
                                    <td colspan="2"><div style="width:96%" class="dotted_line"></div></td>
                                </tr>


                                <tr class="arfmainformfield">
                                    <td valign="top" colspan="2" class="lbltitle titleclass"><?php echo addslashes(esc_html__('Other Settings', 'ARForms')); ?></td>
                                </tr>

                                <tr>

                                    <?php if ($setvaltolic == 1) { ?>
                                    <tr>


                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Rebranding', 'ARForms'); ?></label> </td>


                                        <td valign="top" style="padding-bottom:10px;">
                                            <div class="arf_custom_checkbox_div">
                                                <div class="arf_custom_checkbox_wrapper">
                                                    <input type="checkbox" name="arfmainformbrand" id="arfmainformbrand" value="1" <?php checked($arfsettings->brand, 1) ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKED_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKED_ICON; ?>
                                                    </svg>
                                                </div>
                                                <span style="margin-left: 5px;"><label for="arfmainformbrand"><?php echo esc_html__('Remove rebranding link', 'ARForms'); ?></label></span>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Affiliate Code', 'ARForms'); ?></label> </td>
                                        <td valign="top" style="padding-bottom:10px;">
                                            <input type="text" class="txtmodal1" id="affiliate_code" name="affiliate_code" value="<?php echo $arfsettings->affiliate_code; ?>" style="width:400px;">
                                        </td>
                                    </tr>
                                    <tr>
                                    <?php 
                                    ?>

                                        <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Disable built-in Anti-spam feature in signup forms', 'ARForms'); ?></label> </td>

                                        <td valign="top" style="padding-bottom:10px;padding-top:15px;vertical-align: top;">
                                            <div class="arf_custom_checkbox_div">
                                                <div class="arf_custom_checkbox_wrapper">
                                                    <input type="checkbox" name="arfdisablehiddencaptcha" id="arfdisablehiddencaptcha" value="1" <?php checked($arfsettings->hidden_captcha, 1) ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKED_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKED_ICON; ?>
                                                    </svg>
                                                </div>
                                                <span style="margin-left: 5px;"><label for="arfdisablehiddencaptcha"><?php echo esc_html__('Yes', 'ARForms'); ?></label></span>
                                            </div>
                                        </td>
                                    </tr>

                                <?php } else { ?>
                                    <input type="hidden" name="arfmainformbrand" value="0"  />
                                <?php } ?>
                               
                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Form Submission Method', 'ARForms')); ?></label> </td>

                                    <td valign="top" style="padding-bottom:10px;">
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" onchange="arf_change_form_submission_type(this);" name="arfmainformsubmittype" id="ajax_base_sbmt" class="arf_submit_action arf_custom_radio" value="1" <?php
                                                    if ($arfsettings->form_submit_type == 1) {
                                                        echo 'checked="checked"';
                                                    } else {
                                                        echo '';
                                                    }
                                                    ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="ajax_base_sbmt"><?php echo addslashes(esc_html__('Ajax based submission', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" onchange="arf_change_form_submission_type(this);" name="arfmainformsubmittype" id="normal_form_sbmt" class="arf_submit_action arf_custom_radio" value="0" <?php if ($arfsettings->form_submit_type == 0) echo 'checked="checked"'; ?> />
                                                    <svg width="18px" height="18px">
                                                    <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                    <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="normal_form_sbmt"><?php echo addslashes(esc_html__('Normal submission', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>

                                <tr class="arf_success_message_show_time_wrapper" <?php
                                    if ($arfsettings->form_submit_type == 0) {
                                        echo 'style="display: none"';
                                    }
                                    ?> >


                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Hide success/error message after', 'ARForms')); ?></label> </td>


                                    <td valign="top" style="padding-bottom:10px;">
                                        <?php
                                        if (!(isset($arfsettings->arf_success_message_show_time) && $arfsettings->arf_success_message_show_time >= 0)) {
                                            $arfsettings->arf_success_message_show_time = 3;
                                        }
                                        ?>
                                        <div class="arf_success_message_show_time_inner">
                                            <input type="text" name="arf_success_message_show_time" onkeydown="arfvalidatenumber_admin(this, event);" maxlength="3" value="<?php echo esc_attr($arfsettings->arf_success_message_show_time) ?>" class="arf_success_message_show_time txtmodal1" class="arf_small_width_txtbox arfcolor" style="width:8% !important"/>
                                            <?php echo addslashes(esc_html__('seconds', 'ARForms')).'&nbsp;&nbsp;'; ?>
                                            
                                            <span class="arf_success_message_show_time_inner" style="margin-top: 10px;">( <?php echo esc_html__('Note : 0 ( zero ) means it will never hide success/error message', 'ARForms'); ?> )</span>
                                        
                                        </div>

                                    </td>


                                </tr>

                                <tr class="arfmainformfield" valign="top">
                                    <td class="tdclass">
                                        <label class="lblsubtitle"><?php echo addslashes(esc_html__('Decimal separator', 'ARForms')); ?></label>
                                    </td>
                                    <td style="padding-bottom:10px;">
                                        <?php
                                        $responder_list_option = array();
                                        $selected_list_id = '.';
                                        $selected_list_label = addslashes(esc_html__('Dot (.)','ARForms'));

                                        foreach (array('.' => addslashes(esc_html__('Dot (.)', 'ARForms')), ',' => addslashes(esc_html__('Comma (,)', 'ARForms')), 'no_separator' => addslashes(esc_html__('No Separator', 'ARForms'))) as $decimal_value => $decimal_name) {

                                            if (isset($arfsettings->decimal_separator) && $arfsettings->decimal_separator == $decimal_value) {
                                                $selected_list_id = esc_attr($decimal_value);
                                                $responder_list_option[esc_attr($decimal_value)] = $decimal_name;
                                            }

                                            $responder_list_option[esc_attr($decimal_value)] = $decimal_name;
                                            ?>
                                        <?php } ?>

                                        <div class="sltstandard" style="float:none;">
                                            <?php
                                                echo $maincontroller->arf_selectpicker_dom( 'decimal_separator', 'decimal_separator', '', 'width:229px;', $selected_list_id, array(), $responder_list_option );
                                            ?>

                                        </div>
                                    </td>
                                </tr>


                                <tr>

                                    <td class="tdclass" valign="top" style="padding-left:30px; vertical-align:top;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Select character sets for google fonts', 'ARForms')); ?></label> </td>

                                    <td valign="top" style="padding-bottom:10px;">

                                        <?php
                                        $arf_character_arr = array('latin' => 'Latin', 'latin-ext' => 'Latin-ext', 'menu' => 'Menu', 'greek' => 'Greek', 'greek-ext' => 'Greek-ext', 'cyrillic' => 'Cyrillic',
                                            'cyrillic-ext' => 'Cyrillic-ext', 'vietnamese' => 'Vietnamese', 'arabic' => 'Arabic', 'khmer' => 'Khmer', 'lao' => 'Lao', 'tamil' => 'Tamil', 'bengali' => 'Bengali',
                                            'hindi' => 'Hindi', 'korean' => 'Korean');
                                        ?>
                                        <div style=" <?php echo (is_rtl()) ? 'float:right;width:465px;' : 'width:455px;float:left;'; ?>">
                                            <span style="width:100%; float:left;height: 35px;">
                                                <?php $arf_chk_counter = 1; ?>
                                                <?php
                                                foreach ($arf_character_arr as $arf_character => $arf_character_value) {
                                                    
                                                    $default_charset = "";
                                                    if( isset($arfsettings->arf_css_character_set) ){
                                                        if( is_object($arfsettings->arf_css_character_set) ){
                                                            $default_charset = isset($arfsettings->arf_css_character_set->$arf_character) ? $arfsettings->arf_css_character_set->$arf_character : '';
                                                        } else if( is_array($arfsettings->arf_css_character_set) ){
                                                            $default_charset = ( isset($arfsettings->arf_css_character_set[$arf_character]) ) ? $arfsettings->arf_css_character_set[$arf_character] : '';
                                                        } else {
                                                            $default_charset = "";
                                                        }
                                                    }
                                                    ?>
                                                    <div class="arf_custom_checkbox_div" style="width: 110px;">
                                                        <div class="arf_custom_checkbox_wrapper">
                                                            <input type="checkbox" id="arf_character_<?php echo $arf_character; ?>" name="arf_css_character_set[<?php echo $arf_character; ?>]" <?php checked($default_charset, $arf_character); ?> value="<?php echo $arf_character; ?>" />
                                                            <svg width="18px" height="18px">
                                                            <?php echo ARF_CUSTOM_UNCHECKED_ICON; ?>
                                                            <?php echo ARF_CUSTOM_CHECKED_ICON; ?>
                                                            </svg>
                                                        </div>
                                                        <span style="margin-left: 5px;"><label for="arf_character_<?php echo $arf_character; ?>"><?php echo $arf_character_value; ?></label></span>
                                                    </div>
                                                    <?php echo ($arf_chk_counter % 4 == 0) ? '</span><span style="width:100%; float:left;height:35px;">' : ''; ?>
                                                    <?php $arf_chk_counter++; ?>
                                                <?php } ?>
                                            </span>
                                        </div>
                                    </td>

                                </tr>

                                <tr>

                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label style="margin-top:-100px;display:block;" class="lblsubtitle"><?php echo addslashes(esc_html__('Form Global CSS', 'ARForms')); ?></label> </td>

                                    <td valign="top" style="padding-bottom:10px;"><div class="arf_gloabal_css_wrapper"><textarea name="arf_global_css" id="arf_global_css" class="txtmultinew"><?php echo stripslashes_deep(get_option('arf_global_css')); ?></textarea></div></td>

                                </tr>

                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px"><label class="lblsubtitle"><?php esc_html_e( 'Display uploaded files in WordPress media section', 'ARForms' ); ?></label></td>
                                    <td valign="top" style="position: relative; top:-10px;">
                                        <div class="arf_custom_checkbox_div">
                                            <div class="arf_custom_checkbox_wrapper">
                                                <input type="checkbox" name="arfdisplayfilesinwpmedia" id="arfdisplayfilesinwpmedia" value="1" <?php checked($arfsettings->arfdisplayfilesinwpmedia, 1) ?> />
                                                <svg width="18px" height="18px">
                                                <?php echo ARF_CUSTOM_UNCHECKED_ICON; ?>
                                                <?php echo ARF_CUSTOM_CHECKED_ICON; ?>
                                                </svg>
                                            </div>
                                            <span style="margin-left: 5px;"><label for="arfdisplayfilesinwpmedia"><?php echo esc_html__('Yes', 'ARForms'); ?></label></span>
                                        </div>
                                    </td>
                                </tr>

                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;padding-top: 20px;vertical-align: top"><label class="lblsubtitle"><?php echo esc_html__('File Upload Path :', 'ARForms'); ?></label> </td>
                                    <td valign="top" style="padding-bottom:10px;padding-top: 20px;">
                                        <span><?php
                                            if( false == get_transient( 'arf_hosted_on_wp' ) ){
                                                echo ABSPATH;
                                            } else {
                                                $arf_doc_root = !empty( $_SERVER['DOCUMENT_ROOT']) ? sanitize_text_field( $_SERVER['DOCUMENT_ROOT']) : '';
                                                echo $arf_doc_root; //phpcs:ignore
                                            }
                                        ?></span>
                                        <input type="text" class="txtmodal1" id="arf_file_uplod_dir_path" name="arf_file_uplod_dir_path" value="<?php echo isset($arfsettings->arf_file_uplod_dir_path) ? $arfsettings->arf_file_uplod_dir_path : 'wp-content/uploads/arforms/userfiles'; ?>" style="width:400px;">
                                        <br/><br/>
                                        <span style="color:#f20000;"><?php esc_html_e('Recommended for advanced user only. Please make sure that the upload directory you have set is writable, otherwise file upload will not work.','ARForms'); ?></span>
                                        <br/><br/>
                                        <span>{form_id} : <?php esc_html_e('this shortcode will replace with the form id','ARForms'); ?> </span>
                                        <br/>
                                        <br/>
                                        <span>{year} : <?php esc_html_e('this shortcode will replace with current year.','ARForms'); ?></span>
                                        <br/>
                                        <br/>
                                        <span>{month} : <?php esc_html_e('this shortcode will replace with current month','ARForms'); ?></span>
                                        <br/>
                                        <br/>
                                        <span>{day} : <?php esc_html_e('this shortcode will replace with current day','ARForms'); ?></span>
                                    </td>
                                </tr>

                                <tr>
                                    <td class="tdclass" valign="top" style="padding-left:30px;padding-top: 20px;vertical-align: top"><label class="lblsubtitle"><?php echo esc_html__('Remove junk files', 'ARForms'); ?></label> </td>
                                    <td valign="top" style="padding-bottom:10px;padding-top: 20px;">
                                        <input type="button" value="<?php echo addslashes(esc_html__('Remove', 'ARForms')); ?>" class="rounded_button arf_btn_dark_blue" id="arf_remove_junk_files"  style="<?php echo (is_rtl()) ? 'margin-right: -4px;' : 'margin-left: -4px;'; ?>color:#ffffff;width: 118px !important;float:left;">
                                        <div class="arf_imageloader" id="arf_remove_junk_files_loader" style="display:none;position:relative;left:10px;top:8px;"></div>
                                    </td>
                                </tr>

                                <tr class="arfmainformfield" valign="top">
                                    <td colspan="2"><div style="width:96%" class="dotted_line"></div></td>
                                </tr>
                                <tr class="arfmainformfield">
                                    <td valign="top" colspan="2" class="lbltitle titleclass"><?php echo esc_html__('Load JS & CSS in all pages', 'ARForms'); ?></td>
                                </tr>

                                <tr class="arfmainformfield" valign="top">

                                    <td colspan="2" style="padding-left:30px; padding-bottom:20px;">


                                        <label class="lblsubtitle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo stripslashes(addslashes(esc_html__('( Not recommended - If you have any js/css loading issue in your theme, only in that case you should enable this settings )', 'ARForms'))); ?></label>


                                    </td>

                                </tr>



                                <tr>



                                    <td class="tdclass" valign="top" style="padding-left:30px;"><label class="lblsubtitle"><?php echo esc_html__('Load JS & CSS', 'ARForms'); ?></label> </td>
                                    <td valign="top" style="padding-bottom:10px;">
                                        <div class="arf_js_switch_wrapper">
                                            <input type="checkbox" class="js-switch" name="frm_arfmainformloadjscss" value="1" <?php checked($arfsettings->arfmainformloadjscss, 1) ?> onchange="change_load_js_css_wrapper(this);" />
                                            <span class="arf_js_switch"></span>
                                        </div>
                                        <label class="arf_js_switch_label"><span>&nbsp;<?php echo addslashes(esc_html__('Enable', 'ARForms')); ?></span></label>
                                    </td>
                                </tr>
                                <tr class="arf_global_js_css_wrapper_show" <?php
                                    if ($arfsettings->arfmainformloadjscss) {
                                        echo 'style="display:table-row;"';
                                    } else {
                                        echo 'style="display:none;"';
                                    }
                                    ?> >


                                        <td></td>
                                        <td>
                                            <div  style="<?php echo (is_rtl()) ? 'float:right;' : 'float:left;'; ?>">
                                                
                                                    <?php
                                                    $i = 1;
                                                    $js_css_array = $arformcontroller->arf_field_wise_js_css();


                                                    foreach ($js_css_array as $key => $value) {
                                                        ?>
                                                        <div class="arf_custom_checkbox_div arf_load_js_css_option_wrapper" style="margin-bottom:10px;">
                                                            <div class="arf_custom_checkbox_wrapper">
                                                                <input type="checkbox" id="arf_all_<?php echo $key; ?>" name="arf_load_js_css[]" value="<?php echo $key; ?>" <?php
                                                                if (in_array($key, $arfsettings->arf_load_js_css)) {
                                                                    echo 'checked="checked"';
                                                                }
                                                                ?>  />
                                                                <svg width="18px" height="18px">
                                                                <?php echo ARF_CUSTOM_UNCHECKED_ICON; ?>
                                                                <?php echo ARF_CUSTOM_CHECKED_ICON; ?>
                                                                </svg>
                                                            </div>
                                                            <span style="<?php echo (is_rtl()) ? '' : 'margin-left: 5px;'; ?>"><label for="arf_all_<?php echo $key; ?>"><?php echo $value['title']; ?></label></span>
                                                        </div>
                                                        <?php
                                                        
                                                        $i++;
                                                    }
                                                    ?>
                                           
                                            </div>


                                        </td>

                                </tr>
                                <?php global $wp_version; ?>
                                <?php do_action('arf_outside_global_setting_block', $arfsettings, $setvaltolic); ?>

                                <input type="hidden" id="frm_permalinks" name="frm_permalinks" value="0" />

                            </table>
                        </div>


                        <div id="autoresponder_settings" style=" <?php if ($setting_tab != 'autoresponder_settings') echo 'display:none;'; ?> background-color:#FFFFFF; padding-top:10px; border-radius:5px 5px 5px 5px;-webkit-border-radius:5px 5px 5px 5px;-o-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px; padding-left: 20px; padding-top: 30px; padding-bottom:1px;">
 
                            <table class="wp-list-table widefat post " style="margin:0px 0 0 10px; border:none;">
                                <tr>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th style="background:none; border:0px;height:98px;" colspan="2"><img alt='' src="<?php echo ARFURL; ?>/images/aweber.png" align="absmiddle" /></th>
                                </tr>
                                <tr>
                                    <?php $autores_type['aweber_type'] = ($autores_type['aweber_type'] != '') ? $autores_type['aweber_type'] : 1; ?>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th id="th_aweber" style=" background:none; border:none; <?php if ($autores_type['aweber_type'] == 2) { echo 'padding-left: 5px;'; } else { echo 'padding-left: 5px;'; } ?>">
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" class="arf_submit_action arf_custom_radio" id="aweber_1" <?php if ($autores_type['aweber_type'] == 1) echo 'checked="checked"'; ?> name="aweber_type" value="1" style="margin-top:3px;" onclick="show_api('aweber');"  />
                                                    <svg width="18px" height="18px">
                                                        <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                        <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="aweber_1"><?php echo esc_html__('Using API', 'ARForms'); ?></label>
                                            </span>
                                        </div>
                                        <div class="arf_radio_wrapper">
                                            <div class="arf_custom_radio_div" >
                                                <div class="arf_custom_radio_wrapper">
                                                    <input type="radio" class="arf_submit_action arf_custom_radio" id="aweber_2" <?php if ($autores_type['aweber_type'] == 0) echo 'checked="checked"'; ?> name="aweber_type" value="0" style="margin-top:3px;" onclick="show_web_form('aweber');" />
                                                    <svg width="18px" height="18px">
                                                        <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                                        <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                                    </svg>
                                                </div>
                                            </div>
                                            <span>
                                                <label for="aweber_2"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                            </span>
                                        </div>
                                        <input type="hidden" name="aweber_status" id="aweber_status" value="<?php echo $aweber_data->is_verify; ?>" />
                                    </th>
                                </tr>
                                <?php
                                    $is_aweber_old = false;
                                    if( ($aweber_data->consumer_key != '' && $aweber_data->consumer_secret != '' && ($aweber_data->consumer_key != ARF_AWEBER_CONSUMER_KEY || $aweber_data->consumer_secret != ARF_AWEBER_CONSUMER_SECRET)) ){
                                        $is_aweber_old = true;
                                    }
                                ?>
                                <tr id="aweber_api_tr2" <?php if ($aweber_data->is_verify == '1' && false == $is_aweber_old ) { echo 'style="display:none;"'; } else if ($autores_type['aweber_type'] != 1) { echo 'style="display:none;"'; } ?>>
                                    <td class="tdclass" style="width:18%; padding-right:20px; padding-bottom:3px; text-align: left;">
                                        <label class="lblsubtitle"><?php esc_html_e('Authorization Code', 'ARForms'); ?></label>
                                    </td>
                                    <td style="padding-left: 4px;">
                                        <input type="text" name="aweber_oauth_code" class="txtmodal1" id="aweber_api" size="80" value="<?php echo $aweber_data->responder_api_key; ?>" />&nbsp;&nbsp;
                                        <span id="aweber_link"><a href="javascript:void(0);" onclick="aweber_continue('<?php echo get_home_url().'?arf_page=arfawb_config'; ?>');" class="arlinks"><?php esc_html_e('Get Authorization Code','ARForms'); ?></a></span>
                                        <input type="hidden" name="aweber_status" id="aweber_status" value="<?php echo $aweber_data->is_verify; ?>" />
                                        <div class="arferrmessage" id="aweber_api_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>
                                    </td>
                                </tr>
                                <tr id="aweber_api_tr3" <?php if ($aweber_data->is_verify == '1' && false == $is_aweber_old ) { echo 'style="display:none;"'; } else if ($autores_type['aweber_type'] != 1) { echo 'style="display:none;"'; } ?>>
                                    <td class="tdclass" style="padding-left:20px; text-align:left; width:18%;">&nbsp;</td>
                                    <?php
                                        $aweber_onclick = 'verify_autores(\'aweber\', \'0\')';
                                        if( $setvaltolic != 1 ){
                                            $aweber_onclick = 'alert(\'Please activate license to authorize Aweber app\');';
                                        }
                                    ?>
                                    <td style="padding-left:4px;">
                                        <button class="rounded_button arf_btn_dark_blue"  style="width:103px !important; border:0px; color:#FFFFFF; height:41px;" type="button" name="continue" onclick="<?php echo $aweber_onclick; ?>"><?php echo addslashes(esc_html__('Authorize', 'ARForms')); ?></button>
                                        <span id="aweber_loader"><div class="arf_imageloader"></div></span>
                                        <span id="aweber_error" class="frm_not_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Not Verified', 'ARForms')); ?></span>
                                    </td>
                                </tr>

                                <tr id="aweber_web_form_tr" <?php if ($autores_type['aweber_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="padding-right:20px; text-align:left; width:18%;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from Aweber', 'ARForms')); ?></label></td>

                                    <td style="padding-left:5px;">

                                        <textarea <?php if ($setvaltolic != 1) { echo "readonly=readonly"; } ?> name="aweber_web_form" id="aweber_web_form" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set aweber settings');" <?php } ?>><?php echo stripslashes($aweber_data->responder_web_form); ?></textarea>


                                    </td>

                                </tr>


                                <?php if ($aweber_data->responder_list_id != "" && false == $is_aweber_old ) { ?>


                                    <tr id="aweber_api_tr4" <?php if ($autores_type['aweber_type'] != 1) echo 'style="display:none;"'; ?>>


                                        <td class="tdclass" style="padding-right:20px; text-align:left; width:18%;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('AWEBER LIST', 'ARForms')); ?></label></td>


                                        <td style="padding-left:5px; overflow: visible;">

                                            <span id="select_aweber">
                                                <div class="sltstandard" style="float:none; display:inline;">
                                                    


                                                    <?php
                                                    $aweber_lists = explode("-|-", $aweber_data->responder_list_id);


                                                    $aweber_lists_name = explode("|", $aweber_lists[0]);


                                                    $aweber_lists_id = explode("|", $aweber_lists[1]);


                                                    $i = 0;

                                                    $aweber_responder_list_option = array();
                                                    $aweber_responder_list_opt_attr = array();
                                                    foreach ($aweber_lists_name as $aweber_lists_name1) {


                                                        if ($aweber_lists_id[$i] != "") {
                                                            if ($aweber_lists_id[$i] == $aweber_data->responder_list) {
                                                                $selected_list_id = $aweber_lists_id[$i];
                                                                $selected_list_label = $aweber_lists_name1;
                                                            }
                                                            
                                                            $aweber_responder_list_option[$aweber_lists_id[$i]] = $aweber_lists_name1;

                                                            $aweber_responder_list_opt_attr['value'][$aweber_lists_id[$i]] = $aweber_lists_id[$i];
                                                        } 
                                                        $i++;
                                                    }

                                                    echo $maincontroller->arf_selectpicker_dom( 'responder_list', 'aweber_listid', '', 'width:400px;', $selected_list_id, array(), $aweber_responder_list_option, false, array(), false, $aweber_responder_list_opt_attr, false, array(), true );
                                                    ?>

                                                    <span id="aweber_loader2"><div class="arf_imageloader"></div></span>
                                                </div>

                                            </span>

                                            <div style="padding-left:5px; margin-top: 10px; clear: both;" class="arlinks">
                                                <a href="javascript:void(0);" onclick="action_aweber('refresh');"><?php echo addslashes(esc_html__('Refresh List', 'ARForms')); ?></a>
                                                &nbsp;  &nbsp;  &nbsp;  &nbsp;
                                                <a href="javascript:void(0);" onclick="action_aweber('delete');"><?php echo addslashes(esc_html__('Delete Configuration', 'ARForms')); ?></a>
                                            </div>


                                        </td>


                                    </tr>




                                <?php } ?>

                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>
                            </table>


                            <table class="wp-list-table widefat post " style="margin:20px 0 0 10px; border:none;">

                                <tr>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th style="background:none; border:none;height:98px;" colspan="2"><img alt='' src="<?php echo ARFURL; ?>/images/mailchimp.png" align="absmiddle" /></th>

                                    </th>

                                </tr>

                                <tr>
                                    <?php
                                        $autores_type['mailchimp_type'] = ( $autores_type['mailchimp_type'] !== '' ) ? $autores_type['mailchimp_type'] : 1;
                                    ?>
                                    <th style="width:18%; background:none; border:none;">&nbsp;</th>
                                    <th id="th_mailchimp" style=" background:none; border:none; padding-left:5px;">
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="mailchimp_1" <?php if ($autores_type['mailchimp_type'] == 1) echo 'checked="checked"'; ?> name="mailchimp_type" value="1" style="margin-top:3px;" onclick="show_api('mailchimp');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="mailchimp_1"><?php echo esc_html__('Using API', 'ARForms'); ?></label>
                                    </span>
                                </div>
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="mailchimp_2" <?php if ($autores_type['mailchimp_type'] == 0) echo 'checked="checked"'; ?>  name="mailchimp_type" value="0" style="margin-top:3px;" onclick="show_web_form('mailchimp');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="mailchimp_2"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                    </span>
                                </div>
                                </th>
                                </tr>

                                <tr id="mailchimp_api_tr1" <?php if ($autores_type['mailchimp_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; padding-bottom:3px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('API Key', 'ARForms')); ?></label></td>

                                    <td style="padding-bottom:3px; padding-left:5px;"><input type="text" name="mailchimp_api" class="txtmodal1" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set mailchimp settings');" <?php } ?> id="mailchimp_api" size="80" onkeyup="show_verify_btn('mailchimp');" value="<?php echo $mailchimp_data->responder_api_key; ?>" /> &nbsp; &nbsp;
                                        <span id="mailchimp_link" <?php if ($mailchimp_data->is_verify == 1) { ?>style="display:none;"<?php } ?>><a href="javascript:void(0);" onclick="verify_autores('mailchimp', '0');" class="arlinks"><?php echo addslashes(esc_html__('Verify', 'ARForms')); ?></a></span>
                                        <span id="mailchimp_loader" style="display:none;"><div class="arf_imageloader" style="float: none !important;display:inline-block !important; "></div></span>
                                        <span id="mailchimp_verify" class="frm_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Verified', 'ARForms')); ?></span>
                                        <span id="mailchimp_error" class="frm_not_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Not Verified', 'ARForms')); ?></span>
                                        <input type="hidden" name="mailchimp_status" id="mailchimp_status" value="<?php echo $mailchimp_data->is_verify; ?>" />
                                        <div class="arferrmessage" id="mailchimp_api_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>

                                </tr>


                                <tr id="mailchimp_api_tr2" <?php if ($autores_type['mailchimp_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; padding-top:3px; padding-bottom:3px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('List/Audience', 'ARForms')); ?></label></td>

                                    <td style=" padding-top:3px; padding-bottom:3px; padding-left:5px; overflow: visible;"><span id="select_mailchimp">
                                            <div class="sltstandard" style="float:none;display:inline;">
                                                <?php
                                                $responder_list_option = array( '' => esc_html__('Nothing Selected','ARForms') );
                                                $selected_list_label = esc_html__('Nothing Selected','ARForms');
                                                $selected_list_id = '';
                                                $lists = json_decode($mailchimp_data->responder_list_id,true);
                                                if ($lists != '' and count($lists) > 0) {
                                                    foreach ($lists as $key => $list) {
                                                        if ($mailchimp_data->responder_list != '') {
                                                            if ($mailchimp_data->responder_list == $list['id']) {
                                                                $selected_list_id = $list['id'];
                                                                $responder_list_option[$list['id']] = $list['name'];
                                                            }
                                                        } else {
                                                            if ($key == 0) {
                                                                $selected_list_id = $list['id'];
                                                                $responder_list_option[$list['id']] = $list['name'];
                                                            }
                                                        }

                                                        $responder_list_option[$list['id']] = $list['name'];
                                                    }
                                                }
                                                ?>

                                                <?php
                                                    echo $maincontroller->arf_selectpicker_dom( 'mailchimp_listid', 'mailchimp_listid', '', 'width:400px;', $selected_list_id, array(), $responder_list_option, false, array(), false, array(), false, array(), true );
                                                ?>
                                            </div></span>



                                        <div id="mailchimp_del_link" style="padding-left:5px; margin-top:10px; clear: both; <?php if ($mailchimp_data->is_verify == 0) { ?>display:none;<?php } ?>" class="arlinks">
                                            <a href="javascript:void(0);" onclick="action_autores('refresh', 'mailchimp');"><?php echo addslashes(esc_html__('Refresh List/Audience', 'ARForms')); ?></a>
                                            &nbsp;  &nbsp;  &nbsp;  &nbsp;
                                            <a href="javascript:void(0);" onclick="action_autores('delete', 'mailchimp');"><?php echo addslashes(esc_html__('Delete Configuration', 'ARForms')); ?></a>
                                        </div>


                                    </td>

                                </tr>

                                <tr id="mailchimp_web_form_tr" <?php if ($autores_type['mailchimp_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from Mailchimp', 'ARForms')); ?></label></td>

                                    <td style="padding-left:5px;">

                                        <textarea <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> name="mailchimp_web_form" id="mailchimp_web_form" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set mailchimp settings');" <?php } ?>><?php echo stripslashes($mailchimp_data->responder_web_form); ?></textarea>



                                    </td>

                                </tr>

                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>

                            </table>


                            <table class="wp-list-table widefat post " style="margin:20px 0 0 10px; border:none;">

                                <tr>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th colspan="2" style="border:none; background:none;height:98px;"><img alt='' src="<?php echo ARFURL; ?>/images/getresponse.png" align="absmiddle" /></th>

                                </tr>

                                <tr>
                                    <?php $autores_type['getresponse_type'] = ( $autores_type['getresponse_type'] != '' ) ? $autores_type['getresponse_type'] : 1; ?>
                                    <th style="width:18%;  border:none; background:none;"></th>
                                    <th id="th_getresponse" style=" padding-left:5px; border:none; background:none;">
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="getresponse_1" <?php if ($autores_type['getresponse_type'] == 1) echo 'checked="checked"'; ?> name="getresponse_type" value="1" onclick="show_api('getresponse');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="getresponse_1"><?php echo esc_html__('Using API', 'ARForms'); ?></label>
                                    </span>
                                </div>

                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio"  <?php if ($autores_type['getresponse_type'] == 0) echo 'checked="checked"'; ?> id="getresponse_2" name="getresponse_type" value="0" onclick="show_web_form('getresponse');"/>
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="getresponse_2"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                    </span>
                                </div>
                                </th>
                                </tr>

                                <tr id="getresponse_api_tr1" <?php if ($autores_type['getresponse_type'] != 1) echo 'style="display:none;"'; ?>>


                                    <td class="tdclass" style="width:18%; padding-right:20px; padding-bottom:3px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('API Key', 'ARForms')); ?></label></td>


                                    <td style=" padding-bottom:3px; padding-left:5px;"><input type="text" name="getresponse_api" class="txtmodal1" id="getresponse_api" size="80" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Getresponse settings');" <?php } ?> onkeyup="show_verify_btn('getresponse');" value="<?php echo $getresponse_data->responder_api_key; ?>" /> &nbsp; &nbsp;

                                        <span id="getresponse_link" <?php if ($getresponse_data->is_verify == 1) { ?> style="display:none;"<?php } ?>><a href="javascript:void(0);" onclick="verify_autores('getresponse', '0');" class="arlinks"><?php echo addslashes(esc_html__('Verify', 'ARForms')); ?></a></span>
                                        <span id="getresponse_loader" style="display:none;"><div class="arf_imageloader" style="float: none !important;display:inline-block !important; "></div></span>
                                        <span id="getresponse_verify" class="frm_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Verified', 'ARForms')); ?></span>
                                        <span id="getresponse_error" class="frm_not_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Not Verified', 'ARForms')); ?></span>
                                        <input type="hidden" name="getresponse_status" id="getresponse_status" value="<?php echo $getresponse_data->is_verify; ?>" />
                                        <div class="arferrmessage" id="getresponse_api_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>


                                </tr>


                                <tr id="getresponse_api_tr2" <?php if ($autores_type['getresponse_type'] != 1) echo 'style="display:none;"'; ?>>


                                    <td class="tdclass" style="width:18%; padding-right:20px; padding-top:3px; padding-bottom:3px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Campaign Name', 'ARForms')); ?></label></td>


                                    <td style=" padding-top:3px; padding-bottom:3px; padding-left:5px; overflow: visible;"><span id="select_getresponse">
                                            <div class="sltstandard" style="float:none;display:inline;">
                                                <?php
                                                $responder_list_option = array( '' => esc_html__('Nothing Selected','ARForms') );
                                                $selected_list_label = esc_html__('Nothing Selected','ARForms');
                                                $selected_list_id = '';
                                                $lists = maybe_unserialize($getresponse_data->list_data);
                                                if ($lists != '' and count($lists) > 0 ) {
                                                    foreach ($lists as $list) {
                                                        if ($getresponse_data->responder_list_id != '') {
                                                            if ($getresponse_data->responder_list_id == $list['id']) {
                                                                $selected_list_id = $list['id'];
                                                                $selected_list_label = $list['name'];
                                                            }
                                                        } else {
                                                            if ($key == 0) {
                                                                $selected_list_id = $list['id'];
                                                                $selected_list_label = $list['name'];
                                                            }
                                                        }
                                                        
                                                        $responder_list_option[$list['id']] = $list['name'];
                                                    }
                                                }
                                                
                                                echo $maincontroller->arf_selectpicker_dom( 'getresponse_listid', 'getresponse_listid', '', 'width:400px;', $selected_list_id, array(), $responder_list_option, false, array(), false, array(), false, array(), true );
                                                ?>
                                            </div></span>                            


                                        <div id="getresponse_del_link" style="padding-left:5px; margin-top:10px; clear: both;<?php if ($getresponse_data->is_verify == 0) { ?> display:none;<?php } ?>" class="arlinks">

                                            <a href="javascript:void(0);" onclick="action_autores('refresh', 'getresponse');"><?php echo addslashes(esc_html__('Refresh List', 'ARForms')); ?></a>
                                            &nbsp;  &nbsp;  &nbsp;  &nbsp;
                                            <a href="javascript:void(0);" onclick="action_autores('delete', 'getresponse');"><?php echo addslashes(esc_html__('Delete Configuration', 'ARForms')); ?></a>
                                        </div>


                                    </td>


                                </tr>

                                <tr id="getresponse_web_form_tr" <?php if ($autores_type['getresponse_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from Getresponse', 'ARForms')); ?></label></td>

                                    <td style="padding-left:5px;">

                                        <textarea <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> name="getresponse_web_form" id="getresponse_web_form" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Getresponse settings');" <?php } ?>><?php echo stripslashes($getresponse_data->responder_web_form); ?></textarea>


                                    </td>

                                </tr>

                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>

                            </table>

                            <table class="wp-list-table widefat post " style="margin:20px 0 0 10px; border:none;">


                                <tr>

                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th colspan="2" style="background:none; border:none;height:98px;"><img alt='' src="<?php echo ARFURL; ?>/images/icontact.png" align="absmiddle" /></th>

                                </tr>

                                <tr>
                                    <?php $autores_type['icontact_type'] = ( $autores_type['icontact_type'] != '' ) ? $autores_type['icontact_type'] : 1; ?>

                                    <th style="width:18%; background:none; border:none;"></th>
                                    <th id="th_icontact" style="background:none; border:none; padding-left:5px;">
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio"   id="icontact_1" <?php if ($autores_type['icontact_type'] == 1) echo 'checked="checked"'; ?> name="icontact_type" value="1"  onclick="show_api('icontact');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="icontact_1"><?php echo esc_html__('Using API', 'ARForms'); ?></label>
                                    </span>
                                </div>
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="icontact_2" <?php if ($autores_type['icontact_type'] == 0) echo 'checked="checked"'; ?>  name="icontact_type" value="0" onclick="show_web_form('icontact');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="icontact_2"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                    </span>
                                </div>
                                </th>

                                </tr>

                                <tr id="icontact_api_tr1" <?php if ($autores_type['icontact_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; padding-bottom:3px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('APP ID', 'ARForms')); ?></label></td>

                                    <td style="padding-bottom:3px; padding-left:5px;"><input type="text" name="icontact_api" class="txtmodal1" id="icontact_api" size="80" onkeyup="show_verify_btn('icontact');" value="<?php echo $icontact_data->responder_api_key; ?>" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?>  <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Icontact settings');" <?php } ?>/>
                                        <div class="arferrmessage" id="icontact_api_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>

                                </tr>


                                <tr id="icontact_api_tr2" <?php if ($autores_type['icontact_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-top:3px; padding-bottom:3px; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo esc_html__('Username', 'ARForms'); ?></label></td>

                                    <td style=" padding-top:3px; padding-bottom:3px; padding-left:5px;"><input type="text" name="icontact_username" class="txtmodal1" id="icontact_username" onkeyup="show_verify_btn('icontact');" size="80" value="<?php echo $icontact_data->responder_username; ?>" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Icontact settings');" <?php } ?> />
                                        <div class="arferrmessage" id="icontact_username_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></div></td>


                                </tr>

                                <tr id="icontact_api_tr3" <?php if ($autores_type['icontact_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-top:3px; padding-bottom:3px; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Password', 'ARForms')); ?></label></td>

                                    <td style=" padding-top:3px; padding-bottom:3px; padding-left:5px;"><input type="password" name="icontact_password" class="txtmodal1" id="icontact_password" onkeyup="show_verify_btn('icontact');" size="80" value="<?php echo $icontact_data->responder_password; ?>" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Icontact settings');" <?php } ?>/> &nbsp; &nbsp;
                                        <span id="icontact_link" <?php if ($icontact_data->is_verify == 1) { ?> style="display:none"<?php } ?>><a href="javascript:void(0);" onclick="verify_autores('icontact', '0');" class="arlinks"><?php echo addslashes(esc_html__('Verify', 'ARForms')); ?></a></span>
                                        <span id="icontact_loader" style="display:none;"><div class="arf_imageloader" style="float: none !important;display:inline-block !important; "></div></span>                    <span id="icontact_verify" class="frm_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Verified', 'ARForms')); ?></span>
                                        <span id="icontact_error" class="frm_not_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Not Verified', 'ARForms')); ?></span>
                                        <input type="hidden" name="icontact_status" id="icontact_status" value="<?php echo $icontact_data->is_verify; ?>" />
                                        <div class="arferrmessage" id="icontact_password_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>


                                </tr>

                                <tr id="icontact_api_tr4" <?php if ($autores_type['icontact_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-top:3px; padding-bottom:3px; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('List Name', 'ARForms')); ?></label></td>

                                    <td style=" padding-top:3px; padding-bottom:3px; padding-left:5px; overflow: visible;"><span id="select_icontact">
                                            <div class="sltstandard" style="float:none;display:inline;">
                                                <?php
                                                $responder_list_option = array( '' => esc_html__('Nothing Selected','ARForms') );
                                                $selected_list_label = esc_html__('Nothing Selected','ARForms');
                                                $selected_list_id = '';
                                                $lists = maybe_unserialize($icontact_data->responder_list_id);
                                                if ($lists != '' and count($lists) > 0) {
                                                    foreach ($lists as $key => $list) {
                                                        $list = (array)$list;
                                                        if ($icontact_data->responder_list != '') {
                                                            if ($icontact_data->responder_list == $list['listId']) {
                                                                $selected_list_id = $list['listId'];
                                                                $responder_list_option[$list['listId']] = $list['name'];
                                                            }
                                                        } else {
                                                            if ($key == 0) {
                                                                $selected_list_id = $list['listId'];
                                                                $responder_list_option[$list['listId']] = $list['name'];
                                                            }
                                                        }

                                                        $responder_list_option[$list['listId']] = $list['name'];
                                                    }
                                                }

                                                echo $maincontroller->arf_selectpicker_dom( 'icontact_listname', 'icontact_listname', '', 'width:400px;', $selected_list_id, array(), $responder_list_option, false, array(), false, array(), false, array(), true );
                                                ?>

                                            </div></span>


                                        <div id="icontact_del_link" style="padding-left:5px; margin-top:10px; clear: both; <?php if ($icontact_data->is_verify == 0) { ?>display:none;<?php } ?>" class="arlinks">

                                            <a href="javascript:void(0);" onclick="action_autores('refresh', 'icontact');"><?php echo addslashes(esc_html__('Refresh List', 'ARForms')); ?></a>
                                            &nbsp;  &nbsp;  &nbsp;  &nbsp;
                                            <a href="javascript:void(0);" onclick="action_autores('delete', 'icontact');"><?php echo addslashes(esc_html__('Delete Configuration', 'ARForms')); ?></a>
                                        </div>


                                    </td>


                                </tr>

                                <tr id="icontact_web_form_tr" <?php if ($autores_type['icontact_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from Icontact', 'ARForms')); ?></label></td>

                                    <td style="padding-left:5px;">

                                        <textarea <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> name="icontact_web_form" id="icontact_web_form" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Icontact settings');" <?php } ?>><?php echo stripslashes($icontact_data->responder_web_form); ?></textarea>


                                    </td>

                                </tr>

                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>

                            </table>


                            <table class="wp-list-table widefat post " style="margin:20px 0 0 10px; border:none;">

                                <tr>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th colspan="2" style="background:none; border:none;height:98px;"><img alt='' src="<?php echo ARFURL; ?>/images/constant-contact.png" align="absmiddle" /></th>


                                </tr>

                                <tr>
                                    <?php $autores_type['constant_type'] = ( $autores_type['constant_type'] != '' ) ? $autores_type['constant_type'] : 1; ?>
                                    <th style="width:18%; background:none; border:none;">&nbsp;</th>
                                    <th id="th_constant" style="background:none; border:none; padding-left:5px;">
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="constant_contact_1" <?php if ($autores_type['constant_type'] == 1) echo 'checked="checked"'; ?> name="constant_type" value="1" onclick="show_api('constant');"/>
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="constant_contact_1"><?php echo esc_html__('Using API', 'ARForms'); ?></label>
                                    </span>
                                </div>
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="constant_contact_2" <?php if ($autores_type['constant_type'] == 0) echo 'checked="checked"'; ?>  name="constant_type" value="0"  onclick="show_web_form('constant');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="constant_contact_2"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                    </span>
                                </div>
                                </th>
                                </tr>

                                <tr id="constant_api_tr1" <?php if ($autores_type['constant_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-bottom:3px; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('API Key', 'ARForms')); ?></label></td>

                                    <td style="padding-bottom:3px; padding-left:5px;"><input type="text" name="constant_api" class="txtmodal1" onkeyup="show_verify_btn('constant');" id="constant_api" size="80" value="<?php echo $constant_data->responder_api_key; ?>" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Constant Contact settings');" <?php } ?>/>
                                        <div class="arferrmessage" id="constant_api_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>

                                </tr>

                                <tr id="constant_api_tr2" <?php if ($autores_type['constant_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-top:3px; padding-bottom:3px; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo esc_html__('Access Token', 'ARForms'); ?></label></td>

                                    <td style="padding-top:3px; padding-bottom:3px; padding-left:5px;"><input type="text" name="constant_access_token" onkeyup="show_verify_btn('constant');" class="txtmodal1" id="constant_access_token" size="80" value="<?php echo $constant_data->responder_list_id; ?>" <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Constant Contact settings');" <?php } ?>/> &nbsp; &nbsp;

                                        <span id="constant_link" <?php if ($constant_data->is_verify == 1) { ?> style="display:none;"<?php } ?> ><a href="javascript:void(0);" onclick="verify_autores('constant', '0');" class="arlinks"><?php echo addslashes(esc_html__('Verify', 'ARForms')); ?></a></span>
                                        <span id="constant_loader" style="display:none;"><div class="arf_imageloader" style="float: none !important;display:inline-block !important; "></div></span>
                                        <span id="constant_verify" class="frm_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Verified', 'ARForms')); ?></span>
                                        <span id="constant_error" class="frm_not_verify_li" style="display:none;"><?php echo addslashes(esc_html__('Not Verified', 'ARForms')); ?></span>
                                        <input type="hidden" name="constant_status" id="constant_status" value="<?php echo $constant_data->is_verify; ?>" />
                                        <div class="arferrmessage" id="constant_access_token_error" style="display:none;"><?php echo addslashes(esc_html__('This field cannot be blank.', 'ARForms')); ?></div></td>

                                </tr>

                                <tr id="constant_api_tr3" <?php if ($autores_type['constant_type'] != 1) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-top:3px; padding-bottom:3px; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('List Name', 'ARForms')); ?></label></td>

                                    <td style="padding-top:3px; padding-bottom:3px; padding-left:5px; overflow: visible;"><span id="select_constant">
                                            <div class="sltstandard" style="float:none; display:inline;">
                                                <?php
                                                $responder_list_option = array( '' => esc_html__('Nothing Selected','ARForms') );
                                                $selected_list_label = esc_html__('Nothing Selected','ARForms');
                                                $selected_list_id = '';
                                                $lists = maybe_unserialize($constant_data->list_data);
                                                if ($lists != '' and count($lists) > 0) {
                                                    foreach ($lists as $key => $list) {
                                                        if ($constant_data->responder_list != '') {
                                                            if ($constant_data->responder_list == $list['id']) {
                                                                $selected_list_id = $list['id'];
                                                                $responder_list_option[$list['id']] = $list['name'];
                                                            }
                                                        } else {
                                                            if ($key == 0) {
                                                                $selected_list_id = $list['id'];
                                                                $responder_list_option[$list['id']] = $list['name'];
                                                            }
                                                        }

                                                        $responder_list_option[$list['id']] = $list['name'];
                                                    }
                                                }

                                                echo $maincontroller->arf_selectpicker_dom( 'constant_listname', 'constant_listname', '', 'width:400px;', $selected_list_id, array(), $responder_list_option, false, array(), false, array(), false, array(), true );
                                                ?>

                                            </div></span>


                                        <div id="constant_del_link" style="padding-left:5px; margin-top:10px; clear: both;<?php if ($constant_data->is_verify == 0) { ?>display:none;<?php } ?>" class="arlinks">

                                            <a href="javascript:void(0);" onclick="action_autores('refresh', 'constant');"><?php echo addslashes(esc_html__('Refresh List', 'ARForms')); ?></a>
                                            &nbsp;  &nbsp;  &nbsp;  &nbsp;
                                            <a href="javascript:void(0);" onclick="action_autores('delete', 'constant');"><?php echo addslashes(esc_html__('Delete Configuration', 'ARForms')); ?></a>
                                        </div>


                                    </td>

                                </tr>

                                <tr id="constant_web_form_tr" <?php if ($autores_type['constant_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from Constant Contact', 'ARForms')); ?></label></td>

                                    <td style="padding-left:5px;">

                                        <textarea <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> name="constant_web_form" id="constant_web_form" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set Constant Contact settings');" <?php } ?>><?php echo stripslashes($constant_data->responder_web_form); ?></textarea>


                                    </td>

                                </tr>

                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>

                            </table>

                            <table class="wp-list-table widefat post " style="margin:20px 0 0 10px; border:none;">

                                <tr>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th style="background:none; border:none;height:98px;" colspan="2"><img alt='' src="<?php echo ARFURL; ?>/images/gvo.png" align="absmiddle" /></label></th>

                                </tr>

                                <tr>
                                    <?php $autores_type['gvo_type'] = ( $autores_type['gvo_type'] != '' ) ? $autores_type['gvo_type'] : 0; ?>
                                    <th style="width:18%; background:none; border:none;"></th>
                                    <th id="th_gvo" style="padding-left:5px;background:none; border:none;">
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="gvo_1" <?php if ($autores_type['gvo_type'] == 0) echo 'checked="checked"'; ?>  name="gvo_type" value="0" onclick="show_web_form('gvo');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="gvo_1"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                    </span>
                                </div>
                                </th>
                                </tr>

                                <tr id="gvo_web_form_tr" <?php if ($autores_type['gvo_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:18%; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from GVO Campaign', 'ARForms')); ?></label></td>

                                    <td style="padding-left:5px;">

                                        <textarea <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> name="gvo_api" id="gvo_api" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set GVO settings');" <?php } ?>><?php echo stripslashes($gvo_data->responder_api_key); ?></textarea>

                                    </td>

                                </tr>

                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>

                            </table>


                            <table class="wp-list-table widefat post " style="margin:20px 0 20px 10px; border:none;">

                                <tr>
                                    <th style="background:none; border:0px;" width="18%">&nbsp;</th>
                                    <th style="background:none; border:none;height:98px;" colspan="2"><img alt='' src="<?php echo ARFURL; ?>/images/ebizac.png" align="absmiddle" /></th>

                                </tr>

                                <tr>
                                    <?php $autores_type['ebizac_type'] = ( $autores_type['ebizac_type'] != '' ) ? $autores_type['ebizac_type'] : 0; ?>
                                    <th style="width:18%; background:none; border:none;"></th>
                                    <th id="th_ebizac" style="padding-left:5px;background:none; border:none;">
                                <div class="arf_radio_wrapper">
                                    <div class="arf_custom_radio_div" >
                                        <div class="arf_custom_radio_wrapper">
                                            <input type="radio" class="arf_submit_action arf_custom_radio" id="ebizac_1" <?php if ($autores_type['ebizac_type'] == 0) echo 'checked="checked"'; ?>  name="ebizac_type" value="0" onclick="show_web_form('ebizac');" />
                                            <svg width="18px" height="18px">
                                            <?php echo ARF_CUSTOM_UNCHECKEDRADIO_ICON; ?>
                                            <?php echo ARF_CUSTOM_CHECKEDRADIO_ICON; ?>
                                            </svg>
                                        </div>
                                    </div>
                                    <span>
                                        <label for="ebizac_1"><?php echo addslashes(esc_html__('Using Web-form', 'ARForms')); ?></label>
                                    </span>
                                </div>
                                </th>

                                </tr>

                                <tr id="ebizac_web_form_tr" <?php if ($autores_type['ebizac_type'] != 0) echo 'style="display:none;"'; ?>>

                                    <td class="tdclass" style="width:17%; padding-right:20px; text-align: left;"><label class="lblsubtitle"><?php echo addslashes(esc_html__('Webform code from eBizac', 'ARForms')); ?></label></td>

                                    <td style="verticle-align:middle; padding-left:5px;">
                                        <textarea <?php
                                        if ($setvaltolic != 1) {
                                            echo "readonly=readonly";
                                        }
                                        ?> name="ebizac_api" id="ebizac_api" class="txtmultinew" <?php if ($setvaltolic != 1) { ?> onclick="alert('Please activate license to set eBizac settings');" <?php } ?>><?php echo stripslashes($ebizac_data->responder_api_key); ?></textarea>


                                </tr>
                                <tr>
                                    <td colspan="2" style="padding-left:5px;"><div class="dotted_line" style="width:96%"></div></td>
                                </tr>


                            </table>

                            <?php do_action('arf_autoresponder_global_setting_block', $autores_type, $setvaltolic); ?>


                        </div>



            <div id="verification_settings" style=" display:none; background-color:#FFFFFF; padding-top:10px; border-radius:5px 5px 5px 5px;-webkit-border-radius:5px 5px 5px 5px;-o-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px; padding-left: 20px;  padding-bottom:1px;">
                <?php ?>
            </div>

            <?php
            foreach ($sections as $sec_name => $section) {


                if (isset($section['class'])) {


                    call_user_func(array($section['class'], $section['function']));
                } else {


                    call_user_func((isset($section['function']) ? $section['function'] : $section));
                }
            }


            $user_roles = $current_user->roles;


            $user_role = array_shift($user_roles);
            ?>

            <br />
            <p class="submit">

                <?php
                if ($setting_tab == 'general_settings') {
                    if (is_rtl()) {
                        $style_attr = "margin-right:22%";
                    } else {
                        $style_attr = "margin-left:22%";
                    }
                } else if ($setting_tab == 'autoresponder_settings') {
                    if (is_rtl()) {
                        $style_attr = "margin-right:20%";
                    } else {
                        $style_attr = "margin-left:20%";
                    }
                }
                ?>
                <button class="rounded_button arf_btn_dark_blue general_submit_button"  style="border:0px; color:#FFFFFF; height:41px; width:120px !important;<?php echo $style_attr; ?>" type="submit" ><?php echo addslashes(esc_html__('Save Changes', 'ARForms')); ?></button></p>
            <br />





            </form>
        </div>
    </div>
</div>
</div>


</div>
<div class="arf_modal_overlay">
    <div id="delete_junk_file_msg" class="arfmodal arfdeletemodabox arf_popup_container arfdeletemodalboxnew arfactive">
        <div class="arfdelete_modal_msg delete_confirm_message">
            <?php echo esc_html__( 'Are you sure you want to perform this action?','ARForms').'<br/>'.esc_html__(' This action will remove all the junk files which are uploaded by user and not associated with any forms.', 'ARForms' ); ?>
        </div>
        <div class="arf_delete_modal_row delete_popup_footer">
            <button class="rounded_button add_button arf_delete_modal_left arfdelete_color_red" onClick="arf_delete_junk_files();"><?php esc_html_e('Okay', 'ARForms'); ?></button>&nbsp;&nbsp;
            <button class="arf_delete_modal_right rounded_button delete_button arfdelete_color_gray" onClick="jQuery('.arf_popup_container,.arf_modal_overlay').removeClass('arfactive');"><?php esc_html_e( 'Cancel', 'ARForms' ) ?></button>
        </div>
    </div>
</div>

<?php do_action( 'arforms_quick_help_links' ); ?>
<?php ?>
<script type="text/javascript" data-cfasync="false">

    

</script>