Make WordPress Core

Ticket #12186: custom-background.2.diff

File custom-background.2.diff, 4.3 KB (added by yoavf, 15 years ago)

styling to match comp

  • css/wp-admin-rtl.dev.css

     
    560560.clearlooks2 .mceTop .mceLeft {
    561561        width:100% !important;
    562562}
     563
     564/* Custom Background  */
     565
     566#custom-background table th, #custom-background table td {
     567        text-align:right;
     568        padding-right:0px;
     569        padding-left:40px;
     570}
     571
     572#custom-background table label {
     573        padding-right:0;
     574        padding-left:10px;
     575}
     576
     577
     578
    563579/* ltr
    564580=================================== */
    565581#author-email, #author-url, #rss-url-1, #edit-slug-box, #post_name, #trackback_url, #metakeyinput, #post_password, #slug, #category_nicename, #link_url, #link_image, #rss_uri, #menu_order, #email, #newcomment_author_url, #pages-exclude, #template textarea, #user_login, #url, #pass1, #pass2, #aim, #yim, #jabber, #siteurl, #home, #admin_email, #gmt_offset, #default_post_edit_rows, #mailserver_url, #mailserver_login, #mailserver_pass, #mailserver_port, #ping_sites, #posts_per_page, #posts_per_rss, #blog_charset, #close_comments_days_old, #comments_per_page, #comment_max_links, #moderation_keys, #blacklist_keys, #thumbnail_size_w, #thumbnail_size_h, #medium_size_w, #medium_size_h, #large_size_w, #large_size_h, #permalink_structure, #category_base, #tag_base, #upload_path, #upload_url_path, #rules {
    566582        direction: ltr;
    567583}
     584
  • css/wp-admin.dev.css

     
    36413641        border-right-style: solid;
    36423642        border-right-width: 1px;
    36433643}
     3644
     3645/* Custom Background  */
     3646
     3647div#custom-background h2 {
     3648        margin-top: 20px;
     3649}
     3650
     3651#custom-background table th, #custom-background table td {
     3652        text-align:left;
     3653        padding-right:40px;
     3654        padding-left:0;
     3655}
     3656
     3657#custom-background table label {
     3658        padding-right:10px;
     3659        width:80px;
     3660}
     3661
     3662div#custom-background-image img {
     3663        max-width: 400px;
     3664        max-height: 200px;
     3665}
     3666
     3667div#custom-background-image p.submit {
     3668        display: inline;
     3669}
     3670 No newline at end of file
  • custom-background.php

     
    135135</div>
    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>
    141141<?php if ( get_background_image() ) { ?>
     
    153153<img class="custom-background-image" src="<?php background_image(); ?>" />
    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)) ?>">
    163161<table>
     
    211209</table>
    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" />
    224221<?php wp_nonce_field('custom-background') ?>
     
    226223<input type="submit" value="<?php esc_attr_e('Upload'); ?>" />
    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>
    235230<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
    236231<?php wp_nonce_field('custom-background'); ?>
    237232<input type="submit" class="button" name="remove-background" value="<?php esc_attr_e('Remove Background'); ?>" />
    238233</form>
    239 </div>
    240 <?php endif;
    241234
     235<?php endif; ?>
     236</div>
     237<?php
    242238        }
    243239
    244240        /**