Make WordPress Core


Ignore:
Timestamp:
05/28/2010 12:27:53 AM (16 years ago)
Author:
nacin
Message:

Custom header and background help. props jane, see #13467.

File:
1 edited

Legend:

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

    r15016 r15019  
    3535
    3636        /**
     37         * Holds the page menu hook.
     38         *
     39         * @var string
     40         * @since 3.0.0
     41         * @access private
     42         */
     43        var $page = '';
     44
     45        /**
    3746         * PHP4 Constructor - Register administration header callback.
    3847         *
    … …  
    5665                        return;
    5766
    58                 $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page'));
     67                $this->page = $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page'));
    5968
    6069                add_action("load-$page", array(&$this, 'admin_load'));
    … …  
    7281         */
    7382        function admin_load() {
     83                add_contextual_help( $this->page, '<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. ' ) . '</p>' .
     84                '<p>' . __( 'If you want to discard your custom header and go back to the default included in your theme, click on the buttons to remove the custom image and restore the original header image. ' ) . '</p>' .
     85                '<p>' . __( 'Some themes comes with additional header images bundled. If you see multiple images displayed, select the one you&#8217;d like and click the Save Changes button. ' ) . '</p>' .
     86                '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     87                '<p>' . __( '<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>' ) . '</p>' .
     88                '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' );
    7489                wp_enqueue_script('custom-background');
    7590                wp_enqueue_style('farbtastic');
Note: See TracChangeset for help on using the changeset viewer.