<?php defined('ABSPATH') or die('No script kiddies please!'); ?>
<div class="wpwab-content-wrap">
    <div class="wpwab-field-wrap">
        <label for='wpwab-button-orientation-shortcode'><?php _e( 'Button Orientation', wpwab_TD ); ?></label>
        <div class="wpwab-field">
            <label><input type="radio" name="wpwab-button-orientation-shortcode" value="floating" checked="checked"><?php _e('Floating', wpwab_TD ); ?></label>
            <label><input type="radio" name="wpwab-button-orientation-shortcode" value="default" /><?php _e( 'Inline', wpwab_TD ); ?></label>
        </div>
    </div>
    <div class="wpwab-field-wrap ">
        <label><?php _e('Button Position', wpwab_TD); ?></label>
        <div class="wpwab-field ">
            <select name=wpwab_settings[button_location_shortcode] value="<?php if (!empty($wpwab_settings['button_location_shortcode'])) selected($wpwab_settings['button_location_shortcode']); ?>" id="wpwab-button-location-shortcode">
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'top_left' . '.png' ?>' value="top_left" id="wpwab-top-left" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'top_left') echo 'selected=="selected"'; ?>><?php _e('Top Left', wpwab_TD); ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'top_right' . '.png' ?>' value="top_right" id="wpwab-top-right" <?php if (isset($wpwab_settings['button_location_shortcode_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'top_right') echo 'selected=="selected"'; ?> ><?php _e('Top Right', wpwab_TD); ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'bottom_left' . '.png' ?>' value="bottom_left" id="wpwab-bottom-left" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'bottom_left') echo 'selected=="selected"'; ?>><?php _e('Bottom Left', wpwab_TD); ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'bottom_right' . '.png' ?>' value="bottom_right" id="wpwab-bottom-right" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'bottom_right') echo 'selected=="selected"'; ?>><?php _e('Bottom Right', wpwab_TD) ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'top_center' . '.png' ?>' value="top_center" id="wpwab-top-center" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'top_center') echo 'selected=="selected"'; ?>><?php _e('Top Center', wpwab_TD); ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'right_center' . '.png' ?>' value="right_center" id="wpwab-right-center" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'right_center') echo 'selected=="selected"'; ?> ><?php _e('Right Center', wpwab_TD); ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'bottom_center' . '.png' ?>'  value="bottom_center" id="wpwab-bottom-center" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'bottom_center') echo 'selected=="selected"'; ?>><?php _e('Bottom Center', wpwab_TD); ?></option>
                <option data-img ='<?php echo wpwab_IMG_DIR . '/position-1/' . 'left_center' . '.png' ?>' value="left_center" id="wpwab-right-center" <?php if (isset($wpwab_settings['button_location_shortcode']) && $wpwab_settings['button_location_shortcode'] == 'left_center') echo 'selected=="selected"'; ?>><?php _e('Left Center', wpwab_TD) ?></option>
            </select>
            <div class="button-position-preview wpwab-border-design">
                <div class="wpwab-shortcode-common" id="wpwab-shortcode-demo-<?php echo $wpwab_settings['button_location_shortcode'] ?>" >
                    <img src="<?php echo wpwab_IMG_DIR . '/position-1/' . $wpwab_settings['button_location_shortcode'] . '.png' ?>"/>
                </div>
            </div>
        </div>
    </div>
</div>

