catchresponsive_custom_css

Enqueue Custon CSS.

Description

catchresponsive_custom_css(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-core.php  
  1. function catchresponsive_custom_css() { 
  2. //catchresponsive_flush_transients(); 
  3.  
  4.  
  5. if ( ( !$catchresponsive_custom_css = get_transient( 'catchresponsive_custom_css' ) ) ) { 
  6. $catchresponsive_custom_css =''; 
  7.  
  8. // Has the text been hidden? 
  9. if ( ! display_header_text() ) { 
  10. $catchresponsive_custom_css .= ".site-title a, .site-description { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }". "\n"; 
  11.  
  12. //Custom CSS Option 
  13. if ( !empty( $options[ 'custom_css' ] ) ) { 
  14. $catchresponsive_custom_css .= $options['custom_css'] . "\n"; 
  15.  
  16. if ( '' != $catchresponsive_custom_css ) { 
  17. echo '<!-- refreshing cache -->' . "\n"; 
  18.  
  19. $catchresponsive_custom_css = '<!-- '.get_bloginfo('name').' inline CSS Styles -->' . "\n" . '<style type="text/css" media="screen">' . "\n" . $catchresponsive_custom_css; 
  20.  
  21. $catchresponsive_custom_css .= '</style>' . "\n"; 
  22.  
  23.  
  24. set_transient( 'catchresponsive_custom_css', htmlspecialchars_decode( $catchresponsive_custom_css ), 86940 ); 
  25.  
  26. echo $catchresponsive_custom_css;