Skip to content

Commit

Permalink
Maybe right syntax?
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcnew committed Jan 21, 2016
1 parent 2127a09 commit 71408b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vc-gmaps-bg.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ function gmaps_scripts() {
// Shortcode Construct
function bg_gmap( $atts ) {
$a = shortcode_atts ( array (
'position' => '33.958827, -117.639830',
'pos' => '33.958827, -117.639830',
), $atts );
return "<script type='text/javascript'> var position = [$a['position']]; </script>
<div id='googlemaps'></div>";
return '<script type="text/javascript"> var position = [{$a["pos"]}];</script>
<div id="googlemaps"></div>';
}
add_shortcode( 'bgmap', 'bg_gmap' );

Expand Down

0 comments on commit 71408b4

Please sign in to comment.