bp_dtheme_admin_header_style

Styles the header image displayed on the Appearance > Header admin panel.

Description

bp_dtheme_admin_header_style(); 

Referenced via add_custom_image_header() in bp_dtheme_setup().


Usage

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

Defined (1)

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

/bp-themes/bp-default/functions.php  
  1. function bp_dtheme_admin_header_style() { 
  2. ?> 
  3. <style type="text/css"> 
  4. #headimg { 
  5. position: relative; 
  6. color: #fff; 
  7. background: url(<?php header_image(); ?>); 
  8. -moz-border-radius-bottomleft: 6px; 
  9. -webkit-border-bottom-left-radius: 6px; 
  10. -moz-border-radius-bottomright: 6px; 
  11. -webkit-border-bottom-right-radius: 6px; 
  12. margin-bottom: 20px; 
  13. height: 133px; 
  14.  
  15. #headimg h1{ 
  16. position: absolute; 
  17. bottom: 15px; 
  18. left: 15px; 
  19. width: 44%; 
  20. margin: 0; 
  21. font-family: Arial, Tahoma, sans-serif; 
  22. #headimg h1 a{ 
  23. color:#<?php header_textcolor(); ?>; 
  24. text-decoration: none; 
  25. border-bottom: none; 
  26. #headimg #desc{ 
  27. color:#<?php header_textcolor(); ?>; 
  28. font-size:1em; 
  29. margin-top:-0.5em; 
  30.  
  31. #desc { 
  32. display: none; 
  33.  
  34. <?php if ( 'blank' == get_header_textcolor() ) { ?> 
  35. #headimg h1, #headimg #desc { 
  36. display: none; 
  37. #headimg h1 a, #headimg #desc { 
  38. color:#<?php echo HEADER_TEXTCOLOR; ?>; 
  39. <?php } ?> 
  40. </style> 
  41. <?php