php


SUBMITTED BY: abricos174

DATE: Oct. 18, 2015, 9:56 p.m.

UPDATED: Oct. 20, 2015, 7:05 p.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 910

  1. if( ! $smof_data['map_scale'] ) {
  2. $map_scale = 'yes';
  3. } else {
  4. $map_scale = 'no';
  5. }
  6. if( ! $smof_data['map_zoomcontrol'] ) {
  7. $map_zoomcontrol = 'yes';
  8. } else {
  9. $map_zoomcontrol = 'no';
  10. }
  11. if ( $smof_data['gmap_pin_animation'] ) {
  12. $address_pin_animation = 'yes';
  13. } else {
  14. $address_pin_animation = 'no';
  15. }
  16. echo do_shortcode('[avada_map address="' . $smof_data['gmap_address'] . '" type="' . $smof_data['gmap_type'] . '" map_style="' . $smof_data['map_styling'] . '" animation="' . $address_pin_animation . '" overlay_color="' . $smof_data['map_overlay_color'] . '" infobox="' . $smof_data['map_infobox_styling'] . '" infobox_background_color="' . $smof_data['map_infobox_bg_color'] . '" infobox_text_color="' . $smof_data['map_infobox_text_color'] . '" infobox_content="' . $smof_data['map_infobox_content'] . '" icon="' . $smof_data['map_custom_marker_icon'] . '" width="' . $smof_data['gmap_width'] . '" height="' . $smof_data['gmap_height'] . '" zoom="' . $smof_data['map_zoom_level'] . '" scrollwheel="' . $map_scrollwheel . '" scale="' . $map_scale . '" zoom_pancontrol="' . $map_zoomcontrol . '" popup="' . $map_popup . '"][/avada_map]');
  17. ?>

comments powered by Disqus