WordPress.org

Make WordPress Core

Changeset 13751


Ignore:
Timestamp:
03/18/2010 07:06:57 PM (10 years ago)
Author:
nacin
Message:

Use h3 (not h2) to break up sections on custom header/bg screens. Move div.updated message to right after the h2, as JS will move it there anyway.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r13725 r13751  
    219219     */
    220220    function step_1() {
    221         if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
     221?>
     222<div class="wrap" id="custom-background">
     223<?php screen_icon(); ?>
     224<h2><?php _e('Custom Background'); ?></h2>
     225<?php if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
    222226<div id="message" class="updated">
    223227<p><?php printf(__('Background updated. <a href="%s">Visit your site</a> to see how it looks.'), home_url()); ?></p>
    224228</div>
    225         <?php } ?>
    226 
    227 <div class="wrap" id="custom-background">
    228 <?php screen_icon(); ?>
    229 <h2><?php _e('Custom Background'); ?></h2>
    230 <?php if ( get_background_image() || get_background_color() ) { ?>
     229<?php }
     230
     231if ( get_background_image() || get_background_color() ) { ?>
    231232<p><?php _e('This is your current background.'); ?></p>
    232233<?php
     
    251252if ( get_background_image() ) : ?>
    252253
    253 <h2><?php _e('Change Display Options') ?></h2>
     254<h3><?php _e('Change Display Options') ?></h3>
    254255<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
    255256<table>
     
    317318<?php endif; ?>
    318319
    319 <h2><?php _e('Upload New Background Image'); ?></h2>
     320<h3><?php _e('Upload New Background Image'); ?></h3>
    320321<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
    321322<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
     
    328329
    329330<?php if ( get_background_image() ) : ?>
    330 <h2><?php _e('Remove Background Image'); ?></h2>
     331<h3><?php _e('Remove Background Image'); ?></h3>
    331332<p><?php _e('This will remove the background image. You will not be able to retrieve any customizations.') ?></p>
    332333<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
  • trunk/wp-admin/custom-header.php

    r13725 r13751  
    358358    function step_1() {
    359359        $this->process_default_headers();
    360         if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
     360 ?>
     361
     362<div class="wrap">
     363<?php screen_icon(); ?>
     364<h2><?php _e('Your Header Image'); ?></h2>
     365
     366<?php
     367if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
    361368<div id="message" class="updated">
    362369<p><?php printf(__('Header updated. <a href="%s">Visit your site</a> to see how it looks.'), home_url()); ?></p>
    363370</div>
    364         <?php } ?>
    365 
    366 <div class="wrap">
    367 <?php screen_icon(); ?>
    368 <h2><?php _e('Your Header Image'); ?></h2>
    369 <?php
     371<?php }
     372
    370373if ( get_theme_mod('header_image') || empty($this->default_headers) ) :
    371374?>
     
    405408?>
    406409<div class="wrap">
    407 <h2><?php _e('Upload New Header Image'); ?></h2><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
     410<h3><?php _e('Upload New Header Image'); ?></h3><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
    408411
    409412<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
     
    420423        <?php if ( get_theme_mod('header_image') || get_theme_mod('header_textcolor') ) : ?>
    421424<div class="wrap">
    422 <h2><?php _e('Reset Header Image and Color'); ?></h2>
     425<h3><?php _e('Reset Header Image and Color'); ?></h3>
    423426<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
    424427<?php
Note: See TracChangeset for help on using the changeset viewer.