Permalink
Browse files

added theme options to the wordpress admin bar

  • Loading branch information...
1 parent 9f87eab commit fa489bab59550ec20f17f1e7d1825f7578d28463 @mwrather mwrather committed Aug 2, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 inc/roots-options.php
View
@@ -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(

0 comments on commit fa489ba

Please sign in to comment.