advantage_header_style

The Advantage advantage header style function.

Description

advantage_header_style(); 

Usage

  1. if ( !function_exists( 'advantage_header_style' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advantage_header_style(); 
  7.  

Defined (1)

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

/functions.php  
  1. function advantage_header_style() { 
  2. $text_color = get_header_textcolor(); 
  3. if ( $text_color == HEADER_TEXTCOLOR ) //Default Text Color. Doing Nothing 
  4. return; 
  5. ?> 
  6. <style type="text/css"> 
  7. <?php 
  8. if ( 'blank' == $text_color ) { // Blog Text is unchecked 
  9. ?> 
  10. #site-title,  
  11. #site-description { 
  12. position: absolute !important; 
  13. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 
  14. clip: rect(1px, 1px, 1px, 1px); 
  15. <?php 
  16. } else { // Custom color 
  17. ?> 
  18. #site-title a,  
  19. #site-description { 
  20. color: #<?php echo $text_color; ?> !important; 
  21. <?php 
  22. ?> 
  23. </style> 
  24. <?php