function optionsframework_admin_bar() {

		$menu = $this->menu_settings();

		global $wp_admin_bar;

		if ( 'menu' == $menu['mode'] ) {
			$href = admin_url( 'admin.php?page=' . $menu['menu_slug'] );
		} else {
			$href = admin_url( 'themes.php?page=' . $menu['menu_slug'] );
		}

		$args = array(
			'parent' => 'appearance',
			'id' => 'of_theme_options',
			'title' => $menu['menu_title'],
			'href' => $href
		);

		$wp_admin_bar->add_menu( apply_filters( 'optionsframework_admin_bar', $args ) );
	}
function optionsframework_admin_bar() {

		$menu = $this->menu_settings();

		global $wp_admin_bar;

		if ( 'menu' == $menu['mode'] ) {
			$href = admin_url( 'admin.php?page=' . $menu['menu_slug'] );
		} else {
			$href = admin_url( 'themes.php?page=' . $menu['menu_slug'] );
		}

		$args = array(
			'parent' => 'appearance',
			'id' => 'of_theme_options',
			'title' => $menu['menu_title'],
			'href' => $href
		);

		$wp_admin_bar->add_menu( apply_filters( 'optionsframework_admin_bar', $args ) );
	}
function optionsframework_admin_bar ( ) { $ menu = $ this -> menu_settings ( ) ; global $ wp_admin_bar ; if ( 'menu' == $ menu [ 'mode' ] ) { $ href = admin_url ( 'admin.php?page=' . $ menu [ 'menu_slug' ] ) ; } else { $ href = admin_url ( 'themes.php?page=' . $ menu [ 'menu_slug' ] ) ; } $ args = array ( 'parent' => 'appearance' , 'id' => 'of_theme_options' , 'title' => $ menu [ 'menu_title' ] , 'href' => $ href ) ; $ wp_admin_bar -> add_menu ( apply_filters ( 'optionsframework_admin_bar' , $ args ) ) ; }
Add options menu item to admin bar
Add options menu item to admin bar