responsive_II_css

A safe way of adding stylesheets to a WordPress generated page.

Description

responsive_II_css(); 

Usage

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

Defined (1)

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

/includes/functions.php  
  1. function responsive_II_css() { 
  2.  
  3. $responsive = wp_get_theme( 'responsive-II' ); 
  4. $responsive_II_options = responsive_II_get_options(); 
  5. $template_directory_uri = get_template_directory_uri(); 
  6. $rtl = ( is_rtl() ) ? '-rtl' : ''; 
  7. $suffix = ( "1" === $responsive_II_options['minified_css'] ) ? '.min' : ''; 
  8.  
  9. // Depending on the settings RTL or minified version will be loaded 
  10. wp_enqueue_style( 'responsive-style', $template_directory_uri . '/css/style' . $rtl . $suffix . '.css', false, $responsive['Version'] ); 
  11.  
  12. if ( is_child_theme() ) { 
  13. $theme = wp_get_theme(); 
  14. wp_enqueue_style( 'responsive-child-style', get_stylesheet_uri(), false, $theme['Version'] ); 
  15.