responsive_mobile_css

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

Description

responsive_mobile_css(); 

Usage

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

Defined (1)

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

/includes/functions.php  
  1. function responsive_mobile_css() { 
  2.  
  3. $responsive_mobile = wp_get_theme( 'responsive-mobile' ); 
  4. $responsive_mobile_options = responsive_mobile_get_options(); 
  5. $rtl = ( is_rtl() ) ? '-rtl' : ''; 
  6. $suffix = ( "1" === $responsive_mobile_options['minified_css'] ) ? '.min' : ''; 
  7.  
  8. if ( is_child_theme() ) { 
  9. $theme = wp_get_theme(); 
  10. wp_enqueue_style( 'responsive-mobile-style', get_template_directory_uri() . '/css/style' . $rtl . $suffix . '.css', false, $responsive_mobile['Version'] ); 
  11. wp_enqueue_style( 'responsive-mobile-child-style', get_stylesheet_uri(), false, $theme['Version'] ); 
  12. } else { 
  13. wp_enqueue_style( 'responsive-mobile-style', get_stylesheet_uri(), false, $responsive_mobile['Version'] ); 
  14.