" class="small-text" /> <?php _e('pixels', 'bgmp'); ?> <?php } elseif ('bgmp_map-address' == $field['label_for']) { ?> <input id="bgmp_map-address" name="bgmp_map-address" type="text" value="<?php echo esc_attr($map_address); ?> " class="regular-text" /> <?php if ($map_address && !Basic_Google_Maps_Placemarks::validate_coordinates($map_address) && $map_latitude && $map_longitude) { ?> <em>(<?php _e('Geocoded to:', 'bgmp'); ?> <?php echo esc_html($map_latitude); ?> , <?php echo esc_html($map_longitude); ?> )</em> <?php } elseif ($map_address && (!$map_latitude || !$map_longitude)) { ?> <em><?php
public function test_get_placemarks_json_encode() { $bgmp = new Basic_Google_Maps_Placemarks(); $bgmp->init(); $markers = json_encode($bgmp->get_map_placemarks(array())); $this->assertTrue(is_string($markers)); $markers = json_decode($markers); $this->assertFalse(is_null($markers)); // @todo again w/ various attributes }