Test Failed
Push — master ( 7b39cb...60f1d0 )
by Stiofan
18:55
created
geodirectory-functions/map-functions/get_markers.php 1 patch
Indentation   +230 added lines, -230 removed lines patch added patch discarded remove patch
@@ -7,61 +7,61 @@  discard block
 block discarded – undo
7 7
  */
8 8
  
9 9
 if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] == 'homemap_catlist') {
10
-    global $gd_session;
11
-    $gd_post_type = sanitize_text_field($_REQUEST['post_type']);
12
-    $gd_session->set('homemap_catlist_ptype', $gd_post_type);
13
-    $post_taxonomy = geodir_get_taxonomies($gd_post_type);
14
-    $map_canvas_name = sanitize_text_field($_REQUEST['map_canvas']);
15
-    $child_collapse = (bool)$_REQUEST['child_collapse'];
16
-    echo home_map_taxonomy_walker($post_taxonomy, 0, true, 0, $map_canvas_name, $child_collapse, true);
17
-    die;
10
+	global $gd_session;
11
+	$gd_post_type = sanitize_text_field($_REQUEST['post_type']);
12
+	$gd_session->set('homemap_catlist_ptype', $gd_post_type);
13
+	$post_taxonomy = geodir_get_taxonomies($gd_post_type);
14
+	$map_canvas_name = sanitize_text_field($_REQUEST['map_canvas']);
15
+	$child_collapse = (bool)$_REQUEST['child_collapse'];
16
+	echo home_map_taxonomy_walker($post_taxonomy, 0, true, 0, $map_canvas_name, $child_collapse, true);
17
+	die;
18 18
 }
19 19
 
20 20
 // Send the content-type header with correct encoding
21 21
 header("Content-type: text/javascript; charset=utf-8");
22 22
 
23 23
 if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] == 'cat') { // Retrives markers data for categories
24
-    echo get_markers();
25
-    exit;
24
+	echo get_markers();
25
+	exit;
26 26
 } else if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] == 'info') { // Retrives marker info window html
27
-    /**
28
-     * @global object $wpdb WordPress Database object.
29
-     * @global string $plugin_prefix Geodirectory plugin table prefix.
30
-     * @global object $gd_session GeoDirectory Session object.
31
-     */
32
-    global $wpdb, $plugin_prefix, $gd_session;
33
-
34
-    if ($_REQUEST['m_id'] != '') {
35
-        $pid = (int)$_REQUEST['m_id'];
36
-    } else {
37
-        echo __('No marker data found', 'geodirectory');
38
-        exit;
39
-    }
40
-
41
-    if (isset($_REQUEST['post_preview']) && $_REQUEST['post_preview'] != '' && $gd_ses_listing = $gd_session->get('listing')) {
42
-        $post = (object)$gd_ses_listing;
43
-        echo geodir_get_infowindow_html($post, $_REQUEST['post_preview']);
44
-    } else {
45
-        $geodir_post_type = get_post_type($pid);
46
-
47
-        $table = $plugin_prefix . $geodir_post_type . '_detail';
48
-
49
-        $sql = $wpdb->prepare("SELECT * FROM " . $table . " WHERE post_id = %d", array($pid));
50
-
51
-        $postinfo = $wpdb->get_results($sql);
52
-
53
-        $data_arr = array();
54
-
55
-        if ($postinfo) {
56
-            $srcharr = array("'", "/", "-", '"', '\\');
57
-            $replarr = array("′", "⁄", "–", "“", '');
58
-
59
-            foreach ($postinfo as $postinfo_obj) {
60
-                echo geodir_get_infowindow_html($postinfo_obj);
61
-            }
62
-        }
63
-    }
64
-    exit;
27
+	/**
28
+	 * @global object $wpdb WordPress Database object.
29
+	 * @global string $plugin_prefix Geodirectory plugin table prefix.
30
+	 * @global object $gd_session GeoDirectory Session object.
31
+	 */
32
+	global $wpdb, $plugin_prefix, $gd_session;
33
+
34
+	if ($_REQUEST['m_id'] != '') {
35
+		$pid = (int)$_REQUEST['m_id'];
36
+	} else {
37
+		echo __('No marker data found', 'geodirectory');
38
+		exit;
39
+	}
40
+
41
+	if (isset($_REQUEST['post_preview']) && $_REQUEST['post_preview'] != '' && $gd_ses_listing = $gd_session->get('listing')) {
42
+		$post = (object)$gd_ses_listing;
43
+		echo geodir_get_infowindow_html($post, $_REQUEST['post_preview']);
44
+	} else {
45
+		$geodir_post_type = get_post_type($pid);
46
+
47
+		$table = $plugin_prefix . $geodir_post_type . '_detail';
48
+
49
+		$sql = $wpdb->prepare("SELECT * FROM " . $table . " WHERE post_id = %d", array($pid));
50
+
51
+		$postinfo = $wpdb->get_results($sql);
52
+
53
+		$data_arr = array();
54
+
55
+		if ($postinfo) {
56
+			$srcharr = array("'", "/", "-", '"', '\\');
57
+			$replarr = array("′", "⁄", "–", "“", '');
58
+
59
+			foreach ($postinfo as $postinfo_obj) {
60
+				echo geodir_get_infowindow_html($postinfo_obj);
61
+			}
62
+		}
63
+	}
64
+	exit;
65 65
 }
66 66
 
67 67
 /**
@@ -79,80 +79,80 @@  discard block
 block discarded – undo
79 79
  * @return string
80 80
  */
81 81
 function get_markers() {
82
-    global $wpdb, $plugin_prefix, $geodir_cat_icons, $gd_marker_sizes;
82
+	global $wpdb, $plugin_prefix, $geodir_cat_icons, $gd_marker_sizes;
83 83
 
84
-    $search = '';
85
-    $main_query_array;
84
+	$search = '';
85
+	$main_query_array;
86 86
 
87
-    $srcharr = array("'", "/", "-", '"', '\\', ''');
88
-    $replarr = array("′", "⁄", "–", "“", '', "′");
87
+	$srcharr = array("'", "/", "-", '"', '\\', ''');
88
+	$replarr = array("′", "⁄", "–", "“", '', "′");
89 89
 
90
-    $post_type = isset($_REQUEST['gd_posttype']) ? $_REQUEST['gd_posttype'] : 'gd_place';
90
+	$post_type = isset($_REQUEST['gd_posttype']) ? $_REQUEST['gd_posttype'] : 'gd_place';
91 91
 
92
-    $map_cat_ids_array = array('0');
93
-    $cat_find_array = array(" FIND_IN_SET(%d, pd." . $post_type . "category)");
92
+	$map_cat_ids_array = array('0');
93
+	$cat_find_array = array(" FIND_IN_SET(%d, pd." . $post_type . "category)");
94 94
 
95 95
 
96
-    $field_default_cat = '';
97
-    if (isset($_REQUEST['cat_id']) && $_REQUEST['cat_id'] != '') {
98
-        $map_cat_arr = trim($_REQUEST['cat_id'], ',');
96
+	$field_default_cat = '';
97
+	if (isset($_REQUEST['cat_id']) && $_REQUEST['cat_id'] != '') {
98
+		$map_cat_arr = trim($_REQUEST['cat_id'], ',');
99 99
 
100
-        if (!empty($map_cat_arr)) {
101
-            $field_default_cat .= "WHEN (default_category IN (" . $map_cat_arr . ")) THEN default_category ";
100
+		if (!empty($map_cat_arr)) {
101
+			$field_default_cat .= "WHEN (default_category IN (" . $map_cat_arr . ")) THEN default_category ";
102 102
 
103
-            $map_cat_ids_array = explode(',', $map_cat_arr);
104
-            $cat_find_array = array();
105
-            foreach ($map_cat_ids_array as $cat_id) {
106
-                $field_default_cat .= "WHEN (FIND_IN_SET($cat_id, `" . $post_type . "category`) > 0) THEN $cat_id ";
107
-                $cat_find_array[] = " FIND_IN_SET(%d, pd." . $post_type . "category)";
108
-                $main_query_array[] = $cat_id;
109
-            }
103
+			$map_cat_ids_array = explode(',', $map_cat_arr);
104
+			$cat_find_array = array();
105
+			foreach ($map_cat_ids_array as $cat_id) {
106
+				$field_default_cat .= "WHEN (FIND_IN_SET($cat_id, `" . $post_type . "category`) > 0) THEN $cat_id ";
107
+				$cat_find_array[] = " FIND_IN_SET(%d, pd." . $post_type . "category)";
108
+				$main_query_array[] = $cat_id;
109
+			}
110 110
 
111
-        }
112
-    }
111
+		}
112
+	}
113 113
 
114
-    if (!empty($field_default_cat))
115
-        $field_default_cat = '';
114
+	if (!empty($field_default_cat))
115
+		$field_default_cat = '';
116 116
 
117
-    if (!empty($cat_find_array))
118
-        $search .= "AND (" . implode(' OR ', $cat_find_array) . ")";
117
+	if (!empty($cat_find_array))
118
+		$search .= "AND (" . implode(' OR ', $cat_find_array) . ")";
119 119
 
120
-    $main_query_array = $map_cat_ids_array;
120
+	$main_query_array = $map_cat_ids_array;
121 121
   
122
-    if (isset($_REQUEST['search']) && !empty($_REQUEST['search']) && $_REQUEST['search'] != __('Title', 'geodirectory')) {
123
-        $search .= " AND p.post_title LIKE %s";
124
-        $main_query_array[] = "%" . $_REQUEST['search'] . "%";
125
-    }
126
-
127
-    /**
128
-     * Filter the marker query search SQL, values are replaces with %s or %d.
129
-     *
130
-     * @since 1.5.3
131
-     *
132
-     * @param string $search The SQL query for search/where.
133
-     */
134
-    $search = apply_filters('geodir_marker_search', $search);
135
-    /**
136
-     * Filter the marker query search SQL values %s and %d, this is an array of values.
137
-     *
138
-     * @since 1.5.3
139
-     *
140
-     * @param array $main_query_array The SQL query values for search/where.
141
-     */
142
-    $main_query_array = apply_filters('geodir_marker_main_query_array', $main_query_array);
143
-
144
-    $gd_posttype = '';
145
-    if (isset($_REQUEST['gd_posttype']) && $_REQUEST['gd_posttype'] != '') {
146
-        $table = $plugin_prefix . $_REQUEST['gd_posttype'] . '_detail';
147
-        $gd_posttype = " AND p.post_type = %s";
148
-        $main_query_array[] = $_REQUEST['gd_posttype'];
149
-
150
-    } else
151
-        $table = $plugin_prefix . 'gd_place_detail';
152
-
153
-    $join = ", " . $table . " AS pd ";
154
-
155
-    /**
122
+	if (isset($_REQUEST['search']) && !empty($_REQUEST['search']) && $_REQUEST['search'] != __('Title', 'geodirectory')) {
123
+		$search .= " AND p.post_title LIKE %s";
124
+		$main_query_array[] = "%" . $_REQUEST['search'] . "%";
125
+	}
126
+
127
+	/**
128
+	 * Filter the marker query search SQL, values are replaces with %s or %d.
129
+	 *
130
+	 * @since 1.5.3
131
+	 *
132
+	 * @param string $search The SQL query for search/where.
133
+	 */
134
+	$search = apply_filters('geodir_marker_search', $search);
135
+	/**
136
+	 * Filter the marker query search SQL values %s and %d, this is an array of values.
137
+	 *
138
+	 * @since 1.5.3
139
+	 *
140
+	 * @param array $main_query_array The SQL query values for search/where.
141
+	 */
142
+	$main_query_array = apply_filters('geodir_marker_main_query_array', $main_query_array);
143
+
144
+	$gd_posttype = '';
145
+	if (isset($_REQUEST['gd_posttype']) && $_REQUEST['gd_posttype'] != '') {
146
+		$table = $plugin_prefix . $_REQUEST['gd_posttype'] . '_detail';
147
+		$gd_posttype = " AND p.post_type = %s";
148
+		$main_query_array[] = $_REQUEST['gd_posttype'];
149
+
150
+	} else
151
+		$table = $plugin_prefix . 'gd_place_detail';
152
+
153
+	$join = ", " . $table . " AS pd ";
154
+
155
+	/**
156 156
 	 * Filter the SQL JOIN clause for the markers data
157 157
 	 *
158 158
 	 * @since 1.0.0
@@ -169,16 +169,16 @@  discard block
 block discarded – undo
169 169
 	 * @param string $search Row of searched fields to use in WHERE clause.
170 170
 	 */
171 171
 	$search = apply_filters('geodir_home_map_listing_where', $search);
172
-    $search = str_replace(array("'%", "%'"), array("'%%", "%%'"), $search);
173
-    $cat_type = $post_type . 'category';
174
-    if ($post_type == 'gd_event') {
175
-        $event_select = ", pd.recurring_dates, pd.is_recurring";
176
-    } else {
177
-        $event_select = "";
178
-    }
179
-
180
-    $sql_select = 'SELECT pd.default_category, pd.' . $cat_type . ', pd.post_title, pd.post_id, pd.post_latitude, pd.post_longitude' . $event_select;
181
-    /**
172
+	$search = str_replace(array("'%", "%'"), array("'%%", "%%'"), $search);
173
+	$cat_type = $post_type . 'category';
174
+	if ($post_type == 'gd_event') {
175
+		$event_select = ", pd.recurring_dates, pd.is_recurring";
176
+	} else {
177
+		$event_select = "";
178
+	}
179
+
180
+	$sql_select = 'SELECT pd.default_category, pd.' . $cat_type . ', pd.post_title, pd.post_id, pd.post_latitude, pd.post_longitude' . $event_select;
181
+	/**
182 182
 	 * Filter the SQL SELECT clause to retrive fields data
183 183
 	 *
184 184
 	 * @since 1.0.0
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 */
198 198
 	$groupby = apply_filters('geodir_home_map_listing_groupby', $groupby);
199 199
 
200
-    $catsql = $wpdb->prepare("$select $field_default_cat FROM " . $wpdb->posts . " as p" . $join . " WHERE p.ID = pd.post_id AND p.post_status = 'publish' " . $search . $gd_posttype . $groupby , $main_query_array);
200
+	$catsql = $wpdb->prepare("$select $field_default_cat FROM " . $wpdb->posts . " as p" . $join . " WHERE p.ID = pd.post_id AND p.post_status = 'publish' " . $search . $gd_posttype . $groupby , $main_query_array);
201 201
     
202 202
 	/**
203 203
 	 * Filter the SQL query to retrive markers data
@@ -209,125 +209,125 @@  discard block
 block discarded – undo
209 209
 	 */
210 210
 	$catsql = apply_filters('geodir_home_map_listing_query', $catsql, $search);
211 211
 
212
-    $catinfo = $wpdb->get_results($catsql);
212
+	$catinfo = $wpdb->get_results($catsql);
213 213
 	
214
-    $cat_content_info = array();
215
-    $content_data = array();
216
-    $post_ids = array();
217
-
218
-    /**
219
-     * Called before marker data is processed into JSON.
220
-     *
221
-     * Called before marker data is processed into JSON, this action can be used to change the format or add/remove markers.
222
-     *
223
-     * @since 1.5.3
224
-     * @param object $catinfo The posts object containing all marker data.
225
-     * @see 'geodir_after_marker_post_process'
226
-     */
227
-    $catinfo = apply_filters('geodir_before_marker_post_process', $catinfo);
228
-
229
-    /**
230
-     * Called before marker data is processed into JSON.
231
-     *
232
-     * Called before marker data is processed into JSON, this action can be used to change the format or add/remove markers.
233
-     *
234
-     * @since 1.4.9
235
-     * @param object $catinfo The posts object containing all marker data.
236
-     * @see 'geodir_after_marker_post_process'
237
-     */
238
-    do_action('geodir_before_marker_post_process_action', $catinfo);
239
-
240
-    // Sort any posts into a ajax array
241
-    if (!empty($catinfo)) {
242
-        $geodir_cat_icons = geodir_get_term_icon();
243
-        global $geodir_date_format;
244
-
245
-        $today = strtotime(date_i18n('Y-m-d'));
214
+	$cat_content_info = array();
215
+	$content_data = array();
216
+	$post_ids = array();
217
+
218
+	/**
219
+	 * Called before marker data is processed into JSON.
220
+	 *
221
+	 * Called before marker data is processed into JSON, this action can be used to change the format or add/remove markers.
222
+	 *
223
+	 * @since 1.5.3
224
+	 * @param object $catinfo The posts object containing all marker data.
225
+	 * @see 'geodir_after_marker_post_process'
226
+	 */
227
+	$catinfo = apply_filters('geodir_before_marker_post_process', $catinfo);
228
+
229
+	/**
230
+	 * Called before marker data is processed into JSON.
231
+	 *
232
+	 * Called before marker data is processed into JSON, this action can be used to change the format or add/remove markers.
233
+	 *
234
+	 * @since 1.4.9
235
+	 * @param object $catinfo The posts object containing all marker data.
236
+	 * @see 'geodir_after_marker_post_process'
237
+	 */
238
+	do_action('geodir_before_marker_post_process_action', $catinfo);
239
+
240
+	// Sort any posts into a ajax array
241
+	if (!empty($catinfo)) {
242
+		$geodir_cat_icons = geodir_get_term_icon();
243
+		global $geodir_date_format;
244
+
245
+		$today = strtotime(date_i18n('Y-m-d'));
246 246
         
247
-        foreach ($catinfo as $catinfo_obj) {
248
-            $post_title = $catinfo_obj->post_title;
247
+		foreach ($catinfo as $catinfo_obj) {
248
+			$post_title = $catinfo_obj->post_title;
249 249
             
250
-            if ($post_type == 'gd_event' && !empty($catinfo_obj->recurring_dates)) {
251
-                $event_dates = '';
252
-                $recurring_data = isset($catinfo_obj->recurring_dates) ? maybe_unserialize($catinfo_obj->recurring_dates) : array();
250
+			if ($post_type == 'gd_event' && !empty($catinfo_obj->recurring_dates)) {
251
+				$event_dates = '';
252
+				$recurring_data = isset($catinfo_obj->recurring_dates) ? maybe_unserialize($catinfo_obj->recurring_dates) : array();
253 253
                 
254
-                $post_info = geodir_get_post_info($catinfo_obj->post_id);
255
-                if (!empty($catinfo_obj->is_recurring) && !empty($recurring_data) && !empty($recurring_data['is_recurring']) && geodir_event_recurring_pkg($post_info)) {
256
-                    $recurring_dates = explode(',', $recurring_data['event_recurring_dates']);
254
+				$post_info = geodir_get_post_info($catinfo_obj->post_id);
255
+				if (!empty($catinfo_obj->is_recurring) && !empty($recurring_data) && !empty($recurring_data['is_recurring']) && geodir_event_recurring_pkg($post_info)) {
256
+					$recurring_dates = explode(',', $recurring_data['event_recurring_dates']);
257 257
                     
258
-                    if (!empty($recurring_dates)) {					
259
-                        $e = 0;
260
-                        foreach ($recurring_dates as $date) {
261
-                            if (strtotime($date) >= $today) {
262
-                                $event_dates .= ' :: ' . date_i18n($geodir_date_format, strtotime($date));
258
+					if (!empty($recurring_dates)) {					
259
+						$e = 0;
260
+						foreach ($recurring_dates as $date) {
261
+							if (strtotime($date) >= $today) {
262
+								$event_dates .= ' :: ' . date_i18n($geodir_date_format, strtotime($date));
263 263
                                 
264
-                                $e++;
265
-                                if ($e == 3) { // only show 3 event dates
266
-                                    break;
267
-                                }
268
-                            }
269
-                        }
270
-                    }
271
-                } else {
272
-                    $start_date = !empty($recurring_data['event_start']) && $recurring_data['event_start'] != '0000-00-00 00:00:00' ? $recurring_data['event_start'] : '';
273
-                    $end_date = !empty($recurring_data['event_end']) && $recurring_data['event_end'] != '0000-00-00 00:00:00' ? $recurring_data['event_end'] : $start_date;
264
+								$e++;
265
+								if ($e == 3) { // only show 3 event dates
266
+									break;
267
+								}
268
+							}
269
+						}
270
+					}
271
+				} else {
272
+					$start_date = !empty($recurring_data['event_start']) && $recurring_data['event_start'] != '0000-00-00 00:00:00' ? $recurring_data['event_start'] : '';
273
+					$end_date = !empty($recurring_data['event_end']) && $recurring_data['event_end'] != '0000-00-00 00:00:00' ? $recurring_data['event_end'] : $start_date;
274 274
                 
275
-                    if ($end_date != '' && strtotime($end_date) >= $today) {
276
-                        $event_dates .= ' :: ' . date_i18n($geodir_date_format, strtotime($start_date)) .' -> ' . date_i18n($geodir_date_format, strtotime($end_date));
277
-                    }
278
-                }
279
-
280
-                if (empty($event_dates)) {
281
-                    continue;
282
-                }
275
+					if ($end_date != '' && strtotime($end_date) >= $today) {
276
+						$event_dates .= ' :: ' . date_i18n($geodir_date_format, strtotime($start_date)) .' -> ' . date_i18n($geodir_date_format, strtotime($end_date));
277
+					}
278
+				}
279
+
280
+				if (empty($event_dates)) {
281
+					continue;
282
+				}
283 283
                 
284
-                $post_title .= $event_dates;
285
-            }
284
+				$post_title .= $event_dates;
285
+			}
286 286
 
287
-            $icon = !empty($geodir_cat_icons) && isset($geodir_cat_icons[$catinfo_obj->default_category]) ? $geodir_cat_icons[$catinfo_obj->default_category] : '';
288
-            $mark_extra = (isset($catinfo_obj->marker_extra)) ? $catinfo_obj->marker_extra : '';
289
-            $title = str_replace($srcharr, $replarr, $post_title);
287
+			$icon = !empty($geodir_cat_icons) && isset($geodir_cat_icons[$catinfo_obj->default_category]) ? $geodir_cat_icons[$catinfo_obj->default_category] : '';
288
+			$mark_extra = (isset($catinfo_obj->marker_extra)) ? $catinfo_obj->marker_extra : '';
289
+			$title = str_replace($srcharr, $replarr, $post_title);
290 290
             
291
-            if ($icon != '') {
292
-                $gd_marker_sizes = empty($gd_marker_sizes) ? array() : $gd_marker_sizes;
291
+			if ($icon != '') {
292
+				$gd_marker_sizes = empty($gd_marker_sizes) ? array() : $gd_marker_sizes;
293 293
                 
294
-                if (isset($gd_marker_sizes[$icon])) {
295
-                    $icon_size = $gd_marker_sizes[$icon];
296
-                } else {
297
-                    $icon_size = geodir_get_marker_size($icon);
298
-                    $gd_marker_sizes[$icon] = $icon_size;
299
-                }               
300
-            } else {
301
-                $icon_size = array('w' => 36, 'h' => 45);
302
-            }
303
-
304
-            $content_data[] = '{"id":"' . $catinfo_obj->post_id . '","t": "' . $title . '","lt": "' . $catinfo_obj->post_latitude . '","ln": "' . $catinfo_obj->post_longitude . '","mk_id":"' . $catinfo_obj->post_id . '_' . $catinfo_obj->default_category . '","i":"' . $icon . '","w":"' . $icon_size['w'] . '","h":"' . $icon_size['h'] . '"'.$mark_extra.'}';
305
-            $post_ids[] = $catinfo_obj->post_id;
306
-        }
307
-    }
308
-
309
-    /**
310
-     * Called after marker data is processed into JSON.
311
-     *
312
-     * Called after marker data is processed into JSON, this action can be used to change the format or add/remove markers.
313
-     *
314
-     * @since 1.4.9
315
-     * @param array $content_data The array containing all markers in JSON format.
316
-     * @param object $catinfo The posts object containing all marker data.
317
-     * @see 'geodir_before_marker_post_process'
318
-     */
319
-    do_action('geodir_after_marker_post_process', $content_data, $catinfo);
320
-
321
-    if (!empty($content_data)) {
322
-        $cat_content_info[] = implode(',', $content_data);
323
-    }
324
-
325
-    $totalcount = count(array_unique($post_ids));
326
-
327
-    if (!empty($cat_content_info)) {
328
-        return '[{"totalcount":"' . $totalcount . '",' . substr(implode(',', $cat_content_info), 1) . ']';
329
-    }
330
-    else {
331
-        return '[{"totalcount":"0"}]';
332
-    }
294
+				if (isset($gd_marker_sizes[$icon])) {
295
+					$icon_size = $gd_marker_sizes[$icon];
296
+				} else {
297
+					$icon_size = geodir_get_marker_size($icon);
298
+					$gd_marker_sizes[$icon] = $icon_size;
299
+				}               
300
+			} else {
301
+				$icon_size = array('w' => 36, 'h' => 45);
302
+			}
303
+
304
+			$content_data[] = '{"id":"' . $catinfo_obj->post_id . '","t": "' . $title . '","lt": "' . $catinfo_obj->post_latitude . '","ln": "' . $catinfo_obj->post_longitude . '","mk_id":"' . $catinfo_obj->post_id . '_' . $catinfo_obj->default_category . '","i":"' . $icon . '","w":"' . $icon_size['w'] . '","h":"' . $icon_size['h'] . '"'.$mark_extra.'}';
305
+			$post_ids[] = $catinfo_obj->post_id;
306
+		}
307
+	}
308
+
309
+	/**
310
+	 * Called after marker data is processed into JSON.
311
+	 *
312
+	 * Called after marker data is processed into JSON, this action can be used to change the format or add/remove markers.
313
+	 *
314
+	 * @since 1.4.9
315
+	 * @param array $content_data The array containing all markers in JSON format.
316
+	 * @param object $catinfo The posts object containing all marker data.
317
+	 * @see 'geodir_before_marker_post_process'
318
+	 */
319
+	do_action('geodir_after_marker_post_process', $content_data, $catinfo);
320
+
321
+	if (!empty($content_data)) {
322
+		$cat_content_info[] = implode(',', $content_data);
323
+	}
324
+
325
+	$totalcount = count(array_unique($post_ids));
326
+
327
+	if (!empty($cat_content_info)) {
328
+		return '[{"totalcount":"' . $totalcount . '",' . substr(implode(',', $cat_content_info), 1) . ']';
329
+	}
330
+	else {
331
+		return '[{"totalcount":"0"}]';
332
+	}
333 333
 }
334 334
\ No newline at end of file
Please login to merge, or discard this patch.
geodirectory-admin/option-pages/design_settings_array.php 1 patch
Indentation   +939 added lines, -939 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
  */
18 18
 function geodir_post_type_setting_fun()
19 19
 {
20
-    $post_type_arr = array();
20
+	$post_type_arr = array();
21 21
 
22
-    $post_types = geodir_get_posttypes('object');
22
+	$post_types = geodir_get_posttypes('object');
23 23
 
24
-    foreach ($post_types as $key => $post_types_obj) {
25
-        $post_type_arr[$key] = $post_types_obj->labels->singular_name;
26
-    }
27
-    return $post_type_arr;
24
+	foreach ($post_types as $key => $post_types_obj) {
25
+		$post_type_arr[$key] = $post_types_obj->labels->singular_name;
26
+	}
27
+	return $post_type_arr;
28 28
 }
29 29
 
30 30
 /**
@@ -35,17 +35,17 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function geodir_theme_location_setting_fun()
37 37
 {
38
-    $post_type_arr = array();
39
-    $geodir_all_nav_locations = get_registered_nav_menus();
40
-    $geodir_active_nav_locations = get_nav_menu_locations();
41
-    if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
42
-        foreach ($geodir_active_nav_locations as $key => $theme_location) {
43
-            if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations))
44
-                $post_type_arr[$key] = $geodir_all_nav_locations[$key];
45
-        }
46
-    }
47
-
48
-    return $post_type_arr;
38
+	$post_type_arr = array();
39
+	$geodir_all_nav_locations = get_registered_nav_menus();
40
+	$geodir_active_nav_locations = get_nav_menu_locations();
41
+	if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
42
+		foreach ($geodir_active_nav_locations as $key => $theme_location) {
43
+			if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations))
44
+				$post_type_arr[$key] = $geodir_all_nav_locations[$key];
45
+		}
46
+	}
47
+
48
+	return $post_type_arr;
49 49
 }
50 50
 
51 51
 /**
@@ -56,536 +56,536 @@  discard block
 block discarded – undo
56 56
  */
57 57
 $geodir_settings['design_settings'] = apply_filters('geodir_design_settings', array(
58 58
 
59
-    /* Home Layout Settings start */
60
-    array('name' => __('Home', 'geodirectory'), 'type' => 'title', 'desc' => 'Setting to set home page layout', 'id' => 'home_page_settings '),
59
+	/* Home Layout Settings start */
60
+	array('name' => __('Home', 'geodirectory'), 'type' => 'title', 'desc' => 'Setting to set home page layout', 'id' => 'home_page_settings '),
61 61
 
62 62
 
63
-    array('name' => __('Home Top Section Settings', 'geodirectory'),
64
-        'type' => 'sectionstart',
65
-        'desc' => '',
66
-        'id' => 'geodir_home_top_section'),
63
+	array('name' => __('Home Top Section Settings', 'geodirectory'),
64
+		'type' => 'sectionstart',
65
+		'desc' => '',
66
+		'id' => 'geodir_home_top_section'),
67 67
 
68
-    array(
69
-        'name' => __('Home top section', 'geodirectory'),
70
-        'desc' => __('Show the top section of home page', 'geodirectory'),
71
-        'id' => 'geodir_show_home_top_section',
72
-        'type' => 'checkbox',
73
-        'std' => '1' // Default value to show home top section
74
-    ),
68
+	array(
69
+		'name' => __('Home top section', 'geodirectory'),
70
+		'desc' => __('Show the top section of home page', 'geodirectory'),
71
+		'id' => 'geodir_show_home_top_section',
72
+		'type' => 'checkbox',
73
+		'std' => '1' // Default value to show home top section
74
+	),
75 75
 
76 76
 
77
-    array('type' => 'sectionend', 'id' => 'geodir_home_top_section'),
77
+	array('type' => 'sectionend', 'id' => 'geodir_home_top_section'),
78 78
 
79 79
 
80
-    array('name' => __('Home Page Layout Settings', 'geodirectory'),
81
-        'type' => 'sectionstart',
82
-        'desc' => '',
83
-        'id' => 'geodir_home_layout'),
80
+	array('name' => __('Home Page Layout Settings', 'geodirectory'),
81
+		'type' => 'sectionstart',
82
+		'desc' => '',
83
+		'id' => 'geodir_home_layout'),
84 84
 
85
-    array(
86
-        'name' => __('Home right section', 'geodirectory'),
87
-        'desc' => __('Show the right section of home page', 'geodirectory'),
88
-        'id' => 'geodir_show_home_right_section',
89
-        'type' => 'checkbox',
90
-        'std' => '1' // Default value to show home top section
91
-    ),
85
+	array(
86
+		'name' => __('Home right section', 'geodirectory'),
87
+		'desc' => __('Show the right section of home page', 'geodirectory'),
88
+		'id' => 'geodir_show_home_right_section',
89
+		'type' => 'checkbox',
90
+		'std' => '1' // Default value to show home top section
91
+	),
92 92
 
93
-    array(
94
-        'name' => __('Width of home right section', 'geodirectory'),
95
-        'desc' => __('Enter the width of right section of home page in %', 'geodirectory'),
96
-        'id' => 'geodir_width_home_right_section',
97
-        'type' => 'text',
98
-        'css' => 'min-width:300px;',
99
-        'std' => '30' // Default value to show home top section
100
-    ),
93
+	array(
94
+		'name' => __('Width of home right section', 'geodirectory'),
95
+		'desc' => __('Enter the width of right section of home page in %', 'geodirectory'),
96
+		'id' => 'geodir_width_home_right_section',
97
+		'type' => 'text',
98
+		'css' => 'min-width:300px;',
99
+		'std' => '30' // Default value to show home top section
100
+	),
101 101
 
102
-    array(
103
-        'name' => __('Home content section', 'geodirectory'),
104
-        'desc' => __('Show the content section of home page', 'geodirectory'),
105
-        'id' => 'geodir_show_home_contant_section',
106
-        'type' => 'checkbox',
107
-        'std' => '1' // Default value to show home top section
108
-    ),
102
+	array(
103
+		'name' => __('Home content section', 'geodirectory'),
104
+		'desc' => __('Show the content section of home page', 'geodirectory'),
105
+		'id' => 'geodir_show_home_contant_section',
106
+		'type' => 'checkbox',
107
+		'std' => '1' // Default value to show home top section
108
+	),
109 109
 
110
-    array(
111
-        'name' => __('Width of home content section', 'geodirectory'),
112
-        'desc' => __('Enter the width of content section of home page in %', 'geodirectory'),
113
-        'id' => 'geodir_width_home_contant_section',
114
-        'type' => 'text',
115
-        'css' => 'min-width:300px;',
116
-        'std' => '63' // Default value to show home top section
117
-    ),
110
+	array(
111
+		'name' => __('Width of home content section', 'geodirectory'),
112
+		'desc' => __('Enter the width of content section of home page in %', 'geodirectory'),
113
+		'id' => 'geodir_width_home_contant_section',
114
+		'type' => 'text',
115
+		'css' => 'min-width:300px;',
116
+		'std' => '63' // Default value to show home top section
117
+	),
118 118
 
119
-    array(
120
-        'name' => __('Home left section', 'geodirectory'),
121
-        'desc' => __('Show the left section of home page', 'geodirectory'),
122
-        'id' => 'geodir_show_home_left_section',
123
-        'type' => 'checkbox',
124
-        'std' => '0' // Default value to show home top section
125
-    ),
119
+	array(
120
+		'name' => __('Home left section', 'geodirectory'),
121
+		'desc' => __('Show the left section of home page', 'geodirectory'),
122
+		'id' => 'geodir_show_home_left_section',
123
+		'type' => 'checkbox',
124
+		'std' => '0' // Default value to show home top section
125
+	),
126 126
 
127
-    array(
128
-        'name' => __('Width of home left section', 'geodirectory'),
129
-        'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
130
-        'id' => 'geodir_width_home_left_section',
131
-        'type' => 'text',
132
-        'css' => 'min-width:300px;',
133
-        'std' => '30' // Default value to show home top section
134
-    ),
127
+	array(
128
+		'name' => __('Width of home left section', 'geodirectory'),
129
+		'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
130
+		'id' => 'geodir_width_home_left_section',
131
+		'type' => 'text',
132
+		'css' => 'min-width:300px;',
133
+		'std' => '30' // Default value to show home top section
134
+	),
135 135
 
136
-    array(
137
-        'name' => __('Home bottom section', 'geodirectory'),
138
-        'desc' => __('Show the bottom section of home page', 'geodirectory'),
139
-        'id' => 'geodir_show_home_bottom_section',
140
-        'type' => 'checkbox',
141
-        'std' => '0' // Default value to show home top section
142
-    ),
143
-    array(
144
-        'name' => __('Resize image large size', 'geodirectory'),
145
-        'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
146
-        'id' => 'geodir_use_wp_media_large_size',
147
-        'type' => 'checkbox',
148
-        'std' => '0'
149
-    ),
136
+	array(
137
+		'name' => __('Home bottom section', 'geodirectory'),
138
+		'desc' => __('Show the bottom section of home page', 'geodirectory'),
139
+		'id' => 'geodir_show_home_bottom_section',
140
+		'type' => 'checkbox',
141
+		'std' => '0' // Default value to show home top section
142
+	),
143
+	array(
144
+		'name' => __('Resize image large size', 'geodirectory'),
145
+		'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
146
+		'id' => 'geodir_use_wp_media_large_size',
147
+		'type' => 'checkbox',
148
+		'std' => '0'
149
+	),
150 150
 
151
-    array('type' => 'sectionend', 'id' => 'geodir_home_layout'),
151
+	array('type' => 'sectionend', 'id' => 'geodir_home_layout'),
152 152
 
153 153
 
154
-    /* Home Layout Settings end */
154
+	/* Home Layout Settings end */
155 155
 
156 156
 
157
-    /* Listing Layout Settings end */
157
+	/* Listing Layout Settings end */
158 158
 
159
-    array('name' => __('Listings', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_listing_settings '),
159
+	array('name' => __('Listings', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_listing_settings '),
160 160
 
161 161
 
162
-    array('name' => __('Listing Page Layout Settings', 'geodirectory'),
163
-        'type' => 'sectionstart',
164
-        'desc' => '',
165
-        'id' => 'geodir_listing_layout'),
162
+	array('name' => __('Listing Page Layout Settings', 'geodirectory'),
163
+		'type' => 'sectionstart',
164
+		'desc' => '',
165
+		'id' => 'geodir_listing_layout'),
166 166
 
167
-    array(
168
-        'name' => __('Listing top section', 'geodirectory'),
169
-        'desc' => __('Show the top section of listing page', 'geodirectory'),
170
-        'id' => 'geodir_show_listing_top_section',
171
-        'type' => 'checkbox',
172
-        'std' => '1' // Default value to show home top section
173
-    ),
167
+	array(
168
+		'name' => __('Listing top section', 'geodirectory'),
169
+		'desc' => __('Show the top section of listing page', 'geodirectory'),
170
+		'id' => 'geodir_show_listing_top_section',
171
+		'type' => 'checkbox',
172
+		'std' => '1' // Default value to show home top section
173
+	),
174 174
 
175
-    array(
176
-        'name' => __('Listing right section', 'geodirectory'),
177
-        'desc' => __('Show the right section of listing page', 'geodirectory'),
178
-        'id' => 'geodir_show_listing_right_section',
179
-        'type' => 'checkbox',
180
-        'std' => '1' // Default value to show home top section
181
-    ),
175
+	array(
176
+		'name' => __('Listing right section', 'geodirectory'),
177
+		'desc' => __('Show the right section of listing page', 'geodirectory'),
178
+		'id' => 'geodir_show_listing_right_section',
179
+		'type' => 'checkbox',
180
+		'std' => '1' // Default value to show home top section
181
+	),
182 182
 
183
-    array(
184
-        'name' => __('Width of listing right section', 'geodirectory'),
185
-        'desc' => __('Enter the width of right section of listing page in %', 'geodirectory'),
186
-        'id' => 'geodir_width_listing_right_section',
187
-        'type' => 'text',
188
-        'css' => 'min-width:300px;',
189
-        'std' => '30' // Default value to show home top section
190
-    ),
183
+	array(
184
+		'name' => __('Width of listing right section', 'geodirectory'),
185
+		'desc' => __('Enter the width of right section of listing page in %', 'geodirectory'),
186
+		'id' => 'geodir_width_listing_right_section',
187
+		'type' => 'text',
188
+		'css' => 'min-width:300px;',
189
+		'std' => '30' // Default value to show home top section
190
+	),
191 191
 
192 192
 
193
-    array(
194
-        'name' => __('Listing content section view', 'geodirectory'),
195
-        'desc' => __('Set the listing view of listing page', 'geodirectory'),
196
-        'id' => 'geodir_listing_view',
197
-        'css' => 'min-width:300px;',
198
-        'std' => 'gridview_onehalf',
199
-        'type' => 'select',
200
-        'class' => 'chosen_select',
201
-        'options' => array_unique(array(
202
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
203
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
204
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
205
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
206
-            'listview' => __('List view', 'geodirectory'),
207
-        ))
208
-    ),
193
+	array(
194
+		'name' => __('Listing content section view', 'geodirectory'),
195
+		'desc' => __('Set the listing view of listing page', 'geodirectory'),
196
+		'id' => 'geodir_listing_view',
197
+		'css' => 'min-width:300px;',
198
+		'std' => 'gridview_onehalf',
199
+		'type' => 'select',
200
+		'class' => 'chosen_select',
201
+		'options' => array_unique(array(
202
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
203
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
204
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
205
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
206
+			'listview' => __('List view', 'geodirectory'),
207
+		))
208
+	),
209 209
 
210
-    array(
211
-        'name' => __('Width of listing content section', 'geodirectory'),
212
-        'desc' => __('Enter the width of content section of listing page in %', 'geodirectory'),
213
-        'id' => 'geodir_width_listing_contant_section',
214
-        'type' => 'text',
215
-        'css' => 'min-width:300px;',
216
-        'std' => '63' // Default value to show home top section
217
-    ),
210
+	array(
211
+		'name' => __('Width of listing content section', 'geodirectory'),
212
+		'desc' => __('Enter the width of content section of listing page in %', 'geodirectory'),
213
+		'id' => 'geodir_width_listing_contant_section',
214
+		'type' => 'text',
215
+		'css' => 'min-width:300px;',
216
+		'std' => '63' // Default value to show home top section
217
+	),
218 218
 
219
-    array(
220
-        'name' => __('Listing left section', 'geodirectory'),
221
-        'desc' => __('Show the left section of listing page', 'geodirectory'),
222
-        'id' => 'geodir_show_listing_left_section',
223
-        'type' => 'checkbox',
224
-        'std' => '0' // Default value to show home top section
225
-    ),
219
+	array(
220
+		'name' => __('Listing left section', 'geodirectory'),
221
+		'desc' => __('Show the left section of listing page', 'geodirectory'),
222
+		'id' => 'geodir_show_listing_left_section',
223
+		'type' => 'checkbox',
224
+		'std' => '0' // Default value to show home top section
225
+	),
226 226
 
227
-    array(
228
-        'name' => __('Width of listing left section', 'geodirectory'),
229
-        'desc' => __('Enter the width of left section of listing in %', 'geodirectory'),
230
-        'id' => 'geodir_width_listing_left_section',
231
-        'type' => 'text',
232
-        'css' => 'min-width:300px;',
233
-        'std' => '30' // Default value to show home top section
234
-    ),
227
+	array(
228
+		'name' => __('Width of listing left section', 'geodirectory'),
229
+		'desc' => __('Enter the width of left section of listing in %', 'geodirectory'),
230
+		'id' => 'geodir_width_listing_left_section',
231
+		'type' => 'text',
232
+		'css' => 'min-width:300px;',
233
+		'std' => '30' // Default value to show home top section
234
+	),
235 235
 
236
-    array(
237
-        'name' => __('Listing bottom section', 'geodirectory'),
238
-        'desc' => __('Show the bottom section of listing page', 'geodirectory'),
239
-        'id' => 'geodir_show_listing_bottom_section',
240
-        'type' => 'checkbox',
241
-        'std' => '0' // Default value to show home top section
242
-    ),
236
+	array(
237
+		'name' => __('Listing bottom section', 'geodirectory'),
238
+		'desc' => __('Show the bottom section of listing page', 'geodirectory'),
239
+		'id' => 'geodir_show_listing_bottom_section',
240
+		'type' => 'checkbox',
241
+		'std' => '0' // Default value to show home top section
242
+	),
243 243
 
244
-    array(
245
-        'name' => __('Upload listing no image', 'geodirectory'),
246
-        'desc' => '',
247
-        'id' => 'geodir_listing_no_img',
248
-        'type' => 'file',
249
-        'std' => '0' // Default value to show home top section
250
-    ),
244
+	array(
245
+		'name' => __('Upload listing no image', 'geodirectory'),
246
+		'desc' => '',
247
+		'id' => 'geodir_listing_no_img',
248
+		'type' => 'file',
249
+		'std' => '0' // Default value to show home top section
250
+	),
251 251
 
252
-    array(
253
-        'name' => __('Description word limit', 'geodirectory'),
254
-        'desc' => '',
255
-        'id' => 'geodir_desc_word_limit',
256
-        'type' => 'text',
257
-        'css' => 'min-width:300px;',
258
-        'std' => '50' // Default value to show home top section
259
-    ),
252
+	array(
253
+		'name' => __('Description word limit', 'geodirectory'),
254
+		'desc' => '',
255
+		'id' => 'geodir_desc_word_limit',
256
+		'type' => 'text',
257
+		'css' => 'min-width:300px;',
258
+		'std' => '50' // Default value to show home top section
259
+	),
260 260
 
261
-    array(
262
-        'name' => __('Hover listing map animation', 'geodirectory'),
263
-        'desc' => __('Bounce map pin if listing hovered', 'geodirectory'),
264
-        'id' => 'geodir_listing_hover_bounce_map_pin',
265
-        'type' => 'checkbox',
266
-        'std' => '1' // Default value to show home top section
267
-    ),
261
+	array(
262
+		'name' => __('Hover listing map animation', 'geodirectory'),
263
+		'desc' => __('Bounce map pin if listing hovered', 'geodirectory'),
264
+		'id' => 'geodir_listing_hover_bounce_map_pin',
265
+		'type' => 'checkbox',
266
+		'std' => '1' // Default value to show home top section
267
+	),
268 268
 
269
-    array('type' => 'sectionend', 'id' => 'geodir_listing_layout'),
269
+	array('type' => 'sectionend', 'id' => 'geodir_listing_layout'),
270 270
 
271 271
 
272
-    array('name' => __('Listing General Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_listing_gen_settings '),
272
+	array('name' => __('Listing General Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_listing_gen_settings '),
273 273
 
274
-    array(
275
-        'name' => __('New listing default status', 'geodirectory'),
276
-        'desc' => __('Select new listing default status.', 'geodirectory'),
277
-        'tip' => '',
278
-        'id' => 'geodir_new_post_default_status',
279
-        'css' => 'min-width:300px;',
280
-        'std' => 'publish',
281
-        'type' => 'select',
282
-        'class' => 'chosen_select',
283
-        'options' => array_unique(array(
284
-            'publish' => __('publish', 'geodirectory'),
285
-            'draft' => __('draft', 'geodirectory'),
286
-        ))
287
-    ),
274
+	array(
275
+		'name' => __('New listing default status', 'geodirectory'),
276
+		'desc' => __('Select new listing default status.', 'geodirectory'),
277
+		'tip' => '',
278
+		'id' => 'geodir_new_post_default_status',
279
+		'css' => 'min-width:300px;',
280
+		'std' => 'publish',
281
+		'type' => 'select',
282
+		'class' => 'chosen_select',
283
+		'options' => array_unique(array(
284
+			'publish' => __('publish', 'geodirectory'),
285
+			'draft' => __('draft', 'geodirectory'),
286
+		))
287
+	),
288 288
 
289
-    array(
290
-        'name' => __('New listings settings', 'geodirectory'),
291
-        'desc' => __('Enter number of days a listing will appear new.(enter 0 to disable feature)', 'geodirectory'),
292
-        'id' => 'geodir_listing_new_days',
293
-        'type' => 'text',
294
-        'css' => 'min-width:300px;',
295
-        'std' => '30' // Default value for the page title - changed in settings
296
-    ),
289
+	array(
290
+		'name' => __('New listings settings', 'geodirectory'),
291
+		'desc' => __('Enter number of days a listing will appear new.(enter 0 to disable feature)', 'geodirectory'),
292
+		'id' => 'geodir_listing_new_days',
293
+		'type' => 'text',
294
+		'css' => 'min-width:300px;',
295
+		'std' => '30' // Default value for the page title - changed in settings
296
+	),
297 297
 
298
-    array('type' => 'sectionend', 'id' => 'geodir_listing_gen_settings'),
298
+	array('type' => 'sectionend', 'id' => 'geodir_listing_gen_settings'),
299 299
 
300 300
 
301
-    array('name' => __('Add Listing Form Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_add_listing_gen_settings'),
301
+	array('name' => __('Add Listing Form Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_add_listing_gen_settings'),
302 302
 
303
-    array(
304
-        'name' => __('Enable "Accept Terms and Conditions"', 'geodirectory'),
305
-        'desc' => __('Show the "Accept Terms and Conditions" field on add listing.', 'geodirectory'),
306
-        'id' => 'geodir_accept_term_condition',
307
-        'type' => 'checkbox',
308
-        'std' => '1' // Default value to show home top section
309
-    ),
303
+	array(
304
+		'name' => __('Enable "Accept Terms and Conditions"', 'geodirectory'),
305
+		'desc' => __('Show the "Accept Terms and Conditions" field on add listing.', 'geodirectory'),
306
+		'id' => 'geodir_accept_term_condition',
307
+		'type' => 'checkbox',
308
+		'std' => '1' // Default value to show home top section
309
+	),
310 310
 
311 311
 
312
-    array(
313
-        'name' => __('Show description field as editor', 'geodirectory'),
314
-        'desc' => __('Select post types to show advanced editor on add listing page.', 'geodirectory'),
315
-        'tip' => '',
316
-        'id' => 'geodir_tiny_editor_on_add_listing',
317
-        'css' => 'min-width:300px;',
318
-        'std' => array(),
319
-        'type' => 'multiselect',
320
-        'placeholder_text' => __('Select post types', 'geodirectory'),
321
-        'class' => 'chosen_select',
322
-        'options' => array_unique(geodir_post_type_setting_fun())
323
-    ),
312
+	array(
313
+		'name' => __('Show description field as editor', 'geodirectory'),
314
+		'desc' => __('Select post types to show advanced editor on add listing page.', 'geodirectory'),
315
+		'tip' => '',
316
+		'id' => 'geodir_tiny_editor_on_add_listing',
317
+		'css' => 'min-width:300px;',
318
+		'std' => array(),
319
+		'type' => 'multiselect',
320
+		'placeholder_text' => __('Select post types', 'geodirectory'),
321
+		'class' => 'chosen_select',
322
+		'options' => array_unique(geodir_post_type_setting_fun())
323
+	),
324 324
 
325
-    array('type' => 'sectionend', 'id' => 'geodir_add_listing_gen_settings'),
326
-    /* Listing Layout Settings end */
325
+	array('type' => 'sectionend', 'id' => 'geodir_add_listing_gen_settings'),
326
+	/* Listing Layout Settings end */
327 327
 
328 328
 
329
-    /* Search Layout Settings end */
329
+	/* Search Layout Settings end */
330 330
 
331
-    array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_search_settings '),
331
+	array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_search_settings '),
332 332
 
333 333
 
334
-    array('name' => __('Search Page Layout Settings', 'geodirectory'),
335
-        'type' => 'sectionstart',
336
-        'desc' => '',
337
-        'id' => 'geodir_search_layout'),
334
+	array('name' => __('Search Page Layout Settings', 'geodirectory'),
335
+		'type' => 'sectionstart',
336
+		'desc' => '',
337
+		'id' => 'geodir_search_layout'),
338 338
 
339
-    array(
340
-        'name' => __('Search top section', 'geodirectory'),
341
-        'desc' => __('Show the top section of search page', 'geodirectory'),
342
-        'id' => 'geodir_show_search_top_section',
343
-        'type' => 'checkbox',
344
-        'std' => '1' // Default value to show home top section
345
-    ),
339
+	array(
340
+		'name' => __('Search top section', 'geodirectory'),
341
+		'desc' => __('Show the top section of search page', 'geodirectory'),
342
+		'id' => 'geodir_show_search_top_section',
343
+		'type' => 'checkbox',
344
+		'std' => '1' // Default value to show home top section
345
+	),
346 346
 
347
-    array(
348
-        'name' => __('Search right section', 'geodirectory'),
349
-        'desc' => __('Show the right section of search page', 'geodirectory'),
350
-        'id' => 'geodir_show_search_right_section',
351
-        'type' => 'checkbox',
352
-        'std' => '1' // Default value to show home top section
353
-    ),
347
+	array(
348
+		'name' => __('Search right section', 'geodirectory'),
349
+		'desc' => __('Show the right section of search page', 'geodirectory'),
350
+		'id' => 'geodir_show_search_right_section',
351
+		'type' => 'checkbox',
352
+		'std' => '1' // Default value to show home top section
353
+	),
354 354
 
355
-    array(
356
-        'name' => __('Width of search right section', 'geodirectory'),
357
-        'desc' => __('Enter the width of right section of search page in %', 'geodirectory'),
358
-        'id' => 'geodir_width_search_right_section',
359
-        'type' => 'text',
360
-        'css' => 'min-width:300px;',
361
-        'std' => '30' // Default value to show home top section
362
-    ),
355
+	array(
356
+		'name' => __('Width of search right section', 'geodirectory'),
357
+		'desc' => __('Enter the width of right section of search page in %', 'geodirectory'),
358
+		'id' => 'geodir_width_search_right_section',
359
+		'type' => 'text',
360
+		'css' => 'min-width:300px;',
361
+		'std' => '30' // Default value to show home top section
362
+	),
363 363
 
364 364
 
365
-    array(
366
-        'name' => __('Search content section view', 'geodirectory'),
367
-        'desc' => __('Set the listing view of search page', 'geodirectory'),
368
-        'id' => 'geodir_search_view',
369
-        'css' => 'min-width:300px;',
370
-        'std' => 'gridview_onehalf',
371
-        'type' => 'select',
372
-        'class' => 'chosen_select',
373
-        'options' => array_unique(array(
374
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
375
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
376
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
377
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
378
-            'listview' => __('List view', 'geodirectory'),
379
-        ))
380
-    ),
365
+	array(
366
+		'name' => __('Search content section view', 'geodirectory'),
367
+		'desc' => __('Set the listing view of search page', 'geodirectory'),
368
+		'id' => 'geodir_search_view',
369
+		'css' => 'min-width:300px;',
370
+		'std' => 'gridview_onehalf',
371
+		'type' => 'select',
372
+		'class' => 'chosen_select',
373
+		'options' => array_unique(array(
374
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
375
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
376
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
377
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
378
+			'listview' => __('List view', 'geodirectory'),
379
+		))
380
+	),
381 381
 
382
-    array(
383
-        'name' => __('Width of search content section', 'geodirectory'),
384
-        'desc' => __('Enter the width of content section of search page in %', 'geodirectory'),
385
-        'id' => 'geodir_width_search_contant_section',
386
-        'type' => 'text',
387
-        'css' => 'min-width:300px;',
388
-        'std' => '63' // Default value to show home top section
389
-    ),
382
+	array(
383
+		'name' => __('Width of search content section', 'geodirectory'),
384
+		'desc' => __('Enter the width of content section of search page in %', 'geodirectory'),
385
+		'id' => 'geodir_width_search_contant_section',
386
+		'type' => 'text',
387
+		'css' => 'min-width:300px;',
388
+		'std' => '63' // Default value to show home top section
389
+	),
390 390
 
391
-    array(
392
-        'name' => __('Search left section', 'geodirectory'),
393
-        'desc' => __('Show the left section of search page', 'geodirectory'),
394
-        'id' => 'geodir_show_search_left_section',
395
-        'type' => 'checkbox',
396
-        'std' => '0' // Default value to show home top section
397
-    ),
391
+	array(
392
+		'name' => __('Search left section', 'geodirectory'),
393
+		'desc' => __('Show the left section of search page', 'geodirectory'),
394
+		'id' => 'geodir_show_search_left_section',
395
+		'type' => 'checkbox',
396
+		'std' => '0' // Default value to show home top section
397
+	),
398 398
 
399
-    array(
400
-        'name' => __('Width of search left section', 'geodirectory'),
401
-        'desc' => __('Enter the width of left section of search in %', 'geodirectory'),
402
-        'id' => 'geodir_width_search_left_section',
403
-        'type' => 'text',
404
-        'css' => 'min-width:300px;',
405
-        'std' => '30' // Default value to show home top section
406
-    ),
399
+	array(
400
+		'name' => __('Width of search left section', 'geodirectory'),
401
+		'desc' => __('Enter the width of left section of search in %', 'geodirectory'),
402
+		'id' => 'geodir_width_search_left_section',
403
+		'type' => 'text',
404
+		'css' => 'min-width:300px;',
405
+		'std' => '30' // Default value to show home top section
406
+	),
407 407
 
408
-    array(
409
-        'name' => __('Search bottom section', 'geodirectory'),
410
-        'desc' => __('Show the bottom section of search page', 'geodirectory'),
411
-        'id' => 'geodir_show_search_bottom_section',
412
-        'type' => 'checkbox',
413
-        'std' => '0' // Default value to show home top section
414
-    ),
408
+	array(
409
+		'name' => __('Search bottom section', 'geodirectory'),
410
+		'desc' => __('Show the bottom section of search page', 'geodirectory'),
411
+		'id' => 'geodir_show_search_bottom_section',
412
+		'type' => 'checkbox',
413
+		'std' => '0' // Default value to show home top section
414
+	),
415 415
 	
416 416
 	array(
417
-        'name' => __('Show advanced pagination details', 'geodirectory'),
418
-        'desc' => __('This will add extra pagination info like "Showing listings x-y of z" after/before pagination.', 'geodirectory'),
419
-        'id' => 'geodir_pagination_advance_info',
420
-        'css' => 'min-width:300px;',
421
-        'std' => '',
422
-        'type' => 'select',
423
-        'class' => 'chosen_select',
424
-        'options' => array(
417
+		'name' => __('Show advanced pagination details', 'geodirectory'),
418
+		'desc' => __('This will add extra pagination info like "Showing listings x-y of z" after/before pagination.', 'geodirectory'),
419
+		'id' => 'geodir_pagination_advance_info',
420
+		'css' => 'min-width:300px;',
421
+		'std' => '',
422
+		'type' => 'select',
423
+		'class' => 'chosen_select',
424
+		'options' => array(
425 425
 						'' => __('Never Display', 'geodirectory'),
426 426
 						'after' => __('After Pagination', 'geodirectory'),
427 427
 						'before' => __('Before Pagination', 'geodirectory')
428 428
 					)
429
-    ),
429
+	),
430 430
 
431
-    array('type' => 'sectionend', 'id' => 'geodir_search_layout'),
431
+	array('type' => 'sectionend', 'id' => 'geodir_search_layout'),
432 432
 
433 433
 
434
-    array('name' => __('Search form settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_search_form_default_text_settings'),
434
+	array('name' => __('Search form settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_search_form_default_text_settings'),
435 435
 
436
-    array(
437
-        'name' => __('Use old non-styled form', 'geodirectory'),
438
-        'desc' => __('Will show the old type form (not recommended unless you had added your own styles)', 'geodirectory'),
439
-        'id' => 'geodir_show_search_old_search_from',
440
-        'type' => 'checkbox',
441
-        'std' => '0' // Default value to show
442
-    ),
436
+	array(
437
+		'name' => __('Use old non-styled form', 'geodirectory'),
438
+		'desc' => __('Will show the old type form (not recommended unless you had added your own styles)', 'geodirectory'),
439
+		'id' => 'geodir_show_search_old_search_from',
440
+		'type' => 'checkbox',
441
+		'std' => '0' // Default value to show
442
+	),
443 443
 
444
-    array(
445
-        'name' => __('Search field default value', 'geodirectory'),
446
-        'desc' => __('Show the search text box \'placeholder\' value on search form.', 'geodirectory'),
447
-        'id' => 'geodir_search_field_default_text',
448
-        'type' => 'text',
449
-        'css' => 'min-width:300px;',
450
-        'std' => 'Search for' // show on the listing page.
451
-    ),
444
+	array(
445
+		'name' => __('Search field default value', 'geodirectory'),
446
+		'desc' => __('Show the search text box \'placeholder\' value on search form.', 'geodirectory'),
447
+		'id' => 'geodir_search_field_default_text',
448
+		'type' => 'text',
449
+		'css' => 'min-width:300px;',
450
+		'std' => 'Search for' // show on the listing page.
451
+	),
452 452
 
453
-    array(
454
-        'name' => __('Near field default value', 'geodirectory'),
455
-        'desc' => __('Show the near text box \'placeholder\' value on search form.', 'geodirectory'),
456
-        'id' => 'geodir_near_field_default_text',
457
-        'type' => 'text',
458
-        'css' => 'min-width:300px;',
459
-        'std' => 'Near' // show on the listing page.
460
-    ),
453
+	array(
454
+		'name' => __('Near field default value', 'geodirectory'),
455
+		'desc' => __('Show the near text box \'placeholder\' value on search form.', 'geodirectory'),
456
+		'id' => 'geodir_near_field_default_text',
457
+		'type' => 'text',
458
+		'css' => 'min-width:300px;',
459
+		'std' => 'Near' // show on the listing page.
460
+	),
461 461
 
462
-    array(
463
-        'name' => __('Search button label', 'geodirectory'),
464
-        'desc' => __('Show the search button label on search form.', 'geodirectory'),
465
-        'id' => 'geodir_search_button_label',
466
-        'type' => 'text',
467
-        'css' => 'min-width:300px;',
468
-        'std' => 'Search' // show on the listing page.
469
-    ),
462
+	array(
463
+		'name' => __('Search button label', 'geodirectory'),
464
+		'desc' => __('Show the search button label on search form.', 'geodirectory'),
465
+		'id' => 'geodir_search_button_label',
466
+		'type' => 'text',
467
+		'css' => 'min-width:300px;',
468
+		'std' => 'Search' // show on the listing page.
469
+	),
470 470
 
471
-    array('type' => 'sectionend', 'id' => 'geodir_search_form_default_text_settings'),
471
+	array('type' => 'sectionend', 'id' => 'geodir_search_form_default_text_settings'),
472 472
 
473
-    /* Listing Layout Settings end */
473
+	/* Listing Layout Settings end */
474 474
 
475 475
 
476
-    /* Detail Layout Settings end */
476
+	/* Detail Layout Settings end */
477 477
 
478
-    array('name' => __('Detail', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_detail_settings '),
478
+	array('name' => __('Detail', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_detail_settings '),
479 479
 
480
-    array('name' => __('Detail/Single Page Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_settings '),
480
+	array('name' => __('Detail/Single Page Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_settings '),
481 481
 
482
-    array(
483
-        'name' => __('Detail top section', 'geodirectory'),
484
-        'desc' => __('Show the top section of listing page', 'geodirectory'),
485
-        'id' => 'geodir_show_detail_top_section',
486
-        'type' => 'checkbox',
487
-        'std' => '1' // Default value to show home top section
488
-    ),
482
+	array(
483
+		'name' => __('Detail top section', 'geodirectory'),
484
+		'desc' => __('Show the top section of listing page', 'geodirectory'),
485
+		'id' => 'geodir_show_detail_top_section',
486
+		'type' => 'checkbox',
487
+		'std' => '1' // Default value to show home top section
488
+	),
489 489
 
490
-    array(
491
-        'name' => __('Detail bottom section', 'geodirectory'),
492
-        'desc' => __('Show the bottom section of listing page', 'geodirectory'),
493
-        'id' => 'geodir_show_detail_bottom_section',
494
-        'type' => 'checkbox',
495
-        'std' => '1' // Default value to show home top section
496
-    ),
497
-    array(
498
-        'name' => __('Detail sidebar section on left side', 'geodirectory'),
499
-        'desc' => __('Display detail sidebar section on left side of the detail page', 'geodirectory'),
500
-        'id' => 'geodir_detail_sidebar_left_section',
501
-        'type' => 'checkbox',
502
-        'std' => '0'
503
-    ),
504
-    array(
505
-        'name' => __('Disable GD modal', 'geodirectory'),
506
-        'desc' => __('Disable GD modal that displays slideshow images in popup', 'geodirectory'),
507
-        'id' => 'geodir_disable_gb_modal',
508
-        'type' => 'checkbox',
509
-        'std' => '0'
510
-    ),
511
-    array(
512
-        'name' => __('Disable Tweet, Fb Like, Google+ buttons section', 'geodirectory'),
513
-        'desc' => __('Disable Tweet, Fb Like, Google+ buttons section that displays on Detail page sidebar', 'geodirectory'),
514
-        'id' => 'geodir_disable_tfg_buttons_section',
515
-        'type' => 'checkbox',
516
-        'std' => '0'
517
-    ),
518
-    array(
519
-        'name' => __('Disable Google Analytics section', 'geodirectory'),
520
-        'desc' => __('Disable Google Analytics section that displays on Detail page sidebar', 'geodirectory'),
521
-        'id' => 'geodir_disable_google_analytics_section',
522
-        'type' => 'checkbox',
523
-        'std' => '0'
524
-    ),
525
-    array(
526
-        'name' => __('Disable User Links section', 'geodirectory'),
527
-        'desc' => __('Disable User Links section (Edit post, Favorite etc..) that displays on Detail page sidebar', 'geodirectory'),
528
-        'id' => 'geodir_disable_user_links_section',
529
-        'type' => 'checkbox',
530
-        'std' => '0'
531
-    ),
532
-    array(
533
-        'name' => __('Disable Rating Info section', 'geodirectory'),
534
-        'desc' => __('Disable Rating Info section that displays on Detail page sidebar', 'geodirectory'),
535
-        'id' => 'geodir_disable_rating_info_section',
536
-        'type' => 'checkbox',
537
-        'std' => '0'
538
-    ),
539
-    array(
540
-        'name' => __('Disable Listing Info section', 'geodirectory'),
541
-        'desc' => __('Disable Listing Info section that displays on Detail page sidebar', 'geodirectory'),
542
-        'id' => 'geodir_disable_listing_info_section',
543
-        'type' => 'checkbox',
544
-        'std' => '0'
545
-    ),
490
+	array(
491
+		'name' => __('Detail bottom section', 'geodirectory'),
492
+		'desc' => __('Show the bottom section of listing page', 'geodirectory'),
493
+		'id' => 'geodir_show_detail_bottom_section',
494
+		'type' => 'checkbox',
495
+		'std' => '1' // Default value to show home top section
496
+	),
497
+	array(
498
+		'name' => __('Detail sidebar section on left side', 'geodirectory'),
499
+		'desc' => __('Display detail sidebar section on left side of the detail page', 'geodirectory'),
500
+		'id' => 'geodir_detail_sidebar_left_section',
501
+		'type' => 'checkbox',
502
+		'std' => '0'
503
+	),
504
+	array(
505
+		'name' => __('Disable GD modal', 'geodirectory'),
506
+		'desc' => __('Disable GD modal that displays slideshow images in popup', 'geodirectory'),
507
+		'id' => 'geodir_disable_gb_modal',
508
+		'type' => 'checkbox',
509
+		'std' => '0'
510
+	),
511
+	array(
512
+		'name' => __('Disable Tweet, Fb Like, Google+ buttons section', 'geodirectory'),
513
+		'desc' => __('Disable Tweet, Fb Like, Google+ buttons section that displays on Detail page sidebar', 'geodirectory'),
514
+		'id' => 'geodir_disable_tfg_buttons_section',
515
+		'type' => 'checkbox',
516
+		'std' => '0'
517
+	),
518
+	array(
519
+		'name' => __('Disable Google Analytics section', 'geodirectory'),
520
+		'desc' => __('Disable Google Analytics section that displays on Detail page sidebar', 'geodirectory'),
521
+		'id' => 'geodir_disable_google_analytics_section',
522
+		'type' => 'checkbox',
523
+		'std' => '0'
524
+	),
525
+	array(
526
+		'name' => __('Disable User Links section', 'geodirectory'),
527
+		'desc' => __('Disable User Links section (Edit post, Favorite etc..) that displays on Detail page sidebar', 'geodirectory'),
528
+		'id' => 'geodir_disable_user_links_section',
529
+		'type' => 'checkbox',
530
+		'std' => '0'
531
+	),
532
+	array(
533
+		'name' => __('Disable Rating Info section', 'geodirectory'),
534
+		'desc' => __('Disable Rating Info section that displays on Detail page sidebar', 'geodirectory'),
535
+		'id' => 'geodir_disable_rating_info_section',
536
+		'type' => 'checkbox',
537
+		'std' => '0'
538
+	),
539
+	array(
540
+		'name' => __('Disable Listing Info section', 'geodirectory'),
541
+		'desc' => __('Disable Listing Info section that displays on Detail page sidebar', 'geodirectory'),
542
+		'id' => 'geodir_disable_listing_info_section',
543
+		'type' => 'checkbox',
544
+		'std' => '0'
545
+	),
546 546
 
547
-    array('type' => 'sectionend', 'id' => 'detail_page_settings'),
547
+	array('type' => 'sectionend', 'id' => 'detail_page_settings'),
548 548
 
549 549
 
550
-    /* ---------- DETAIL PAGE TAB SETTING START*/
550
+	/* ---------- DETAIL PAGE TAB SETTING START*/
551 551
 
552
-    array('name' => __('Detail Page Tab Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_detail_page_tab_settings '),
552
+	array('name' => __('Detail Page Tab Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_detail_page_tab_settings '),
553 553
 
554
-    array(
555
-        'name' => __('Exclude selected tabs from detail page', 'geodirectory'),
556
-        'desc' => __('Select tabs to exclude from the list of all appearing tabs on detail page.', 'geodirectory'),
557
-        'tip' => '',
558
-        'id' => 'geodir_detail_page_tabs_excluded',
559
-        'css' => 'min-width:300px;',
560
-        'std' => geodir_get_posttypes(),
561
-        'type' => 'multiselect',
562
-        'placeholder_text' => __('Select tabs', 'geodirectory'),
563
-        'class' => 'chosen_select',
564
-        'options' => array_unique(geodir_detail_page_tabs_key_value_array())
565
-    ),
554
+	array(
555
+		'name' => __('Exclude selected tabs from detail page', 'geodirectory'),
556
+		'desc' => __('Select tabs to exclude from the list of all appearing tabs on detail page.', 'geodirectory'),
557
+		'tip' => '',
558
+		'id' => 'geodir_detail_page_tabs_excluded',
559
+		'css' => 'min-width:300px;',
560
+		'std' => geodir_get_posttypes(),
561
+		'type' => 'multiselect',
562
+		'placeholder_text' => __('Select tabs', 'geodirectory'),
563
+		'class' => 'chosen_select',
564
+		'options' => array_unique(geodir_detail_page_tabs_key_value_array())
565
+	),
566 566
     
567
-    array(
568
-        'name' => __('Show as list', 'geodirectory'),
569
-        'desc' => __('Show as list instead of tabs', 'geodirectory'),
570
-        'id' => 'geodir_disable_tabs',
571
-        'type' => 'checkbox',
572
-        'std' => '0'
573
-    ),
567
+	array(
568
+		'name' => __('Show as list', 'geodirectory'),
569
+		'desc' => __('Show as list instead of tabs', 'geodirectory'),
570
+		'id' => 'geodir_disable_tabs',
571
+		'type' => 'checkbox',
572
+		'std' => '0'
573
+	),
574 574
 
575
-    array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
576
-    /* ---------- DETAIL PAGE TAB SETTING END*/
575
+	array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
576
+	/* ---------- DETAIL PAGE TAB SETTING END*/
577 577
 
578
-    /* START DEFAULT STAR IMAGE*/
579
-    array('name' => __('Default Rating Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_rating_settings '),
578
+	/* START DEFAULT STAR IMAGE*/
579
+	array('name' => __('Default Rating Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_rating_settings '),
580 580
 
581
-    array(
582
-        'name' => __('Upload default rating star icon', 'geodirectory'),
583
-        'desc' => '',
584
-        'id' => 'geodir_default_rating_star_icon',
585
-        'type' => 'file',
586
-        'std' => '0',
587
-        'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section
588
-    ),
581
+	array(
582
+		'name' => __('Upload default rating star icon', 'geodirectory'),
583
+		'desc' => '',
584
+		'id' => 'geodir_default_rating_star_icon',
585
+		'type' => 'file',
586
+		'std' => '0',
587
+		'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section
588
+	),
589 589
 	array(
590 590
 		'name' => __('Enable Font Awesome', 'geodirectory'),
591 591
 		'desc' => __('When enabled all rating images will be using font awesome rating icons as images.', 'geodirectory' ),
@@ -601,369 +601,369 @@  discard block
 block discarded – undo
601 601
 		'std' => '#757575'
602 602
 	),
603 603
 
604
-    array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
604
+	array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
605 605
 
606
-    /* END DEFAULT STAR IMAGE*/
606
+	/* END DEFAULT STAR IMAGE*/
607 607
 
608
-    /* Detail related post settings start */
608
+	/* Detail related post settings start */
609 609
 
610
-    array('name' => __('Related Post Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_related_post_settings '),
610
+	array('name' => __('Related Post Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_related_post_settings '),
611 611
 
612
-    array(
613
-        'name' => __('Show related post listing on', 'geodirectory'),
614
-        'desc' => __('Select the post types to display related listing on detail page.', 'geodirectory'),
615
-        'tip' => '',
616
-        'id' => 'geodir_add_related_listing_posttypes',
617
-        'css' => 'min-width:300px;',
618
-        'std' => geodir_get_posttypes(),
619
-        'type' => 'multiselect',
620
-        'placeholder_text' => __('Select post types', 'geodirectory'),
621
-        'class' => 'chosen_select',
622
-        'options' => array_unique(geodir_post_type_setting_fun())
623
-    ),
612
+	array(
613
+		'name' => __('Show related post listing on', 'geodirectory'),
614
+		'desc' => __('Select the post types to display related listing on detail page.', 'geodirectory'),
615
+		'tip' => '',
616
+		'id' => 'geodir_add_related_listing_posttypes',
617
+		'css' => 'min-width:300px;',
618
+		'std' => geodir_get_posttypes(),
619
+		'type' => 'multiselect',
620
+		'placeholder_text' => __('Select post types', 'geodirectory'),
621
+		'class' => 'chosen_select',
622
+		'options' => array_unique(geodir_post_type_setting_fun())
623
+	),
624 624
 
625
-    array(
626
-        'name' => __('Relate to', 'geodirectory'),
627
-        'desc' => __('Set the relation between current post to related posts.', 'geodirectory'),
628
-        'id' => 'geodir_related_post_relate_to',
629
-        'css' => 'min-width:300px;',
630
-        'std' => 'category',
631
-        'type' => 'select',
632
-        'class' => 'chosen_select',
633
-        'options' => array_unique(array(
634
-            'category' => __('Categories', 'geodirectory'),
635
-            'tags' => __('Tags', 'geodirectory'),
636
-        ))
637
-    ),
625
+	array(
626
+		'name' => __('Relate to', 'geodirectory'),
627
+		'desc' => __('Set the relation between current post to related posts.', 'geodirectory'),
628
+		'id' => 'geodir_related_post_relate_to',
629
+		'css' => 'min-width:300px;',
630
+		'std' => 'category',
631
+		'type' => 'select',
632
+		'class' => 'chosen_select',
633
+		'options' => array_unique(array(
634
+			'category' => __('Categories', 'geodirectory'),
635
+			'tags' => __('Tags', 'geodirectory'),
636
+		))
637
+	),
638 638
 
639
-    array(
640
-        'name' => __('Layout', 'geodirectory'),
641
-        'desc' => __('Set the listing view of relate post on detail page', 'geodirectory'),
642
-        'id' => 'geodir_related_post_listing_view',
643
-        'css' => 'min-width:300px;',
644
-        'std' => 'gridview_onehalf',
645
-        'type' => 'select',
646
-        'class' => 'chosen_select',
647
-        'options' => array_unique(array(
648
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
649
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
650
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
651
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
652
-            'listview' => __('List view', 'geodirectory'),
653
-        ))
654
-    ),
639
+	array(
640
+		'name' => __('Layout', 'geodirectory'),
641
+		'desc' => __('Set the listing view of relate post on detail page', 'geodirectory'),
642
+		'id' => 'geodir_related_post_listing_view',
643
+		'css' => 'min-width:300px;',
644
+		'std' => 'gridview_onehalf',
645
+		'type' => 'select',
646
+		'class' => 'chosen_select',
647
+		'options' => array_unique(array(
648
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
649
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
650
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
651
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
652
+			'listview' => __('List view', 'geodirectory'),
653
+		))
654
+	),
655 655
 
656
-    array(
657
-        'name' => __('Sort by', 'geodirectory'),
658
-        'desc' => __('Set the related post listing sort by view', 'geodirectory'),
659
-        'id' => 'geodir_related_post_sortby',
660
-        'css' => 'min-width:300px;',
661
-        'std' => 'latest',
662
-        'type' => 'select',
663
-        'class' => 'chosen_select',
664
-        'options' => array_unique(array(
665
-            'latest' => __('Latest', 'geodirectory'),
666
-            'featured' => __('Featured', 'geodirectory'),
667
-            'high_review' => __('Review', 'geodirectory'),
668
-            'high_rating' => __('Rating', 'geodirectory'),
669
-            'random' => __('Random', 'geodirectory'),
670
-            'nearest' => __('Nearest', 'geodirectory'),
671
-        ))
672
-    ),
656
+	array(
657
+		'name' => __('Sort by', 'geodirectory'),
658
+		'desc' => __('Set the related post listing sort by view', 'geodirectory'),
659
+		'id' => 'geodir_related_post_sortby',
660
+		'css' => 'min-width:300px;',
661
+		'std' => 'latest',
662
+		'type' => 'select',
663
+		'class' => 'chosen_select',
664
+		'options' => array_unique(array(
665
+			'latest' => __('Latest', 'geodirectory'),
666
+			'featured' => __('Featured', 'geodirectory'),
667
+			'high_review' => __('Review', 'geodirectory'),
668
+			'high_rating' => __('Rating', 'geodirectory'),
669
+			'random' => __('Random', 'geodirectory'),
670
+			'nearest' => __('Nearest', 'geodirectory'),
671
+		))
672
+	),
673 673
 
674
-    array(
675
-        'name' => __('Number of posts:', 'geodirectory'),
676
-        'desc' => __('Enter number of posts to display on related posts listing', 'geodirectory'),
677
-        'id' => 'geodir_related_post_count',
678
-        'type' => 'text',
679
-        'css' => 'min-width:300px;',
680
-        'std' => '5' // Default value to show home top section
681
-    ),
674
+	array(
675
+		'name' => __('Number of posts:', 'geodirectory'),
676
+		'desc' => __('Enter number of posts to display on related posts listing', 'geodirectory'),
677
+		'id' => 'geodir_related_post_count',
678
+		'type' => 'text',
679
+		'css' => 'min-width:300px;',
680
+		'std' => '5' // Default value to show home top section
681
+	),
682 682
 
683
-    array(
684
-        'name' => __('Post excerpt', 'geodirectory'),
685
-        'desc' => __('Post content excerpt character count', 'geodirectory'),
686
-        'id' => 'geodir_related_post_excerpt',
687
-        'type' => 'text',
688
-        'css' => 'min-width:300px;',
689
-        'std' => '20' // Default value to show home top section
690
-    ),
683
+	array(
684
+		'name' => __('Post excerpt', 'geodirectory'),
685
+		'desc' => __('Post content excerpt character count', 'geodirectory'),
686
+		'id' => 'geodir_related_post_excerpt',
687
+		'type' => 'text',
688
+		'css' => 'min-width:300px;',
689
+		'std' => '20' // Default value to show home top section
690
+	),
691 691
 
692 692
 
693
-    array('type' => 'sectionend', 'id' => 'detail_page_related_post_settings'),
694
-    /* Detail Layout Settings end */
693
+	array('type' => 'sectionend', 'id' => 'detail_page_related_post_settings'),
694
+	/* Detail Layout Settings end */
695 695
 
696
-    /* Author Layout Settings Start */
696
+	/* Author Layout Settings Start */
697 697
 
698
-    array('name' => __('Author', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_author_settings '),
698
+	array('name' => __('Author', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_author_settings '),
699 699
 
700 700
 
701
-    array('name' => __('Author Page Layout Settings', 'geodirectory'),
702
-        'type' => 'sectionstart',
703
-        'desc' => '',
704
-        'id' => 'geodir_author_layout'),
701
+	array('name' => __('Author Page Layout Settings', 'geodirectory'),
702
+		'type' => 'sectionstart',
703
+		'desc' => '',
704
+		'id' => 'geodir_author_layout'),
705 705
 
706
-    array(
707
-        'name' => __('Author top section', 'geodirectory'),
708
-        'desc' => __('Show the top section of author page', 'geodirectory'),
709
-        'id' => 'geodir_show_author_top_section',
710
-        'type' => 'checkbox',
711
-        'std' => '1' // Default value to show home top section
712
-    ),
706
+	array(
707
+		'name' => __('Author top section', 'geodirectory'),
708
+		'desc' => __('Show the top section of author page', 'geodirectory'),
709
+		'id' => 'geodir_show_author_top_section',
710
+		'type' => 'checkbox',
711
+		'std' => '1' // Default value to show home top section
712
+	),
713 713
 
714
-    array(
715
-        'name' => __('Author right section', 'geodirectory'),
716
-        'desc' => __('Show the right section of author page', 'geodirectory'),
717
-        'id' => 'geodir_show_author_right_section',
718
-        'type' => 'checkbox',
719
-        'std' => '1' // Default value to show home top section
720
-    ),
714
+	array(
715
+		'name' => __('Author right section', 'geodirectory'),
716
+		'desc' => __('Show the right section of author page', 'geodirectory'),
717
+		'id' => 'geodir_show_author_right_section',
718
+		'type' => 'checkbox',
719
+		'std' => '1' // Default value to show home top section
720
+	),
721 721
 
722
-    array(
723
-        'name' => __('Width of author right section', 'geodirectory'),
724
-        'desc' => __('Enter the width of right section of author page in %', 'geodirectory'),
725
-        'id' => 'geodir_width_author_right_section',
726
-        'type' => 'text',
727
-        'css' => 'min-width:300px;',
728
-        'std' => '30' // Default value to show home top section
729
-    ),
722
+	array(
723
+		'name' => __('Width of author right section', 'geodirectory'),
724
+		'desc' => __('Enter the width of right section of author page in %', 'geodirectory'),
725
+		'id' => 'geodir_width_author_right_section',
726
+		'type' => 'text',
727
+		'css' => 'min-width:300px;',
728
+		'std' => '30' // Default value to show home top section
729
+	),
730 730
 
731
-    array(
732
-        'name' => __('Author content section view', 'geodirectory'),
733
-        'desc' => __('Set the listing view of author page', 'geodirectory'),
734
-        'id' => 'geodir_author_view',
735
-        'css' => 'min-width:300px;',
736
-        'std' => 'gridview_onehalf',
737
-        'type' => 'select',
738
-        'class' => 'chosen_select',
739
-        'options' => array_unique(array(
740
-            'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
741
-            'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
742
-            'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
743
-            'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
744
-            'listview' => __('List view', 'geodirectory'),
745
-        ))
746
-    ),
731
+	array(
732
+		'name' => __('Author content section view', 'geodirectory'),
733
+		'desc' => __('Set the listing view of author page', 'geodirectory'),
734
+		'id' => 'geodir_author_view',
735
+		'css' => 'min-width:300px;',
736
+		'std' => 'gridview_onehalf',
737
+		'type' => 'select',
738
+		'class' => 'chosen_select',
739
+		'options' => array_unique(array(
740
+			'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
741
+			'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
742
+			'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
743
+			'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
744
+			'listview' => __('List view', 'geodirectory'),
745
+		))
746
+	),
747 747
 
748
-    array(
749
-        'name' => __('Width of author content section', 'geodirectory'),
750
-        'desc' => __('Enter the width of content section of author page in %', 'geodirectory'),
751
-        'id' => 'geodir_width_author_contant_section',
752
-        'type' => 'text',
753
-        'css' => 'min-width:300px;',
754
-        'std' => '63' // Default value to show home top section
755
-    ),
748
+	array(
749
+		'name' => __('Width of author content section', 'geodirectory'),
750
+		'desc' => __('Enter the width of content section of author page in %', 'geodirectory'),
751
+		'id' => 'geodir_width_author_contant_section',
752
+		'type' => 'text',
753
+		'css' => 'min-width:300px;',
754
+		'std' => '63' // Default value to show home top section
755
+	),
756 756
 
757
-    array(
758
-        'name' => __('Author left section', 'geodirectory'),
759
-        'desc' => __('Show the left section of author page', 'geodirectory'),
760
-        'id' => 'geodir_show_author_left_section',
761
-        'type' => 'checkbox',
762
-        'std' => '0' // Default value to show home top section
763
-    ),
757
+	array(
758
+		'name' => __('Author left section', 'geodirectory'),
759
+		'desc' => __('Show the left section of author page', 'geodirectory'),
760
+		'id' => 'geodir_show_author_left_section',
761
+		'type' => 'checkbox',
762
+		'std' => '0' // Default value to show home top section
763
+	),
764 764
 
765
-    array(
766
-        'name' => __('Width of author left section', 'geodirectory'),
767
-        'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
768
-        'id' => 'geodir_width_author_left_section',
769
-        'type' => 'text',
770
-        'css' => 'min-width:300px;',
771
-        'std' => '30' // Default value to show home top section
772
-    ),
765
+	array(
766
+		'name' => __('Width of author left section', 'geodirectory'),
767
+		'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
768
+		'id' => 'geodir_width_author_left_section',
769
+		'type' => 'text',
770
+		'css' => 'min-width:300px;',
771
+		'std' => '30' // Default value to show home top section
772
+	),
773 773
 
774
-    array(
775
-        'name' => __('Author bottom section', 'geodirectory'),
776
-        'desc' => __('Show the bottom section of author page', 'geodirectory'),
777
-        'id' => 'geodir_show_author_bottom_section',
778
-        'type' => 'checkbox',
779
-        'std' => '0' // Default value to show home top section
780
-    ),
774
+	array(
775
+		'name' => __('Author bottom section', 'geodirectory'),
776
+		'desc' => __('Show the bottom section of author page', 'geodirectory'),
777
+		'id' => 'geodir_show_author_bottom_section',
778
+		'type' => 'checkbox',
779
+		'std' => '0' // Default value to show home top section
780
+	),
781 781
 
782 782
 
783
-    array(
784
-        'name' => __('Description word limit', 'geodirectory'),
785
-        'desc' => '',
786
-        'id' => 'geodir_author_desc_word_limit',
787
-        'type' => 'text',
788
-        'css' => 'min-width:300px;',
789
-        'std' => '50' // Default value to show home top section
790
-    ),
783
+	array(
784
+		'name' => __('Description word limit', 'geodirectory'),
785
+		'desc' => '',
786
+		'id' => 'geodir_author_desc_word_limit',
787
+		'type' => 'text',
788
+		'css' => 'min-width:300px;',
789
+		'std' => '50' // Default value to show home top section
790
+	),
791 791
 
792
-    array('type' => 'sectionend', 'id' => 'geodir_author_layout'),
793
-    /* Author Layout Settings end */
792
+	array('type' => 'sectionend', 'id' => 'geodir_author_layout'),
793
+	/* Author Layout Settings end */
794 794
 
795 795
 
796
-    /* Post Type Navigation Settings Start */
797
-    array('name' => __('Navigation', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_navigation_settings'),
796
+	/* Post Type Navigation Settings Start */
797
+	array('name' => __('Navigation', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_navigation_settings'),
798 798
 
799 799
 
800
-    /* Post Type Navigation Settings Start */
800
+	/* Post Type Navigation Settings Start */
801 801
 
802
-    array('name' => __('Navigation Locations', 'geodirectory'),
803
-        'type' => 'sectionstart',
804
-        'desc' => '',
805
-        'id' => 'geodir_navigation_locations'),
802
+	array('name' => __('Navigation Locations', 'geodirectory'),
803
+		'type' => 'sectionstart',
804
+		'desc' => '',
805
+		'id' => 'geodir_navigation_locations'),
806 806
 
807
-    array(
808
-        'name' => __('Show geodirectory navigation in selected menu locations', 'geodirectory'),
809
-        'desc' => '',
810
-        'tip' => '',
811
-        'id' => 'geodir_theme_location_nav',
812
-        'css' => 'min-width:300px;',
813
-        'std' => array(),
814
-        'type' => 'multiselect',
815
-        'placeholder_text' => __('Select menu locations', 'geodirectory'),
816
-        'class' => 'chosen_select',
817
-        'options' => array_unique(geodir_theme_location_setting_fun())
818
-    ),
819
-    array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
820
-
821
-
822
-    array('name' => __('Navigation Settings', 'geodirectory'),
823
-        'type' => 'sectionstart',
824
-        'desc' => '',
825
-        'id' => 'geodir_navigation_options'),
807
+	array(
808
+		'name' => __('Show geodirectory navigation in selected menu locations', 'geodirectory'),
809
+		'desc' => '',
810
+		'tip' => '',
811
+		'id' => 'geodir_theme_location_nav',
812
+		'css' => 'min-width:300px;',
813
+		'std' => array(),
814
+		'type' => 'multiselect',
815
+		'placeholder_text' => __('Select menu locations', 'geodirectory'),
816
+		'class' => 'chosen_select',
817
+		'options' => array_unique(geodir_theme_location_setting_fun())
818
+	),
819
+	array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
826 820
 
827 821
 
828
-    array(
829
-        'name' => __('Show add listing navigation in menu', 'geodirectory'),
830
-        'desc' => sprintf(__('Show add listing navigation in main menu? (untick to disable) If you disable this option, none of the add listing link will appear in main navigation.', 'geodirectory')),
831
-        'id' => 'geodir_show_addlisting_nav',
832
-        'std' => '1',
833
-        'type' => 'checkbox'
834
-    ),
822
+	array('name' => __('Navigation Settings', 'geodirectory'),
823
+		'type' => 'sectionstart',
824
+		'desc' => '',
825
+		'id' => 'geodir_navigation_options'),
835 826
 
836
-    array(
837
-        'name' => __('Show listings navigation in menu', 'geodirectory'),
838
-        'desc' => sprintf(__('Show listing navigation in main menu? (untick to disable) If you disable this option, none of the listing link will appear in main navigation.', 'geodirectory')),
839
-        'id' => 'geodir_show_listing_nav',
840
-        'std' => '1',
841
-        'type' => 'checkbox'
842
-    ),
843 827
 
844
-    array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
828
+	array(
829
+		'name' => __('Show add listing navigation in menu', 'geodirectory'),
830
+		'desc' => sprintf(__('Show add listing navigation in main menu? (untick to disable) If you disable this option, none of the add listing link will appear in main navigation.', 'geodirectory')),
831
+		'id' => 'geodir_show_addlisting_nav',
832
+		'std' => '1',
833
+		'type' => 'checkbox'
834
+	),
845 835
 
836
+	array(
837
+		'name' => __('Show listings navigation in menu', 'geodirectory'),
838
+		'desc' => sprintf(__('Show listing navigation in main menu? (untick to disable) If you disable this option, none of the listing link will appear in main navigation.', 'geodirectory')),
839
+		'id' => 'geodir_show_listing_nav',
840
+		'std' => '1',
841
+		'type' => 'checkbox'
842
+	),
846 843
 
847
-    array('name' => __('Post Type Navigation Settings', 'geodirectory'),
848
-        'type' => 'sectionstart',
849
-        'desc' => '',
850
-        'id' => 'geodir_post_type_navigation_layout'),
851
-    array(
852
-        'name' => __('Show listing link in main navigation', 'geodirectory'),
853
-        'desc' => '',
854
-        'tip' => '',
855
-        'id' => 'geodir_add_posttype_in_main_nav',
856
-        'css' => 'min-width:300px;',
857
-        'std' => array(),
858
-        'type' => 'multiselect',
859
-        'placeholder_text' => __('Select post types', 'geodirectory'),
860
-        'class' => 'chosen_select',
861
-        'options' => array_unique(geodir_post_type_setting_fun())
862
-    ),
844
+	array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
863 845
 
864
-    array(
865
-        'name' => __('Show listing link in listing navigation', 'geodirectory'),
866
-        'desc' => '',
867
-        'tip' => '',
868
-        'id' => 'geodir_add_posttype_in_listing_nav',
869
-        'css' => 'min-width:300px;',
870
-        'std' => geodir_get_posttypes(),
871
-        'type' => 'multiselect',
872
-        'placeholder_text' => __('Select post types', 'geodirectory'),
873
-        'class' => 'chosen_select',
874
-        'options' => array_unique(geodir_post_type_setting_fun())
875
-    ),
876 846
 
877
-    array(
878
-        'name' => __('Allow post type to add from frontend', 'geodirectory'),
879
-        'desc' => '',
880
-        'tip' => '',
881
-        'id' => 'geodir_allow_posttype_frontend',
882
-        'css' => 'min-width:300px;',
883
-        'std' => geodir_get_posttypes(),
884
-        'type' => 'multiselect',
885
-        'placeholder_text' => __('Select post types', 'geodirectory'),
886
-        'class' => 'chosen_select',
887
-        'options' => array_unique(geodir_post_type_setting_fun())
888
-    ),
847
+	array('name' => __('Post Type Navigation Settings', 'geodirectory'),
848
+		'type' => 'sectionstart',
849
+		'desc' => '',
850
+		'id' => 'geodir_post_type_navigation_layout'),
851
+	array(
852
+		'name' => __('Show listing link in main navigation', 'geodirectory'),
853
+		'desc' => '',
854
+		'tip' => '',
855
+		'id' => 'geodir_add_posttype_in_main_nav',
856
+		'css' => 'min-width:300px;',
857
+		'std' => array(),
858
+		'type' => 'multiselect',
859
+		'placeholder_text' => __('Select post types', 'geodirectory'),
860
+		'class' => 'chosen_select',
861
+		'options' => array_unique(geodir_post_type_setting_fun())
862
+	),
889 863
 
890
-    array(
891
-        'name' => __('Show add listing link in main navigation', 'geodirectory'),
892
-        'desc' => '',
893
-        'tip' => '',
894
-        'id' => 'geodir_add_listing_link_main_nav',
895
-        'css' => 'min-width:300px;',
896
-        'std' => array(),
897
-        'type' => 'multiselect',
898
-        'placeholder_text' => __('Select post types', 'geodirectory'),
899
-        'class' => 'chosen_select',
900
-        'options' => array_unique(geodir_post_type_setting_fun())
901
-    ),
864
+	array(
865
+		'name' => __('Show listing link in listing navigation', 'geodirectory'),
866
+		'desc' => '',
867
+		'tip' => '',
868
+		'id' => 'geodir_add_posttype_in_listing_nav',
869
+		'css' => 'min-width:300px;',
870
+		'std' => geodir_get_posttypes(),
871
+		'type' => 'multiselect',
872
+		'placeholder_text' => __('Select post types', 'geodirectory'),
873
+		'class' => 'chosen_select',
874
+		'options' => array_unique(geodir_post_type_setting_fun())
875
+	),
902 876
 
903
-    array(
904
-        'name' => __('Show add listing link in add listing navigation', 'geodirectory'),
905
-        'desc' => '',
906
-        'tip' => '',
907
-        'id' => 'geodir_add_listing_link_add_listing_nav',
908
-        'css' => 'min-width:300px;',
909
-        'std' => geodir_get_posttypes(),
910
-        'type' => 'multiselect',
911
-        'class' => 'chosen_select',
912
-        'options' => array_unique(geodir_post_type_setting_fun())
913
-    ),
877
+	array(
878
+		'name' => __('Allow post type to add from frontend', 'geodirectory'),
879
+		'desc' => '',
880
+		'tip' => '',
881
+		'id' => 'geodir_allow_posttype_frontend',
882
+		'css' => 'min-width:300px;',
883
+		'std' => geodir_get_posttypes(),
884
+		'type' => 'multiselect',
885
+		'placeholder_text' => __('Select post types', 'geodirectory'),
886
+		'class' => 'chosen_select',
887
+		'options' => array_unique(geodir_post_type_setting_fun())
888
+	),
914 889
 
915
-    array('type' => 'sectionend', 'id' => 'geodir_post_type_navigation_layout'),
890
+	array(
891
+		'name' => __('Show add listing link in main navigation', 'geodirectory'),
892
+		'desc' => '',
893
+		'tip' => '',
894
+		'id' => 'geodir_add_listing_link_main_nav',
895
+		'css' => 'min-width:300px;',
896
+		'std' => array(),
897
+		'type' => 'multiselect',
898
+		'placeholder_text' => __('Select post types', 'geodirectory'),
899
+		'class' => 'chosen_select',
900
+		'options' => array_unique(geodir_post_type_setting_fun())
901
+	),
916 902
 
903
+	array(
904
+		'name' => __('Show add listing link in add listing navigation', 'geodirectory'),
905
+		'desc' => '',
906
+		'tip' => '',
907
+		'id' => 'geodir_add_listing_link_add_listing_nav',
908
+		'css' => 'min-width:300px;',
909
+		'std' => geodir_get_posttypes(),
910
+		'type' => 'multiselect',
911
+		'class' => 'chosen_select',
912
+		'options' => array_unique(geodir_post_type_setting_fun())
913
+	),
917 914
 
918
-    array('name' => __('User Dashboard Post Type Navigation Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_user_dashboard_post_type '),
915
+	array('type' => 'sectionend', 'id' => 'geodir_post_type_navigation_layout'),
919 916
 
920 917
 
921
-    array(
922
-        'name' => __('Show add listing link in user dashboard', 'geodirectory'),
923
-        'desc' => '',
924
-        'tip' => '',
925
-        'id' => 'geodir_add_listing_link_user_dashboard',
926
-        'css' => 'min-width:300px;',
927
-        'std' => geodir_get_posttypes(),
928
-        'type' => 'multiselect',
929
-        'placeholder_text' => __('Select post types', 'geodirectory'),
930
-        'class' => 'chosen_select',
931
-        'options' => array_unique(geodir_post_type_setting_fun())
932
-    ),
918
+	array('name' => __('User Dashboard Post Type Navigation Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_user_dashboard_post_type '),
933 919
 
934
-    array(
935
-        'name' => __('Show favorite link in user dashboard', 'geodirectory'),
936
-        'desc' => __('Option will not appear if user does not have a favorite of that post type', 'geodirectory'),
937
-        'tip' => '',
938
-        'id' => 'geodir_favorite_link_user_dashboard',
939
-        'css' => 'min-width:300px;',
940
-        'std' => geodir_get_posttypes(),
941
-        'type' => 'multiselect',
942
-        'placeholder_text' => __('Select post types', 'geodirectory'),
943
-        'class' => 'chosen_select',
944
-        'options' => array_unique(geodir_post_type_setting_fun())
945
-    ),
946 920
 
947
-    array(
948
-        'name' => __('Show listing link in user dashboard', 'geodirectory'),
949
-        'desc' => __('Option will not appear if user does not have his/her own listing of that post type', 'geodirectory'),
950
-        'tip' => '',
951
-        'id' => 'geodir_listing_link_user_dashboard',
952
-        'css' => 'min-width:300px;',
953
-        'std' => geodir_get_posttypes(),
954
-        'type' => 'multiselect',
955
-        'placeholder_text' => __('Select post types', 'geodirectory'),
956
-        'class' => 'chosen_select',
957
-        'options' => array_unique(geodir_post_type_setting_fun())
958
-    ),
959
-
960
-    array('type' => 'sectionend', 'id' => 'geodir_user_dashboard_post_type'),
961
-    /* Post Type Navigation Settings End */
962
-
963
-    /* Script Settings Start */
964
-    array('name' => __('Scripts', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_script_settings '),
965
-
966
-    /*
921
+	array(
922
+		'name' => __('Show add listing link in user dashboard', 'geodirectory'),
923
+		'desc' => '',
924
+		'tip' => '',
925
+		'id' => 'geodir_add_listing_link_user_dashboard',
926
+		'css' => 'min-width:300px;',
927
+		'std' => geodir_get_posttypes(),
928
+		'type' => 'multiselect',
929
+		'placeholder_text' => __('Select post types', 'geodirectory'),
930
+		'class' => 'chosen_select',
931
+		'options' => array_unique(geodir_post_type_setting_fun())
932
+	),
933
+
934
+	array(
935
+		'name' => __('Show favorite link in user dashboard', 'geodirectory'),
936
+		'desc' => __('Option will not appear if user does not have a favorite of that post type', 'geodirectory'),
937
+		'tip' => '',
938
+		'id' => 'geodir_favorite_link_user_dashboard',
939
+		'css' => 'min-width:300px;',
940
+		'std' => geodir_get_posttypes(),
941
+		'type' => 'multiselect',
942
+		'placeholder_text' => __('Select post types', 'geodirectory'),
943
+		'class' => 'chosen_select',
944
+		'options' => array_unique(geodir_post_type_setting_fun())
945
+	),
946
+
947
+	array(
948
+		'name' => __('Show listing link in user dashboard', 'geodirectory'),
949
+		'desc' => __('Option will not appear if user does not have his/her own listing of that post type', 'geodirectory'),
950
+		'tip' => '',
951
+		'id' => 'geodir_listing_link_user_dashboard',
952
+		'css' => 'min-width:300px;',
953
+		'std' => geodir_get_posttypes(),
954
+		'type' => 'multiselect',
955
+		'placeholder_text' => __('Select post types', 'geodirectory'),
956
+		'class' => 'chosen_select',
957
+		'options' => array_unique(geodir_post_type_setting_fun())
958
+	),
959
+
960
+	array('type' => 'sectionend', 'id' => 'geodir_user_dashboard_post_type'),
961
+	/* Post Type Navigation Settings End */
962
+
963
+	/* Script Settings Start */
964
+	array('name' => __('Scripts', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_script_settings '),
965
+
966
+	/*
967 967
     array( 	'name' => __( 'Add/Remove Scripts', 'geodirectory' ),
968 968
                 'type' => 'sectionstart',
969 969
                 'desc' => '',
@@ -989,190 +989,190 @@  discard block
 block discarded – undo
989 989
 
990 990
     */
991 991
 
992
-    array('name' => __('GD Lazy Load Images', 'geodirectory'),
993
-        'type' => 'sectionstart',
994
-        'desc' => '',
995
-        'id' => 'geodir_gdll_settings'),
992
+	array('name' => __('GD Lazy Load Images', 'geodirectory'),
993
+		'type' => 'sectionstart',
994
+		'desc' => '',
995
+		'id' => 'geodir_gdll_settings'),
996 996
 
997
-    array(
998
-        'name' => __('Enable lazy load images?', 'geodirectory'),
999
-        'desc' => __('GD images will be loaded only when visible on the page', 'geodirectory'),
1000
-        'id' => 'geodir_lazy_load',
1001
-        'type' => 'checkbox',
1002
-        'std' => '1' // Default value to show home top section
1003
-    ),
1004
-    array('type' => 'sectionend', 'id' => 'geodir_gdll_settings'),
997
+	array(
998
+		'name' => __('Enable lazy load images?', 'geodirectory'),
999
+		'desc' => __('GD images will be loaded only when visible on the page', 'geodirectory'),
1000
+		'id' => 'geodir_lazy_load',
1001
+		'type' => 'checkbox',
1002
+		'std' => '1' // Default value to show home top section
1003
+	),
1004
+	array('type' => 'sectionend', 'id' => 'geodir_gdll_settings'),
1005 1005
     
1006 1006
 
1007
-    array('name' => __('Script Settings', 'geodirectory'),
1008
-        'type' => 'sectionstart',
1009
-        'desc' => '',
1010
-        'id' => 'geodir_script_settings'),
1007
+	array('name' => __('Script Settings', 'geodirectory'),
1008
+		'type' => 'sectionstart',
1009
+		'desc' => '',
1010
+		'id' => 'geodir_script_settings'),
1011 1011
 
1012
-    array(
1013
-        'name' => __('Custom style css code', 'geodirectory'),
1014
-        'desc' => '',
1015
-        'id' => 'geodir_coustem_css',
1016
-        'type' => 'textarea',
1017
-        'css' => 'min-width:300px;',
1018
-        'std' => '' // Default value for the page title - changed in settings
1019
-    ),
1012
+	array(
1013
+		'name' => __('Custom style css code', 'geodirectory'),
1014
+		'desc' => '',
1015
+		'id' => 'geodir_coustem_css',
1016
+		'type' => 'textarea',
1017
+		'css' => 'min-width:300px;',
1018
+		'std' => '' // Default value for the page title - changed in settings
1019
+	),
1020 1020
 
1021
-    array(
1022
-        'name' => __('Header script code', 'geodirectory'),
1023
-        'desc' => '',
1024
-        'id' => 'geodir_header_scripts',
1025
-        'type' => 'textarea',
1026
-        'css' => 'min-width:300px;',
1027
-        'std' => '' // Default value for the page title - changed in settings
1028
-    ),
1021
+	array(
1022
+		'name' => __('Header script code', 'geodirectory'),
1023
+		'desc' => '',
1024
+		'id' => 'geodir_header_scripts',
1025
+		'type' => 'textarea',
1026
+		'css' => 'min-width:300px;',
1027
+		'std' => '' // Default value for the page title - changed in settings
1028
+	),
1029 1029
 
1030
-    array(
1031
-        'name' => __('Footer script code', 'geodirectory'),
1032
-        'desc' => '',
1033
-        'id' => 'geodir_footer_scripts',
1034
-        'type' => 'textarea',
1035
-        'css' => 'min-width:300px;',
1036
-        'std' => '' // Default value for the page title - changed in settings
1037
-    ),
1030
+	array(
1031
+		'name' => __('Footer script code', 'geodirectory'),
1032
+		'desc' => '',
1033
+		'id' => 'geodir_footer_scripts',
1034
+		'type' => 'textarea',
1035
+		'css' => 'min-width:300px;',
1036
+		'std' => '' // Default value for the page title - changed in settings
1037
+	),
1038 1038
 
1039
-    array('type' => 'sectionend', 'id' => 'geodir_script_settings'),
1040
-    /* Script Settings End */
1039
+	array('type' => 'sectionend', 'id' => 'geodir_script_settings'),
1040
+	/* Script Settings End */
1041 1041
 
1042
-    /* Map Settings Start */
1043
-    array('name' => __('Map', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_map_settings '),
1042
+	/* Map Settings Start */
1043
+	array('name' => __('Map', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_map_settings '),
1044 1044
 
1045 1045
 
1046
-    // Google API key
1047
-    array(
1048
-        'name' => __('Google Maps API KEY', 'geodirectory'),
1049
-        'type' => 'sectionstart',
1050
-        'desc' => '',
1051
-        'id' => 'geodir_google_api_key'
1052
-    ),
1053
-    array(
1054
-        'name' => __('Google Maps API KEY', 'geodirectory'),
1055
-        'desc' => sprintf(
1056
-            __('This is a requirement to use Google Maps, you can get a key from <a href="%s" target="_blank">here</a> OR you can set GD to use Open Street Maps below under Select Maps API setting.   (<a href="%s" target="_blank">How to add a Google API KEY?</a>)', 'geodirectory'),
1057
-            'https://console.developers.google.com/flows/enableapi?apiid=static_maps_backend,street_view_image_backend,maps_embed_backend,places_backend,geocoding_backend,directions_backend,distance_matrix_backend,geolocation,elevation_backend,timezone_backend,maps_backend&keyType=CLIENT_SIDE&reusekey=true','https://wpgeodirectory.com/docs/add-google-api-key/' ),
1058
-        'tip' => '',
1059
-        'id' => 'geodir_google_api_key',
1060
-        'css' => 'min-width:300px;',
1061
-        'std' => '',
1062
-        'type' => 'map-key',
1063
-    ),
1064
-    array(
1065
-        'type' => 'sectionend',
1066
-        'id' => 'geodir_google_api_key'
1067
-    ),
1046
+	// Google API key
1047
+	array(
1048
+		'name' => __('Google Maps API KEY', 'geodirectory'),
1049
+		'type' => 'sectionstart',
1050
+		'desc' => '',
1051
+		'id' => 'geodir_google_api_key'
1052
+	),
1053
+	array(
1054
+		'name' => __('Google Maps API KEY', 'geodirectory'),
1055
+		'desc' => sprintf(
1056
+			__('This is a requirement to use Google Maps, you can get a key from <a href="%s" target="_blank">here</a> OR you can set GD to use Open Street Maps below under Select Maps API setting.   (<a href="%s" target="_blank">How to add a Google API KEY?</a>)', 'geodirectory'),
1057
+			'https://console.developers.google.com/flows/enableapi?apiid=static_maps_backend,street_view_image_backend,maps_embed_backend,places_backend,geocoding_backend,directions_backend,distance_matrix_backend,geolocation,elevation_backend,timezone_backend,maps_backend&keyType=CLIENT_SIDE&reusekey=true','https://wpgeodirectory.com/docs/add-google-api-key/' ),
1058
+		'tip' => '',
1059
+		'id' => 'geodir_google_api_key',
1060
+		'css' => 'min-width:300px;',
1061
+		'std' => '',
1062
+		'type' => 'map-key',
1063
+	),
1064
+	array(
1065
+		'type' => 'sectionend',
1066
+		'id' => 'geodir_google_api_key'
1067
+	),
1068 1068
 
1069
-    /* Untick the category by default on home map */
1070
-    array(
1071
-        'name' => __('Home Map Settings', 'geodirectory'),
1072
-        'type' => 'sectionstart',
1073
-        'desc' => '',
1074
-        'id' => 'geodir_home_map_section'
1075
-    ),
1076
-    array(
1077
-        'name' => __('Select category to untick by default on map', 'geodirectory'),
1078
-        'desc' => __('Select category to untick by default on the home map.', 'geodirectory'),
1079
-        'tip' => '',
1080
-        'id' => 'geodir_home_map_untick',
1081
-        'css' => 'min-width:300px;',
1082
-        'std' => '',
1083
-        'type' => 'multiselect',
1084
-        'placeholder_text' => __('Select category', 'geodirectory'),
1085
-        'class' => 'chosen_select',
1086
-        'options' => geodir_home_map_cats_key_value_array()
1087
-    ),
1088
-    array(
1089
-        'type' => 'sectionend',
1090
-        'id' => 'geodir_home_map_section'
1091
-    ),
1069
+	/* Untick the category by default on home map */
1070
+	array(
1071
+		'name' => __('Home Map Settings', 'geodirectory'),
1072
+		'type' => 'sectionstart',
1073
+		'desc' => '',
1074
+		'id' => 'geodir_home_map_section'
1075
+	),
1076
+	array(
1077
+		'name' => __('Select category to untick by default on map', 'geodirectory'),
1078
+		'desc' => __('Select category to untick by default on the home map.', 'geodirectory'),
1079
+		'tip' => '',
1080
+		'id' => 'geodir_home_map_untick',
1081
+		'css' => 'min-width:300px;',
1082
+		'std' => '',
1083
+		'type' => 'multiselect',
1084
+		'placeholder_text' => __('Select category', 'geodirectory'),
1085
+		'class' => 'chosen_select',
1086
+		'options' => geodir_home_map_cats_key_value_array()
1087
+	),
1088
+	array(
1089
+		'type' => 'sectionend',
1090
+		'id' => 'geodir_home_map_section'
1091
+	),
1092 1092
 
1093
-    array(
1094
-        'name' => __('Add Listing Map Settings', 'geodirectory'),
1095
-        'type' => 'sectionstart',
1096
-        'desc' => '',
1097
-        'id' => 'geodir_add_listing_map_section'
1098
-    ),
1099
-    array(
1100
-        'name' => __('Disable mouse scroll on details page map tab', 'geodirectory'),
1101
-        'desc' => __('Stops the mouse scroll zooming the map (home and listings settings set from widget)', 'geodirectory'),
1102
-        'id' => 'geodir_add_listing_mouse_scroll',
1103
-        'type' => 'checkbox',
1104
-        'std' => '0' // Default value to show home top section
1105
-    ),
1106
-    array(
1107
-        'type' => 'sectionend',
1108
-        'id' => 'geodir_add_listing_map_section'
1109
-    ),
1093
+	array(
1094
+		'name' => __('Add Listing Map Settings', 'geodirectory'),
1095
+		'type' => 'sectionstart',
1096
+		'desc' => '',
1097
+		'id' => 'geodir_add_listing_map_section'
1098
+	),
1099
+	array(
1100
+		'name' => __('Disable mouse scroll on details page map tab', 'geodirectory'),
1101
+		'desc' => __('Stops the mouse scroll zooming the map (home and listings settings set from widget)', 'geodirectory'),
1102
+		'id' => 'geodir_add_listing_mouse_scroll',
1103
+		'type' => 'checkbox',
1104
+		'std' => '0' // Default value to show home top section
1105
+	),
1106
+	array(
1107
+		'type' => 'sectionend',
1108
+		'id' => 'geodir_add_listing_map_section'
1109
+	),
1110 1110
 
1111 1111
 
1112
-    array('name' => __('Default map settings', 'geodirectory'),
1113
-        'type' => 'sectionstart',
1114
-        'desc' => '',
1115
-        'id' => 'geodir_map_default_settings'),
1112
+	array('name' => __('Default map settings', 'geodirectory'),
1113
+		'type' => 'sectionstart',
1114
+		'desc' => '',
1115
+		'id' => 'geodir_map_default_settings'),
1116 1116
 
1117
-    array(
1118
-        'name' => '',
1119
-        'desc' => '',
1120
-        'id' => 'map_default_settings',
1121
-        'type' => 'map_default_settings',
1122
-        'css' => 'min-width:300px;',
1123
-        'std' => '' // Default value for the page title - changed in settings
1124
-    ),
1117
+	array(
1118
+		'name' => '',
1119
+		'desc' => '',
1120
+		'id' => 'map_default_settings',
1121
+		'type' => 'map_default_settings',
1122
+		'css' => 'min-width:300px;',
1123
+		'std' => '' // Default value for the page title - changed in settings
1124
+	),
1125 1125
 
1126
-    array(
1127
-        'name' => __('Upload map default marker icon', 'geodirectory'),
1128
-        'desc' => '',
1129
-        'id' => 'geodir_default_marker_icon',
1130
-        'type' => 'file',
1131
-        'std' => '0',
1132
-        'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section
1133
-    ),
1134
-    // add option that allows enable/disable map dragging to phone devices
1135
-    array(
1136
-        'name' => __('Show button control on map to enable/disable dragging', 'geodirectory'),
1137
-        'desc' => __('If checked, it displays button control to enable/disable dragging on google maps for phone devices', 'geodirectory'),
1138
-        'id' => 'geodir_map_onoff_dragging',
1139
-        'type' => 'checkbox',
1140
-        'std' => '0' // Default value to show home top section
1141
-    ),
1142
-    array(
1143
-        'name' => __('Select Maps API', 'geodirectory'),
1144
-        'desc' => __('- Google Maps API will force to load Google JS library only.<br>- OpenStreetMap API will force to load OpenStreetMap JS library only.<br>- Load Automatic will load Google JS library first, but if Google maps JS library not loaded it then loads the OpenStreetMap JS library to load the maps (recommended for regions where Google maps banned).<br>- Disable Maps will disable and hides maps for entire site.', 'geodirectory'),
1145
-        'tip' => '',
1146
-        'id' => 'geodir_load_map',
1147
-        'css' => 'min-width:300px;',
1148
-        'std' => 'auto',
1149
-        'type' => 'select',
1150
-        'placeholder_text' => __('Select Map', 'geodirectory'),
1151
-        'options' => array(
1152
-                        'auto' => __('Load Automatic', 'geodirectory'),
1153
-                        'google' => __('Load Google Maps API', 'geodirectory'),
1154
-                        'osm' => __('Load OpenStreetMap API', 'geodirectory'),
1155
-                        'none' => __('Disable Maps', 'geodirectory')
1156
-                    )
1157
-    ),
1158
-
1159
-    array('type' => 'sectionend', 'id' => 'geodir_map_default_settings'),
1160
-
1161
-    array('name' => __('Show / hide post type and category on map', 'geodirectory'),
1162
-        'type' => 'sectionstart',
1163
-        'desc' => '',
1164
-        'id' => 'geodir_map_settings'),
1126
+	array(
1127
+		'name' => __('Upload map default marker icon', 'geodirectory'),
1128
+		'desc' => '',
1129
+		'id' => 'geodir_default_marker_icon',
1130
+		'type' => 'file',
1131
+		'std' => '0',
1132
+		'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section
1133
+	),
1134
+	// add option that allows enable/disable map dragging to phone devices
1135
+	array(
1136
+		'name' => __('Show button control on map to enable/disable dragging', 'geodirectory'),
1137
+		'desc' => __('If checked, it displays button control to enable/disable dragging on google maps for phone devices', 'geodirectory'),
1138
+		'id' => 'geodir_map_onoff_dragging',
1139
+		'type' => 'checkbox',
1140
+		'std' => '0' // Default value to show home top section
1141
+	),
1142
+	array(
1143
+		'name' => __('Select Maps API', 'geodirectory'),
1144
+		'desc' => __('- Google Maps API will force to load Google JS library only.<br>- OpenStreetMap API will force to load OpenStreetMap JS library only.<br>- Load Automatic will load Google JS library first, but if Google maps JS library not loaded it then loads the OpenStreetMap JS library to load the maps (recommended for regions where Google maps banned).<br>- Disable Maps will disable and hides maps for entire site.', 'geodirectory'),
1145
+		'tip' => '',
1146
+		'id' => 'geodir_load_map',
1147
+		'css' => 'min-width:300px;',
1148
+		'std' => 'auto',
1149
+		'type' => 'select',
1150
+		'placeholder_text' => __('Select Map', 'geodirectory'),
1151
+		'options' => array(
1152
+						'auto' => __('Load Automatic', 'geodirectory'),
1153
+						'google' => __('Load Google Maps API', 'geodirectory'),
1154
+						'osm' => __('Load OpenStreetMap API', 'geodirectory'),
1155
+						'none' => __('Disable Maps', 'geodirectory')
1156
+					)
1157
+	),
1165 1158
 
1166
-    array(
1167
-        'name' => __('Select Map Category', 'geodirectory'),
1168
-        'desc' => '',
1169
-        'id' => 'geodir_map_settings',
1170
-        'type' => 'map',
1171
-        'css' => 'min-width:300px;',
1172
-        'std' => '' // Default value for the page title - changed in settings
1173
-    ),
1174
-
1175
-    array('type' => 'sectionend', 'id' => 'geodir_map_settings'),
1176
-    /* Map Settings End */
1159
+	array('type' => 'sectionend', 'id' => 'geodir_map_default_settings'),
1160
+
1161
+	array('name' => __('Show / hide post type and category on map', 'geodirectory'),
1162
+		'type' => 'sectionstart',
1163
+		'desc' => '',
1164
+		'id' => 'geodir_map_settings'),
1165
+
1166
+	array(
1167
+		'name' => __('Select Map Category', 'geodirectory'),
1168
+		'desc' => '',
1169
+		'id' => 'geodir_map_settings',
1170
+		'type' => 'map',
1171
+		'css' => 'min-width:300px;',
1172
+		'std' => '' // Default value for the page title - changed in settings
1173
+	),
1174
+
1175
+	array('type' => 'sectionend', 'id' => 'geodir_map_settings'),
1176
+	/* Map Settings End */
1177 1177
 
1178 1178
 )); // End Design settings
Please login to merge, or discard this patch.