bb_get_stylesheet_uri

The BuddyPress bb get stylesheet uri function.

Description

bb_get_stylesheet_uri( (string) $stylesheet = '' ); 

Parameters (1)

0. $stylesheet — Optional. (string) => ''
The stylesheet.

Usage

  1. if ( !function_exists( 'bb_get_stylesheet_uri' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The stylesheet. 
  5. $stylesheet = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_stylesheet_uri($stylesheet); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_get_stylesheet_uri( $stylesheet = '' ) 
  2. if ( 'rtl' == $stylesheet ) { 
  3. $css_file = 'style-rtl.css'; 
  4. } else { 
  5. $css_file = 'style.css'; 
  6.  
  7. $active_theme = bb_get_active_theme_directory(); 
  8.  
  9. if ( file_exists( $active_theme . $css_file ) ) { 
  10. $r = bb_get_active_theme_uri() . $css_file; 
  11. } else { 
  12. $r = BB_DEFAULT_THEME_URL . $css_file; 
  13.  
  14. return apply_filters( 'bb_get_stylesheet_uri', $r, $stylesheet );