WordPress.org

Make WordPress Core

Ticket #20518: 3.4_CustomHeader_Help_Tabs.patch

File 3.4_CustomHeader_Help_Tabs.patch, 3.7 KB (added by TomAuger, 2 years ago)
  • custom-header.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: C:\XAMPP\htdocs\wordpress\3.4b3\wp-admin
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    107107                        'id'      => 'overview', 
    108108                        'title'   => __('Overview'), 
    109109                        'content' => 
    110                                 '<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>' . 
    111                                 '<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>' . 
    112                                 '<p>' . __( 'Some themes come 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>' 
     110                                '<p>' . __( 'This screen is used to customize the header section of your theme.') . '</p>' . 
     111                                '<p>' . __( 'You can choose from the theme\'s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.') . '<p>' 
    113112                ) ); 
    114113 
     114                get_current_screen()->add_help_tab( array( 
     115                        'id'      => 'set-header-image', 
     116                        'title'   => __('Header Image'), 
     117                        'content' => 
     118                                '<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. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the "Choose from image library" link.' ) . '</p>' . 
     119                                '<p>' . __( 'Some themes come 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>' . 
     120                                '<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the "Random" radio button next to the Uploaded Images or Default Images section to enable this feature.') . '</p>' . 
     121                                '<p>' . __( 'If you don\'t want a header image to displayed on your site at all, click the "Remove Header Image" button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click "Save Changes".') . '</p>' 
     122                ) ); 
     123                 
     124                get_current_screen()->add_help_tab( array( 
     125                        'id'      => 'set-header-text', 
     126                        'title'   => __('Header Text'), 
     127                        'content' => 
     128                                '<p>' . sprintf( '%1$s <a href="' . admin_url( 'options-general.php' ) . '">%2$s</a> %3$s', __( 'For most themes, the header text is your Site Title and Tagline, as defined in the'), __( 'General Settings' ), __( 'section.' ) ) . '<p>' . 
     129                                '<p>' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by typing in a legitimate HTML hex value (eg: "#ff0000" for red) or by clicking "Select a Color" and dialing in a color using the color picker.') . '</p>' . 
     130                                '<p>' . __( 'Don\'t forget to Save Changes when you\'re done!') . '</p>' 
     131                ) ); 
     132 
    115133                get_current_screen()->set_help_sidebar( 
    116134                        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 
    117135                        '<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Header_Screen" target="_blank">Documentation on Custom Header</a>' ) . '</p>' .