nxs_getImgfrOpt

The NextScripts: Social Networks Auto-Poster nxs getImgfrOpt function.

Description

nxs_getImgfrOpt( $imgOpts, (string) $defSize = '' ); 

Parameters (2)

0. $imgopts
The imgopts.
1. $defsize (string)
The defsize.

Usage

  1. if ( !function_exists( 'nxs_getImgfrOpt' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/inc/nxs_functions_adv.php'; 
  3.  
  4. // The imgopts. 
  5. $imgopts = null; 
  6.  
  7. // The defsize. 
  8. $defsize = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = nxs_getImgfrOpt($imgopts, $defsize); 
  12.  

Defined (1)

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

/inc/nxs_functions_adv.php  
  1. if (!function_exists("nxs_getImgfrOpt")) { function nxs_getImgfrOpt($imgOpts, $defSize='') { if (!is_array($imgOpts)) return $imgOpts;// prr($imgOpts); 
  2. if ($defSize!='' && isset($imgOpts[$defSize]) && trim($imgOpts[$defSize])!='') return $imgOpts[$defSize]; 
  3. if (isset($imgOpts['large']) && trim($imgOpts['large'])!='') return $imgOpts['large']; 
  4. if (isset($imgOpts['original']) && trim($imgOpts['original'])!='') return $imgOpts['original']; 
  5. if (isset($imgOpts['thumb']) && trim($imgOpts['thumb'])!='') return $imgOpts['thumb']; 
  6. if (isset($imgOpts['medium']) && trim($imgOpts['medium'])!='') return $imgOpts['medium']; 
  7. }}