miya0001 / simple-map

Display Google Map Shortcode for WordPress
21 stars 15 forks source link

Update simple-map.php #1

Closed reddo closed 10 years ago

reddo commented 10 years ago

Added support to parse shortcode content to display in a gmaps.js infowindow.

Altered following lines:

after line 134 ($lng = $p['lng'];) i've added $cnt = do_shortcode($content); to define a new variable.

in line 143 (144 after adding above line) i've added data-cont="%s" making the whole line look like this: '<div class="%s"><div data-breakpoint="%s" data-lat="%s" data-lng="%s" data-zoom="%s" style="width:%s;height:%s;" data-cont="%s">%s</div></div>', and after line 150 (newly 151) I've also added $cnt, to pass the above created variable for the jQuery code to process.