<?php
defined('ABSPATH') or die('No script kiddies please!');
$wpwab_settings = get_option('wpwab_settings');
?>

<div class="wpwab-all-wrap">
    <div class="wpwab-content-wrap">
        <div class="wpwab-field-wrap">
            <label><?php _e('WhatsApp Contact Number', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <input type="tel" id="wpwab_contact_number" class="wpwab_contact_number" name="wpwab_settings[contact_number]" value="<?php echo isset($wpwab_settings['contact_number']) ? esc_attr($wpwab_settings['contact_number']) : ''; ?>" placeholder="Contact Number" autocomplete="off" />
                <p class="description"><?php _e('Note: Please enter your valid mobile number with your country code(for example for Nepal user it will be +9779849121091).', wpwab_TD) ?></p>
            </div>
        </div>

        <div class="wpwab-field-wrap">
            <label><?php _e('WhatsApp Format', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <label><input type="radio" name="wpwab_settings[whatsapp_format]" id='wpwab_whatsapp_format_field' value="app" <?php echo ((isset($wpwab_settings['whatsapp_format'])) && $wpwab_settings['whatsapp_format'] === "app") ? "checked='checked'" : ""; ?>><?php _e( 'WhatsApp App', wpwab_TD ); ?></label>
                <label><input type="radio" name="wpwab_settings[whatsapp_format]" id='wpwab_whatsapp_format_field' value="web"  <?php echo ((isset($wpwab_settings['whatsapp_format'])) && $wpwab_settings['whatsapp_format'] === "web") ? "checked='checked'" : ""; ?>><?php _e( 'WhatsApp Web', wpwab_TD ); ?></label>
                <p class="description"><?php _e('Note: For desktops, If you want WhatsApp App to be opened when clicked on the WhatsApp button, select "APP" else select "Web". Also, please be informed that WhatsApp can only be installed in window 8 and higher/MAC OS X 10.9 and higher.', wpwab_TD) ?></p>
            </div>
        </div>

        <div class="wpwab-field-wrap">
            <div class="wpwab-field wpwab-save">
                <?php
                wp_nonce_field('wpwab_form_nonce', 'wpwab_form_nonce_field');
                include('save-settings-button.php');
                ?>
            </div>
        </div>

    </div>
</div>

