Browse files

Give HTML5Press it's own top level menu in the dashboard and also on …

…the admin bar. Include a notes page for usage instructions.
  • Loading branch information...
1 parent f2790ca commit 751c45b9f693b670b55231a3fe8586341a58c3ca @tlongren committed Sep 16, 2011
Showing with 24 additions and 3 deletions.
  1. +9 −2 functions.php
  2. +15 −1 theme-options.php
@@ -222,10 +222,17 @@ function html5press_page_menu($menu) {
function html5press_admin_bar_link() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
- 'parent' => 'appearance',
+ 'parent' => '',
'id' => 'html5press-options',
'title' => __( 'HTML5Press Options','html5press' ),
- 'href' => admin_url( 'themes.php?page=theme_options'),
+ 'href' => admin_url( 'admin.php?page=theme_options'),
+ 'meta' => false
+ ));
+ $wp_admin_bar->add_menu( array(
+ 'parent' => 'html5press-options',
+ 'id' => 'html5press-notes',
+ 'title' => __( 'HTML5Press Notes','html5press' ),
+ 'href' => admin_url( 'admin.php?page=theme_options_notes'),
'meta' => false
@@ -300,11 +300,25 @@ function html5press_register_settings() {
function html5press_theme_options() {
// Add theme options page to the addmin menu
- add_theme_page( 'HTML5Press Options', 'HTML5Press Options', 'edit_theme_options', 'theme_options', 'html5press_theme_options_page' );
+ add_menu_page( 'HTML5Press', 'HTML5Press', 'edit_theme_options', 'theme_options', 'html5press_theme_options_page' );
+ add_submenu_page( 'theme_options', 'HTML5Press Notes', 'Notes', 'edit_theme_options', 'theme_options_notes', 'html5press_theme_notes_page');
add_action( 'admin_menu', 'html5press_theme_options' );
+// Function for notes page
+function html5press_theme_notes_page() {
+ echo '<div class="wrap">';
+ screen_icon();
+ echo '<h2>HTML5Press Notes</h2><ol>
+ <li><strong>Archive Page:</strong> There\'s a page template called Archives. Don\'t enter any page content, just title the page and select Archives for the page template. The archives will be generated automatically. See <a href="">here for an example</a>.</li>
+ <li><strong>Link Post Format:</strong> To utilize the link Post Format, simply write a new post and select "Link" for the format. You\'ll also need to add a custom field with the URL you want to link to. The custom field name should be LinkFormatURL and the custom field value should be the URL you want to link to.</li>
+ <li><strong>Quote Post Format:</strong> When using this post format, I usually use the author or source as the post title, and then put the quote inside a blockquote for the actual post content.</li>
+ <li><strong>Status Post Format:</strong> Just put your status as the post title and publish (make sure you select the status format!). No post content is necessary.</li>
+ <li><strong>Maintenance Mode:</strong> This option lets you show a "maintenance" message to visitors who aren\'t logged in. This can be useful while making changes to your website or while tinkering with HTML5Press. Just don\'t forget to disable it when you\'re done or your visitors won\'t see your site!</li>
// Function to generate options page
function html5press_theme_options_page() {
global $html5press_options, $html5press_image_sizes, $html5press_categories, $html5press_num_featured_options, $html5press_theme_colors, $html5press_theme_fonts;

0 comments on commit 751c45b

Please sign in to comment.