@@ -6,6 +6,6 @@ |
||
6 | 6 | * Class Marker_View |
7 | 7 | * @package Clubdeuce\WPLib\Components\GoogleMaps |
8 | 8 | */ |
9 | -class Marker_View extends \WPLib_View_Base { |
|
9 | +class Marker_View extends \WPLib_View_Base { |
|
10 | 10 | |
11 | 11 | } |
12 | 12 | \ No newline at end of file |
@@ -12,10 +12,10 @@ |
||
12 | 12 | <script type="application/javascript"> |
13 | 13 | jQuery(document).ready(function() { |
14 | 14 | generate_map( |
15 | - "<?php echo esc_js($map_id); ?>", |
|
16 | - <?php echo json_encode($map_params); ?>, |
|
17 | - <?php echo json_encode($markers); ?>, |
|
18 | - <?php echo json_encode($info_windows); ?> |
|
15 | + "<?php echo esc_js( $map_id ); ?>", |
|
16 | + <?php echo json_encode( $map_params ); ?>, |
|
17 | + <?php echo json_encode( $markers ); ?>, |
|
18 | + <?php echo json_encode( $info_windows ); ?> |
|
19 | 19 | ); |
20 | 20 | }); |
21 | 21 | </script> |
@@ -63,7 +63,7 @@ |
||
63 | 63 | break; |
64 | 64 | } |
65 | 65 | |
66 | - if ( ! isset( $this->_location ) ) { |
|
66 | + if ( !isset($this->_location) ) { |
|
67 | 67 | break; |
68 | 68 | } |
69 | 69 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | break; |
38 | 38 | } |
39 | 39 | |
40 | - if ( ! isset( $this->_label ) ) { |
|
40 | + if ( !isset($this->_label) ) { |
|
41 | 41 | break; |
42 | 42 | } |
43 | 43 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | function has_map() { |
24 | 24 | |
25 | - return $this->_has('_map' ); |
|
25 | + return $this->_has( '_map' ); |
|
26 | 26 | |
27 | 27 | } |
28 | 28 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | break; |
44 | 44 | } |
45 | 45 | |
46 | - if ( ! isset( $this->_map ) ) { |
|
46 | + if ( !isset($this->_map) ) { |
|
47 | 47 | break; |
48 | 48 | } |
49 | 49 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | function info_window() { |
50 | 50 | |
51 | 51 | $window = new Info_Window( array( 'info_window' => $this->marker()->info_window() ) ); |
52 | - $window->set_position( array( 'lat' => $this->marker()->latitude(), 'lng' => $this->marker()->longitude())); |
|
52 | + $window->set_position( array( 'lat' => $this->marker()->latitude(), 'lng' => $this->marker()->longitude() ) ); |
|
53 | 53 | |
54 | 54 | return $window; |
55 | 55 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $has = false; |
19 | 19 | |
20 | - if ( isset( $this->{$property} ) ) { |
|
20 | + if ( isset($this->{$property} ) ) { |
|
21 | 21 | $has = true; |
22 | 22 | } |
23 | 23 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | function __construct( $args = array() ) { |
31 | 31 | |
32 | 32 | $args = wp_parse_args( $args, array( |
33 | - 'model' => new Map_Model( array( 'map' => new \Clubdeuce\WPGoogleMaps\Map( $args ) ) ), |
|
33 | + 'model' => new Map_Model( array( 'map' => new \Clubdeuce\WPGoogleMaps\Map($args) ) ), |
|
34 | 34 | ) ); |
35 | 35 | |
36 | 36 | parent::__construct( $args ); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | function __construct( $args = array() ) { |
29 | 29 | |
30 | 30 | $args = wp_parse_args( $args, array( |
31 | - 'model' => new Marker_Model( array( 'marker' => new \Clubdeuce\WPGoogleMaps\Marker( $args ) ) ), |
|
31 | + 'model' => new Marker_Model( array( 'marker' => new \Clubdeuce\WPGoogleMaps\Marker($args) ) ), |
|
32 | 32 | ) ); |
33 | 33 | |
34 | 34 | parent::__construct( $args ); |