Make WordPress Core


Ignore:
Timestamp:
02/22/2010 06:46:29 PM (15 years ago)
Author:
ryan
Message:

Custom background styling fixes. Props yoavf. see #12186

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r13189 r13303  
    136136        <?php } ?>
    137137
    138 <div class="wrap">
     138<div class="wrap" id="custom-background">
    139139<?php screen_icon(); ?>
    140140<h2><?php _e('Custom Background'); ?></h2>
     
    154154</div>
    155155<?php } ?>
    156 </div>
    157156
    158157<?php if ( get_background_image() ) : ?>
    159 <div class="wrap">
    160 
     158   
    161159<h2><?php _e('Change Display Options') ?></h2>
    162160<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
     
    212210
    213211<?php wp_nonce_field('custom-background'); ?>
    214 <input type="submit" class="button" name="save-background-options" value="<?php esc_attr_e('Save Changes'); ?>" />
     212<p class="submit"><input type="submit" class="button" name="save-background-options" value="<?php esc_attr_e('Save Changes'); ?>" /></p>
    215213</form>
    216 </div>
     214
    217215<?php endif; ?>
    218216
    219 <div class="wrap">
    220217<h2><?php _e('Upload New Background Image'); ?></h2>
    221 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
     218<form enctype="multipart/form-data" id="uploadFrom" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
    222219<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    223220<input type="hidden" name="action" value="save" />
     
    227224</p>
    228225</form>
    229 </div>
    230226
    231227<?php if ( get_background_image() ) : ?>
    232 <div class="wrap">
    233228<h2><?php _e('Remove Background Image'); ?></h2>
    234229<p><?php _e('This will remove background image. You will not be able to retrieve any customizations.') ?></p>
     
    237232<input type="submit" class="button" name="remove-background" value="<?php esc_attr_e('Remove Background'); ?>" />
    238233</form>
     234
     235<?php endif; ?>
    239236</div>
    240 <?php endif;
    241 
     237<?php
    242238    }
    243239
Note: See TracChangeset for help on using the changeset viewer.