Ticket #12186: custom-background.2.diff
File custom-background.2.diff, 4.3 KB (added by , 15 years ago) |
---|
-
css/wp-admin-rtl.dev.css
560 560 .clearlooks2 .mceTop .mceLeft { 561 561 width:100% !important; 562 562 } 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 563 579 /* ltr 564 580 =================================== */ 565 581 #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 { 566 582 direction: ltr; 567 583 } 584 -
css/wp-admin.dev.css
3641 3641 border-right-style: solid; 3642 3642 border-right-width: 1px; 3643 3643 } 3644 3645 /* Custom Background */ 3646 3647 div#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 3662 div#custom-background-image img { 3663 max-width: 400px; 3664 max-height: 200px; 3665 } 3666 3667 div#custom-background-image p.submit { 3668 display: inline; 3669 } 3670 No newline at end of file -
custom-background.php
135 135 </div> 136 136 <?php } ?> 137 137 138 <div class="wrap" >138 <div class="wrap" id="custom-background"> 139 139 <?php screen_icon(); ?> 140 140 <h2><?php _e('Custom Background'); ?></h2> 141 141 <?php if ( get_background_image() ) { ?> … … 153 153 <img class="custom-background-image" src="<?php background_image(); ?>" /> 154 154 </div> 155 155 <?php } ?> 156 </div>157 156 158 157 <?php if ( get_background_image() ) : ?> 159 <div class="wrap"> 160 158 161 159 <h2><?php _e('Change Display Options') ?></h2> 162 160 <form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>"> 163 161 <table> … … 211 209 </table> 212 210 213 211 <?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> 215 213 </form> 216 </div> 214 217 215 <?php endif; ?> 218 216 219 <div class="wrap">220 217 <h2><?php _e('Upload New Background Image'); ?></h2> 221 <form enctype="multipart/form-data" id="uploadF orm" 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)) ?>"> 222 219 <label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" /> 223 220 <input type="hidden" name="action" value="save" /> 224 221 <?php wp_nonce_field('custom-background') ?> … … 226 223 <input type="submit" value="<?php esc_attr_e('Upload'); ?>" /> 227 224 </p> 228 225 </form> 229 </div>230 226 231 227 <?php if ( get_background_image() ) : ?> 232 <div class="wrap">233 228 <h2><?php _e('Remove Background Image'); ?></h2> 234 229 <p><?php _e('This will remove background image. You will not be able to retrieve any customizations.') ?></p> 235 230 <form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>"> 236 231 <?php wp_nonce_field('custom-background'); ?> 237 232 <input type="submit" class="button" name="remove-background" value="<?php esc_attr_e('Remove Background'); ?>" /> 238 233 </form> 239 </div>240 <?php endif;241 234 235 <?php endif; ?> 236 </div> 237 <?php 242 238 } 243 239 244 240 /**