@@ -16,30 +16,30 @@ discard block |
||
16 | 16 | */ |
17 | 17 | $general_options = apply_filters('geodir_general_options', array( |
18 | 18 | |
19 | - array('name' => __('General', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'general_options'), |
|
20 | - |
|
21 | - array('name' => __('General Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'general_options'), |
|
22 | - |
|
23 | - array( |
|
24 | - 'name' => __('Sender name', 'geodirectory'), |
|
25 | - 'desc' => __('(Name that will be shown as email sender when users receive emails from this site)', 'geodirectory'), |
|
26 | - 'id' => 'site_email_name', |
|
27 | - 'type' => 'text', |
|
28 | - 'css' => 'min-width:300px;', |
|
29 | - 'std' => get_bloginfo('name') // Default value for the page title - changed in settings |
|
30 | - ), |
|
31 | - |
|
32 | - array( |
|
33 | - 'name' => __('Email address', 'geodirectory'), |
|
34 | - 'desc' => __('(Emails to users will be sent via this mail ID)', 'geodirectory'), |
|
35 | - 'id' => 'site_email', |
|
36 | - 'type' => 'text', |
|
37 | - 'css' => 'min-width:300px;', |
|
38 | - 'std' => get_bloginfo('admin_email') // Default value for the page title - changed in settings |
|
39 | - ), |
|
40 | - |
|
41 | - |
|
42 | - /*array( |
|
19 | + array('name' => __('General', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'general_options'), |
|
20 | + |
|
21 | + array('name' => __('General Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'general_options'), |
|
22 | + |
|
23 | + array( |
|
24 | + 'name' => __('Sender name', 'geodirectory'), |
|
25 | + 'desc' => __('(Name that will be shown as email sender when users receive emails from this site)', 'geodirectory'), |
|
26 | + 'id' => 'site_email_name', |
|
27 | + 'type' => 'text', |
|
28 | + 'css' => 'min-width:300px;', |
|
29 | + 'std' => get_bloginfo('name') // Default value for the page title - changed in settings |
|
30 | + ), |
|
31 | + |
|
32 | + array( |
|
33 | + 'name' => __('Email address', 'geodirectory'), |
|
34 | + 'desc' => __('(Emails to users will be sent via this mail ID)', 'geodirectory'), |
|
35 | + 'id' => 'site_email', |
|
36 | + 'type' => 'text', |
|
37 | + 'css' => 'min-width:300px;', |
|
38 | + 'std' => get_bloginfo('admin_email') // Default value for the page title - changed in settings |
|
39 | + ), |
|
40 | + |
|
41 | + |
|
42 | + /*array( |
|
43 | 43 | 'name' => __( 'Display Category', 'geodirectory' ), |
44 | 44 | 'desc' => __( 'Allow users to select category at add listing page', 'geodirectory' ), |
45 | 45 | 'tip' => '', |
@@ -58,66 +58,66 @@ discard block |
||
58 | 58 | |
59 | 59 | |
60 | 60 | */ |
61 | - array( |
|
62 | - 'name' => __('Allow user to see wp-admin area', 'geodirectory'), |
|
63 | - 'desc' => __('Yes', 'geodirectory'), |
|
64 | - 'id' => 'geodir_allow_wpadmin', |
|
65 | - 'std' => '1', |
|
66 | - 'type' => 'radio', |
|
67 | - 'value' => '1', |
|
68 | - 'radiogroup' => 'start' |
|
69 | - ), |
|
70 | - array( |
|
71 | - 'name' => __('Allow user to see wp-admin area', 'geodirectory'), |
|
72 | - 'desc' => __('No', 'geodirectory'), |
|
73 | - 'id' => 'geodir_allow_wpadmin', |
|
74 | - 'std' => '0', |
|
75 | - 'type' => 'radio', |
|
76 | - 'value' => '0', |
|
77 | - 'radiogroup' => 'end' |
|
78 | - ), |
|
79 | - |
|
80 | - array( |
|
81 | - 'name' => __('Allow user to choose own password', 'geodirectory'), |
|
82 | - 'desc' => __('Yes', 'geodirectory'), |
|
83 | - 'id' => 'geodir_allow_cpass', |
|
84 | - 'std' => '1', |
|
85 | - 'type' => 'radio', |
|
86 | - 'value' => '1', |
|
87 | - 'radiogroup' => 'start' |
|
88 | - ), |
|
89 | - array( |
|
90 | - 'name' => __('Allow user to choose own password', 'geodirectory'), |
|
91 | - 'desc' => __('No', 'geodirectory'), |
|
92 | - 'id' => 'geodir_allow_cpass', |
|
93 | - 'std' => '0', |
|
94 | - 'type' => 'radio', |
|
95 | - 'value' => '0', |
|
96 | - 'radiogroup' => 'end' |
|
97 | - ), |
|
98 | - array( |
|
99 | - 'name' => __('Disable rating on comments', 'geodirectory'), |
|
100 | - 'desc' => __('Disable rating without disabling comments on listings', 'geodirectory'), |
|
101 | - 'id' => 'geodir_disable_rating', |
|
102 | - 'type' => 'checkbox', |
|
103 | - 'std' => '0' |
|
104 | - ), |
|
105 | - array( |
|
106 | - 'name' => __('User deleted posts go to trash', 'geodirectory'), |
|
107 | - 'desc' => __('If checked a user deleted post will go to trash, otherwise it will be permanently deleted', 'geodirectory'), |
|
108 | - 'id' => 'geodir_disable_perm_delete', |
|
109 | - 'type' => 'checkbox', |
|
110 | - 'std' => '1' |
|
111 | - ), |
|
112 | - array( |
|
113 | - 'name' => __('Max upload file size(in mb)', 'geodirectory'), |
|
114 | - 'desc' => __('(Maximum upload file size in MB, 1 MB = 1024 KB. Must be greater then 0(ZERO), for ex: 2. This setting will overwrite the max upload file size limit in image/file upload & import listings for entire GeoDirectory core + GeoDirectory plugins.)', 'geodirectory'), |
|
115 | - 'id' => 'geodir_upload_max_filesize', |
|
116 | - 'type' => 'text', |
|
117 | - 'css' => 'min-width:300px;', |
|
118 | - 'std' => '2' |
|
119 | - ), |
|
120 | - array('type' => 'sectionend', 'id' => 'general_options'), |
|
61 | + array( |
|
62 | + 'name' => __('Allow user to see wp-admin area', 'geodirectory'), |
|
63 | + 'desc' => __('Yes', 'geodirectory'), |
|
64 | + 'id' => 'geodir_allow_wpadmin', |
|
65 | + 'std' => '1', |
|
66 | + 'type' => 'radio', |
|
67 | + 'value' => '1', |
|
68 | + 'radiogroup' => 'start' |
|
69 | + ), |
|
70 | + array( |
|
71 | + 'name' => __('Allow user to see wp-admin area', 'geodirectory'), |
|
72 | + 'desc' => __('No', 'geodirectory'), |
|
73 | + 'id' => 'geodir_allow_wpadmin', |
|
74 | + 'std' => '0', |
|
75 | + 'type' => 'radio', |
|
76 | + 'value' => '0', |
|
77 | + 'radiogroup' => 'end' |
|
78 | + ), |
|
79 | + |
|
80 | + array( |
|
81 | + 'name' => __('Allow user to choose own password', 'geodirectory'), |
|
82 | + 'desc' => __('Yes', 'geodirectory'), |
|
83 | + 'id' => 'geodir_allow_cpass', |
|
84 | + 'std' => '1', |
|
85 | + 'type' => 'radio', |
|
86 | + 'value' => '1', |
|
87 | + 'radiogroup' => 'start' |
|
88 | + ), |
|
89 | + array( |
|
90 | + 'name' => __('Allow user to choose own password', 'geodirectory'), |
|
91 | + 'desc' => __('No', 'geodirectory'), |
|
92 | + 'id' => 'geodir_allow_cpass', |
|
93 | + 'std' => '0', |
|
94 | + 'type' => 'radio', |
|
95 | + 'value' => '0', |
|
96 | + 'radiogroup' => 'end' |
|
97 | + ), |
|
98 | + array( |
|
99 | + 'name' => __('Disable rating on comments', 'geodirectory'), |
|
100 | + 'desc' => __('Disable rating without disabling comments on listings', 'geodirectory'), |
|
101 | + 'id' => 'geodir_disable_rating', |
|
102 | + 'type' => 'checkbox', |
|
103 | + 'std' => '0' |
|
104 | + ), |
|
105 | + array( |
|
106 | + 'name' => __('User deleted posts go to trash', 'geodirectory'), |
|
107 | + 'desc' => __('If checked a user deleted post will go to trash, otherwise it will be permanently deleted', 'geodirectory'), |
|
108 | + 'id' => 'geodir_disable_perm_delete', |
|
109 | + 'type' => 'checkbox', |
|
110 | + 'std' => '1' |
|
111 | + ), |
|
112 | + array( |
|
113 | + 'name' => __('Max upload file size(in mb)', 'geodirectory'), |
|
114 | + 'desc' => __('(Maximum upload file size in MB, 1 MB = 1024 KB. Must be greater then 0(ZERO), for ex: 2. This setting will overwrite the max upload file size limit in image/file upload & import listings for entire GeoDirectory core + GeoDirectory plugins.)', 'geodirectory'), |
|
115 | + 'id' => 'geodir_upload_max_filesize', |
|
116 | + 'type' => 'text', |
|
117 | + 'css' => 'min-width:300px;', |
|
118 | + 'std' => '2' |
|
119 | + ), |
|
120 | + array('type' => 'sectionend', 'id' => 'general_options'), |
|
121 | 121 | |
122 | 122 | ));/* General Options End*/ |
123 | 123 | |
@@ -129,82 +129,82 @@ discard block |
||
129 | 129 | */ |
130 | 130 | $google_analytic_settings = apply_filters('geodir_google_analytic_settings', array( |
131 | 131 | |
132 | - array('name' => __('Google Analytics', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'google_analytic_settings'), |
|
133 | - |
|
134 | - array('name' => __('Google Analytic Settings', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'google_analytic_settings'), |
|
135 | - |
|
136 | - |
|
137 | - |
|
138 | - array( |
|
139 | - 'name' => __('Show business owner google analytics stats?', 'geodirectory'), |
|
140 | - 'desc' => __('Yes', 'geodirectory'), |
|
141 | - 'id' => 'geodir_ga_stats', |
|
142 | - 'std' => '0', |
|
143 | - 'type' => 'radio', |
|
144 | - 'value' => '1', |
|
145 | - 'radiogroup' => 'start' |
|
146 | - ), |
|
147 | - array( |
|
148 | - 'name' => __('Show business owner Google Analytics stats?', 'geodirectory'), |
|
149 | - 'desc' => __('No', 'geodirectory'), |
|
150 | - 'id' => 'geodir_ga_stats', |
|
151 | - 'std' => '1', |
|
152 | - 'type' => 'radio', |
|
153 | - 'value' => '0', |
|
154 | - 'radiogroup' => 'end' |
|
155 | - ), |
|
156 | - |
|
157 | - array( |
|
158 | - 'name' => __('Google analytics "Profile ID(ie: ga:12345678)?', 'geodirectory') . ' ' . |
|
159 | - '<a target="_blank" href="https://docs.wpgeodirectory.com/gd-core-plugin-google-analytics/">' . __('help', 'geodirectory') . '</a>', |
|
160 | - 'desc' => '', |
|
161 | - 'id' => 'geodir_ga_id', |
|
162 | - 'type' => 'text', |
|
163 | - 'css' => 'min-width:300px;', |
|
164 | - 'std' => '' // Default value for the page title - changed in settings |
|
165 | - ), |
|
166 | - |
|
167 | - array( |
|
168 | - 'name' => __('Client ID', 'geodirectory') . ' ' . |
|
169 | - '<a target="_blank" href="https://docs.wpgeodirectory.com/gd-core-plugin-google-analytics/">' . __('help', 'geodirectory') . '</a>', |
|
170 | - 'desc' => '', |
|
171 | - 'id' => 'geodir_ga_client_id', |
|
172 | - 'type' => 'text', |
|
173 | - 'css' => 'min-width:300px;', |
|
174 | - 'std' => '' // Default value for the page title - changed in settings |
|
175 | - ), |
|
176 | - |
|
177 | - array( |
|
178 | - 'name' => __('Client secret', 'geodirectory') . ' ' . |
|
179 | - '<a target="_blank" href="https://docs.wpgeodirectory.com/gd-core-plugin-google-analytics/">' . __('help', 'geodirectory') . '</a>', |
|
180 | - 'desc' => '', |
|
181 | - 'id' => 'geodir_ga_client_secret', |
|
182 | - 'type' => 'password', |
|
183 | - 'css' => 'min-width:300px;', |
|
184 | - 'std' => '' // Default value for the page title - changed in settings |
|
185 | - ), |
|
186 | - |
|
187 | - array( |
|
188 | - 'name' => __('Google analytics access', 'geodirectory'), |
|
189 | - 'desc' => '', |
|
190 | - 'id' => 'geodir_ga_token', |
|
191 | - 'type' => 'google_analytics', |
|
192 | - 'css' => 'min-width:300px;', |
|
193 | - 'std' => '' // Default value for the page title - changed in settings |
|
194 | - ), |
|
195 | - |
|
196 | - |
|
197 | - array( |
|
198 | - 'name' => __('Google analytics tracking code', 'geodirectory'), |
|
199 | - 'desc' => '', |
|
200 | - 'id' => 'geodir_ga_tracking_code', |
|
201 | - 'type' => 'textarea', |
|
202 | - 'css' => 'min-width:300px;', |
|
203 | - 'std' => '' // Default value for the page title - changed in settings |
|
204 | - ), |
|
205 | - |
|
206 | - |
|
207 | - array('type' => 'sectionend', 'id' => 'google_analytic_settings'), |
|
132 | + array('name' => __('Google Analytics', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'google_analytic_settings'), |
|
133 | + |
|
134 | + array('name' => __('Google Analytic Settings', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'google_analytic_settings'), |
|
135 | + |
|
136 | + |
|
137 | + |
|
138 | + array( |
|
139 | + 'name' => __('Show business owner google analytics stats?', 'geodirectory'), |
|
140 | + 'desc' => __('Yes', 'geodirectory'), |
|
141 | + 'id' => 'geodir_ga_stats', |
|
142 | + 'std' => '0', |
|
143 | + 'type' => 'radio', |
|
144 | + 'value' => '1', |
|
145 | + 'radiogroup' => 'start' |
|
146 | + ), |
|
147 | + array( |
|
148 | + 'name' => __('Show business owner Google Analytics stats?', 'geodirectory'), |
|
149 | + 'desc' => __('No', 'geodirectory'), |
|
150 | + 'id' => 'geodir_ga_stats', |
|
151 | + 'std' => '1', |
|
152 | + 'type' => 'radio', |
|
153 | + 'value' => '0', |
|
154 | + 'radiogroup' => 'end' |
|
155 | + ), |
|
156 | + |
|
157 | + array( |
|
158 | + 'name' => __('Google analytics "Profile ID(ie: ga:12345678)?', 'geodirectory') . ' ' . |
|
159 | + '<a target="_blank" href="https://docs.wpgeodirectory.com/gd-core-plugin-google-analytics/">' . __('help', 'geodirectory') . '</a>', |
|
160 | + 'desc' => '', |
|
161 | + 'id' => 'geodir_ga_id', |
|
162 | + 'type' => 'text', |
|
163 | + 'css' => 'min-width:300px;', |
|
164 | + 'std' => '' // Default value for the page title - changed in settings |
|
165 | + ), |
|
166 | + |
|
167 | + array( |
|
168 | + 'name' => __('Client ID', 'geodirectory') . ' ' . |
|
169 | + '<a target="_blank" href="https://docs.wpgeodirectory.com/gd-core-plugin-google-analytics/">' . __('help', 'geodirectory') . '</a>', |
|
170 | + 'desc' => '', |
|
171 | + 'id' => 'geodir_ga_client_id', |
|
172 | + 'type' => 'text', |
|
173 | + 'css' => 'min-width:300px;', |
|
174 | + 'std' => '' // Default value for the page title - changed in settings |
|
175 | + ), |
|
176 | + |
|
177 | + array( |
|
178 | + 'name' => __('Client secret', 'geodirectory') . ' ' . |
|
179 | + '<a target="_blank" href="https://docs.wpgeodirectory.com/gd-core-plugin-google-analytics/">' . __('help', 'geodirectory') . '</a>', |
|
180 | + 'desc' => '', |
|
181 | + 'id' => 'geodir_ga_client_secret', |
|
182 | + 'type' => 'password', |
|
183 | + 'css' => 'min-width:300px;', |
|
184 | + 'std' => '' // Default value for the page title - changed in settings |
|
185 | + ), |
|
186 | + |
|
187 | + array( |
|
188 | + 'name' => __('Google analytics access', 'geodirectory'), |
|
189 | + 'desc' => '', |
|
190 | + 'id' => 'geodir_ga_token', |
|
191 | + 'type' => 'google_analytics', |
|
192 | + 'css' => 'min-width:300px;', |
|
193 | + 'std' => '' // Default value for the page title - changed in settings |
|
194 | + ), |
|
195 | + |
|
196 | + |
|
197 | + array( |
|
198 | + 'name' => __('Google analytics tracking code', 'geodirectory'), |
|
199 | + 'desc' => '', |
|
200 | + 'id' => 'geodir_ga_tracking_code', |
|
201 | + 'type' => 'textarea', |
|
202 | + 'css' => 'min-width:300px;', |
|
203 | + 'std' => '' // Default value for the page title - changed in settings |
|
204 | + ), |
|
205 | + |
|
206 | + |
|
207 | + array('type' => 'sectionend', 'id' => 'google_analytic_settings'), |
|
208 | 208 | |
209 | 209 | )); // google_analytic_settings End |
210 | 210 | |
@@ -216,84 +216,84 @@ discard block |
||
216 | 216 | */ |
217 | 217 | $search_settings = apply_filters('geodir_search_settings', array( |
218 | 218 | |
219 | - array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'search_settings'), |
|
220 | - |
|
221 | - array('name' => __('Search Settings', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'search_settings'), |
|
222 | - |
|
223 | - array( |
|
224 | - 'name' => __('Limit squared distance area to X miles (helps improve search speed)', 'geodirectory'), |
|
225 | - 'desc' => __('Enter whole number only ex. 40 (Tokyo is largest city in the world @40 sq miles) LEAVE BLANK FOR NO DISTANCE LIMIT', 'geodirectory'), |
|
226 | - 'id' => 'geodir_search_dist', |
|
227 | - 'type' => 'text', |
|
228 | - 'css' => 'min-width:300px;', |
|
229 | - 'std' => '40' // Default value for the page title - changed in settings |
|
230 | - ), |
|
231 | - |
|
232 | - array( |
|
233 | - 'name' => __('Show search distances in miles or km', 'geodirectory'), |
|
234 | - 'desc' => __('Miles', 'geodirectory'), |
|
235 | - 'id' => 'geodir_search_dist_1', |
|
236 | - 'std' => 'miles', |
|
237 | - 'type' => 'radio', |
|
238 | - 'value' => 'miles', |
|
239 | - 'radiogroup' => 'start' |
|
240 | - ), |
|
241 | - array( |
|
242 | - 'name' => __('Show search distances in miles or km', 'geodirectory'), |
|
243 | - 'desc' => __('Kilometers', 'geodirectory'), |
|
244 | - 'id' => 'geodir_search_dist_1', |
|
245 | - 'std' => 'miles', |
|
246 | - 'type' => 'radio', |
|
247 | - 'value' => 'km', |
|
248 | - 'radiogroup' => 'end' |
|
249 | - ), |
|
250 | - |
|
251 | - array( |
|
252 | - 'name' => __('If distance is less than 0.01 show distance in meters or feet', 'geodirectory'), |
|
253 | - 'desc' => __('Meters', 'geodirectory'), |
|
254 | - 'id' => 'geodir_search_dist_2', |
|
255 | - 'std' => 'meters', |
|
256 | - 'type' => 'radio', |
|
257 | - 'value' => 'meters', |
|
258 | - 'radiogroup' => 'start' |
|
259 | - ), |
|
260 | - |
|
261 | - array( |
|
262 | - 'name' => __('If distance is less than 0.01 show distance in meters or feet', 'geodirectory'), |
|
263 | - 'desc' => __('Feet', 'geodirectory'), |
|
264 | - 'id' => 'geodir_search_dist_2', |
|
265 | - 'std' => 'meters', |
|
266 | - 'type' => 'radio', |
|
267 | - 'value' => 'feet', |
|
268 | - 'radiogroup' => 'end' |
|
269 | - ), |
|
270 | - |
|
271 | - array( |
|
272 | - 'name' => __('Add location specific text to (Near) search for Google', 'geodirectory'), |
|
273 | - 'desc' => __('This is usefull if your directory is limted to one location such as: New York or Australia (this setting should be blank if using default country, regions etc with multilocation addon as it will automatically add them)', 'geodirectory'), |
|
274 | - 'id' => 'geodir_search_near_addition', |
|
275 | - 'type' => 'text', |
|
276 | - 'css' => 'min-width:300px;', |
|
277 | - 'std' => '' |
|
278 | - ), |
|
279 | - array( |
|
280 | - 'name' => __('Individual word search limit', 'geodirectory'), |
|
281 | - 'desc' => __('With this option you can limit individual words being searched for, for example searching for `Jo Brown` would return results with words like `Jones`, you can exclude these types of small character words if you wish.', 'geodirectory'), |
|
282 | - 'id' => 'geodir_search_word_limit', |
|
283 | - 'css' => 'min-width:300px;', |
|
284 | - 'std' => 'gridview_onehalf', |
|
285 | - 'type' => 'select', |
|
286 | - 'class' => 'chosen_select', |
|
287 | - 'options' => array_unique(array( |
|
288 | - '0' => __('Disabled', 'geodirectory'), |
|
289 | - '1' => __('1 Character words excluded', 'geodirectory'), |
|
290 | - '2' => __('2 Character words and less excluded', 'geodirectory'), |
|
291 | - '3' => __('3 Character words and less excluded', 'geodirectory'), |
|
292 | - )) |
|
293 | - ), |
|
294 | - |
|
295 | - |
|
296 | - array('type' => 'sectionend', 'id' => 'search_settings'), |
|
219 | + array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'search_settings'), |
|
220 | + |
|
221 | + array('name' => __('Search Settings', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'search_settings'), |
|
222 | + |
|
223 | + array( |
|
224 | + 'name' => __('Limit squared distance area to X miles (helps improve search speed)', 'geodirectory'), |
|
225 | + 'desc' => __('Enter whole number only ex. 40 (Tokyo is largest city in the world @40 sq miles) LEAVE BLANK FOR NO DISTANCE LIMIT', 'geodirectory'), |
|
226 | + 'id' => 'geodir_search_dist', |
|
227 | + 'type' => 'text', |
|
228 | + 'css' => 'min-width:300px;', |
|
229 | + 'std' => '40' // Default value for the page title - changed in settings |
|
230 | + ), |
|
231 | + |
|
232 | + array( |
|
233 | + 'name' => __('Show search distances in miles or km', 'geodirectory'), |
|
234 | + 'desc' => __('Miles', 'geodirectory'), |
|
235 | + 'id' => 'geodir_search_dist_1', |
|
236 | + 'std' => 'miles', |
|
237 | + 'type' => 'radio', |
|
238 | + 'value' => 'miles', |
|
239 | + 'radiogroup' => 'start' |
|
240 | + ), |
|
241 | + array( |
|
242 | + 'name' => __('Show search distances in miles or km', 'geodirectory'), |
|
243 | + 'desc' => __('Kilometers', 'geodirectory'), |
|
244 | + 'id' => 'geodir_search_dist_1', |
|
245 | + 'std' => 'miles', |
|
246 | + 'type' => 'radio', |
|
247 | + 'value' => 'km', |
|
248 | + 'radiogroup' => 'end' |
|
249 | + ), |
|
250 | + |
|
251 | + array( |
|
252 | + 'name' => __('If distance is less than 0.01 show distance in meters or feet', 'geodirectory'), |
|
253 | + 'desc' => __('Meters', 'geodirectory'), |
|
254 | + 'id' => 'geodir_search_dist_2', |
|
255 | + 'std' => 'meters', |
|
256 | + 'type' => 'radio', |
|
257 | + 'value' => 'meters', |
|
258 | + 'radiogroup' => 'start' |
|
259 | + ), |
|
260 | + |
|
261 | + array( |
|
262 | + 'name' => __('If distance is less than 0.01 show distance in meters or feet', 'geodirectory'), |
|
263 | + 'desc' => __('Feet', 'geodirectory'), |
|
264 | + 'id' => 'geodir_search_dist_2', |
|
265 | + 'std' => 'meters', |
|
266 | + 'type' => 'radio', |
|
267 | + 'value' => 'feet', |
|
268 | + 'radiogroup' => 'end' |
|
269 | + ), |
|
270 | + |
|
271 | + array( |
|
272 | + 'name' => __('Add location specific text to (Near) search for Google', 'geodirectory'), |
|
273 | + 'desc' => __('This is usefull if your directory is limted to one location such as: New York or Australia (this setting should be blank if using default country, regions etc with multilocation addon as it will automatically add them)', 'geodirectory'), |
|
274 | + 'id' => 'geodir_search_near_addition', |
|
275 | + 'type' => 'text', |
|
276 | + 'css' => 'min-width:300px;', |
|
277 | + 'std' => '' |
|
278 | + ), |
|
279 | + array( |
|
280 | + 'name' => __('Individual word search limit', 'geodirectory'), |
|
281 | + 'desc' => __('With this option you can limit individual words being searched for, for example searching for `Jo Brown` would return results with words like `Jones`, you can exclude these types of small character words if you wish.', 'geodirectory'), |
|
282 | + 'id' => 'geodir_search_word_limit', |
|
283 | + 'css' => 'min-width:300px;', |
|
284 | + 'std' => 'gridview_onehalf', |
|
285 | + 'type' => 'select', |
|
286 | + 'class' => 'chosen_select', |
|
287 | + 'options' => array_unique(array( |
|
288 | + '0' => __('Disabled', 'geodirectory'), |
|
289 | + '1' => __('1 Character words excluded', 'geodirectory'), |
|
290 | + '2' => __('2 Character words and less excluded', 'geodirectory'), |
|
291 | + '3' => __('3 Character words and less excluded', 'geodirectory'), |
|
292 | + )) |
|
293 | + ), |
|
294 | + |
|
295 | + |
|
296 | + array('type' => 'sectionend', 'id' => 'search_settings'), |
|
297 | 297 | |
298 | 298 | )); //search_settings End |
299 | 299 | |
@@ -305,17 +305,17 @@ discard block |
||
305 | 305 | */ |
306 | 306 | $dummy_data_settings = apply_filters('geodir_dummy_data_settings', array( |
307 | 307 | |
308 | - array('name' => __('Dummy Data', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'dummy_data_settings'), |
|
309 | - |
|
310 | - array( |
|
311 | - 'name' => '', |
|
312 | - 'desc' => '', |
|
313 | - 'id' => 'geodir_dummy_data_installer', |
|
314 | - 'type' => 'dummy_installer', |
|
315 | - 'css' => 'min-width:300px;', |
|
316 | - 'std' => '40' // Default value for the page title - changed in settings |
|
317 | - ), |
|
318 | - array('type' => 'sectionend', 'id' => 'geodir_dummy_data_settings'), |
|
308 | + array('name' => __('Dummy Data', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'dummy_data_settings'), |
|
309 | + |
|
310 | + array( |
|
311 | + 'name' => '', |
|
312 | + 'desc' => '', |
|
313 | + 'id' => 'geodir_dummy_data_installer', |
|
314 | + 'type' => 'dummy_installer', |
|
315 | + 'css' => 'min-width:300px;', |
|
316 | + 'std' => '40' // Default value for the page title - changed in settings |
|
317 | + ), |
|
318 | + array('type' => 'sectionend', 'id' => 'geodir_dummy_data_settings'), |
|
319 | 319 | |
320 | 320 | )); //dummy_data_settings End |
321 | 321 |