p2_admin_header_style

The BP Groupblog p2 admin header style function.

Description

p2_admin_header_style(); 

Usage

  1. if ( !function_exists( 'p2_admin_header_style' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/themes/p2/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = p2_admin_header_style(); 
  7.  

Defined (1)

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

/themes/p2/functions.php  
  1. function p2_admin_header_style() { 
  2. ?> 
  3. <style type="text/css"> 
  4. #headimg { 
  5. background: url(<?php header_image(); ?>) repeat; 
  6. height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; 
  7. width:<?php echo HEADER_IMAGE_WIDTH; ?>px; 
  8. padding:0 0 0 18px; 
  9. #headimg a { 
  10. height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; 
  11. width:<?php echo HEADER_IMAGE_WIDTH; ?>px; 
  12.  
  13. #headimg h1{ 
  14. padding-top:40px; 
  15. margin: 0; 
  16. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif; 
  17. font-weight: 200; 
  18. #headimg h1 a { 
  19. color:#<?php header_textcolor(); ?>; 
  20. text-decoration: none; 
  21. border-bottom: none; 
  22. font-size: 1.4em; 
  23. margin: -0.4em 0 0 0; 
  24. #headimg #desc{ 
  25. color:#<?php header_textcolor(); ?>; 
  26. font-size:1.1em; 
  27. margin-top:1em; 
  28. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif; 
  29. font-weight: 200; 
  30.  
  31. <?php if ( 'blank' == get_header_textcolor() ) { ?> 
  32. #headimg h1, #headimg #desc { 
  33. display: none; 
  34. #headimg h1 a, #headimg #desc { 
  35. color:#<?php echo HEADER_TEXTCOLOR ?>; 
  36. <?php } ?> 
  37.  
  38. </style> 
  39. <?php