wp/wp-includes/class-wp-admin-bar.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   241 
   241 
   242 		return $this->nodes;
   242 		return $this->nodes;
   243 	}
   243 	}
   244 
   244 
   245 	/**
   245 	/**
   246 	 * Add a group to a menu node.
   246 	 * Add a group to a toolbar menu node.
       
   247 	 *
       
   248 	 * Groups can be used to organize toolbar items into distinct sections of a toolbar menu.
   247 	 *
   249 	 *
   248 	 * @since 3.3.0
   250 	 * @since 3.3.0
   249 	 *
   251 	 *
   250 	 * @param array $args {
   252 	 * @param array $args {
   251 	 *     Array of arguments for adding a group.
   253 	 *     Array of arguments for adding a group.
   434 			$class .= ' mobile';
   436 			$class .= ' mobile';
   435 		}
   437 		}
   436 
   438 
   437 		?>
   439 		?>
   438 		<div id="wpadminbar" class="<?php echo $class; ?>">
   440 		<div id="wpadminbar" class="<?php echo $class; ?>">
   439 			<?php if ( ! is_admin() ) { ?>
   441 			<?php if ( ! is_admin() && ! did_action( 'wp_body_open' ) ) { ?>
   440 				<a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e( 'Skip to toolbar' ); ?></a>
   442 				<a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e( 'Skip to toolbar' ); ?></a>
   441 			<?php } ?>
   443 			<?php } ?>
   442 			<div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>">
   444 			<div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>">
   443 				<?php
   445 				<?php
   444 				foreach ( $root->children as $group ) {
   446 				foreach ( $root->children as $group ) {