From fa489bab59550ec20f17f1e7d1825f7578d28463 Mon Sep 17 00:00:00 2001 From: Matthew Wrather Date: Mon, 1 Aug 2011 21:01:33 -0700 Subject: [PATCH] added theme options to the wordpress admin bar --- inc/roots-options.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inc/roots-options.php b/inc/roots-options.php index 4cda6d9..81edeca 100644 --- a/inc/roots-options.php +++ b/inc/roots-options.php @@ -40,6 +40,18 @@ function roots_theme_options_add_page() { } add_action('admin_menu', 'roots_theme_options_add_page'); +function roots_admin_bar_render() { + global $wp_admin_bar; + + $wp_admin_bar->add_menu(array( + 'parent' => 'appearance', + 'id' => 'theme_options', + 'title' => __('Theme Options', 'roots'), + 'href' => admin_url( 'themes.php?page=theme_options') + )); +} +add_action('wp_before_admin_bar_render', 'roots_admin_bar_render'); + global $roots_css_frameworks; $roots_css_frameworks = array( 'blueprint' => array(