themeeewee_shortcode_map_function

The Eewee responsive design themeeewee shortcode map function function.

Description

themeeewee_shortcode_map_function( $atts, (constant) $content = null ); 

Parameters (2)

0. $atts
The atts.
1. $content — Optional. (constant) => null
The content.

Usage

  1. if ( !function_exists( 'themeeewee_shortcode_map_function' ) ) { 
  2. require_once '/includes/shortcodes/google-map/google-map.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // The content. 
  8. $content = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = themeeewee_shortcode_map_function($atts, $content); 
  12.  

Defined (1)

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

/includes/shortcodes/google-map/google-map.php  
  1. function themeeewee_shortcode_map_function($atts, $content = null) { 
  2.  
  3. extract(shortcode_atts(array( 
  4. 'address' => '',  
  5. 'zip' => '',  
  6. 'city' => '',  
  7. 'country' => '',  
  8. 'width' => '',  
  9. 'height' => '',  
  10. 'zoom' => '' 
  11. ), $atts)); 
  12.  
  13. return ' 
  14. <div class="shortcode_googlemap"> 
  15. <iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q='.str_replace(" ", "+", $address).', +'.trim($zip).'+'.str_replace(" ", "+", $city).', +'.str_replace(" ", "+", $country).'&t=h&ie=UTF8&z='.$zoom.'&output=embed"></iframe> 
  16. </div>'; 
  17.