<?php defined('ABSPATH') or die('No script kiddies please!'); ?>
<div class="wrap wpwab-wrap">
    <div class="wpwab-content-wrap">
        <div class="wpwab-field-wrap">
            <label for='wpwab-showbutton-check'><?php _e('Show Button On Menu', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <div class="wpwab-checkbox-wrap">
                    <input <?php echo (isset($wpwab_settings['showbutton'])) ? "checked='checked'" : ""; ?> type="checkbox" id='wpwab-showbutton-check' name="wpwab_settings[showbutton]" value="show">
                    <label for="wpwab-showbutton-check"></label>
                </div>
                <p class="description"><?php _e('Please enable the button to display WhatsApp on Menu.', wpwab_TD) ?></p>
            </div>
        </div>
        <div class="wpwab-field-wrap">
            <label for="wpwab_menu_postion_field"><?php _e('Menu Position', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <label><input type="radio" name="wpwab_settings[first]" id='wpwab_menu_postion_field' value="first" <?php echo ((isset($wpwab_settings['first'])) && $wpwab_settings['first'] === "first") ? "checked='checked'" : ""; ?>><?php _e( 'First', wpwab_TD ); ?></label>
                <label><input type="radio" name="wpwab_settings[first]" id='wpwab_menu_postion_field' value="last"  <?php echo ((isset($wpwab_settings['first'])) && $wpwab_settings['first'] === "last") ? "checked='checked'" : ""; ?>><?php _e( 'Last', wpwab_TD ); ?></label>
                <p class="description"><?php _e('Please select menu position to display WhatsApp in Menu.', wpwab_TD) ?></p>
            </div>
        </div>

        <div class="wpwab-checkbox-outer-wrap">
            <div class="wpwab-field-wrap">
                <label for='wpwab_text_enable_option'><?php _e('Enable Button Text', wpwab_TD); ?></label>
                <div class="wpwab-field">
                    <div class="wpwab-checkbox-wrap">
                        <input <?php echo (isset($wpwab_settings['showbuttontext'])) ? "checked='checked'" : ""; ?> type="checkbox" id='wpwab_text_enable_option' name="wpwab_settings[showbuttontext]" value="show" class='wpwab-checkbox-hide-show'>
                        <label for="wpwab_text_enable_option"></label>
                    </div>
                </div>
            </div>
            <div class="wpwab-field-wrap wpwab-checkbox-hide-show-options-wrap" style="display:<?php if(isset($wpwab_settings['showbuttontext']) && $wpwab_settings['showbuttontext']!=''){ echo "block"; }else{ echo "none"; } ?>">
                <label for="wpwab_button_text_field"><?php _e('Button Text', wpwab_TD); ?></label>
                <div class="wpwab-field">
                    <input type="text" name="wpwab_settings[whatsapp_button_text_menu]" id='wpwab_button_text_field' placeholder="<?php _e('Add Text For Button', wpwab_TD) ?>"  value="<?php echo (isset($wpwab_settings['whatsapp_button_text_menu'])) ? esc_attr($wpwab_settings['whatsapp_button_text_menu']) : ''; ?>"/>
                </div>
            </div>
        </div>
    </div>
</div>