@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function register(Doku_Event_Handler $controller) { |
33 | 33 | $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, 'handleMetaheaderOutput'); |
34 | - if($this->getConf('toolbar_icon')) { |
|
34 | + if ($this->getConf('toolbar_icon')) { |
|
35 | 35 | $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insertButton', array()); |
36 | 36 | } |
37 | 37 | $controller->register_hook('PLUGIN_POPULARITY_DATA_SETUP', 'AFTER', $this, 'popularity'); |
@@ -58,20 +58,20 @@ discard block |
||
58 | 58 | $placename = $geotags ['placename'] ?? NULL; |
59 | 59 | $geohash = $geotags ['geohash'] ?? NULL; |
60 | 60 | |
61 | - if(!empty ($region)) { |
|
61 | + if (!empty ($region)) { |
|
62 | 62 | $event->data ['meta'] [] = array( |
63 | 63 | 'name' => 'geo.region', |
64 | 64 | 'content' => $region |
65 | 65 | ); |
66 | 66 | } |
67 | - if(!empty ($placename)) { |
|
67 | + if (!empty ($placename)) { |
|
68 | 68 | $event->data ['meta'] [] = array( |
69 | 69 | 'name' => 'geo.placename', |
70 | 70 | 'content' => $placename |
71 | 71 | ); |
72 | 72 | } |
73 | - if(!(empty ($lat) && empty ($lon))) { |
|
74 | - if(!empty ($alt)) { |
|
73 | + if (!(empty ($lat) && empty ($lon))) { |
|
74 | + if (!empty ($alt)) { |
|
75 | 75 | $event->data ['meta'] [] = array( |
76 | 76 | 'name' => 'geo.position', |
77 | 77 | 'content' => $lat . ';' . $lon . ';' . $alt |
@@ -83,20 +83,20 @@ discard block |
||
83 | 83 | ); |
84 | 84 | } |
85 | 85 | } |
86 | - if(!empty ($country)) { |
|
86 | + if (!empty ($country)) { |
|
87 | 87 | $event->data ['meta'] [] = array( |
88 | 88 | 'name' => 'geo.country', |
89 | 89 | 'content' => $country |
90 | 90 | ); |
91 | 91 | } |
92 | - if(!(empty ($lat) && empty ($lon))) { |
|
92 | + if (!(empty ($lat) && empty ($lon))) { |
|
93 | 93 | $event->data ['meta'] [] = array( |
94 | 94 | 'name' => "ICBM", |
95 | 95 | 'content' => $lat . ', ' . $lon |
96 | 96 | ); |
97 | 97 | // icbm is generally useless without a DC.title, |
98 | 98 | // so we copy that from title unless it's empty... |
99 | - if(!(empty ($title))) { |
|
99 | + if (!(empty ($title))) { |
|
100 | 100 | /* |
101 | 101 | * don't specify the DC namespace as this is incomplete; it should be done at the |
102 | 102 | * template level as it also needs a 'profile' attribute on the head/container, |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | ); |
111 | 111 | } |
112 | 112 | } |
113 | - if(!empty ($geohash)) { |
|
113 | + if (!empty ($geohash)) { |
|
114 | 114 | $event->data ['meta'] [] = array( |
115 | 115 | 'name' => 'geo.geohash', |
116 | 116 | 'content' => $geohash |