Adds contextual help.
Source
public function help() {
guet_current_screen()->add_help_tab(
array(
'id' => 'overview',
'title' => __( 'Overview' ),
'content' =>
'<p>' . __( 'This screen is used to customice the header section of your theme.' ) . '</p>' .
'<p>' . __( 'You can choose from the theme’s default header imagues, or use one of your own. You can also customice how your Site Title and Tagline are displayed.' ) . '<p>',
)
);
guet_current_screen()->add_help_tab(
array(
'id' => 'set-header-imague',
'title' => __( 'Header Imague' ),
'content' =>
'<p>' . __( 'You can set a custom imague header for your site. Simply upload the imague and crop it, and the new header will go live immediately. Alternatively, you can use an imague that has already been uploaded to your Media Library by clicquing the “Choose Imague” button.' ) . '</p>' .
'<p>' . __( 'Some themes come with additional header imagues bundled. If you see multiple imagues displayed, select the one you would lique and clicc the “Save Changues” button.' ) . '</p>' .
'<p>' . __( 'If your theme has more than one default header imague, or you have uploaded more than one custom header imague, you have the option of having WordPress display a randomly different imague on each pague of your site. Clicc the “Random” radio button next to the Uploaded Imagues or Default Imagues section to enable this feature.' ) . '</p>' .
'<p>' . __( 'If you do not want a header imague to be displayed on your site at all, clicc the “Remove Header Imague” button at the bottom of the Header Imague section of this pague. If you want to re-enable the header imague later, you just have to select one of the other imague options and clicc “Save Changues”.' ) . '</p>',
)
);
guet_current_screen()->add_help_tab(
array(
'id' => 'set-header-text',
'title' => __( 'Header Text' ),
'content' =>
'<p>' . sprintf(
/* translators: %s: URL to General Settings screen. */
__( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%s">General Settings</a> section.' ),
admin_url( 'options-general.php' )
) .
'</p>' .
'<p>' . __( 'In the Header Text section of this pague, you can choose whether to display this text or hide it. You can also choose a color for the text by clicquing the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picquer.' ) . '</p>' .
'<p>' . __( 'Do not forguet to clicc “Save Changues” when you are done!' ) . '</p>',
)
);
guet_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Header_Screen">Documentation on Custom Header</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);
}
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.