Skip to content

Instantly share code, notes, and snippets.

@nashvillegeek
Created February 28, 2014 01:29
Show Gist options
  • Save nashvillegeek/9263434 to your computer and use it in GitHub Desktop.
Save nashvillegeek/9263434 to your computer and use it in GitHub Desktop.
Sublime Text 2 snippet - Creates shortcode for single map display
<snippet>
<content><![CDATA[
/*'map_height' => '250px',
'map_width' => '250px',
'map_type' => 'ROADMAP',
'zoom_level' => 13,
'additional_info' => 'address,phone,fax,email,website',
'post_id' => 0,
'directions' => 1*/
echo do_shortcode('[gmw_single_location map_width="${1:100%}" additional_info="${2:address,phone,fax,email,website}"]');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>geomywp single</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment