 <?php
 echo '<form action="" id="df_app_builder" method="post">
                <div class="field-space">
                <label for="app_btn_size">Image Shape:</label>
                <select name="app_btn_size" id="logolabel" style="width: 201px;">
                    <option value="dfg-logo" '.selected( isset($_POST['app_btn_size']) ? $_POST['app_btn_size'] : '', 'dfg-logo' ).'>rectangle</option>
                    <option value="dfg-2col-2row" '.selected( isset($_POST['app_btn_size']) ? $_POST['app_btn_size'] : '', 'dfg-2col-2row' ).'>square</option>
                    <option value="dfg-2col-3row" '.selected( isset($_POST['app_btn_size']) ? $_POST['app_btn_size'] : '', 'dfg-2col-3row' ).'>tall</option>
                </select><br>';
                if ( $df_app_oxy == 'No') {   
                echo '<span id="dfg-logo" class="logosize" style="font-size: 14px; margin-top: 3px;"><em>Image Size: 753px width; arbitrary height</em></span>
                <span id="dfg-2col-2row" class="logosize" style="display:none; font-size: 14px; margin-top: 3px;"><em>Image Size: 373px width; 373px height</em></span>
                <span id="dfg-2col-3row" class="logosize" style="display:none; font-size: 14px; margin-top: 3px;"><em>Image Size: 373px width; 563px height</em></span>
                </div>';
                }
                if ( $df_app_oxy == 'Yes') {   
                echo '<span id="dfg-logo" class="logosize" style="font-size: 14px; margin-top: 3px;"><em>Image Size: 748px width; arbitrary height</em></span>
                <span id="dfg-2col-2row" class="logosize" style="display:none; font-size: 14px; margin-top: 3px;"><em>Image Size: 369px width; 369px height</em></span>
                <span id="dfg-2col-3row" class="logosize" style="display:none; font-size: 14px; margin-top: 3px;"><em>Image Size: 369px width; 559px height</em></span>
                </div>';
                }
                echo '<div class="field-space">
                <label for="app_btn_image_upload">Image URL:</label>
                <input type="text" name="app_btn_image_upload" id="image-url" size="22" required />
                <input type="button" id="upload-button" value="Upload Image" /></div>
                <div class="field-space">
                <label for="app_btn_image_alt_tag">Image Alt Tag:</label>
                <input type="text" name="app_btn_image_alt_tag" id="app_btn_image_alt_tag" size="22" value="" required /></div>';
                //if not an oxygen app show position ddl
                if ( $df_app_oxy == 'No') {
                echo '<div class="field-space" id="hide_logo">
                <label for="app_btn_position">Image Position:</label>
                <select name="app_btn_position" style="width: 201px;">
                    <option value="left" '.selected( isset($_POST['app_btn_position']) ? $_POST['app_btn_position'] : '', 'left' ).'>left aligned</option>
                    <option value="right"  '.selected( isset($_POST['app_btn_position']) ? $_POST['app_btn_position'] : '', 'right' ).'>right aligned</option>
                </select></div>';
                }
                echo '<div class="field-space">
                <label for="app_btn_shape">Image Edge:</label>
                <select name="app_btn_shape" style="width: 201px;">
                    <option value="square"  '.selected( isset($_POST['app_btn_shape']) ? $_POST['app_btn_shape'] : '', 'square' ).'>square</option>
                    <option value="rounded" '.selected( isset($_POST['app_btn_shape']) ? $_POST['app_btn_shape'] : '', 'rounded' ).'>rounded</option>
                </select></div><br>
                <input type="hidden" name="app_btn_title" id="app_btn_title" value="Logo" />
                <input type="hidden" name="df_app_name" id="df_app_name" value="'.$df_app_name.'" />
        <input type="hidden" name="app_btn_bkg_color1" id="app_btn_bkg_color1" value="'.$btn_bkg_color1.'" />
        <input type="hidden" name="app_btn_bkg_color2" id="app_btn_bkg_color2" value="'.$btn_bkg_color2.'" />
        <input type="hidden" name="app_btn_bkg_color3" id="app_btn_bkg_color3" value="'.$btn_bkg_color3.'" />
        <input type="hidden" name="df_app_oxy" id="df_app_oxy" value="'.$df_app_oxy.'" />
                <button type="df_app_data" name="df_app_data">Add Logo</button>
                </form>';
            ?>