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.4 kB

HITS: 910

  1. <?php
  2. if( $smof_data['map_popup'] ) {
  3. $map_popup = 'yes';
  4. } else {
  5. $map_popup = 'no';
  6. }
  7. if( ! $smof_data['map_scrollwheel'] ) {
  8. $map_scrollwheel = 'yes';
  9. } else {
  10. $map_scrollwheel = 'no';
  11. }
  12. if( ! $smof_data['map_scale'] ) {
  13. $map_scale = 'yes';
  14. } else {
  15. $map_scale = 'no';
  16. }
  17. if( ! $smof_data['map_zoomcontrol'] ) {
  18. $map_zoomcontrol = 'yes';
  19. } else {
  20. $map_zoomcontrol = 'no';
  21. }
  22. if ( $smof_data['gmap_pin_animation'] ) {
  23. $address_pin_animation = 'yes';
  24. } else {
  25. $address_pin_animation = 'no';
  26. }
  27. 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]');
  28. ?>

comments powered by Disqus