fs_enqueue_local_style

Scripts and styles including.

Description

fs_enqueue_local_style( $handle, $path, (array) $deps = array(), (constant) $ver = false, (string) $media = 'all' ); 

--------------------------------------------------------------------------------------------

Parameters (5)

0. $handle
The handle.
1. $path
The path.
2. $deps — Optional. (array) => array()
The deps.
3. $ver — Optional. (constant) => false
The ver.
4. $media — Optional. (string) => 'all'
The media.

Usage

  1. if ( !function_exists( 'fs_enqueue_local_style' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/includes/fs-core-functions.php'; 
  3.  
  4. // The handle. 
  5. $handle = null; 
  6.  
  7. // The path. 
  8. $path = null; 
  9.  
  10. // The deps. 
  11. $deps = array(); 
  12.  
  13. // The ver. 
  14. $ver = false; 
  15.  
  16. // The media. 
  17. $media = 'all'; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = fs_enqueue_local_style($handle, $path, $deps, $ver, $media); 
  21.  

Defined (1)

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

/freemius/includes/fs-core-functions.php  
  1. function fs_enqueue_local_style( $handle, $path, $deps = array(), $ver = false, $media = 'all' ) { 
  2. global $fs_core_logger; 
  3. if ( $fs_core_logger->is_on() ) { 
  4. $fs_core_logger->info( 'handle = ' . $handle . '; path = ' . $path . ';' ); 
  5. $fs_core_logger->info( 'plugin_basename = ' . plugins_url( WP_FS__DIR_CSS . trim( $path, '/' ) ) ); 
  6. $fs_core_logger->info( 'plugins_url = ' . plugins_url( plugin_basename( WP_FS__DIR_CSS . '/' . trim( $path, '/' ) ) ) ); 
  7.  
  8. wp_enqueue_style( $handle, plugins_url( plugin_basename( WP_FS__DIR_CSS . '/' . trim( $path, '/' ) ) ), $deps, $ver, $media );