Description
Returns the map index| $inc | action | return |
|---|---|---|
| true | $map++ | next value |
| false | nop | current value |
| null | 0 | current value = 0 |
Usage
bw_gmap_map( $inc );Parameters
- $inc
- ( bool|null ) optional default: 1 –
Returns
voidSource
File name: oik/shortcodes/oik-googlemap.phpLines:
1 to 9 of 9
function bw_gmap_map( $inc=true ) { static $map=0; if ( $inc ) { $map++; } elseif ( null === $inc ) { $map = 0; } return $map; }View on GitHub View on Trac
Called by
1 to 9 of 9
- bw_googlemap_v3() – Display a Google Map using Google Maps JavaScript API V3
- Tests_issue_68::test_html_for_example_and_snippet_is_the_same() – Tests some of the logic in bw_expand_shortcode()
- Tests_oik_admin::test_oik_options_do_page() – Tests oik_options_do_page
- Tests_oik_admin::test_oik_options_do_page_1_bb_BB() – Tests oik_options_do_page_1 for bb_BB locale
- Tests_oik_admin::test_oik_options_do_page_bb_BB() – Tests oik_options_do_page for bb_BB
- Tests_oik_googlemap::test_bw_show_googlemap() – Test with no parameters whatsoever
- Tests_oik_googlemap::test_bw_show_googlemap_null_lat_and_long() – Test second call
- Tests_shortcodes_oik_googlemap::test_bw_show_googlemap__example() – We need to reset bw_gmap_map() to 0
- Tests_shortcodes_oik_googlemap::test_bw_show_googlemap__example_bb_BB() –
