web_dor_first_image

The Business Responsive web dor first image function.

Description

web_dor_first_image( $width, $height, (int) $url_or_img = 0 ); 

Parameters (3)

0. $width
The width.
1. $height
The height.
2. $url_or_img — Optional. (int)
The url or img.

Usage

  1. if ( !function_exists( 'web_dor_first_image' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The width. 
  5. $width = null; 
  6.  
  7. // The height. 
  8. $height = null; 
  9.  
  10. // The url or img. 
  11. $url_or_img = -1; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = web_dor_first_image($width, $height, $url_or_img); 
  15.  

Defined (1)

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

/functions.php  
  1. function web_dor_first_image($width, $height, $url_or_img=0) 
  2. if ($thumb) { 
  3.  
  4. $str = "<img src=\""; 
  5. $str .= $thumb; 
  6.  
  7. $str .= '"'; 
  8. $str .= 'alt="'.get_the_title().'" width="'.$width.'" height="'.$height.'" border="0" />'; 
  9. return $str;