fs_img_url

The NextGEN Gallery fs img url function.

Description

fs_img_url( $path, $img_dir = ); 

Parameters (2)

0. $path
The path.
1. $img_dir
The img dir.

Usage

  1. if ( !function_exists( 'fs_img_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/includes/fs-core-functions.php'; 
  3.  
  4. // The path. 
  5. $path = null; 
  6.  
  7. // The img dir. 
  8. $img_dir = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = fs_img_url($path, $img_dir); 
  12.  

Defined (1)

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

/freemius/includes/fs-core-functions.php  
  1. function fs_img_url( $path, $img_dir = WP_FS__DIR_IMG ) { 
  2. return plugins_url( plugin_basename( $img_dir . '/' . trim( $path, '/' ) ) );