stats_admin_bar_head

Stats Admin Bar Head.

Description

stats_admin_bar_head(); 

Usage

  1. if ( !function_exists( 'stats_admin_bar_head' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = stats_admin_bar_head(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/stats.php  
  1. function stats_admin_bar_head() { 
  2. if ( !stats_get_option( 'admin_bar' ) ) 
  3. return; 
  4.  
  5. if ( !current_user_can( 'view_stats' ) ) 
  6. return; 
  7.  
  8. if ( function_exists( 'is_admin_bar_showing' ) && !is_admin_bar_showing() ) { 
  9. return; 
  10.  
  11. add_action( 'admin_bar_menu', 'stats_admin_bar_menu', 100 ); 
  12. ?> 
  13.  
  14. <style type='text/css'> 
  15. #wpadminbar .quicklinks li#wp-admin-bar-stats { 
  16. height: 28px; 
  17. #wpadminbar .quicklinks li#wp-admin-bar-stats a { 
  18. height: 28px; 
  19. padding: 0; 
  20. #wpadminbar .quicklinks li#wp-admin-bar-stats a div { 
  21. height: 28px; 
  22. width: 95px; 
  23. overflow: hidden; 
  24. margin: 0 10px; 
  25. #wpadminbar .quicklinks li#wp-admin-bar-stats a:hover div { 
  26. width: auto; 
  27. margin: 0 8px 0 10px; 
  28. #wpadminbar .quicklinks li#wp-admin-bar-stats a img { 
  29. height: 24px; 
  30. padding: 2px 0; 
  31. max-width: none; 
  32. border: none; 
  33. </style> 
  34. <?php