<?php
// Optionen-Seite erstellen
function wowpress_style_options_page() {
global $select_options, $radio_options;
if ( ! isset( $_REQUEST['settings-updated'] ) )
	$_REQUEST['settings-updated'] = false; ?>

<div class="wrap"> 
<h2>Style-Optionen für <?php bloginfo('name'); ?></h2> 

<?php if ( false !== $_REQUEST['settings-updated'] ) : ?> 
<div class="updated fade">
	<p><strong>Einstellungen gespeichert!</strong></p>
</div>
<?php endif; ?>

  <form method="post" action="/request"  enctype="multipart/form-data">
    <input type="hidden" name="action" value="updatePageBG" >
    <?php wp_nonce_field('updatePageBG', 'updatePageBG_nonce'); ?>
    <h3>Hintergrund</h3>
    <table class="form-table">
      <tr valign="top">
        <th scope="row">Hintergrund-Bild</th>
        <td>
            <input type="file" name="bg" id="wowpress_bg" accept="image/jpeg">
        </td>
      </tr>  
      <tr>
        <td colspan="2">
            <img src="/wp-content/bg.jpg" alt="" style="width: 42rem;">
        </td>
      </tr>
    </table>


    
    <!-- submit -->
    <p class="submit"><input type="submit" class="button-primary" value="Hochladen" /></p>
  </form>
</div>
<?php }

