Skip to content

Commit

Permalink
Merge pull request #1504 from INN/1349-in-0.5
Browse files Browse the repository at this point in the history
Copy the fix for "WP_Admin_Bar::add_node was called incorrectly" into 0.5-dev
  • Loading branch information
benlk committed Jul 31, 2018
2 parents 1c1023e + f93b8d5 commit 6212738
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions inc/dashboard.php
Expand Up @@ -120,53 +120,53 @@ function largo_custom_login_logo() {
* Largo Dashboard / Admin Bar Menu
* -- Priority 15 Places between WordPress Logo and My Sites
* -- To move menu to end of items use something like priority 999
*/
*/

add_action( 'admin_bar_menu', 'largo_dash_admin_menu', 15 );
function largo_dash_admin_menu( $wp_admin_bar ) {

// Add Top Level Text Node for Dropdown
$args = array( 'id' => 'largo_admin_mega', 'title' => 'Largo' );
$args = array( 'id' => 'largo_admin_mega', 'title' => 'Largo' );
$wp_admin_bar->add_node( $args );

// Main Website
$args = array( 'id' => 'website', 'title' => 'Main Website', 'href' => 'http://largoproject.org/', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'website', 'title' => 'Main Website', 'href' => 'http://largoproject.org/', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Documentation
$args = array( 'id' => 'largo_docs', 'title' => 'Documentation', 'href' => 'http://largo.readthedocs.io/', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'largo_docs', 'title' => 'Documentation', 'href' => 'http://largo.readthedocs.io/', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Knowledge Base
$args = array( 'id' => 'knowledge_base', 'title' => 'Knowledge Base', 'href' => 'http://support.largoproject.org/support/solutions', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'knowledge_base', 'title' => 'Knowledge Base', 'href' => 'http://support.largoproject.org/support/solutions', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Member Help Desk
$args = array( 'id' => 'support', 'title' => 'Help Desk', 'href' => 'http://support.largoproject.org', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'support', 'title' => 'Help Desk', 'href' => 'http://support.largoproject.org', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Member Forums
$args = array( 'id' => 'user_forums', 'title' => 'Community Forums', 'href' => 'http://support.largoproject.org/support/discussions', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'user_forums', 'title' => 'Community Forums', 'href' => 'http://support.largoproject.org/support/discussions', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Largo on GitHub
$args = array( 'id' => 'github', 'title' => 'Largo on GitHub', 'href' => 'https://github.com/inn/largo', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'github', 'title' => 'Largo on GitHub', 'href' => 'https://github.com/inn/largo', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Largo on Twitter
$args = array( 'id' => 'twitter', 'title' => '@LargoProject on Twitter', 'href' => 'https://twitter.com/largoproject', 'parent' => 'largo_admin_mega');
$args = array( 'id' => 'twitter', 'title' => '@LargoProject on Twitter', 'href' => 'https://twitter.com/largoproject', 'parent' => 'largo_admin_mega');
$wp_admin_bar->add_node( $args );

// INN Nerds
$args = array(' id' => 'inn_nerds', 'title' => 'INN Nerds', 'href' => 'http://nerds.inn.org', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'inn_nerds', 'title' => 'INN Nerds', 'href' => 'http://nerds.inn.org', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );
// About INN
$args = array( 'id' => 'about_inn', 'title' => 'About INN', 'href' => 'http://inn.org', 'parent' => 'largo_admin_mega' );

// About INN
$args = array( 'id' => 'about_inn', 'title' => 'About INN', 'href' => 'http://inn.org', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

// Donate
$args = array( 'id' => 'donate_inn', 'title' => 'Donate', 'href' => 'https://inn.org/donate', 'parent' => 'largo_admin_mega' );
$args = array( 'id' => 'donate_inn', 'title' => 'Donate', 'href' => 'https://inn.org/donate', 'parent' => 'largo_admin_mega' );
$wp_admin_bar->add_node( $args );

}
Expand Down

0 comments on commit 6212738

Please sign in to comment.