Created
February 28, 2014 01:29
-
-
Save nashvillegeek/9263434 to your computer and use it in GitHub Desktop.
Sublime Text 2 snippet - Creates shortcode for single map display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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