Test Failed
Push — master ( f32492...d47f34 )
by Stiofan
01:56
created
geodirectory-functions/custom_field_html.php 3 patches
Braces   +17 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,16 +19,18 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!isset($field_info->post_type)) {
21 21
     $post_type = sanitize_text_field($_REQUEST['listing_type']);
22
-} else
23
-    $post_type = $field_info->post_type;
22
+} else {
23
+    $post_type = $field_info->post_type;
24
+}
24 25
 
25 26
 $field_info = stripslashes_deep($field_info); // strip slashes from labels
26 27
 
27 28
 $nonce = wp_create_nonce('custom_fields_' . $result_str);
28 29
 
29 30
 $field_admin_title = '';
30
-if (isset($field_info->admin_title))
31
-    $field_admin_title = $field_info->admin_title;
31
+if (isset($field_info->admin_title)) {
32
+    $field_admin_title = $field_info->admin_title;
33
+}
32 34
 
33 35
 $default = isset($field_info->is_admin) ? $field_info->is_admin : '';
34 36
 
@@ -52,8 +54,11 @@  discard block
 block discarded – undo
52 54
 
53 55
         <?php if ($default): ?>
54 56
             <div title="<?php _e('Drag and drop to sort', 'geodirectory'); ?>" class="handlediv move"></div>
55
-        <?php else: ?>
56
-            <div title="<?php _e('Click to remove field', 'geodirectory'); ?>"
57
+        <?php else {
58
+	: ?>
59
+            <div title="<?php _e('Click to remove field', 'geodirectory');
60
+}
61
+?>"
57 62
                  onclick="delete_field('<?php echo $result_str; ?>', '<?php echo $nonce; ?>')"
58 63
                  class="handlediv close"></div>
59 64
         <?php endif;
@@ -255,11 +260,13 @@  discard block
 block discarded – undo
255 260
 
256 261
                     <?php
257 262
                     $selected = '';
258
-                    if (isset($field_info->extra_fields))
259
-                        $advanced_editor = unserialize($field_info->extra_fields);
263
+                    if (isset($field_info->extra_fields)) {
264
+                                            $advanced_editor = unserialize($field_info->extra_fields);
265
+                    }
260 266
 
261
-                    if (!empty($advanced_editor) && is_array($advanced_editor) && in_array('1', $advanced_editor))
262
-                        $selected = 'checked="checked"';
267
+                    if (!empty($advanced_editor) && is_array($advanced_editor) && in_array('1', $advanced_editor)) {
268
+                                            $selected = 'checked="checked"';
269
+                    }
263 270
                     ?>
264 271
 
265 272
                     <input type="checkbox" name="advanced_editor[]" id="advanced_editor"
Please login to merge, or discard this patch.
Indentation   +229 added lines, -229 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 global $post_type;
19 19
 
20 20
 if (!isset($field_info->post_type)) {
21
-    $post_type = sanitize_text_field($_REQUEST['listing_type']);
21
+	$post_type = sanitize_text_field($_REQUEST['listing_type']);
22 22
 } else
23
-    $post_type = $field_info->post_type;
23
+	$post_type = $field_info->post_type;
24 24
 
25 25
 $field_info = stripslashes_deep($field_info); // strip slashes from labels
26 26
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
 $field_admin_title = '';
30 30
 if (isset($field_info->admin_title))
31
-    $field_admin_title = $field_info->admin_title;
31
+	$field_admin_title = $field_info->admin_title;
32 32
 
33 33
 $default = isset($field_info->is_admin) ? $field_info->is_admin : '';
34 34
 
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
          ondblclick="show_hide('field_frm<?php echo $result_str; ?>')">
48 48
         <?php
49 49
 
50
-        $nonce = wp_create_nonce('custom_fields_' . $result_str);
51
-        ?>
50
+		$nonce = wp_create_nonce('custom_fields_' . $result_str);
51
+		?>
52 52
 
53 53
         <?php if ($default): ?>
54 54
             <div title="<?php _e('Drag and drop to sort', 'geodirectory'); ?>" class="handlediv move"></div>
@@ -57,42 +57,42 @@  discard block
 block discarded – undo
57 57
                  onclick="delete_field('<?php echo $result_str; ?>', '<?php echo $nonce; ?>')"
58 58
                  class="handlediv close"></div>
59 59
         <?php endif;
60
-        if ($field_type == 'fieldset') {
61
-            ?>
60
+		if ($field_type == 'fieldset') {
61
+			?>
62 62
 
63 63
             <b style="cursor:pointer;"
64 64
                onclick="show_hide('field_frm<?php echo $result_str;?>')"><?php echo geodir_ucwords(__('Fieldset:', 'geodirectory') . ' ' . $field_admin_title);?></b>
65 65
         <?php
66
-        } else {
67
-            ?>
66
+		} else {
67
+			?>
68 68
             <b style="cursor:pointer;"
69 69
                onclick="show_hide('field_frm<?php echo $result_str;?>')"><?php echo geodir_ucwords(__('Field:', 'geodirectory') . ' ' . $field_admin_title . ' (' . $field_type . ')');?></b>
70 70
         <?php
71
-        }
72
-        ?>
71
+		}
72
+		?>
73 73
     </div>
74 74
 
75 75
     <div id="field_frm<?php echo $result_str; ?>" class="field_frm"
76 76
          style="display:<?php if ($field_ins_upd == 'submit') {
77
-             echo 'block;';
78
-         } else {
79
-             echo 'none;';
80
-         } ?>">
77
+			 echo 'block;';
78
+		 } else {
79
+			 echo 'none;';
80
+		 } ?>">
81 81
         <input type="hidden" name="_wpnonce" value="<?php echo esc_attr($nonce); ?>"/>
82 82
         <input type="hidden" name="listing_type" id="listing_type" value="<?php echo $post_type; ?>"/>
83 83
         <input type="hidden" name="field_type" id="field_type" value="<?php echo $field_type; ?>"/>
84 84
         <input type="hidden" name="field_id" id="field_id" value="<?php echo esc_attr($result_str); ?>"/>
85 85
         <input type="hidden" name="data_type" id="data_type" value="<?php if (isset($field_info->data_type)) {
86
-            echo $field_info->data_type;
87
-        } ?>"/>
86
+			echo $field_info->data_type;
87
+		} ?>"/>
88 88
         <input type="hidden" name="is_active" id="is_active" value="1"/>
89 89
 
90 90
         <table class="widefat post fixed" border="0" style="width:100%;">
91 91
             <?php if ($field_type != 'text' || $default) { ?>
92 92
 
93 93
                 <input type="hidden" name="data_type" id="data_type" value="<?php if (isset($field_info->data_type)) {
94
-                    echo esc_attr($field_info->data_type);
95
-                } ?>"/>
94
+					echo esc_attr($field_info->data_type);
95
+				} ?>"/>
96 96
 
97 97
             <?php } else { ?>
98 98
 
@@ -104,16 +104,16 @@  discard block
 block discarded – undo
104 104
                                 onchange="javascript:gd_data_type_changed(this, '<?php echo $result_str; ?>');">
105 105
                             <option
106 106
                                 value="XVARCHAR" <?php if (isset($field_info->data_type) && $field_info->data_type == 'VARCHAR') {
107
-                                echo 'selected="selected"';
108
-                            } ?>><?php _e('CHARACTER', 'geodirectory'); ?></option>
107
+								echo 'selected="selected"';
108
+							} ?>><?php _e('CHARACTER', 'geodirectory'); ?></option>
109 109
                             <option
110 110
                                 value="INT" <?php if (isset($field_info->data_type) && $field_info->data_type == 'INT') {
111
-                                echo 'selected="selected"';
112
-                            } ?>><?php _e('NUMBER', 'geodirectory'); ?></option>
111
+								echo 'selected="selected"';
112
+							} ?>><?php _e('NUMBER', 'geodirectory'); ?></option>
113 113
                             <option
114 114
                                 value="FLOAT" <?php if (isset($field_info->data_type) && $field_info->data_type == 'FLOAT') {
115
-                                echo 'selected="selected"';
116
-                            } ?>><?php _e('DECIMAL', 'geodirectory'); ?></option>
115
+								echo 'selected="selected"';
116
+							} ?>><?php _e('DECIMAL', 'geodirectory'); ?></option>
117 117
                         </select>
118 118
                         <br/> <span><?php _e('Select Custom Field type', 'geodirectory'); ?></span>
119 119
 
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
                         <select name="decimal_point" id="decimal_point">
128 128
                             <option value=""><?php echo _e('Select', 'geodirectory'); ?></option>
129 129
                             <?php for ($i = 1; $i <= 10; $i++) {
130
-                                $decimal_point = isset($field_info->decimal_point) ? $field_info->decimal_point : '';
131
-                                $selected = $i == $decimal_point ? 'selected="selected"' : ''; ?>
130
+								$decimal_point = isset($field_info->decimal_point) ? $field_info->decimal_point : '';
131
+								$selected = $i == $decimal_point ? 'selected="selected"' : ''; ?>
132 132
                                 <option value="<?php echo $i; ?>" <?php echo $selected; ?>><?php echo $i; ?></option>
133 133
                             <?php } ?>
134 134
                         </select>
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
                 <td align="left">
144 144
                     <input type="text" name="admin_title" id="admin_title"
145 145
                            value="<?php if (isset($field_info->admin_title)) {
146
-                               echo esc_attr($field_info->admin_title);
147
-                           } ?>"/>
146
+							   echo esc_attr($field_info->admin_title);
147
+						   } ?>"/>
148 148
                     <br/><span><?php _e('Personal comment, it would not be displayed anywhere except in custom field settings', 'geodirectory'); ?></span>
149 149
                 </td>
150 150
             </tr>
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
                 <td align="left">
154 154
                     <input type="text" name="site_title" id="site_title"
155 155
                            value="<?php if (isset($field_info->site_title)) {
156
-                               echo esc_attr($field_info->site_title);
157
-                           } ?>"/>
156
+							   echo esc_attr($field_info->site_title);
157
+						   } ?>"/>
158 158
                     <br/><span><?php _e('Section title which you wish to display in frontend', 'geodirectory'); ?></span>
159 159
                 </td>
160 160
             </tr>
@@ -163,23 +163,23 @@  discard block
 block discarded – undo
163 163
                 <td align="left">
164 164
                     <input type="text" name="admin_desc" id="admin_desc"
165 165
                            value="<?php if (isset($field_info->admin_desc)) {
166
-                               echo esc_attr($field_info->admin_desc);
167
-                           } ?>"/>
166
+							   echo esc_attr($field_info->admin_desc);
167
+						   } ?>"/>
168 168
                     <br/><span><?php _e('Section description which will appear in frontend', 'geodirectory'); ?></span>
169 169
                 </td>
170 170
             </tr>
171 171
             <?php if ($field_type != 'fieldset' && $field_type != 'taxonomy') {
172
-                ?>
172
+				?>
173 173
 
174 174
                 <tr>
175 175
                     <td><strong><?php _e('HTML variable name :', 'geodirectory');?></strong></td>
176 176
                     <td align="left">
177 177
                         <input type="text" name="htmlvar_name" id="htmlvar_name"
178 178
                                value="<?php if (isset($field_info->htmlvar_name)) {
179
-                                   echo preg_replace('/geodir_/', '', $field_info->htmlvar_name, 1);
180
-                               }?>" <?php if ($default) {
181
-                            echo 'readonly="readonly"';
182
-                        }?> />
179
+								   echo preg_replace('/geodir_/', '', $field_info->htmlvar_name, 1);
180
+							   }?>" <?php if ($default) {
181
+							echo 'readonly="readonly"';
182
+						}?> />
183 183
                         <br/> <span><?php _e('HTML variable name must not be blank', 'geodirectory');?></span>
184 184
                         <br/> <span><?php _e('This should be a unique name', 'geodirectory');?></span>
185 185
                         <br/>
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
                 <td><strong><?php _e('Admin label :', 'geodirectory'); ?></strong></td>
192 192
                 <td align="left"><input type="text" name="clabels" id="clabels"
193 193
                                         value="<?php if (isset($field_info->clabels)) {
194
-                                            echo esc_attr($field_info->clabels);
195
-                                        } ?>"/>
194
+											echo esc_attr($field_info->clabels);
195
+										} ?>"/>
196 196
                     <br/>
197 197
                     <span><?php _e('Section Title which will appear in backend', 'geodirectory'); ?></span>
198 198
                 </td>
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
                 <td><strong><?php _e('Display order :', 'geodirectory'); ?></strong></td>
224 224
                 <td align="left"><input type="text" readonly="readonly" name="sort_order" id="sort_order"
225 225
                                         value="<?php if (isset($field_info->sort_order)) {
226
-                                            echo esc_attr($field_info->sort_order);
227
-                                        } ?>"/>
226
+											echo esc_attr($field_info->sort_order);
227
+										} ?>"/>
228 228
                     <br/>
229 229
                     <span><?php _e('Enter the display order of this field in backend. e.g. 5', 'geodirectory'); ?></span>
230 230
                 </td>
@@ -235,11 +235,11 @@  discard block
 block discarded – undo
235 235
                 <td align="left">
236 236
                     <select name="is_default" id="is_default">
237 237
                         <option value="0" <?php if (!isset($field_info->is_default) || $field_info->is_default == '0') {
238
-                            echo 'selected="selected"';
239
-                        } ?>><?php _e('No', 'geodirectory'); ?></option>
238
+							echo 'selected="selected"';
239
+						} ?>><?php _e('No', 'geodirectory'); ?></option>
240 240
                         <option value="1" <?php if (isset($field_info->is_default) && $field_info->is_default == '1') {
241
-                            echo 'selected="selected"';
242
-                        } ?>><?php _e('Yes', 'geodirectory'); ?></option>
241
+							echo 'selected="selected"';
242
+						} ?>><?php _e('Yes', 'geodirectory'); ?></option>
243 243
                     </select>
244 244
                     <br/>
245 245
                     <span><?php _e('Select yes or no. If no is selected then the field will be displayed as main form field or additional field', 'geodirectory'); ?></span>
@@ -254,13 +254,13 @@  discard block
 block discarded – undo
254 254
                 <td>
255 255
 
256 256
                     <?php
257
-                    $selected = '';
258
-                    if (isset($field_info->extra_fields))
259
-                        $advanced_editor = unserialize($field_info->extra_fields);
257
+					$selected = '';
258
+					if (isset($field_info->extra_fields))
259
+						$advanced_editor = unserialize($field_info->extra_fields);
260 260
 
261
-                    if (!empty($advanced_editor) && is_array($advanced_editor) && in_array('1', $advanced_editor))
262
-                        $selected = 'checked="checked"';
263
-                    ?>
261
+					if (!empty($advanced_editor) && is_array($advanced_editor) && in_array('1', $advanced_editor))
262
+						$selected = 'checked="checked"';
263
+					?>
264 264
 
265 265
                     <input type="checkbox" name="advanced_editor[]" id="advanced_editor"
266 266
                            value="1" <?php echo $selected; ?>/>
@@ -268,42 +268,42 @@  discard block
 block discarded – undo
268 268
                 </td>
269 269
 
270 270
                 </tr><?php
271
-            } ?>
271
+			} ?>
272 272
 
273 273
             <?php
274 274
 
275
-            $pricearr = array();
276
-            if (isset($field_info->packages) && $field_info->packages != '') {
277
-                $pricearr = explode(',', trim($field_info->packages, ','));
278
-            } else {
279
-                $package_info = array();
275
+			$pricearr = array();
276
+			if (isset($field_info->packages) && $field_info->packages != '') {
277
+				$pricearr = explode(',', trim($field_info->packages, ','));
278
+			} else {
279
+				$package_info = array();
280 280
 
281
-                $package_info = geodir_post_package_info($package_info, '', $post_type);
282
-                $pricearr[] = $package_info->pid;
283
-            }
281
+				$package_info = geodir_post_package_info($package_info, '', $post_type);
282
+				$pricearr[] = $package_info->pid;
283
+			}
284 284
 
285
-            ob_start()
286
-            ?>
285
+			ob_start()
286
+			?>
287 287
 
288 288
             <select style="display:none" name="show_on_pkg[]" id="show_on_pkg" multiple="multiple">
289 289
                 <?php
290
-                if (!empty($pricearr)) {
291
-                    foreach ($pricearr as $val) {
292
-                        ?>
290
+				if (!empty($pricearr)) {
291
+					foreach ($pricearr as $val) {
292
+						?>
293 293
                         <option selected="selected" value="<?php echo esc_attr($val); ?>" ><?php echo $val; ?></option><?php
294
-                    }
295
-                }
296
-                ?>
294
+					}
295
+				}
296
+				?>
297 297
             </select>
298 298
 
299 299
             <?php
300
-            $html = ob_get_clean();
300
+			$html = ob_get_clean();
301 301
 
302 302
 			/**
303 303
 			 * Filter the price packages list.
304 304
 			 *
305 305
 			 * Filter the price packages list in custom field form in admin
306
-             * custom fields settings.
306
+			 * custom fields settings.
307 307
 			 *
308 308
 			 * @since 1.0.0
309 309
 			 *
@@ -311,27 +311,27 @@  discard block
 block discarded – undo
311 311
 			 * @param object $field_info Current field object.
312 312
 			 */
313 313
 			echo $html = apply_filters('geodir_packages_list_on_custom_fields', $html, $field_info);
314
-            $field_display = $field_type == 'address' && $field_info->htmlvar_name == 'post' ? 'style="display:none"' : '';
315
-            ?>
314
+			$field_display = $field_type == 'address' && $field_info->htmlvar_name == 'post' ? 'style="display:none"' : '';
315
+			?>
316 316
 
317 317
             <tr <?php echo $field_display; ?>>
318 318
                 <td><strong><?php _e('Is active :', 'geodirectory'); ?></strong></td>
319 319
                 <td align="left">
320 320
                     <select name="is_active" id="is_active">
321 321
                         <option value="1" <?php if (isset($field_info->is_active) && $field_info->is_active == '1') {
322
-                            echo 'selected="selected"';
323
-                        } ?>><?php _e('Yes', 'geodirectory'); ?></option>
322
+							echo 'selected="selected"';
323
+						} ?>><?php _e('Yes', 'geodirectory'); ?></option>
324 324
                         <option
325 325
                             value="0" <?php if ((isset($field_info->is_active) && $field_info->is_active == '0') || !isset($field_info->is_active)) {
326
-                            echo 'selected="selected"';
327
-                        } ?>><?php _e('No', 'geodirectory'); ?></option>
326
+							echo 'selected="selected"';
327
+						} ?>><?php _e('No', 'geodirectory'); ?></option>
328 328
                     </select>
329 329
                     <br/>
330 330
                     <span><?php _e('Select yes or no. If no is selected then the field will not be displayed anywhere', 'geodirectory'); ?></span>
331 331
                 </td>
332 332
             </tr>
333 333
             <?php if (!$default) { /* field for admin use only */
334
-                $for_admin_use = isset($field_info->for_admin_use) && $field_info->for_admin_use == '1' ? true : false; ?>
334
+				$for_admin_use = isset($field_info->for_admin_use) && $field_info->for_admin_use == '1' ? true : false; ?>
335 335
                 <tr>
336 336
                     <td><strong><?php _e('For admin use only? :', 'geodirectory'); ?></strong></td>
337 337
                     <td align="left">
@@ -353,12 +353,12 @@  discard block
 block discarded – undo
353 353
                         <select name="is_required" id="is_required">
354 354
                             <option
355 355
                                 value="1" <?php if (isset($field_info->is_required) && $field_info->is_required == '1') {
356
-                                echo 'selected="selected"';
357
-                            } ?>><?php _e('Yes', 'geodirectory'); ?></option>
356
+								echo 'selected="selected"';
357
+							} ?>><?php _e('Yes', 'geodirectory'); ?></option>
358 358
                             <option
359 359
                                 value="0" <?php if ((isset($field_info->is_required) && $field_info->is_required == '0') || !isset($field_info->is_required)) {
360
-                                echo 'selected="selected"';
361
-                            } ?>><?php _e('No', 'geodirectory'); ?></option>
360
+								echo 'selected="selected"';
361
+							} ?>><?php _e('No', 'geodirectory'); ?></option>
362 362
                         </select>
363 363
                         <br/> <span><?php _e('Select yes to set field as required', 'geodirectory'); ?></span>
364 364
                     </td>
@@ -370,8 +370,8 @@  discard block
 block discarded – undo
370 370
                 <td align="left">
371 371
                     <input type="text" name="required_msg" id="required_msg"
372 372
                            value="<?php if (isset($field_info->required_msg)) {
373
-                               echo esc_attr($field_info->required_msg);
374
-                           } ?>"/>
373
+							   echo esc_attr($field_info->required_msg);
374
+						   } ?>"/>
375 375
                     <span>
376 376
                         <?php _e('Enter text for error message if field required and have not full fill requirement.', 'geodirectory'); ?>
377 377
                     </span>
@@ -385,8 +385,8 @@  discard block
 block discarded – undo
385 385
                 <td align="left">
386 386
                     <input type="text" name="validation_pattern" id="validation_pattern"
387 387
                            value="<?php if (isset($field_info->validation_pattern)) {
388
-                               echo esc_attr($field_info->validation_pattern);
389
-                           } ?>"/>
388
+							   echo esc_attr($field_info->validation_pattern);
389
+						   } ?>"/>
390 390
                     <span>
391 391
                         <?php _e('Enter regex expression for HTML5 pattern validation.', 'geodirectory'); ?>
392 392
                     </span>
@@ -399,8 +399,8 @@  discard block
 block discarded – undo
399 399
                 <td align="left">
400 400
                     <input type="text" name="validation_msg" id="validation_msg"
401 401
                            value="<?php if (isset($field_info->validation_msg)) {
402
-                               echo esc_attr($field_info->validation_msg);
403
-                           } ?>"/>
402
+							   echo esc_attr($field_info->validation_msg);
403
+						   } ?>"/>
404 404
                     <span>
405 405
                         <?php _e('Enter a extra validation message to show to the user if validation fails.', 'geodirectory'); ?>
406 406
                     </span>
@@ -415,12 +415,12 @@  discard block
 block discarded – undo
415 415
                     <select name="show_on_listing" id="show_on_listing">
416 416
                         <option
417 417
                             value="1" <?php if (isset($field_info->show_on_listing) && $field_info->show_on_listing == '1') {
418
-                            echo 'selected="selected"';
419
-                        } ?>><?php _e('Yes', 'geodirectory'); ?></option>
418
+							echo 'selected="selected"';
419
+						} ?>><?php _e('Yes', 'geodirectory'); ?></option>
420 420
                         <option
421 421
                             value="0" <?php if ((isset($field_info->show_on_listing) && ($field_info->show_on_listing == '0' || $field_info->show_on_listing == '')) || !isset($field_info->show_on_listing)) {
422
-                            echo 'selected="selected"';
423
-                        } ?>><?php _e('No', 'geodirectory'); ?></option>
422
+							echo 'selected="selected"';
423
+						} ?>><?php _e('No', 'geodirectory'); ?></option>
424 424
                     </select>
425 425
                     <br/> <span><?php _e('Want to show this on listing page ?', 'geodirectory'); ?></span>
426 426
                 </td>
@@ -432,12 +432,12 @@  discard block
 block discarded – undo
432 432
                     <select name="show_on_detail" id="show_on_detail">
433 433
                         <option
434 434
                             value="1" <?php if (isset($field_info->show_on_detail) && $field_info->show_on_detail == '1') {
435
-                            echo 'selected="selected"';
436
-                        } ?>><?php _e('Yes', 'geodirectory'); ?></option>
435
+							echo 'selected="selected"';
436
+						} ?>><?php _e('Yes', 'geodirectory'); ?></option>
437 437
                         <option
438 438
                             value="0" <?php if ((isset($field_info->show_on_detail) && ($field_info->show_on_detail == '0' || $field_info->show_on_detail == '')) || !isset($field_info->show_on_detail)) {
439
-                            echo 'selected="selected"';
440
-                        } ?>><?php _e('No', 'geodirectory'); ?></option>
439
+							echo 'selected="selected"';
440
+						} ?>><?php _e('No', 'geodirectory'); ?></option>
441 441
                     </select>
442 442
                     <br/>
443 443
                     <span><?php _e('Want to show this in More Info tab on detail page?', 'geodirectory'); ?></span>
@@ -450,12 +450,12 @@  discard block
 block discarded – undo
450 450
                         <select name="show_as_tab" id="show_as_tab">
451 451
                             <option
452 452
                                 value="1" <?php if (isset($field_info->show_as_tab) && $field_info->show_as_tab == '1') {
453
-                                echo 'selected="selected"';
454
-                            } ?>><?php _e('Yes', 'geodirectory'); ?></option>
453
+								echo 'selected="selected"';
454
+							} ?>><?php _e('Yes', 'geodirectory'); ?></option>
455 455
                             <option
456 456
                                 value="0" <?php if ((isset($field_info->show_as_tab) && ($field_info->show_as_tab == '0' || $field_info->show_as_tab == '')) || !isset($field_info->show_as_tab)) {
457
-                                echo 'selected="selected"';
458
-                            } ?>><?php _e('No', 'geodirectory'); ?></option>
457
+								echo 'selected="selected"';
458
+							} ?>><?php _e('No', 'geodirectory'); ?></option>
459 459
                         </select>
460 460
                         <br/><span><?php _e('Want to display this as a tab on detail page? If "Yes" then "Show on detail page?" must be Yes.', 'geodirectory'); ?></span>
461 461
                     </td>
@@ -464,23 +464,23 @@  discard block
 block discarded – undo
464 464
 
465 465
             <?php
466 466
 
467
-            switch ($field_type):
468
-                case 'taxonomy': {
469
-                    ?>
467
+			switch ($field_type):
468
+				case 'taxonomy': {
469
+					?>
470 470
                     <tr>
471 471
                         <td><strong><?php _e('Select taxonomy:', 'geodirectory');?></strong></td>
472 472
                         <td align="left">
473 473
                             <select name="htmlvar_name" id="htmlvar_name">
474 474
                                 <?php
475
-                                $gd_taxonomy = geodir_get_taxonomies($post_type);
475
+								$gd_taxonomy = geodir_get_taxonomies($post_type);
476 476
 
477
-                                foreach ($gd_taxonomy as $gd_tax) {
478
-                                    ?>
477
+								foreach ($gd_taxonomy as $gd_tax) {
478
+									?>
479 479
                                     <option <?php if (isset($field_info->htmlvar_name) && $field_info->htmlvar_name == $gd_tax) {
480
-                                        echo 'selected="selected"';
481
-                                    }?> id="<?php echo $gd_tax;?>"><?php echo $gd_tax;?></option><?php
482
-                                }
483
-                                ?>
480
+										echo 'selected="selected"';
481
+									}?> id="<?php echo $gd_tax;?>"><?php echo $gd_tax;?></option><?php
482
+								}
483
+								?>
484 484
                             </select>
485 485
 
486 486
                             <br/>
@@ -494,20 +494,20 @@  discard block
 block discarded – undo
494 494
 
495 495
                             <select name="cat_display_type" id="cat_display_type">
496 496
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'ajax_chained') {
497
-                                    echo 'selected="selected"';
498
-                                }?> value="ajax_chained"><?php _e('Ajax Chained', 'geodirectory');?></option>
497
+									echo 'selected="selected"';
498
+								}?> value="ajax_chained"><?php _e('Ajax Chained', 'geodirectory');?></option>
499 499
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'select') {
500
-                                    echo 'selected="selected"';
501
-                                }?> value="select"><?php _e('Select', 'geodirectory');?></option>
500
+									echo 'selected="selected"';
501
+								}?> value="select"><?php _e('Select', 'geodirectory');?></option>
502 502
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'multiselect') {
503
-                                    echo 'selected="selected"';
504
-                                }?> value="multiselect"><?php _e('Multiselect', 'geodirectory');?></option>
503
+									echo 'selected="selected"';
504
+								}?> value="multiselect"><?php _e('Multiselect', 'geodirectory');?></option>
505 505
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'checkbox') {
506
-                                    echo 'selected="selected"';
507
-                                }?> value="checkbox"><?php _e('Checkbox', 'geodirectory');?></option>
506
+									echo 'selected="selected"';
507
+								}?> value="checkbox"><?php _e('Checkbox', 'geodirectory');?></option>
508 508
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'radio') {
509
-                                    echo 'selected="selected"';
510
-                                }?> value="radio"><?php _e('Radio', 'geodirectory');?></option>
509
+									echo 'selected="selected"';
510
+								}?> value="radio"><?php _e('Radio', 'geodirectory');?></option>
511 511
                             </select>
512 512
 
513 513
                             <br/>
@@ -515,29 +515,29 @@  discard block
 block discarded – undo
515 515
                         </td>
516 516
                     </tr>
517 517
                 <?php } // end of additional field for taxonomy field type
518
-                    break;
519
-                case 'address': {
520
-                    if (isset($field_info->extra_fields) && $field_info->extra_fields != '') {
521
-                        $address = unserialize($field_info->extra_fields);
522
-                    }
523
-                    ?>
518
+					break;
519
+				case 'address': {
520
+					if (isset($field_info->extra_fields) && $field_info->extra_fields != '') {
521
+						$address = unserialize($field_info->extra_fields);
522
+					}
523
+					?>
524 524
                     <?php
525
-                    /**
526
-                     * Called on the add custom fields settings page before the address field is output.
527
-                     *
528
-                     * @since 1.0.0
529
-                     * @param array $address The address settings array.
530
-                     * @param object $field_info Extra fields info.
531
-                     */
532
-                    do_action('geodir_address_extra_admin_fields', $address, $field_info); ?>
525
+					/**
526
+					 * Called on the add custom fields settings page before the address field is output.
527
+					 *
528
+					 * @since 1.0.0
529
+					 * @param array $address The address settings array.
530
+					 * @param object $field_info Extra fields info.
531
+					 */
532
+					do_action('geodir_address_extra_admin_fields', $address, $field_info); ?>
533 533
 
534 534
                     <tr>
535 535
                         <td><strong><?php _e('Display zip/post code :', 'geodirectory');?></strong></td>
536 536
                         <td align="left">
537 537
                             <input type="checkbox" name="extra[show_zip]" id="show_zip"
538 538
                                    value="1" <?php if (isset($address['show_zip']) && $address['show_zip'] == '1') {
539
-                                echo 'checked="checked"';
540
-                            }?>/>
539
+								echo 'checked="checked"';
540
+							}?>/>
541 541
                             <span><?php _e('Select if you want to show zip/post code field in address section.', 'geodirectory');?></span>
542 542
                         </td>
543 543
                     </tr>
@@ -547,8 +547,8 @@  discard block
 block discarded – undo
547 547
                         <td align="left">
548 548
                             <input type="text" name="extra[zip_lable]" id="zip_lable"
549 549
                                    value="<?php if (isset($address['zip_lable'])) {
550
-                                       echo esc_attr($address['zip_lable']);
551
-                                   }?>"/>
550
+									   echo esc_attr($address['zip_lable']);
551
+								   }?>"/>
552 552
                             <span><?php _e('Enter zip/post code field label in address section.', 'geodirectory');?></span>
553 553
                         </td>
554 554
                     </tr>
@@ -558,8 +558,8 @@  discard block
 block discarded – undo
558 558
                         <td align="left">
559 559
                             <input type="checkbox" name="extra[show_map]" id="show_map"
560 560
                                    value="1" <?php if (isset($address['show_map']) && $address['show_map'] == '1') {
561
-                                echo 'checked="checked"';
562
-                            }?>/>
561
+								echo 'checked="checked"';
562
+							}?>/>
563 563
                             <span><?php _e('Select if you want to `set address on map` field in address section.', 'geodirectory');?></span>
564 564
                         </td>
565 565
                     </tr>
@@ -569,8 +569,8 @@  discard block
 block discarded – undo
569 569
                         <td align="left">
570 570
                             <input type="text" name="extra[map_lable]" id="map_lable"
571 571
                                    value="<?php if (isset($address['map_lable'])) {
572
-                                       echo esc_attr($address['map_lable']);
573
-                                   }?>"/>
572
+									   echo esc_attr($address['map_lable']);
573
+								   }?>"/>
574 574
                             <span><?php _e('Enter text for  `set address on map` button in address section.', 'geodirectory');?></span>
575 575
                         </td>
576 576
                     </tr>
@@ -580,8 +580,8 @@  discard block
 block discarded – undo
580 580
                         <td align="left">
581 581
                             <input type="checkbox" name="extra[show_mapzoom]" id="show_mapzoom"
582 582
                                    value="1" <?php if (isset($address['show_mapzoom']) && $address['show_mapzoom'] == '1') {
583
-                                echo 'checked="checked"';
584
-                            }?>/>
583
+								echo 'checked="checked"';
584
+							}?>/>
585 585
                             <span><?php _e('Select if you want to use the user defined map zoom level.', 'geodirectory');?></span>
586 586
                         </td>
587 587
                     </tr>
@@ -591,8 +591,8 @@  discard block
 block discarded – undo
591 591
                         <td align="left">
592 592
                             <input type="checkbox" name="extra[show_mapview]" id="show_mapview"
593 593
                                    value="1" <?php if (isset($address['show_mapview']) && $address['show_mapview'] == '1') {
594
-                                echo 'checked="checked"';
595
-                            }?>/>
594
+								echo 'checked="checked"';
595
+							}?>/>
596 596
                             <span><?php _e('Select if you want to `set default map` options in address section.', 'geodirectory');?></span>
597 597
                         </td>
598 598
                     </tr>
@@ -603,8 +603,8 @@  discard block
 block discarded – undo
603 603
                         <td align="left">
604 604
                             <input type="text" name="extra[mapview_lable]" id="mapview_lable"
605 605
                                    value="<?php if (isset($address['mapview_lable'])) {
606
-                                       echo esc_attr($address['mapview_lable']);
607
-                                   }?>"/>
606
+									   echo esc_attr($address['mapview_lable']);
607
+								   }?>"/>
608 608
                             <span><?php _e('Enter mapview field label in address section.', 'geodirectory');?></span>
609 609
                         </td>
610 610
                     </tr>
@@ -615,33 +615,33 @@  discard block
 block discarded – undo
615 615
                         <td align="left">
616 616
                             <input type="checkbox" name="extra[show_latlng]" id="show_latlng"
617 617
                                    value="1" <?php if (isset($address['show_latlng']) && $address['show_latlng'] == '1') {
618
-                                echo 'checked="checked"';
619
-                            }?>/>
618
+								echo 'checked="checked"';
619
+							}?>/>
620 620
                             <span><?php _e('Select if you want to show latitude and longitude fields in address section from front-end.', 'geodirectory');?></span>
621 621
                         </td>
622 622
                     </tr>
623 623
                 <?php } // end of extra fields for address field type
624
-                    break;
625
-                case 'select':
626
-                case 'multiselect':
627
-                case 'radio' : {
628
-                    if ($field_type == 'multiselect') {
624
+					break;
625
+				case 'select':
626
+				case 'multiselect':
627
+				case 'radio' : {
628
+					if ($field_type == 'multiselect') {
629 629
 
630
-                        ?>
630
+						?>
631 631
                         <tr>
632 632
                             <td><strong><?php _e('Multiselect display type :', 'geodirectory');?></strong></td>
633 633
                             <td align="left">
634 634
 
635 635
                                 <select name="multi_display_type" id="multi_display_type">
636 636
                                     <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'select') {
637
-                                        echo 'selected="selected"';
638
-                                    }?> value="select"><?php _e('Select', 'geodirectory');?></option>
637
+										echo 'selected="selected"';
638
+									}?> value="select"><?php _e('Select', 'geodirectory');?></option>
639 639
                                     <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'checkbox') {
640
-                                        echo 'selected="selected"';
641
-                                    }?> value="checkbox"><?php _e('Checkbox', 'geodirectory');?></option>
640
+										echo 'selected="selected"';
641
+									}?> value="checkbox"><?php _e('Checkbox', 'geodirectory');?></option>
642 642
                                     <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'radio') {
643
-                                        echo 'selected="selected"';
644
-                                    }?> value="radio"><?php _e('Radio', 'geodirectory');?></option>
643
+										echo 'selected="selected"';
644
+									}?> value="radio"><?php _e('Radio', 'geodirectory');?></option>
645 645
                                 </select>
646 646
 
647 647
                                 <br/>
@@ -649,15 +649,15 @@  discard block
 block discarded – undo
649 649
                             </td>
650 650
                         </tr>
651 651
                     <?php
652
-                    }
653
-                    ?>
652
+					}
653
+					?>
654 654
                     <tr>
655 655
                         <td><strong><?php _e('Option Values :', 'geodirectory');?></strong></td>
656 656
                         <td align="left">
657 657
                             <input type="text" name="option_values" id="option_values"
658 658
                                    value="<?php if (isset($field_info->option_values)) {
659
-                                       echo esc_attr($field_info->option_values);
660
-                                   }?>"/>
659
+									   echo esc_attr($field_info->option_values);
660
+								   }?>"/>
661 661
                             <br/>
662 662
                             <span><?php _e('Option Values should be separated by comma.', 'geodirectory');?></span>
663 663
                             <br/>
@@ -673,52 +673,52 @@  discard block
 block discarded – undo
673 673
                         </td>
674 674
                     </tr>
675 675
                 <?php
676
-                } // end of extra fields for select , multiselect and radio type fields
677
-                    break;
678
-                case 'datepicker': {
679
-                    if (isset($field_info->extra_fields) && $field_info->extra_fields != '') {
680
-                        $extra = unserialize($field_info->extra_fields);
681
-                    }
682
-                    ?>
676
+				} // end of extra fields for select , multiselect and radio type fields
677
+					break;
678
+				case 'datepicker': {
679
+					if (isset($field_info->extra_fields) && $field_info->extra_fields != '') {
680
+						$extra = unserialize($field_info->extra_fields);
681
+					}
682
+					?>
683 683
                     <tr>
684 684
                         <td><strong><?php _e('Date Format :', 'geodirectory');?></strong></td>
685 685
                         <td align="left" style="overflow:inherit;">
686 686
                             <?php
687
-                            $date_formats = array(
688
-                                'm/d/Y',
689
-                                'd/m/Y',
690
-                                'Y/m/d',
691
-                                'm-d-Y',
692
-                                'd-m-Y',
693
-                                'Y-m-d',
694
-                                'F j, Y',
695
-                            );
696
-                            /**
697
-                             * Filter the custom field date format options.
698
-                             *
699
-                             * @since 1.6.5
700
-                             * @param array $date_formats The PHP date format array.
701
-                             */
702
-                            $date_formats = apply_filters('geodir_date_formats',$date_formats);
703
-                            ?>
687
+							$date_formats = array(
688
+								'm/d/Y',
689
+								'd/m/Y',
690
+								'Y/m/d',
691
+								'm-d-Y',
692
+								'd-m-Y',
693
+								'Y-m-d',
694
+								'F j, Y',
695
+							);
696
+							/**
697
+							 * Filter the custom field date format options.
698
+							 *
699
+							 * @since 1.6.5
700
+							 * @param array $date_formats The PHP date format array.
701
+							 */
702
+							$date_formats = apply_filters('geodir_date_formats',$date_formats);
703
+							?>
704 704
                             <select name="extra[date_format]" id="date_format">
705 705
                                 <?php
706
-                                foreach($date_formats as $format){
707
-                                    $selected = '';
708
-                                    if(esc_attr($extra['date_format'])==$format){
709
-                                        $selected = "selected='selected'";
710
-                                    }
711
-                                    echo "<option $selected value='$format'>$format       (".date_i18n( $format, time()).")</option>";
712
-                                }
713
-                                ?>
706
+								foreach($date_formats as $format){
707
+									$selected = '';
708
+									if(esc_attr($extra['date_format'])==$format){
709
+										$selected = "selected='selected'";
710
+									}
711
+									echo "<option $selected value='$format'>$format       (".date_i18n( $format, time()).")</option>";
712
+								}
713
+								?>
714 714
                             </select>
715 715
                             
716 716
                             <span><?php _e('Select the date format.', 'geodirectory');?></span>
717 717
                         </td>
718 718
                     </tr>
719 719
                 <?php
720
-                }
721
-                    break;
720
+				}
721
+					break;
722 722
 				case 'file': {
723 723
 					$allowed_file_types = geodir_allowed_mime_types();
724 724
 					
@@ -746,9 +746,9 @@  discard block
 block discarded – undo
746 746
 					}
747 747
 					break;
748 748
 
749
-            endswitch;
750
-            if ($field_type != 'fieldset') {
751
-                ?>
749
+			endswitch;
750
+			if ($field_type != 'fieldset') {
751
+				?>
752 752
                 <tr>
753 753
                     <td colspan="2" align="left"><h3><?php echo __('Custom css', 'geodirectory'); ?></h3></td>
754 754
                 </tr>
@@ -758,8 +758,8 @@  discard block
 block discarded – undo
758 758
                     <td align="left">
759 759
                         <input type="text" name="field_icon" id="field_icon"
760 760
                                value="<?php if (isset($field_info->field_icon)) {
761
-                                   echo $field_info->field_icon;
762
-                               }?>"/>
761
+								   echo $field_info->field_icon;
762
+							   }?>"/>
763 763
                     <span>
764 764
                         <?php _e('Upload icon using media and enter its url path, or enter <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank" >font awesome </a>class eg:"fa fa-home"', 'geodirectory');?>
765 765
                     </span>
@@ -772,8 +772,8 @@  discard block
 block discarded – undo
772 772
                     <td align="left">
773 773
                         <input type="text" name="css_class" id="css_class"
774 774
                                value="<?php if (isset($field_info->css_class)) {
775
-                                   echo esc_attr($field_info->css_class);
776
-                               }?>"/>
775
+								   echo esc_attr($field_info->css_class);
776
+							   }?>"/>
777 777
                     <span>
778 778
                         <?php _e('Enter custom css class for field custom style.', 'geodirectory');?>
779 779
                     </span>
@@ -781,16 +781,16 @@  discard block
 block discarded – undo
781 781
                     </td>
782 782
                 </tr>
783 783
             <?php
784
-            }
785
-
786
-            switch ($field_type):
787
-                case 'html':
788
-                case 'file':
789
-                case 'url':
790
-                case 'fieldset':
791
-                    break;
792
-                default:
793
-                    ?>
784
+			}
785
+
786
+			switch ($field_type):
787
+				case 'html':
788
+				case 'file':
789
+				case 'url':
790
+				case 'fieldset':
791
+					break;
792
+				default:
793
+					?>
794 794
                     <tr>
795 795
                         <td colspan="2" align="left">
796 796
                             <h3><?php
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 								 */
808 808
 								echo apply_filters('geodir_advance_custom_fields_heading', __('Posts sort options', 'geodirectory'), $field_type);
809 809
 
810
-                                ?></h3>
810
+								?></h3>
811 811
                         </td>
812 812
                     </tr>
813 813
 
@@ -817,23 +817,23 @@  discard block
 block discarded – undo
817 817
                         <td>:
818 818
                             <input type="checkbox" name="cat_sort[]" id="cat_sort"
819 819
                                    value="1" <?php if (isset($field_info->cat_sort[0]) && $field_info->cat_sort[0] == '1') {
820
-                                echo 'checked="checked"';
821
-                            } ?>/>
820
+								echo 'checked="checked"';
821
+							} ?>/>
822 822
                             <span><?php _e('Select if you want to show option in sort.', 'geodirectory'); ?></span>
823 823
                         </td>
824 824
                     </tr>
825 825
                 <?php } ?>
826 826
 
827 827
                     <?php
828
-                    /**
829
-                     * Called at the end of the advanced custom fields settings page loop.
830
-                     *
831
-                     * Can be used to add or deal with different settings types.
832
-                     *
833
-                     * @since 1.0.0
834
-                     * @param object $field_info The current fields info.
835
-                     */
836
-                    do_action('geodir_advance_custom_fields', $field_info);?>
828
+					/**
829
+					 * Called at the end of the advanced custom fields settings page loop.
830
+					 *
831
+					 * Can be used to add or deal with different settings types.
832
+					 *
833
+					 * @since 1.0.0
834
+					 * @param object $field_info The current fields info.
835
+					 */
836
+					do_action('geodir_advance_custom_fields', $field_info);?>
837 837
 
838 838
                     <?php /*if(!in_array($field_type,array() )){?>
839 839
 				<tr>
Please login to merge, or discard this patch.
Spacing   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 $field_info = stripslashes_deep($field_info); // strip slashes from labels
26 26
 
27
-$nonce = wp_create_nonce('custom_fields_' . $result_str);
27
+$nonce = wp_create_nonce('custom_fields_'.$result_str);
28 28
 
29 29
 $field_admin_title = '';
30 30
 if (isset($field_info->admin_title))
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
          ondblclick="show_hide('field_frm<?php echo $result_str; ?>')">
48 48
         <?php
49 49
 
50
-        $nonce = wp_create_nonce('custom_fields_' . $result_str);
50
+        $nonce = wp_create_nonce('custom_fields_'.$result_str);
51 51
         ?>
52 52
 
53 53
         <?php if ($default): ?>
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
             ?>
62 62
 
63 63
             <b style="cursor:pointer;"
64
-               onclick="show_hide('field_frm<?php echo $result_str;?>')"><?php echo geodir_ucwords(__('Fieldset:', 'geodirectory') . ' ' . $field_admin_title);?></b>
64
+               onclick="show_hide('field_frm<?php echo $result_str; ?>')"><?php echo geodir_ucwords(__('Fieldset:', 'geodirectory').' '.$field_admin_title); ?></b>
65 65
         <?php
66 66
         } else {
67 67
             ?>
68 68
             <b style="cursor:pointer;"
69
-               onclick="show_hide('field_frm<?php echo $result_str;?>')"><?php echo geodir_ucwords(__('Field:', 'geodirectory') . ' ' . $field_admin_title . ' (' . $field_type . ')');?></b>
69
+               onclick="show_hide('field_frm<?php echo $result_str; ?>')"><?php echo geodir_ucwords(__('Field:', 'geodirectory').' '.$field_admin_title.' ('.$field_type.')'); ?></b>
70 70
         <?php
71 71
         }
72 72
         ?>
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 ?>
173 173
 
174 174
                 <tr>
175
-                    <td><strong><?php _e('HTML variable name :', 'geodirectory');?></strong></td>
175
+                    <td><strong><?php _e('HTML variable name :', 'geodirectory'); ?></strong></td>
176 176
                     <td align="left">
177 177
                         <input type="text" name="htmlvar_name" id="htmlvar_name"
178 178
                                value="<?php if (isset($field_info->htmlvar_name)) {
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
                                }?>" <?php if ($default) {
181 181
                             echo 'readonly="readonly"';
182 182
                         }?> />
183
-                        <br/> <span><?php _e('HTML variable name must not be blank', 'geodirectory');?></span>
184
-                        <br/> <span><?php _e('This should be a unique name', 'geodirectory');?></span>
183
+                        <br/> <span><?php _e('HTML variable name must not be blank', 'geodirectory'); ?></span>
184
+                        <br/> <span><?php _e('This should be a unique name', 'geodirectory'); ?></span>
185 185
                         <br/>
186
-                        <span><?php _e('HTML variable name not use spaces, special characters', 'geodirectory');?></span>
186
+                        <span><?php _e('HTML variable name not use spaces, special characters', 'geodirectory'); ?></span>
187 187
                     </td>
188 188
                 </tr>
189 189
             <?php } ?>
@@ -202,19 +202,19 @@  discard block
 block discarded – undo
202 202
 				$default_value = isset($field_info->default_value) ? $field_info->default_value : '';
203 203
 			?>
204 204
 			<tr>
205
-				<td><strong><?php _e('Default value :', 'geodirectory');?></strong></td>
205
+				<td><strong><?php _e('Default value :', 'geodirectory'); ?></strong></td>
206 206
 				<td align="left">
207 207
 				<?php if ($field_type == 'checkbox') { ?>
208 208
 				<select name="default_value" id="default_value">
209 209
 					<option value=""><?php _e('Unchecked', 'geodirectory'); ?></option>
210
-					<option value="1" <?php selected(true, (int)$default_value === 1);?>><?php _e('Checked', 'geodirectory'); ?></option>
210
+					<option value="1" <?php selected(true, (int) $default_value === 1); ?>><?php _e('Checked', 'geodirectory'); ?></option>
211 211
 				</select>
212 212
 				<?php } else if ($field_type == 'email') { ?>
213
-				<input type="email" name="default_value" placeholder="<?php _e('[email protected]', 'geodirectory') ;?>" id="default_value" value="<?php echo esc_attr($default_value);?>" /><br/>
214
-				<span><?php _e('Enter the default value. Ex: [email protected]', 'geodirectory');?></span>
213
+				<input type="email" name="default_value" placeholder="<?php _e('[email protected]', 'geodirectory'); ?>" id="default_value" value="<?php echo esc_attr($default_value); ?>" /><br/>
214
+				<span><?php _e('Enter the default value. Ex: [email protected]', 'geodirectory'); ?></span>
215 215
 				<?php } else { ?>
216
-				<input type="text" name="default_value" id="default_value" value="<?php echo esc_attr($default_value);?>" /><br/>
217
-				<span><?php _e('Enter the default value (for "link" this will be used as the link text)', 'geodirectory');?></span>
216
+				<input type="text" name="default_value" id="default_value" value="<?php echo esc_attr($default_value); ?>" /><br/>
217
+				<span><?php _e('Enter the default value (for "link" this will be used as the link text)', 'geodirectory'); ?></span>
218 218
 				<?php } ?>
219 219
 				</td>
220 220
 			</tr>
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
                 </td>
380 380
             </tr>
381 381
 
382
-            <?php if ($field_type == 'text'){?>
382
+            <?php if ($field_type == 'text') {?>
383 383
             <tr>
384 384
                 <td><strong><?php _e('Validation Pattern:', 'geodirectory'); ?></strong></td>
385 385
                 <td align="left">
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
             </tr>
410 410
             <?php } ?>
411 411
 
412
-            <tr <?php echo (!$display_on_listing ? 'style="display:none"' : '') ;?>>
412
+            <tr <?php echo (!$display_on_listing ? 'style="display:none"' : ''); ?>>
413 413
                 <td><strong><?php _e('Show on listing page ? :', 'geodirectory'); ?></strong></td>
414 414
                 <td align="left">
415 415
                     <select name="show_on_listing" id="show_on_listing">
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
                 case 'taxonomy': {
469 469
                     ?>
470 470
                     <tr>
471
-                        <td><strong><?php _e('Select taxonomy:', 'geodirectory');?></strong></td>
471
+                        <td><strong><?php _e('Select taxonomy:', 'geodirectory'); ?></strong></td>
472 472
                         <td align="left">
473 473
                             <select name="htmlvar_name" id="htmlvar_name">
474 474
                                 <?php
@@ -478,40 +478,40 @@  discard block
 block discarded – undo
478 478
                                     ?>
479 479
                                     <option <?php if (isset($field_info->htmlvar_name) && $field_info->htmlvar_name == $gd_tax) {
480 480
                                         echo 'selected="selected"';
481
-                                    }?> id="<?php echo $gd_tax;?>"><?php echo $gd_tax;?></option><?php
481
+                                    }?> id="<?php echo $gd_tax; ?>"><?php echo $gd_tax; ?></option><?php
482 482
                                 }
483 483
                                 ?>
484 484
                             </select>
485 485
 
486 486
                             <br/>
487
-                            <span><?php _e('Selected taxonomy name use as field name index. ex:-( post_category[gd_placecategory] )', 'geodirectory');?></span>
487
+                            <span><?php _e('Selected taxonomy name use as field name index. ex:-( post_category[gd_placecategory] )', 'geodirectory'); ?></span>
488 488
                         </td>
489 489
                     </tr>
490 490
 
491 491
                     <tr>
492
-                        <td><strong><?php _e('Category display type :', 'geodirectory');?></strong></td>
492
+                        <td><strong><?php _e('Category display type :', 'geodirectory'); ?></strong></td>
493 493
                         <td align="left">
494 494
 
495 495
                             <select name="cat_display_type" id="cat_display_type">
496 496
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'ajax_chained') {
497 497
                                     echo 'selected="selected"';
498
-                                }?> value="ajax_chained"><?php _e('Ajax Chained', 'geodirectory');?></option>
498
+                                }?> value="ajax_chained"><?php _e('Ajax Chained', 'geodirectory'); ?></option>
499 499
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'select') {
500 500
                                     echo 'selected="selected"';
501
-                                }?> value="select"><?php _e('Select', 'geodirectory');?></option>
501
+                                }?> value="select"><?php _e('Select', 'geodirectory'); ?></option>
502 502
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'multiselect') {
503 503
                                     echo 'selected="selected"';
504
-                                }?> value="multiselect"><?php _e('Multiselect', 'geodirectory');?></option>
504
+                                }?> value="multiselect"><?php _e('Multiselect', 'geodirectory'); ?></option>
505 505
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'checkbox') {
506 506
                                     echo 'selected="selected"';
507
-                                }?> value="checkbox"><?php _e('Checkbox', 'geodirectory');?></option>
507
+                                }?> value="checkbox"><?php _e('Checkbox', 'geodirectory'); ?></option>
508 508
                                 <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'radio') {
509 509
                                     echo 'selected="selected"';
510
-                                }?> value="radio"><?php _e('Radio', 'geodirectory');?></option>
510
+                                }?> value="radio"><?php _e('Radio', 'geodirectory'); ?></option>
511 511
                             </select>
512 512
 
513 513
                             <br/>
514
-                            <span><?php _e('Show categories list as select,multiselect,checkbox or radio', 'geodirectory');?></span>
514
+                            <span><?php _e('Show categories list as select,multiselect,checkbox or radio', 'geodirectory'); ?></span>
515 515
                         </td>
516 516
                     </tr>
517 517
                 <?php } // end of additional field for taxonomy field type
@@ -532,92 +532,92 @@  discard block
 block discarded – undo
532 532
                     do_action('geodir_address_extra_admin_fields', $address, $field_info); ?>
533 533
 
534 534
                     <tr>
535
-                        <td><strong><?php _e('Display zip/post code :', 'geodirectory');?></strong></td>
535
+                        <td><strong><?php _e('Display zip/post code :', 'geodirectory'); ?></strong></td>
536 536
                         <td align="left">
537 537
                             <input type="checkbox" name="extra[show_zip]" id="show_zip"
538 538
                                    value="1" <?php if (isset($address['show_zip']) && $address['show_zip'] == '1') {
539 539
                                 echo 'checked="checked"';
540 540
                             }?>/>
541
-                            <span><?php _e('Select if you want to show zip/post code field in address section.', 'geodirectory');?></span>
541
+                            <span><?php _e('Select if you want to show zip/post code field in address section.', 'geodirectory'); ?></span>
542 542
                         </td>
543 543
                     </tr>
544 544
 
545 545
                     <tr>
546
-                        <td><strong><?php _e('Zip/Post code label :', 'geodirectory');?></strong></td>
546
+                        <td><strong><?php _e('Zip/Post code label :', 'geodirectory'); ?></strong></td>
547 547
                         <td align="left">
548 548
                             <input type="text" name="extra[zip_lable]" id="zip_lable"
549 549
                                    value="<?php if (isset($address['zip_lable'])) {
550 550
                                        echo esc_attr($address['zip_lable']);
551 551
                                    }?>"/>
552
-                            <span><?php _e('Enter zip/post code field label in address section.', 'geodirectory');?></span>
552
+                            <span><?php _e('Enter zip/post code field label in address section.', 'geodirectory'); ?></span>
553 553
                         </td>
554 554
                     </tr>
555 555
 
556 556
                     <tr style="display:none;">
557
-                        <td><strong><?php _e('Display map :', 'geodirectory');?></strong></td>
557
+                        <td><strong><?php _e('Display map :', 'geodirectory'); ?></strong></td>
558 558
                         <td align="left">
559 559
                             <input type="checkbox" name="extra[show_map]" id="show_map"
560 560
                                    value="1" <?php if (isset($address['show_map']) && $address['show_map'] == '1') {
561 561
                                 echo 'checked="checked"';
562 562
                             }?>/>
563
-                            <span><?php _e('Select if you want to `set address on map` field in address section.', 'geodirectory');?></span>
563
+                            <span><?php _e('Select if you want to `set address on map` field in address section.', 'geodirectory'); ?></span>
564 564
                         </td>
565 565
                     </tr>
566 566
 
567 567
                     <tr>
568
-                        <td><strong><?php _e('Map button label :', 'geodirectory');?></strong></td>
568
+                        <td><strong><?php _e('Map button label :', 'geodirectory'); ?></strong></td>
569 569
                         <td align="left">
570 570
                             <input type="text" name="extra[map_lable]" id="map_lable"
571 571
                                    value="<?php if (isset($address['map_lable'])) {
572 572
                                        echo esc_attr($address['map_lable']);
573 573
                                    }?>"/>
574
-                            <span><?php _e('Enter text for  `set address on map` button in address section.', 'geodirectory');?></span>
574
+                            <span><?php _e('Enter text for  `set address on map` button in address section.', 'geodirectory'); ?></span>
575 575
                         </td>
576 576
                     </tr>
577 577
 
578 578
                     <tr>
579
-                        <td><strong><?php _e('Use user zoom level:', 'geodirectory');?></strong></td>
579
+                        <td><strong><?php _e('Use user zoom level:', 'geodirectory'); ?></strong></td>
580 580
                         <td align="left">
581 581
                             <input type="checkbox" name="extra[show_mapzoom]" id="show_mapzoom"
582 582
                                    value="1" <?php if (isset($address['show_mapzoom']) && $address['show_mapzoom'] == '1') {
583 583
                                 echo 'checked="checked"';
584 584
                             }?>/>
585
-                            <span><?php _e('Select if you want to use the user defined map zoom level.', 'geodirectory');?></span>
585
+                            <span><?php _e('Select if you want to use the user defined map zoom level.', 'geodirectory'); ?></span>
586 586
                         </td>
587 587
                     </tr>
588 588
 
589 589
                     <tr>
590
-                        <td><strong><?php _e('Display map view:', 'geodirectory');?></strong></td>
590
+                        <td><strong><?php _e('Display map view:', 'geodirectory'); ?></strong></td>
591 591
                         <td align="left">
592 592
                             <input type="checkbox" name="extra[show_mapview]" id="show_mapview"
593 593
                                    value="1" <?php if (isset($address['show_mapview']) && $address['show_mapview'] == '1') {
594 594
                                 echo 'checked="checked"';
595 595
                             }?>/>
596
-                            <span><?php _e('Select if you want to `set default map` options in address section.', 'geodirectory');?></span>
596
+                            <span><?php _e('Select if you want to `set default map` options in address section.', 'geodirectory'); ?></span>
597 597
                         </td>
598 598
                     </tr>
599 599
 
600 600
 
601 601
                     <tr>
602
-                        <td><strong><?php _e('Map view label :', 'geodirectory');?></strong></td>
602
+                        <td><strong><?php _e('Map view label :', 'geodirectory'); ?></strong></td>
603 603
                         <td align="left">
604 604
                             <input type="text" name="extra[mapview_lable]" id="mapview_lable"
605 605
                                    value="<?php if (isset($address['mapview_lable'])) {
606 606
                                        echo esc_attr($address['mapview_lable']);
607 607
                                    }?>"/>
608
-                            <span><?php _e('Enter mapview field label in address section.', 'geodirectory');?></span>
608
+                            <span><?php _e('Enter mapview field label in address section.', 'geodirectory'); ?></span>
609 609
                         </td>
610 610
                     </tr>
611 611
                     <tr>
612 612
                         <td>
613
-                            <strong><?php _e('Show latitude and longitude from front-end :', 'geodirectory');?></strong>
613
+                            <strong><?php _e('Show latitude and longitude from front-end :', 'geodirectory'); ?></strong>
614 614
                         </td>
615 615
                         <td align="left">
616 616
                             <input type="checkbox" name="extra[show_latlng]" id="show_latlng"
617 617
                                    value="1" <?php if (isset($address['show_latlng']) && $address['show_latlng'] == '1') {
618 618
                                 echo 'checked="checked"';
619 619
                             }?>/>
620
-                            <span><?php _e('Select if you want to show latitude and longitude fields in address section from front-end.', 'geodirectory');?></span>
620
+                            <span><?php _e('Select if you want to show latitude and longitude fields in address section from front-end.', 'geodirectory'); ?></span>
621 621
                         </td>
622 622
                     </tr>
623 623
                 <?php } // end of extra fields for address field type
@@ -629,41 +629,41 @@  discard block
 block discarded – undo
629 629
 
630 630
                         ?>
631 631
                         <tr>
632
-                            <td><strong><?php _e('Multiselect display type :', 'geodirectory');?></strong></td>
632
+                            <td><strong><?php _e('Multiselect display type :', 'geodirectory'); ?></strong></td>
633 633
                             <td align="left">
634 634
 
635 635
                                 <select name="multi_display_type" id="multi_display_type">
636 636
                                     <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'select') {
637 637
                                         echo 'selected="selected"';
638
-                                    }?> value="select"><?php _e('Select', 'geodirectory');?></option>
638
+                                    }?> value="select"><?php _e('Select', 'geodirectory'); ?></option>
639 639
                                     <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'checkbox') {
640 640
                                         echo 'selected="selected"';
641
-                                    }?> value="checkbox"><?php _e('Checkbox', 'geodirectory');?></option>
641
+                                    }?> value="checkbox"><?php _e('Checkbox', 'geodirectory'); ?></option>
642 642
                                     <option <?php if (isset($field_info->extra_fields) && unserialize($field_info->extra_fields) == 'radio') {
643 643
                                         echo 'selected="selected"';
644
-                                    }?> value="radio"><?php _e('Radio', 'geodirectory');?></option>
644
+                                    }?> value="radio"><?php _e('Radio', 'geodirectory'); ?></option>
645 645
                                 </select>
646 646
 
647 647
                                 <br/>
648
-                                <span><?php _e('Show multiselect list as multiselect,checkbox or radio', 'geodirectory');?></span>
648
+                                <span><?php _e('Show multiselect list as multiselect,checkbox or radio', 'geodirectory'); ?></span>
649 649
                             </td>
650 650
                         </tr>
651 651
                     <?php
652 652
                     }
653 653
                     ?>
654 654
                     <tr>
655
-                        <td><strong><?php _e('Option Values :', 'geodirectory');?></strong></td>
655
+                        <td><strong><?php _e('Option Values :', 'geodirectory'); ?></strong></td>
656 656
                         <td align="left">
657 657
                             <input type="text" name="option_values" id="option_values"
658 658
                                    value="<?php if (isset($field_info->option_values)) {
659 659
                                        echo esc_attr($field_info->option_values);
660 660
                                    }?>"/>
661 661
                             <br/>
662
-                            <span><?php _e('Option Values should be separated by comma.', 'geodirectory');?></span>
662
+                            <span><?php _e('Option Values should be separated by comma.', 'geodirectory'); ?></span>
663 663
                             <br/>
664
-                            <span><?php _e('If using for a "tick filter" place a / and then either a 1 for true or 0 for false', 'geodirectory');?></span>
664
+                            <span><?php _e('If using for a "tick filter" place a / and then either a 1 for true or 0 for false', 'geodirectory'); ?></span>
665 665
                             <br/>
666
-                            <span><?php _e('eg: "No Dogs Allowed/0,Dogs Allowed/1" (Select only, not multiselect)', 'geodirectory');?></span>
666
+                            <span><?php _e('eg: "No Dogs Allowed/0,Dogs Allowed/1" (Select only, not multiselect)', 'geodirectory'); ?></span>
667 667
                             <?php if ($field_type == 'multiselect' || $field_type == 'select') { ?>
668 668
                                 <br/>
669 669
                                 <span><?php _e('- If using OPTGROUP tag to grouping options, use "{optgroup}OPTGROUP-LABEL|OPTION-1,OPTION-2{/optgroup}"', 'geodirectory'); ?></span>
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
                     }
682 682
                     ?>
683 683
                     <tr>
684
-                        <td><strong><?php _e('Date Format :', 'geodirectory');?></strong></td>
684
+                        <td><strong><?php _e('Date Format :', 'geodirectory'); ?></strong></td>
685 685
                         <td align="left" style="overflow:inherit;">
686 686
                             <?php
687 687
                             $date_formats = array(
@@ -699,21 +699,21 @@  discard block
 block discarded – undo
699 699
                              * @since 1.6.5
700 700
                              * @param array $date_formats The PHP date format array.
701 701
                              */
702
-                            $date_formats = apply_filters('geodir_date_formats',$date_formats);
702
+                            $date_formats = apply_filters('geodir_date_formats', $date_formats);
703 703
                             ?>
704 704
                             <select name="extra[date_format]" id="date_format">
705 705
                                 <?php
706
-                                foreach($date_formats as $format){
706
+                                foreach ($date_formats as $format) {
707 707
                                     $selected = '';
708
-                                    if(esc_attr($extra['date_format'])==$format){
708
+                                    if (esc_attr($extra['date_format']) == $format) {
709 709
                                         $selected = "selected='selected'";
710 710
                                     }
711
-                                    echo "<option $selected value='$format'>$format       (".date_i18n( $format, time()).")</option>";
711
+                                    echo "<option $selected value='$format'>$format       (".date_i18n($format, time()).")</option>";
712 712
                                 }
713 713
                                 ?>
714 714
                             </select>
715 715
                             
716
-                            <span><?php _e('Select the date format.', 'geodirectory');?></span>
716
+                            <span><?php _e('Select the date format.', 'geodirectory'); ?></span>
717 717
                         </td>
718 718
                     </tr>
719 719
                 <?php
@@ -726,20 +726,20 @@  discard block
 block discarded – undo
726 726
 					$gd_file_types = !empty($extra_fields) && !empty($extra_fields['gd_file_types']) ? $extra_fields['gd_file_types'] : array('*');
727 727
 					?>
728 728
 					<tr>
729
-					  <td><strong><?php _e('Allowed file types:', 'geodirectory');?></strong></td>
729
+					  <td><strong><?php _e('Allowed file types:', 'geodirectory'); ?></strong></td>
730 730
 						<td align="left">
731 731
 							<select name="extra[gd_file_types][]" id="gd_file_types" multiple="multiple" style="height:100px;width:90%;">
732
-								<option value="*" <?php selected(true, in_array('*', $gd_file_types));?>><?php _e('All types', 'geodirectory') ;?></option>
733
-								<?php foreach ( $allowed_file_types as $format => $types ) { ?>
734
-								<optgroup label="<?php echo esc_attr( wp_sprintf(__('%s formats', 'geodirectory'), __($format, 'geodirectory') ) ) ;?>">
735
-									<?php foreach ( $types as $ext => $type ) { ?>
736
-									<option value="<?php echo esc_attr($ext) ;?>" <?php selected(true, in_array($ext, $gd_file_types));?>><?php echo '.' . $ext ;?></option>
732
+								<option value="*" <?php selected(true, in_array('*', $gd_file_types)); ?>><?php _e('All types', 'geodirectory'); ?></option>
733
+								<?php foreach ($allowed_file_types as $format => $types) { ?>
734
+								<optgroup label="<?php echo esc_attr(wp_sprintf(__('%s formats', 'geodirectory'), __($format, 'geodirectory'))); ?>">
735
+									<?php foreach ($types as $ext => $type) { ?>
736
+									<option value="<?php echo esc_attr($ext); ?>" <?php selected(true, in_array($ext, $gd_file_types)); ?>><?php echo '.'.$ext; ?></option>
737 737
 									<?php } ?>
738 738
 								</optgroup>
739 739
 								<?php } ?>
740 740
 							</select>			
741 741
 							<br />
742
-							<span><?php _e('Select file types to allowed for file uploading. (Select multiple file types by holding down "Ctrl" key.)', GEODIRPAYMENT_TEXTDOMAIN);?></span>				
742
+							<span><?php _e('Select file types to allowed for file uploading. (Select multiple file types by holding down "Ctrl" key.)', GEODIRPAYMENT_TEXTDOMAIN); ?></span>				
743 743
 						</td>
744 744
 					</tr>
745 745
 					<?php 
@@ -754,28 +754,28 @@  discard block
 block discarded – undo
754 754
                 </tr>
755 755
 
756 756
                 <tr>
757
-                    <td><strong><?php _e('Upload icon:', 'geodirectory');?></strong></td>
757
+                    <td><strong><?php _e('Upload icon:', 'geodirectory'); ?></strong></td>
758 758
                     <td align="left">
759 759
                         <input type="text" name="field_icon" id="field_icon"
760 760
                                value="<?php if (isset($field_info->field_icon)) {
761 761
                                    echo $field_info->field_icon;
762 762
                                }?>"/>
763 763
                     <span>
764
-                        <?php _e('Upload icon using media and enter its url path, or enter <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank" >font awesome </a>class eg:"fa fa-home"', 'geodirectory');?>
764
+                        <?php _e('Upload icon using media and enter its url path, or enter <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank" >font awesome </a>class eg:"fa fa-home"', 'geodirectory'); ?>
765 765
                     </span>
766 766
                     </td>
767 767
                     </td>
768 768
                 </tr>
769 769
 
770 770
                 <tr>
771
-                    <td><strong><?php _e('Css class:', 'geodirectory');?></strong></td>
771
+                    <td><strong><?php _e('Css class:', 'geodirectory'); ?></strong></td>
772 772
                     <td align="left">
773 773
                         <input type="text" name="css_class" id="css_class"
774 774
                                value="<?php if (isset($field_info->css_class)) {
775 775
                                    echo esc_attr($field_info->css_class);
776 776
                                }?>"/>
777 777
                     <span>
778
-                        <?php _e('Enter custom css class for field custom style.', 'geodirectory');?>
778
+                        <?php _e('Enter custom css class for field custom style.', 'geodirectory'); ?>
779 779
                     </span>
780 780
                     </td>
781 781
                     </td>
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
                      * @since 1.0.0
834 834
                      * @param object $field_info The current fields info.
835 835
                      */
836
-                    do_action('geodir_advance_custom_fields', $field_info);?>
836
+                    do_action('geodir_advance_custom_fields', $field_info); ?>
837 837
 
838 838
                     <?php /*if(!in_array($field_type,array() )){?>
839 839
 				<tr>
@@ -848,10 +848,10 @@  discard block
 block discarded – undo
848 848
             <tr>
849 849
                 <td>&nbsp;</td>
850 850
                 <td align="left">
851
-                    <input type="button" class="button" name="save" id="save" value="<?php echo esc_attr(__('Save','geodirectory'));?>"
851
+                    <input type="button" class="button" name="save" id="save" value="<?php echo esc_attr(__('Save', 'geodirectory')); ?>"
852 852
                            onclick="save_field('<?php echo esc_attr($result_str); ?>')"/>
853 853
                     <?php if (!$default): ?>
854
-                        <a href="javascript:void(0)"><input type="button" name="delete" value="<?php echo esc_attr(__('Delete','geodirectory'));?>"
854
+                        <a href="javascript:void(0)"><input type="button" name="delete" value="<?php echo esc_attr(__('Delete', 'geodirectory')); ?>"
855 855
                                                             onclick="delete_field('<?php echo esc_attr($result_str); ?>', '<?php echo $nonce; ?>')"
856 856
                                                             class="button_n"/></a>
857 857
                     <?php endif; ?>
Please login to merge, or discard this patch.
geodirectory_shortcodes.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -202,14 +202,14 @@  discard block
 block discarded – undo
202 202
 	// Add marker cluster
203 203
 	if (isset($params['marker_cluster']) && gdsc_to_bool_val($params['marker_cluster']) && defined('GDCLUSTER_VERSION')) {
204 204
         $map_args['enable_marker_cluster'] = true;
205
-        if(get_option('geodir_marker_cluster_type')) {
205
+        if (get_option('geodir_marker_cluster_type')) {
206 206
             if ($map_args['autozoom']) {
207 207
                 $map_args['enable_marker_cluster_no_reposition'] = false;
208 208
             } else {
209 209
                 $map_args['enable_marker_cluster_no_reposition'] = true;
210 210
             }
211 211
 
212
-            $map_args['enable_marker_cluster_server'] = true ;
212
+            $map_args['enable_marker_cluster_server'] = true;
213 213
 
214 214
         }
215 215
 	} else {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	}
218 218
 
219 219
     // if lat and long set in shortcode, hack it so the map is not repositioned
220
-    if(!empty($params['latitude']) && !empty($params['longitude']) ){
220
+    if (!empty($params['latitude']) && !empty($params['longitude'])) {
221 221
         $map_args['enable_marker_cluster_no_reposition'] = true;
222 222
     }
223 223
 
@@ -890,20 +890,20 @@  discard block
 block discarded – undo
890 890
 	
891 891
 	$show_adv_search = isset($params['show_adv_search']) && in_array($params['show_adv_search'], array('default', 'always', 'searched')) ? $params['show_adv_search'] : '';
892 892
 	
893
-	if ($show_adv_search != '' ) {
894
-		$show_adv_class = 'geodir-advance-search-' . $show_adv_search . ' ';
893
+	if ($show_adv_search != '') {
894
+		$show_adv_class = 'geodir-advance-search-'.$show_adv_search.' ';
895 895
 		if ($show_adv_search == 'searched' && geodir_is_page('search')) {
896 896
 			$show_adv_search = 'search';
897 897
 		}
898
-		$show_adv_attrs = 'data-show-adv="' . $show_adv_search . '"';
898
+		$show_adv_attrs = 'data-show-adv="'.$show_adv_search.'"';
899 899
 		
900
-		$params['before_widget'] = str_replace('class="', $show_adv_attrs . ' class="' . $show_adv_class, $params['before_widget']);
900
+		$params['before_widget'] = str_replace('class="', $show_adv_attrs.' class="'.$show_adv_class, $params['before_widget']);
901 901
 	}
902 902
 	
903 903
 	ob_start();
904 904
 	
905 905
 	//geodir_get_template_part('listing', 'filter-form');
906
-	the_widget('geodir_advance_search_widget', $params, $params );
906
+	the_widget('geodir_advance_search_widget', $params, $params);
907 907
 	
908 908
 	$output = ob_get_contents();
909 909
     ob_end_clean();
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
 
1104 1104
     // Validate character_count
1105 1105
     //todo: is this necessary?
1106
-    $params['character_count']  = $params['character_count'];
1106
+    $params['character_count'] = $params['character_count'];
1107 1107
 
1108 1108
     // Validate our layout choice
1109 1109
     // Outside of the norm, I added some more simple terms to match the existing
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
 
1116 1116
     // Validate Listing width, used in the template widget-listing-listview.php
1117 1117
     // The context is in width=$listing_width% - So we need a positive number between 0 & 100
1118
-    $params['listing_width']    = gdsc_validate_listing_width($params['listing_width']);
1118
+    $params['listing_width'] = gdsc_validate_listing_width($params['listing_width']);
1119 1119
 
1120 1120
     // Validate the checkboxes used on the widget
1121 1121
     $params['add_location_filter']  = gdsc_to_bool_val($params['add_location_filter']);
@@ -1131,7 +1131,7 @@  discard block
 block discarded – undo
1131 1131
     if (!empty($params['tags'])) {
1132 1132
         if (!is_array($params['tags'])) {
1133 1133
             $comma = _x(',', 'tag delimiter');
1134
-            if ( ',' !== $comma ) {
1134
+            if (',' !== $comma) {
1135 1135
                 $params['tags'] = str_replace($comma, ',', $params['tags']);
1136 1136
             }
1137 1137
             $params['tags'] = explode(',', trim($params['tags'], " \n\t\r\0\x0B,"));
@@ -1153,13 +1153,13 @@  discard block
 block discarded – undo
1153 1153
         unset($atts['pageno']);
1154 1154
     }
1155 1155
 
1156
-    if ( !empty($atts['shortcode_content']) ) {
1156
+    if (!empty($atts['shortcode_content'])) {
1157 1157
         $content = $atts['shortcode_content'];
1158 1158
     }
1159 1159
     $params['shortcode_content'] = trim($content);
1160 1160
     $atts['shortcode_content'] = trim($content);
1161 1161
     
1162
-    $params['shortcode_atts']       = $atts;
1162
+    $params['shortcode_atts'] = $atts;
1163 1163
 
1164 1164
     $output = geodir_sc_gd_listings_output($params);
1165 1165
 
@@ -1226,8 +1226,8 @@  discard block
 block discarded – undo
1226 1226
 	// Validate the checkboxes used on the widget
1227 1227
     $params['hide_empty'] 	= gdsc_to_bool_val($params['hide_empty']);
1228 1228
     $params['show_count'] 	= gdsc_to_bool_val($params['show_count']);
1229
-    $params['hide_icon'] 	= gdsc_to_bool_val($params['hide_icon']);
1230
-    $params['cpt_left'] 	= gdsc_to_bool_val($params['cpt_left']);
1229
+    $params['hide_icon'] = gdsc_to_bool_val($params['hide_icon']);
1230
+    $params['cpt_left'] = gdsc_to_bool_val($params['cpt_left']);
1231 1231
 	
1232 1232
 	if ($params['max_count'] != 'all') {
1233 1233
 		$params['max_count'] = absint($params['max_count']);
Please login to merge, or discard this patch.
Indentation   +672 added lines, -672 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 // If this file is called directly, abort.
9 9
 if (!defined('WPINC')) {
10
-    die;
10
+	die;
11 11
 }
12 12
 require_once('geodirectory-functions/shortcode_functions.php');
13 13
 
@@ -32,43 +32,43 @@  discard block
 block discarded – undo
32 32
  */
33 33
 function geodir_sc_add_listing($atts)
34 34
 {
35
-    ob_start();
36
-    $defaults = array(
37
-        'pid' => '',
38
-        'listing_type' => 'gd_place',
39
-        'login_msg' => __('You must login to post.', 'geodirectory'),
40
-        'show_login' => false,
41
-    );
42
-    $params = shortcode_atts($defaults, $atts);
43
-
44
-    foreach ($params as $key => $value) {
45
-        $_REQUEST[$key] = $value;
46
-    }
47
-
48
-    $user_id = get_current_user_id();
49
-    if (!$user_id) {
50
-        echo $params['login_msg'];
51
-        if ($params['show_login']) {
52
-            echo "<br />";
53
-            $defaults = array(
54
-                'before_widget' => '',
55
-                'after_widget' => '',
56
-                'before_title' => '',
57
-                'after_title' => '',
58
-            );
59
-
60
-            geodir_loginwidget_output($defaults, $defaults);
61
-        }
62
-
63
-
64
-    } else {
65
-       // Add listing page will be used if shortcode is detected in page content, no need to call it here
66
-    }
67
-    $output = ob_get_contents();
68
-
69
-    ob_end_clean();
70
-
71
-    return $output;
35
+	ob_start();
36
+	$defaults = array(
37
+		'pid' => '',
38
+		'listing_type' => 'gd_place',
39
+		'login_msg' => __('You must login to post.', 'geodirectory'),
40
+		'show_login' => false,
41
+	);
42
+	$params = shortcode_atts($defaults, $atts);
43
+
44
+	foreach ($params as $key => $value) {
45
+		$_REQUEST[$key] = $value;
46
+	}
47
+
48
+	$user_id = get_current_user_id();
49
+	if (!$user_id) {
50
+		echo $params['login_msg'];
51
+		if ($params['show_login']) {
52
+			echo "<br />";
53
+			$defaults = array(
54
+				'before_widget' => '',
55
+				'after_widget' => '',
56
+				'before_title' => '',
57
+				'after_title' => '',
58
+			);
59
+
60
+			geodir_loginwidget_output($defaults, $defaults);
61
+		}
62
+
63
+
64
+	} else {
65
+	   // Add listing page will be used if shortcode is detected in page content, no need to call it here
66
+	}
67
+	$output = ob_get_contents();
68
+
69
+	ob_end_clean();
70
+
71
+	return $output;
72 72
 }
73 73
 
74 74
 /**
@@ -96,136 +96,136 @@  discard block
 block discarded – undo
96 96
  */
97 97
 function geodir_sc_home_map($atts)
98 98
 {
99
-    ob_start();
100
-    $defaults = array(
101
-        'width' => '960',
102
-        'height' => '425',
103
-        'maptype' => 'ROADMAP',
104
-        'zoom' => '13',
105
-        'autozoom' => '',
106
-        'child_collapse' => '0',
107
-        'scrollwheel' => '0',
99
+	ob_start();
100
+	$defaults = array(
101
+		'width' => '960',
102
+		'height' => '425',
103
+		'maptype' => 'ROADMAP',
104
+		'zoom' => '13',
105
+		'autozoom' => '',
106
+		'child_collapse' => '0',
107
+		'scrollwheel' => '0',
108 108
 		'marker_cluster' => false,
109
-        'latitude' => '',
110
-        'longitude' => ''
111
-    );
112
-
113
-    $params = shortcode_atts($defaults, $atts);
114
-
115
-    $params = gdsc_validate_map_args($params);
116
-
117
-    $map_args = array(
118
-        'map_canvas_name' => 'gd_home_map',
119
-        'latitude' => $params['latitude'],
120
-        'longitude' => $params['longitude'],
121
-
122
-        /**
123
-         * Filter the widget width of the map on home/listings page.
124
-         *
125
-         * @since 1.0.0
126
-         * @param mixed(string|int|float) $params['width'] The map width.
127
-         */
128
-        'width' => apply_filters('widget_width', $params['width']),
129
-        /**
130
-         * Filter the widget height of the map on home/listings page.
131
-         *
132
-         * @since 1.0.0
133
-         * @param mixed(string|int|float) $params['height'] The map height.
134
-         */
135
-        'height' => apply_filters('widget_heigh', $params['height']),
136
-        /**
137
-         * Filter the widget maptype of the map on home/listings page.
138
-         *
139
-         * @since 1.0.0
109
+		'latitude' => '',
110
+		'longitude' => ''
111
+	);
112
+
113
+	$params = shortcode_atts($defaults, $atts);
114
+
115
+	$params = gdsc_validate_map_args($params);
116
+
117
+	$map_args = array(
118
+		'map_canvas_name' => 'gd_home_map',
119
+		'latitude' => $params['latitude'],
120
+		'longitude' => $params['longitude'],
121
+
122
+		/**
123
+		 * Filter the widget width of the map on home/listings page.
124
+		 *
125
+		 * @since 1.0.0
126
+		 * @param mixed(string|int|float) $params['width'] The map width.
127
+		 */
128
+		'width' => apply_filters('widget_width', $params['width']),
129
+		/**
130
+		 * Filter the widget height of the map on home/listings page.
131
+		 *
132
+		 * @since 1.0.0
133
+		 * @param mixed(string|int|float) $params['height'] The map height.
134
+		 */
135
+		'height' => apply_filters('widget_heigh', $params['height']),
136
+		/**
137
+		 * Filter the widget maptype of the map on home/listings page.
138
+		 *
139
+		 * @since 1.0.0
140 140
 		 * @since 1.5.2 Added TERRAIN map type.
141
-         * @param string $params['maptype'] The map type. Can be ROADMAP | SATELLITE | HYBRID | TERRAIN.
142
-         */
143
-        'maptype' => apply_filters('widget_maptype', $params['maptype']),
144
-        /**
145
-         * Filter the widget scrollwheel value of the map on home/listings page.
146
-         *
147
-         * Should the scrollwheel zoom the map or not.
148
-         *
149
-         * @since 1.0.0
150
-         * @param bool $params['scrollwheel'] True to allow scroll wheel to scroll map or false if not.
151
-         */
152
-        'scrollwheel' => apply_filters('widget_scrollwheel', $params['scrollwheel']),
153
-        /**
154
-         * Filter the widget zoom level of the map on home/listings page.
155
-         *
156
-         * @since 1.0.0
157
-         * @param int $params['zoom'] The zoom level of the map. Between 1-19.
158
-         */
159
-        'zoom' => apply_filters('widget_zoom', $params['zoom']),
160
-        /**
161
-         * Filter the widget auto zoom value of the map on home/listings page.
162
-         *
163
-         * If the map should autozoom to fit the markers shown.
164
-         *
165
-         * @since 1.0.0
166
-         * @param bool $params['autozoom'] True if the map should autozoom, false if not.
167
-         */
168
-        'autozoom' => apply_filters('widget_autozoom', $params['autozoom']),
169
-        /**
170
-         * Filter the widget child_collapse value of the map on home/listings page.
171
-         *
172
-         * If the map should auto collapse the child categories if the category bar is present.
173
-         *
174
-         * @since 1.0.0
175
-         * @param bool $params['child_collapse'] True if the map should collapse the categories, false if not.
176
-         */
177
-        'child_collapse' => apply_filters('widget_child_collapse', $params['child_collapse']),
178
-        'enable_cat_filters' => true,
179
-        'enable_text_search' => true,
180
-        'enable_post_type_filters' => true,
181
-        /**
182
-         * Filter the widget enable_location_filters value of the map on home/listings page.
183
-         *
184
-         * This is used when the location addon is used.
185
-         *
186
-         * @since 1.0.0
187
-         * @param bool $val True if location filters should be used, false if not.
188
-         */
189
-        'enable_location_filters' => apply_filters('geodir_home_map_enable_location_filters', false),
190
-        'enable_jason_on_load' => false,
191
-        'enable_marker_cluster' => false,
192
-        'enable_map_resize_button' => true,
193
-        'map_class_name' => 'geodir-map-home-page',
194
-        'is_geodir_home_map_widget' => true,
195
-    );
141
+		 * @param string $params['maptype'] The map type. Can be ROADMAP | SATELLITE | HYBRID | TERRAIN.
142
+		 */
143
+		'maptype' => apply_filters('widget_maptype', $params['maptype']),
144
+		/**
145
+		 * Filter the widget scrollwheel value of the map on home/listings page.
146
+		 *
147
+		 * Should the scrollwheel zoom the map or not.
148
+		 *
149
+		 * @since 1.0.0
150
+		 * @param bool $params['scrollwheel'] True to allow scroll wheel to scroll map or false if not.
151
+		 */
152
+		'scrollwheel' => apply_filters('widget_scrollwheel', $params['scrollwheel']),
153
+		/**
154
+		 * Filter the widget zoom level of the map on home/listings page.
155
+		 *
156
+		 * @since 1.0.0
157
+		 * @param int $params['zoom'] The zoom level of the map. Between 1-19.
158
+		 */
159
+		'zoom' => apply_filters('widget_zoom', $params['zoom']),
160
+		/**
161
+		 * Filter the widget auto zoom value of the map on home/listings page.
162
+		 *
163
+		 * If the map should autozoom to fit the markers shown.
164
+		 *
165
+		 * @since 1.0.0
166
+		 * @param bool $params['autozoom'] True if the map should autozoom, false if not.
167
+		 */
168
+		'autozoom' => apply_filters('widget_autozoom', $params['autozoom']),
169
+		/**
170
+		 * Filter the widget child_collapse value of the map on home/listings page.
171
+		 *
172
+		 * If the map should auto collapse the child categories if the category bar is present.
173
+		 *
174
+		 * @since 1.0.0
175
+		 * @param bool $params['child_collapse'] True if the map should collapse the categories, false if not.
176
+		 */
177
+		'child_collapse' => apply_filters('widget_child_collapse', $params['child_collapse']),
178
+		'enable_cat_filters' => true,
179
+		'enable_text_search' => true,
180
+		'enable_post_type_filters' => true,
181
+		/**
182
+		 * Filter the widget enable_location_filters value of the map on home/listings page.
183
+		 *
184
+		 * This is used when the location addon is used.
185
+		 *
186
+		 * @since 1.0.0
187
+		 * @param bool $val True if location filters should be used, false if not.
188
+		 */
189
+		'enable_location_filters' => apply_filters('geodir_home_map_enable_location_filters', false),
190
+		'enable_jason_on_load' => false,
191
+		'enable_marker_cluster' => false,
192
+		'enable_map_resize_button' => true,
193
+		'map_class_name' => 'geodir-map-home-page',
194
+		'is_geodir_home_map_widget' => true,
195
+	);
196 196
 
197 197
 	// Add marker cluster
198 198
 	if (isset($params['marker_cluster']) && gdsc_to_bool_val($params['marker_cluster']) && defined('GDCLUSTER_VERSION')) {
199
-        $map_args['enable_marker_cluster'] = true;
200
-        if(get_option('geodir_marker_cluster_type')) {
201
-            if ($map_args['autozoom']) {
202
-                $map_args['enable_marker_cluster_no_reposition'] = false;
203
-            } else {
204
-                $map_args['enable_marker_cluster_no_reposition'] = true;
205
-            }
199
+		$map_args['enable_marker_cluster'] = true;
200
+		if(get_option('geodir_marker_cluster_type')) {
201
+			if ($map_args['autozoom']) {
202
+				$map_args['enable_marker_cluster_no_reposition'] = false;
203
+			} else {
204
+				$map_args['enable_marker_cluster_no_reposition'] = true;
205
+			}
206 206
 
207
-            $map_args['enable_marker_cluster_server'] = true ;
207
+			$map_args['enable_marker_cluster_server'] = true ;
208 208
 
209
-        }
209
+		}
210 210
 	} else {
211 211
 		$map_args['enable_marker_cluster'] = false;
212 212
 	}
213 213
 
214
-    // if lat and long set in shortcode, hack it so the map is not repositioned
215
-    if(!empty($params['latitude']) && !empty($params['longitude']) ){
216
-        $map_args['enable_marker_cluster_no_reposition'] = true;
217
-    }
214
+	// if lat and long set in shortcode, hack it so the map is not repositioned
215
+	if(!empty($params['latitude']) && !empty($params['longitude']) ){
216
+		$map_args['enable_marker_cluster_no_reposition'] = true;
217
+	}
218 218
 
219 219
 
220
-    geodir_draw_map($map_args);
220
+	geodir_draw_map($map_args);
221 221
 
222
-    add_action('wp_footer', 'geodir_home_map_add_script', 100);
222
+	add_action('wp_footer', 'geodir_home_map_add_script', 100);
223 223
 
224
-    $output = ob_get_contents();
224
+	$output = ob_get_contents();
225 225
 
226
-    ob_end_clean();
226
+	ob_end_clean();
227 227
 
228
-    return $output;
228
+	return $output;
229 229
 }
230 230
 add_shortcode('gd_homepage_map', 'geodir_sc_home_map');
231 231
 
@@ -259,77 +259,77 @@  discard block
 block discarded – undo
259 259
  */
260 260
 function geodir_sc_listing_map($atts)
261 261
 {
262
-    ob_start();
263
-    add_action('wp_head', 'init_listing_map_script'); // Initialize the map object and marker array
264
-
265
-    add_action('the_post', 'create_list_jsondata'); // Add marker in json array
266
-
267
-    add_action('wp_footer', 'show_listing_widget_map'); // Show map for listings with markers
268
-
269
-    $defaults = array(
270
-        'width' => '294',
271
-        'height' => '370',
272
-        'zoom' => '13',
273
-        'autozoom' => '',
274
-        'sticky' => '',
275
-        'showall' => '0',
276
-        'scrollwheel' => '0',
277
-        'maptype' => 'ROADMAP',
278
-        'child_collapse' => 0,
262
+	ob_start();
263
+	add_action('wp_head', 'init_listing_map_script'); // Initialize the map object and marker array
264
+
265
+	add_action('the_post', 'create_list_jsondata'); // Add marker in json array
266
+
267
+	add_action('wp_footer', 'show_listing_widget_map'); // Show map for listings with markers
268
+
269
+	$defaults = array(
270
+		'width' => '294',
271
+		'height' => '370',
272
+		'zoom' => '13',
273
+		'autozoom' => '',
274
+		'sticky' => '',
275
+		'showall' => '0',
276
+		'scrollwheel' => '0',
277
+		'maptype' => 'ROADMAP',
278
+		'child_collapse' => 0,
279 279
 		'marker_cluster' => false
280
-    );
281
-
282
-    $params = shortcode_atts($defaults, $atts);
283
-
284
-    $params = gdsc_validate_map_args($params);
285
-
286
-    $map_args = array(
287
-        'map_canvas_name' => 'gd_listing_map',
288
-        'width' => $params['width'],
289
-        'height' => $params['height'],
290
-        'zoom' => $params['zoom'],
291
-        'autozoom' => $params['autozoom'],
292
-        'sticky' => $params['sticky'],
293
-        'showall' => $params['showall'],
294
-        'scrollwheel' => $params['scrollwheel'],
295
-        'child_collapse' => 0,
296
-        'enable_cat_filters' => false,
297
-        'enable_text_search' => false,
298
-        'enable_post_type_filters' => false,
299
-        'enable_location_filters' => false,
300
-        'enable_jason_on_load' => true,
301
-    );
302
-
303
-    if (is_single()) {
304
-
305
-        global $post;
306
-        $map_default_lat = $address_latitude = $post->post_latitude;
307
-        $map_default_lng = $address_longitude = $post->post_longitude;
308
-        $mapview = $post->post_mapview;
309
-        $map_args['zoom'] = $post->post_mapzoom;
310
-        $map_args['map_class_name'] = 'geodir-map-listing-page-single';
311
-
312
-    } else {
313
-        $default_location = geodir_get_default_location();
314
-
315
-        $map_default_lat = isset($default_location->city_latitude) ? $default_location->city_latitude : '';
316
-        $map_default_lng = isset($default_location->city_longitude) ? $default_location->city_longitude : '';
317
-        $map_args['map_class_name'] = 'geodir-map-listing-page';
318
-    }
319
-
320
-    if (empty($mapview)) {
321
-        $mapview = 'ROADMAP';
322
-    }
323
-
324
-    // Set default map options
325
-    $map_args['ajax_url'] = geodir_get_ajax_url();
326
-    $map_args['latitude'] = $map_default_lat;
327
-    $map_args['longitude'] = $map_default_lng;
328
-    $map_args['streetViewControl'] = true;
329
-    $map_args['maptype'] = $mapview;
330
-    $map_args['showPreview'] = '0';
331
-    $map_args['maxZoom'] = 21;
332
-    $map_args['bubble_size'] = 'small';
280
+	);
281
+
282
+	$params = shortcode_atts($defaults, $atts);
283
+
284
+	$params = gdsc_validate_map_args($params);
285
+
286
+	$map_args = array(
287
+		'map_canvas_name' => 'gd_listing_map',
288
+		'width' => $params['width'],
289
+		'height' => $params['height'],
290
+		'zoom' => $params['zoom'],
291
+		'autozoom' => $params['autozoom'],
292
+		'sticky' => $params['sticky'],
293
+		'showall' => $params['showall'],
294
+		'scrollwheel' => $params['scrollwheel'],
295
+		'child_collapse' => 0,
296
+		'enable_cat_filters' => false,
297
+		'enable_text_search' => false,
298
+		'enable_post_type_filters' => false,
299
+		'enable_location_filters' => false,
300
+		'enable_jason_on_load' => true,
301
+	);
302
+
303
+	if (is_single()) {
304
+
305
+		global $post;
306
+		$map_default_lat = $address_latitude = $post->post_latitude;
307
+		$map_default_lng = $address_longitude = $post->post_longitude;
308
+		$mapview = $post->post_mapview;
309
+		$map_args['zoom'] = $post->post_mapzoom;
310
+		$map_args['map_class_name'] = 'geodir-map-listing-page-single';
311
+
312
+	} else {
313
+		$default_location = geodir_get_default_location();
314
+
315
+		$map_default_lat = isset($default_location->city_latitude) ? $default_location->city_latitude : '';
316
+		$map_default_lng = isset($default_location->city_longitude) ? $default_location->city_longitude : '';
317
+		$map_args['map_class_name'] = 'geodir-map-listing-page';
318
+	}
319
+
320
+	if (empty($mapview)) {
321
+		$mapview = 'ROADMAP';
322
+	}
323
+
324
+	// Set default map options
325
+	$map_args['ajax_url'] = geodir_get_ajax_url();
326
+	$map_args['latitude'] = $map_default_lat;
327
+	$map_args['longitude'] = $map_default_lng;
328
+	$map_args['streetViewControl'] = true;
329
+	$map_args['maptype'] = $mapview;
330
+	$map_args['showPreview'] = '0';
331
+	$map_args['maxZoom'] = 21;
332
+	$map_args['bubble_size'] = 'small';
333 333
 	
334 334
 	// Add marker cluster
335 335
 	if (isset($params['marker_cluster']) && gdsc_to_bool_val($params['marker_cluster']) && defined('GDCLUSTER_VERSION')) {
@@ -338,13 +338,13 @@  discard block
 block discarded – undo
338 338
 		$map_args['enable_marker_cluster'] = false;
339 339
 	}
340 340
 
341
-    geodir_draw_map($map_args);
341
+	geodir_draw_map($map_args);
342 342
 
343
-    $output = ob_get_contents();
343
+	$output = ob_get_contents();
344 344
 
345
-    ob_end_clean();
345
+	ob_end_clean();
346 346
 
347
-    return $output;
347
+	return $output;
348 348
 }
349 349
 
350 350
 add_shortcode('gd_listing_slider', 'geodir_sc_listing_slider');
@@ -377,120 +377,120 @@  discard block
 block discarded – undo
377 377
  */
378 378
 function geodir_sc_listing_slider($atts)
379 379
 {
380
-    ob_start();
381
-    $defaults = array(
382
-        'post_type' => 'gd_place',
383
-        'category' => '0',
384
-        'post_number' => '5',
385
-        'slideshow' => '0',
386
-        'animation_loop' => 0,
387
-        'direction_nav' => 0,
388
-        'slideshow_speed' => 5000,
389
-        'animation_speed' => 600,
390
-        'animation' => 'slide',
391
-        'order_by' => 'latest',
392
-        'show_title' => '',
393
-        'show_featured_only' => '',
394
-        'title' => '',
395
-    );
396
-
397
-    $params = shortcode_atts($defaults, $atts);
398
-
399
-
400
-    /*
380
+	ob_start();
381
+	$defaults = array(
382
+		'post_type' => 'gd_place',
383
+		'category' => '0',
384
+		'post_number' => '5',
385
+		'slideshow' => '0',
386
+		'animation_loop' => 0,
387
+		'direction_nav' => 0,
388
+		'slideshow_speed' => 5000,
389
+		'animation_speed' => 600,
390
+		'animation' => 'slide',
391
+		'order_by' => 'latest',
392
+		'show_title' => '',
393
+		'show_featured_only' => '',
394
+		'title' => '',
395
+	);
396
+
397
+	$params = shortcode_atts($defaults, $atts);
398
+
399
+
400
+	/*
401 401
      *
402 402
      * Now we begin the validation of the attributes.
403 403
      */
404
-    // Check we have a valid post_type
405
-    if (!(gdsc_is_post_type_valid($params['post_type']))) {
406
-        $params['post_type'] = 'gd_place';
407
-    }
408
-
409
-    // Check we have a valid sort_order
410
-    $params['order_by'] = gdsc_validate_sort_choice($params['order_by']);
411
-
412
-    // Match the chosen animation to our options
413
-    $animation_list = array('slide', 'fade');
414
-    if (!(in_array($params['animation'], $animation_list))) {
415
-        $params['animation'] = 'slide';
416
-    }
417
-
418
-    // Post_number needs to be a positive integer
419
-    $params['post_number'] = absint($params['post_number']);
420
-    if (0 == $params['post_number']) {
421
-        $params['post_number'] = 1;
422
-    }
423
-
424
-    // Manage the entered categories
425
-    if (0 != $params['category'] || '' != $params['category']) {
426
-        $params['category'] = gdsc_manage_category_choice($params['post_type'], $params['category']);
427
-    }
428
-    // Convert show_title to a bool
429
-    $params['show_title'] = intval(gdsc_to_bool_val($params['show_title']));
430
-
431
-    // Convert show_featured_only to a bool
432
-    $params['show_featured_only'] = intval(gdsc_to_bool_val($params['show_featured_only']));
433
-
434
-    /*
404
+	// Check we have a valid post_type
405
+	if (!(gdsc_is_post_type_valid($params['post_type']))) {
406
+		$params['post_type'] = 'gd_place';
407
+	}
408
+
409
+	// Check we have a valid sort_order
410
+	$params['order_by'] = gdsc_validate_sort_choice($params['order_by']);
411
+
412
+	// Match the chosen animation to our options
413
+	$animation_list = array('slide', 'fade');
414
+	if (!(in_array($params['animation'], $animation_list))) {
415
+		$params['animation'] = 'slide';
416
+	}
417
+
418
+	// Post_number needs to be a positive integer
419
+	$params['post_number'] = absint($params['post_number']);
420
+	if (0 == $params['post_number']) {
421
+		$params['post_number'] = 1;
422
+	}
423
+
424
+	// Manage the entered categories
425
+	if (0 != $params['category'] || '' != $params['category']) {
426
+		$params['category'] = gdsc_manage_category_choice($params['post_type'], $params['category']);
427
+	}
428
+	// Convert show_title to a bool
429
+	$params['show_title'] = intval(gdsc_to_bool_val($params['show_title']));
430
+
431
+	// Convert show_featured_only to a bool
432
+	$params['show_featured_only'] = intval(gdsc_to_bool_val($params['show_featured_only']));
433
+
434
+	/*
435 435
      * Hopefully all attributes are now valid, and safe to pass forward
436 436
      */
437 437
 
438
-    // redeclare vars after validation
439
-
440
-    if (isset($params['direction_nav'])) {
441
-        $params['directionNav'] = $params['direction_nav'];
442
-    }
443
-    if (isset($params['animation_loop'])) {
444
-        $params['animationLoop'] = $params['animation_loop'];
445
-    }
446
-    if (isset($params['slideshow_speed'])) {
447
-        $params['slideshowSpeed'] = $params['slideshow_speed'];
448
-    }
449
-    if (isset($params['animation_speed'])) {
450
-        $params['animationSpeed'] = $params['animation_speed'];
451
-    }
452
-    if (isset($params['order_by'])) {
453
-        $params['list_sort'] = $params['order_by'];
454
-    }
455
-
456
-    $query_args = array(
457
-        'post_number' => $params['post_number'],
458
-        'is_geodir_loop' => true,
459
-        'post_type' => $params['post_type'],
460
-        'order_by' => $params['order_by']
461
-    );
462
-
463
-    if (1 == $params['show_featured_only']) {
464
-        $query_args['show_featured_only'] = 1;
465
-    }
466
-
467
-    if (0 != $params['category'] && '' != $params['category']) {
468
-        $category_taxonomy = geodir_get_taxonomies($params['post_type']);
469
-        $tax_query = array(
470
-            'taxonomy' => $category_taxonomy[0],
471
-            'field' => 'id',
472
-            'terms' => $params['category'],
473
-        );
474
-
475
-        $query_args['tax_query'] = array($tax_query);
476
-    }
477
-
478
-    $defaults = array(
479
-        'before_widget' => '',
480
-        'after_widget' => '',
481
-        'before_title' => '',
482
-        'after_title' => '',
483
-    );
484
-
485
-    $query_args = array_merge($query_args, $params);
486
-
487
-    geodir_listing_slider_widget_output($defaults, $query_args);
488
-
489
-    $output = ob_get_contents();
490
-
491
-    ob_end_clean();
492
-
493
-    return $output;
438
+	// redeclare vars after validation
439
+
440
+	if (isset($params['direction_nav'])) {
441
+		$params['directionNav'] = $params['direction_nav'];
442
+	}
443
+	if (isset($params['animation_loop'])) {
444
+		$params['animationLoop'] = $params['animation_loop'];
445
+	}
446
+	if (isset($params['slideshow_speed'])) {
447
+		$params['slideshowSpeed'] = $params['slideshow_speed'];
448
+	}
449
+	if (isset($params['animation_speed'])) {
450
+		$params['animationSpeed'] = $params['animation_speed'];
451
+	}
452
+	if (isset($params['order_by'])) {
453
+		$params['list_sort'] = $params['order_by'];
454
+	}
455
+
456
+	$query_args = array(
457
+		'post_number' => $params['post_number'],
458
+		'is_geodir_loop' => true,
459
+		'post_type' => $params['post_type'],
460
+		'order_by' => $params['order_by']
461
+	);
462
+
463
+	if (1 == $params['show_featured_only']) {
464
+		$query_args['show_featured_only'] = 1;
465
+	}
466
+
467
+	if (0 != $params['category'] && '' != $params['category']) {
468
+		$category_taxonomy = geodir_get_taxonomies($params['post_type']);
469
+		$tax_query = array(
470
+			'taxonomy' => $category_taxonomy[0],
471
+			'field' => 'id',
472
+			'terms' => $params['category'],
473
+		);
474
+
475
+		$query_args['tax_query'] = array($tax_query);
476
+	}
477
+
478
+	$defaults = array(
479
+		'before_widget' => '',
480
+		'after_widget' => '',
481
+		'before_title' => '',
482
+		'after_title' => '',
483
+	);
484
+
485
+	$query_args = array_merge($query_args, $params);
486
+
487
+	geodir_listing_slider_widget_output($defaults, $query_args);
488
+
489
+	$output = ob_get_contents();
490
+
491
+	ob_end_clean();
492
+
493
+	return $output;
494 494
 }
495 495
 
496 496
 add_shortcode('gd_login_box', 'geodir_sc_login_box');
@@ -514,22 +514,22 @@  discard block
 block discarded – undo
514 514
  */
515 515
 function geodir_sc_login_box($atts)
516 516
 {
517
-    ob_start();
517
+	ob_start();
518 518
 
519
-    $defaults = array(
520
-        'before_widget' => '',
521
-        'after_widget' => '',
522
-        'before_title' => '',
523
-        'after_title' => '',
524
-    );
519
+	$defaults = array(
520
+		'before_widget' => '',
521
+		'after_widget' => '',
522
+		'before_title' => '',
523
+		'after_title' => '',
524
+	);
525 525
 
526
-    geodir_loginwidget_output($defaults, $defaults);
526
+	geodir_loginwidget_output($defaults, $defaults);
527 527
 
528
-    $output = ob_get_contents();
528
+	$output = ob_get_contents();
529 529
 
530
-    ob_end_clean();
530
+	ob_end_clean();
531 531
 
532
-    return $output;
532
+	return $output;
533 533
 }
534 534
 
535 535
 add_shortcode('gd_popular_post_category', 'geodir_sc_popular_post_category');
@@ -558,28 +558,28 @@  discard block
 block discarded – undo
558 558
  */
559 559
 function geodir_sc_popular_post_category($atts)
560 560
 {
561
-    ob_start();
562
-    global $geodir_post_category_str;
563
-    $defaults = array(
564
-        'category_limit' => 15,
565
-        'before_widget' => '',
566
-        'after_widget' => '',
567
-        'before_title' => '',
568
-        'after_title' => '',
569
-        'title' => '',
561
+	ob_start();
562
+	global $geodir_post_category_str;
563
+	$defaults = array(
564
+		'category_limit' => 15,
565
+		'before_widget' => '',
566
+		'after_widget' => '',
567
+		'before_title' => '',
568
+		'after_title' => '',
569
+		'title' => '',
570 570
 		'default_post_type' => '',
571
-    );
571
+	);
572 572
 
573
-    $params = shortcode_atts($defaults, $atts, 'popular_post_category');
574
-    $params['category_limit'] = absint($params['category_limit']);
573
+	$params = shortcode_atts($defaults, $atts, 'popular_post_category');
574
+	$params['category_limit'] = absint($params['category_limit']);
575 575
 	$params['default_post_type'] = gdsc_is_post_type_valid($params['default_post_type']) ? $params['default_post_type'] : '';
576
-    geodir_popular_post_category_output($params, $params);
576
+	geodir_popular_post_category_output($params, $params);
577 577
 
578
-    $output = ob_get_contents();
578
+	$output = ob_get_contents();
579 579
 
580
-    ob_end_clean();
580
+	ob_end_clean();
581 581
 
582
-    return $output;
582
+	return $output;
583 583
 }
584 584
 
585 585
 add_shortcode('gd_popular_post_view', 'geodir_sc_popular_post_view');
@@ -619,97 +619,97 @@  discard block
 block discarded – undo
619 619
  */
620 620
 function geodir_sc_popular_post_view($atts)
621 621
 {
622
-    ob_start();
623
-    $defaults = array(
624
-        'post_type' => 'gd_place',
625
-        'category' => '0',
626
-        'post_number' => '5',
627
-        'layout' => 'gridview_onehalf',
628
-        'add_location_filter' => '0',
629
-        'list_sort' => 'latest',
630
-        'use_viewing_post_type' => '1',
631
-        'character_count' => '20',
632
-        'listing_width' => '',
633
-        'show_featured_only' => '0',
634
-        'show_special_only' => '0',
635
-        'with_pics_only' => '0',
636
-        'with_videos_only' => '0',
637
-        'before_widget' => '',
638
-        'after_widget' => '',
639
-        'before_title' => '<h3 class="widget-title">',
640
-        'after_title' => '</h3>',
641
-        'title' => '',
642
-        'category_title' => '',
643
-    );
644
-
645
-    $params = shortcode_atts($defaults, $atts);
646
-
647
-    /**
648
-     * Validate our incoming params
649
-     */
622
+	ob_start();
623
+	$defaults = array(
624
+		'post_type' => 'gd_place',
625
+		'category' => '0',
626
+		'post_number' => '5',
627
+		'layout' => 'gridview_onehalf',
628
+		'add_location_filter' => '0',
629
+		'list_sort' => 'latest',
630
+		'use_viewing_post_type' => '1',
631
+		'character_count' => '20',
632
+		'listing_width' => '',
633
+		'show_featured_only' => '0',
634
+		'show_special_only' => '0',
635
+		'with_pics_only' => '0',
636
+		'with_videos_only' => '0',
637
+		'before_widget' => '',
638
+		'after_widget' => '',
639
+		'before_title' => '<h3 class="widget-title">',
640
+		'after_title' => '</h3>',
641
+		'title' => '',
642
+		'category_title' => '',
643
+	);
650 644
 
651
-    // Validate the selected post type, default to gd_place on fail
652
-    if (!(gdsc_is_post_type_valid($params['post_type']))) {
653
-        $params['post_type'] = 'gd_place';
654
-    }
655
-
656
-    // Validate the selected category/ies - Grab the current list based on post_type
657
-    $category_taxonomy = geodir_get_taxonomies($params['post_type']);
658
-    $categories = get_terms($category_taxonomy, array('orderby' => 'count', 'order' => 'DESC', 'fields' => 'ids'));
659
-
660
-    // Make sure we have an array
661
-    if (!(is_array($params['category']))) {
662
-        $params['category'] = explode(',', $params['category']);
663
-    }
664
-
665
-    // Array_intersect returns only the items in $params['category'] that are also in our category list
666
-    // Otherwise it becomes empty and later on that will mean "All"
667
-    $params['category'] = array_intersect($params['category'], $categories);
668
-
669
-    // Post_number needs to be a positive integer
670
-    $params['post_number'] = absint($params['post_number']);
671
-    if (0 == $params['post_number']) {
672
-        $params['post_number'] = 1;
673
-    }
674
-
675
-    // Validate our layout choice
676
-    // Outside of the norm, I added some more simple terms to match the existing
677
-    // So now I just run the switch to set it properly.
678
-    $params['layout'] = gdsc_validate_layout_choice($params['layout']);
679
-
680
-    // Validate our sorting choice
681
-    $params['list_sort'] = gdsc_validate_sort_choice($params['list_sort']);
682
-
683
-    // Validate character_count
684
-    $params['character_count'] = absint($params['character_count']);
685
-    if (20 > $params['character_count']) {
686
-        $params['character_count'] = 20;
687
-    }
688
-
689
-    // Validate Listing width, used in the template widget-listing-listview.php
690
-    // The context is in width=$listing_width% - So we need a positive number between 0 & 100
691
-    $params['listing_width'] = gdsc_validate_listing_width($params['listing_width']);
692
-
693
-    // Validate the checkboxes used on the widget
694
-    $params['add_location_filter'] = gdsc_to_bool_val($params['add_location_filter']);
695
-    $params['show_featured_only'] = gdsc_to_bool_val($params['show_featured_only']);
696
-    $params['show_special_only'] = gdsc_to_bool_val($params['show_special_only']);
697
-    $params['with_pics_only'] = gdsc_to_bool_val($params['with_pics_only']);
698
-    $params['with_videos_only'] = gdsc_to_bool_val($params['with_videos_only']);
699
-    $params['use_viewing_post_type'] = gdsc_to_bool_val($params['use_viewing_post_type']);
700
-
701
-    /**
702
-     * End of validation
703
-     */
645
+	$params = shortcode_atts($defaults, $atts);
646
+
647
+	/**
648
+	 * Validate our incoming params
649
+	 */
650
+
651
+	// Validate the selected post type, default to gd_place on fail
652
+	if (!(gdsc_is_post_type_valid($params['post_type']))) {
653
+		$params['post_type'] = 'gd_place';
654
+	}
655
+
656
+	// Validate the selected category/ies - Grab the current list based on post_type
657
+	$category_taxonomy = geodir_get_taxonomies($params['post_type']);
658
+	$categories = get_terms($category_taxonomy, array('orderby' => 'count', 'order' => 'DESC', 'fields' => 'ids'));
659
+
660
+	// Make sure we have an array
661
+	if (!(is_array($params['category']))) {
662
+		$params['category'] = explode(',', $params['category']);
663
+	}
664
+
665
+	// Array_intersect returns only the items in $params['category'] that are also in our category list
666
+	// Otherwise it becomes empty and later on that will mean "All"
667
+	$params['category'] = array_intersect($params['category'], $categories);
668
+
669
+	// Post_number needs to be a positive integer
670
+	$params['post_number'] = absint($params['post_number']);
671
+	if (0 == $params['post_number']) {
672
+		$params['post_number'] = 1;
673
+	}
704 674
 
705
-    geodir_popular_postview_output($params, $params);
675
+	// Validate our layout choice
676
+	// Outside of the norm, I added some more simple terms to match the existing
677
+	// So now I just run the switch to set it properly.
678
+	$params['layout'] = gdsc_validate_layout_choice($params['layout']);
706 679
 
680
+	// Validate our sorting choice
681
+	$params['list_sort'] = gdsc_validate_sort_choice($params['list_sort']);
707 682
 
708
-    $output = ob_get_contents();
683
+	// Validate character_count
684
+	$params['character_count'] = absint($params['character_count']);
685
+	if (20 > $params['character_count']) {
686
+		$params['character_count'] = 20;
687
+	}
688
+
689
+	// Validate Listing width, used in the template widget-listing-listview.php
690
+	// The context is in width=$listing_width% - So we need a positive number between 0 & 100
691
+	$params['listing_width'] = gdsc_validate_listing_width($params['listing_width']);
692
+
693
+	// Validate the checkboxes used on the widget
694
+	$params['add_location_filter'] = gdsc_to_bool_val($params['add_location_filter']);
695
+	$params['show_featured_only'] = gdsc_to_bool_val($params['show_featured_only']);
696
+	$params['show_special_only'] = gdsc_to_bool_val($params['show_special_only']);
697
+	$params['with_pics_only'] = gdsc_to_bool_val($params['with_pics_only']);
698
+	$params['with_videos_only'] = gdsc_to_bool_val($params['with_videos_only']);
699
+	$params['use_viewing_post_type'] = gdsc_to_bool_val($params['use_viewing_post_type']);
700
+
701
+	/**
702
+	 * End of validation
703
+	 */
709 704
 
710
-    ob_end_clean();
705
+	geodir_popular_postview_output($params, $params);
711 706
 
712
-    return $output;
707
+
708
+	$output = ob_get_contents();
709
+
710
+	ob_end_clean();
711
+
712
+	return $output;
713 713
 }
714 714
 
715 715
 add_shortcode('gd_recent_reviews', 'geodir_sc_recent_reviews');
@@ -731,37 +731,37 @@  discard block
 block discarded – undo
731 731
  * @return string Recent reviews HTML.
732 732
  */
733 733
 function geodir_sc_recent_reviews($atts) {
734
-    ob_start();
735
-    $defaults = array(
734
+	ob_start();
735
+	$defaults = array(
736 736
 		'title' => '',
737 737
 		'count' => 5,
738
-    );
738
+	);
739 739
 
740
-    $params = shortcode_atts($defaults, $atts);
740
+	$params = shortcode_atts($defaults, $atts);
741 741
 
742
-    $count = absint($params['count']);
743
-    if (0 == $count) {
744
-        $count = 1;
745
-    }
742
+	$count = absint($params['count']);
743
+	if (0 == $count) {
744
+		$count = 1;
745
+	}
746 746
 	
747 747
 	$title = !empty($params['title']) ? __($params['title'], 'geodirectory') : '';
748 748
 
749
-    $comments_li = geodir_get_recent_reviews(30, $count, 100, false);
749
+	$comments_li = geodir_get_recent_reviews(30, $count, 100, false);
750 750
 
751
-    if ($comments_li) {
752
-        if ($title != '') { ?>
751
+	if ($comments_li) {
752
+		if ($title != '') { ?>
753 753
 		<h3 class="geodir-sc-recent-reviews-title widget-title"><?php echo $title; ?></h3>
754 754
 		<?php } ?>
755 755
         <div class="geodir_sc_recent_reviews_section">
756 756
             <ul class="geodir_sc_recent_reviews"><?php echo $comments_li; ?></ul>
757 757
         </div>
758 758
     <?php
759
-    }
760
-    $output = ob_get_contents();
759
+	}
760
+	$output = ob_get_contents();
761 761
 
762
-    ob_end_clean();
762
+	ob_end_clean();
763 763
 
764
-    return $output;
764
+	return $output;
765 765
 }
766 766
 
767 767
 add_shortcode('gd_related_listings', 'geodir_sc_related_listings');
@@ -791,64 +791,64 @@  discard block
 block discarded – undo
791 791
  */
792 792
 function geodir_sc_related_listings($atts)
793 793
 {
794
-    ob_start();
795
-    $defaults = array(
796
-        'post_number' => 5,
797
-        'relate_to' => 'category',
798
-        'layout' => 'gridview_onehalf',
799
-        'add_location_filter' => 0,
800
-        'listing_width' => '',
801
-        'list_sort' => 'latest',
802
-        'character_count' => 20,
803
-        'is_widget' => 1,
804
-        'before_title' => '<style type="text/css">.geodir_category_list_view li{margin:0px!important}</style>',
805
-    );
806
-    // The "before_title" code is an ugly & terrible hack. But it works for now. I should enqueue a new stylesheet.
807
-
808
-    $params = shortcode_atts($defaults, $atts);
809
-
810
-    /**
811
-     * Begin validating parameters
812
-     */
794
+	ob_start();
795
+	$defaults = array(
796
+		'post_number' => 5,
797
+		'relate_to' => 'category',
798
+		'layout' => 'gridview_onehalf',
799
+		'add_location_filter' => 0,
800
+		'listing_width' => '',
801
+		'list_sort' => 'latest',
802
+		'character_count' => 20,
803
+		'is_widget' => 1,
804
+		'before_title' => '<style type="text/css">.geodir_category_list_view li{margin:0px!important}</style>',
805
+	);
806
+	// The "before_title" code is an ugly & terrible hack. But it works for now. I should enqueue a new stylesheet.
807
+
808
+	$params = shortcode_atts($defaults, $atts);
809
+
810
+	/**
811
+	 * Begin validating parameters
812
+	 */
813 813
 
814
-    // Validate that post_number is a number and is 1 or higher
815
-    $params['post_number'] = absint($params['post_number']);
816
-    if (0 === $params['post_number']) {
817
-        $params['post_number'] = 1;
818
-    }
814
+	// Validate that post_number is a number and is 1 or higher
815
+	$params['post_number'] = absint($params['post_number']);
816
+	if (0 === $params['post_number']) {
817
+		$params['post_number'] = 1;
818
+	}
819 819
 
820
-    // Validate relate_to - only category or tags
821
-    $params['relate_to'] = geodir_strtolower($params['relate_to']);
822
-    if ('category' != $params['relate_to'] && 'tags' != $params['relate_to']) {
823
-        $params['relate_to'] = 'category';
824
-    }
820
+	// Validate relate_to - only category or tags
821
+	$params['relate_to'] = geodir_strtolower($params['relate_to']);
822
+	if ('category' != $params['relate_to'] && 'tags' != $params['relate_to']) {
823
+		$params['relate_to'] = 'category';
824
+	}
825 825
 
826
-    // Validate layout selection
827
-    $params['layout'] = gdsc_validate_layout_choice($params['layout']);
826
+	// Validate layout selection
827
+	$params['layout'] = gdsc_validate_layout_choice($params['layout']);
828 828
 
829
-    // Validate sorting option
830
-    $params['list_sort'] = gdsc_validate_sort_choice($params['list_sort']);
829
+	// Validate sorting option
830
+	$params['list_sort'] = gdsc_validate_sort_choice($params['list_sort']);
831 831
 
832
-    // Validate add_location_filter
833
-    $params['add_location_filter'] = gdsc_to_bool_val($params['add_location_filter']);
832
+	// Validate add_location_filter
833
+	$params['add_location_filter'] = gdsc_to_bool_val($params['add_location_filter']);
834 834
 
835
-    // Validate listing_width
836
-    $params['listing_width'] = gdsc_validate_listing_width($params['listing_width']);
835
+	// Validate listing_width
836
+	$params['listing_width'] = gdsc_validate_listing_width($params['listing_width']);
837 837
 
838
-    // Validate character_count
839
-    $params['character_count'] = absint($params['character_count']);
840
-    if (20 > $params['character_count']) {
841
-        $params['character_count'] = 20;
842
-    }
838
+	// Validate character_count
839
+	$params['character_count'] = absint($params['character_count']);
840
+	if (20 > $params['character_count']) {
841
+		$params['character_count'] = 20;
842
+	}
843 843
 
844
-    if ($related_display = geodir_related_posts_display($params)) {
845
-        echo $related_display;
846
-    }
847
-    $output = ob_get_contents();
844
+	if ($related_display = geodir_related_posts_display($params)) {
845
+		echo $related_display;
846
+	}
847
+	$output = ob_get_contents();
848 848
 
849
-    ob_end_clean();
849
+	ob_end_clean();
850 850
 
851
-    return $output;
851
+	return $output;
852 852
 }
853 853
 
854 854
 /**
@@ -872,12 +872,12 @@  discard block
 block discarded – undo
872 872
  * @return string Advanced search widget HTML.
873 873
  */
874 874
 function geodir_sc_advanced_search($atts) {
875
-    $defaults = array(
875
+	$defaults = array(
876 876
 		'title' => '',
877 877
 		'before_widget' => '<section id="geodir_advanced_search-1" class="widget geodir-widget geodir_advance_search_widget">',
878
-        'after_widget' => '</section>',
879
-        'before_title' => '<h3 class="widget-title">',
880
-        'after_title' => '</h3>',
878
+		'after_widget' => '</section>',
879
+		'before_title' => '<h3 class="widget-title">',
880
+		'after_title' => '</h3>',
881 881
 		'show_adv_search' => 'default'
882 882
 	);
883 883
 	
@@ -901,9 +901,9 @@  discard block
 block discarded – undo
901 901
 	the_widget('geodir_advance_search_widget', $params, $params );
902 902
 	
903 903
 	$output = ob_get_contents();
904
-    ob_end_clean();
904
+	ob_end_clean();
905 905
 
906
-    return $output;
906
+	return $output;
907 907
 }
908 908
 add_shortcode('gd_advanced_search', 'geodir_sc_advanced_search');
909 909
 
@@ -949,48 +949,48 @@  discard block
 block discarded – undo
949 949
 		'add_location_filter' => '1',
950 950
 		'tab_layout' => 'bestof-tabs-on-top',
951 951
 		'before_widget' => '<section id="bestof_widget-1" class="widget geodir-widget geodir_bestof_widget geodir_sc_bestof_widget">',
952
-        'after_widget' => '</section>',
953
-        'before_title' => '<h3 class="widget-title">',
954
-        'after_title' => '</h3>',
952
+		'after_widget' => '</section>',
953
+		'before_title' => '<h3 class="widget-title">',
954
+		'after_title' => '</h3>',
955 955
 	);
956 956
 	$params = shortcode_atts($defaults, $atts);
957 957
 
958
-    /**
959
-     * Validate our incoming params
960
-     */
958
+	/**
959
+	 * Validate our incoming params
960
+	 */
961 961
 
962
-    // Validate the selected post type, default to gd_place on fail
963
-    if (!(gdsc_is_post_type_valid($params['post_type']))) {
964
-        $params['post_type'] = 'gd_place';
965
-    }
962
+	// Validate the selected post type, default to gd_place on fail
963
+	if (!(gdsc_is_post_type_valid($params['post_type']))) {
964
+		$params['post_type'] = 'gd_place';
965
+	}
966 966
 	
967 967
 	// Post limit needs to be a positive integer
968
-    $params['post_limit'] = absint($params['post_limit']);
969
-    if (0 == $params['post_limit']) {
970
-        $params['post_limit'] = 5;
971
-    }
968
+	$params['post_limit'] = absint($params['post_limit']);
969
+	if (0 == $params['post_limit']) {
970
+		$params['post_limit'] = 5;
971
+	}
972 972
 	
973 973
 	// Category limit needs to be a positive integer
974
-    $params['categ_limit'] = absint($params['categ_limit']);
975
-    if (0 == $params['categ_limit']) {
976
-        $params['categ_limit'] = 3;
977
-    }
974
+	$params['categ_limit'] = absint($params['categ_limit']);
975
+	if (0 == $params['categ_limit']) {
976
+		$params['categ_limit'] = 3;
977
+	}
978 978
 	
979 979
 	// Tab layout validation
980
-    $params['tab_layout'] = $params['tab_layout'];
981
-    if (!in_array($params['tab_layout'], array('bestof-tabs-on-top', 'bestof-tabs-on-left', 'bestof-tabs-as-dropdown'))) {
982
-        $params['tab_layout'] = 'bestof-tabs-on-top';
983
-    }
980
+	$params['tab_layout'] = $params['tab_layout'];
981
+	if (!in_array($params['tab_layout'], array('bestof-tabs-on-top', 'bestof-tabs-on-left', 'bestof-tabs-as-dropdown'))) {
982
+		$params['tab_layout'] = 'bestof-tabs-on-top';
983
+	}
984 984
 	
985 985
 	// Validate character_count
986
-    $params['character_count'] = $params['character_count'];
986
+	$params['character_count'] = $params['character_count'];
987 987
 
988 988
 	ob_start();
989 989
 	the_widget('geodir_bestof_widget', $params, $params);
990
-    $output = ob_get_contents();
991
-    ob_end_clean();
990
+	$output = ob_get_contents();
991
+	ob_end_clean();
992 992
 
993
-    return $output;
993
+	return $output;
994 994
 }
995 995
 add_shortcode('gd_bestof_widget', 'geodir_sc_bestof_widget');
996 996
 
@@ -1038,127 +1038,127 @@  discard block
 block discarded – undo
1038 1038
  * @return string HTML content to display geodirectory listings.
1039 1039
  */
1040 1040
 function geodir_sc_gd_listings($atts, $content = '') {
1041
-    global $post;
1042
-    $defaults = array(
1043
-        'title'                 => '',
1044
-        'post_type'             => 'gd_place',
1045
-        'category'              => 0,
1046
-        'list_sort'             => 'latest',
1047
-        'event_type'            => '',
1048
-        'post_number'           => 10,
1049
-        'post_author'           => '',
1050
-        'layout'                => 'gridview_onehalf',
1051
-        'listing_width'         => '',
1052
-        'character_count'       => 20,
1053
-        'add_location_filter'   => 1,
1054
-        'show_featured_only'    => '',
1055
-        'show_special_only'     => '',
1056
-        'with_pics_only'        => '',
1057
-        'with_videos_only'      => '',
1058
-        'with_pagination'       => '1',
1059
-        'top_pagination'        => '0',
1060
-        'bottom_pagination'     => '1',
1061
-        'without_no_results'    => 0,
1062
-        'tags'                  => ''
1063
-    );
1064
-    $params = shortcode_atts($defaults, $atts);
1065
-
1066
-    $params['title']        = wp_strip_all_tags($params['title']);
1067
-    $params['post_type']    = gdsc_is_post_type_valid($params['post_type']) ? $params['post_type'] : 'gd_place';
1068
-
1069
-    // Validate the selected category/ies - Grab the current list based on post_type
1070
-    $category_taxonomy      = geodir_get_taxonomies($params['post_type']);
1071
-    $categories             = get_terms($category_taxonomy, array('orderby' => 'count', 'order' => 'DESC', 'fields' => 'ids'));
1072
-
1073
-    // Make sure we have an array
1074
-    if (!(is_array($params['category']))) {
1075
-        $params['category'] = explode(',', $params['category']);
1076
-    }
1077
-
1078
-    // Array_intersect returns only the items in $params['category'] that are also in our category list
1079
-    // Otherwise it becomes empty and later on that will mean "All"
1080
-    $params['category']     = array_intersect($params['category'], $categories);
1081
-
1082
-    // Post_number needs to be a positive integer
1083
-    $params['post_number']  = absint($params['post_number']);
1084
-    $params['post_number']  = $params['post_number'] > 0 ? $params['post_number'] : 10;
1041
+	global $post;
1042
+	$defaults = array(
1043
+		'title'                 => '',
1044
+		'post_type'             => 'gd_place',
1045
+		'category'              => 0,
1046
+		'list_sort'             => 'latest',
1047
+		'event_type'            => '',
1048
+		'post_number'           => 10,
1049
+		'post_author'           => '',
1050
+		'layout'                => 'gridview_onehalf',
1051
+		'listing_width'         => '',
1052
+		'character_count'       => 20,
1053
+		'add_location_filter'   => 1,
1054
+		'show_featured_only'    => '',
1055
+		'show_special_only'     => '',
1056
+		'with_pics_only'        => '',
1057
+		'with_videos_only'      => '',
1058
+		'with_pagination'       => '1',
1059
+		'top_pagination'        => '0',
1060
+		'bottom_pagination'     => '1',
1061
+		'without_no_results'    => 0,
1062
+		'tags'                  => ''
1063
+	);
1064
+	$params = shortcode_atts($defaults, $atts);
1065
+
1066
+	$params['title']        = wp_strip_all_tags($params['title']);
1067
+	$params['post_type']    = gdsc_is_post_type_valid($params['post_type']) ? $params['post_type'] : 'gd_place';
1068
+
1069
+	// Validate the selected category/ies - Grab the current list based on post_type
1070
+	$category_taxonomy      = geodir_get_taxonomies($params['post_type']);
1071
+	$categories             = get_terms($category_taxonomy, array('orderby' => 'count', 'order' => 'DESC', 'fields' => 'ids'));
1072
+
1073
+	// Make sure we have an array
1074
+	if (!(is_array($params['category']))) {
1075
+		$params['category'] = explode(',', $params['category']);
1076
+	}
1077
+
1078
+	// Array_intersect returns only the items in $params['category'] that are also in our category list
1079
+	// Otherwise it becomes empty and later on that will mean "All"
1080
+	$params['category']     = array_intersect($params['category'], $categories);
1081
+
1082
+	// Post_number needs to be a positive integer
1083
+	$params['post_number']  = absint($params['post_number']);
1084
+	$params['post_number']  = $params['post_number'] > 0 ? $params['post_number'] : 10;
1085 1085
     
1086
-    // Post_number needs to be a positive integer
1087
-    if (!empty($atts['post_author'])) {
1088
-        if ($atts['post_author'] == 'current' && !empty($post) && isset($post->post_author) && $post->post_type != 'page') {
1089
-            $params['post_author'] = $post->post_author;
1090
-        } else if ($atts['post_author'] != 'current' && absint($atts['post_author']) > 0) {
1091
-            $params['post_author'] = absint($atts['post_author']);
1092
-        } else {
1093
-            unset($params['post_author']);
1094
-        }
1095
-    } else {
1096
-        unset($params['post_author']);
1097
-    }
1098
-
1099
-    // Validate character_count
1100
-    //todo: is this necessary?
1101
-    $params['character_count']  = $params['character_count'];
1102
-
1103
-    // Validate our layout choice
1104
-    // Outside of the norm, I added some more simple terms to match the existing
1105
-    // So now I just run the switch to set it properly.
1106
-    $params['layout']           = gdsc_validate_layout_choice($params['layout']);
1107
-
1108
-    // Validate our sorting choice
1109
-    $params['list_sort']        = gdsc_validate_sort_choice($params['list_sort']);
1110
-
1111
-    // Validate Listing width, used in the template widget-listing-listview.php
1112
-    // The context is in width=$listing_width% - So we need a positive number between 0 & 100
1113
-    $params['listing_width']    = gdsc_validate_listing_width($params['listing_width']);
1114
-
1115
-    // Validate the checkboxes used on the widget
1116
-    $params['add_location_filter']  = gdsc_to_bool_val($params['add_location_filter']);
1117
-    $params['show_featured_only']   = gdsc_to_bool_val($params['show_featured_only']);
1118
-    $params['show_special_only']    = gdsc_to_bool_val($params['show_special_only']);
1119
-    $params['with_pics_only']       = gdsc_to_bool_val($params['with_pics_only']);
1120
-    $params['with_videos_only']     = gdsc_to_bool_val($params['with_videos_only']);
1121
-    $params['with_pagination']      = gdsc_to_bool_val($params['with_pagination']);
1122
-    $params['top_pagination']       = gdsc_to_bool_val($params['top_pagination']);
1123
-    $params['bottom_pagination']    = gdsc_to_bool_val($params['bottom_pagination']);
1124
-
1125
-    // Clean tags
1126
-    if (!empty($params['tags'])) {
1127
-        if (!is_array($params['tags'])) {
1128
-            $comma = _x(',', 'tag delimiter');
1129
-            if ( ',' !== $comma ) {
1130
-                $params['tags'] = str_replace($comma, ',', $params['tags']);
1131
-            }
1132
-            $params['tags'] = explode(',', trim($params['tags'], " \n\t\r\0\x0B,"));
1133
-            $params['tags'] = array_map('trim', $params['tags']);
1134
-        }
1135
-    } else {
1136
-        $params['tags'] = array();
1137
-    }
1138
-
1139
-    /**
1140
-     * End of validation
1141
-     */
1142
-    if (isset($atts['geodir_ajax'])) {
1143
-        $params['geodir_ajax'] = $atts['geodir_ajax'];
1144
-        unset($atts['geodir_ajax']);
1145
-    }
1146
-    if (isset($atts['pageno'])) {
1147
-        $params['pageno'] = $atts['pageno'];
1148
-        unset($atts['pageno']);
1149
-    }
1150
-
1151
-    if ( !empty($atts['shortcode_content']) ) {
1152
-        $content = $atts['shortcode_content'];
1153
-    }
1154
-    $params['shortcode_content'] = trim($content);
1155
-    $atts['shortcode_content'] = trim($content);
1086
+	// Post_number needs to be a positive integer
1087
+	if (!empty($atts['post_author'])) {
1088
+		if ($atts['post_author'] == 'current' && !empty($post) && isset($post->post_author) && $post->post_type != 'page') {
1089
+			$params['post_author'] = $post->post_author;
1090
+		} else if ($atts['post_author'] != 'current' && absint($atts['post_author']) > 0) {
1091
+			$params['post_author'] = absint($atts['post_author']);
1092
+		} else {
1093
+			unset($params['post_author']);
1094
+		}
1095
+	} else {
1096
+		unset($params['post_author']);
1097
+	}
1098
+
1099
+	// Validate character_count
1100
+	//todo: is this necessary?
1101
+	$params['character_count']  = $params['character_count'];
1102
+
1103
+	// Validate our layout choice
1104
+	// Outside of the norm, I added some more simple terms to match the existing
1105
+	// So now I just run the switch to set it properly.
1106
+	$params['layout']           = gdsc_validate_layout_choice($params['layout']);
1107
+
1108
+	// Validate our sorting choice
1109
+	$params['list_sort']        = gdsc_validate_sort_choice($params['list_sort']);
1110
+
1111
+	// Validate Listing width, used in the template widget-listing-listview.php
1112
+	// The context is in width=$listing_width% - So we need a positive number between 0 & 100
1113
+	$params['listing_width']    = gdsc_validate_listing_width($params['listing_width']);
1114
+
1115
+	// Validate the checkboxes used on the widget
1116
+	$params['add_location_filter']  = gdsc_to_bool_val($params['add_location_filter']);
1117
+	$params['show_featured_only']   = gdsc_to_bool_val($params['show_featured_only']);
1118
+	$params['show_special_only']    = gdsc_to_bool_val($params['show_special_only']);
1119
+	$params['with_pics_only']       = gdsc_to_bool_val($params['with_pics_only']);
1120
+	$params['with_videos_only']     = gdsc_to_bool_val($params['with_videos_only']);
1121
+	$params['with_pagination']      = gdsc_to_bool_val($params['with_pagination']);
1122
+	$params['top_pagination']       = gdsc_to_bool_val($params['top_pagination']);
1123
+	$params['bottom_pagination']    = gdsc_to_bool_val($params['bottom_pagination']);
1124
+
1125
+	// Clean tags
1126
+	if (!empty($params['tags'])) {
1127
+		if (!is_array($params['tags'])) {
1128
+			$comma = _x(',', 'tag delimiter');
1129
+			if ( ',' !== $comma ) {
1130
+				$params['tags'] = str_replace($comma, ',', $params['tags']);
1131
+			}
1132
+			$params['tags'] = explode(',', trim($params['tags'], " \n\t\r\0\x0B,"));
1133
+			$params['tags'] = array_map('trim', $params['tags']);
1134
+		}
1135
+	} else {
1136
+		$params['tags'] = array();
1137
+	}
1138
+
1139
+	/**
1140
+	 * End of validation
1141
+	 */
1142
+	if (isset($atts['geodir_ajax'])) {
1143
+		$params['geodir_ajax'] = $atts['geodir_ajax'];
1144
+		unset($atts['geodir_ajax']);
1145
+	}
1146
+	if (isset($atts['pageno'])) {
1147
+		$params['pageno'] = $atts['pageno'];
1148
+		unset($atts['pageno']);
1149
+	}
1150
+
1151
+	if ( !empty($atts['shortcode_content']) ) {
1152
+		$content = $atts['shortcode_content'];
1153
+	}
1154
+	$params['shortcode_content'] = trim($content);
1155
+	$atts['shortcode_content'] = trim($content);
1156 1156
     
1157
-    $params['shortcode_atts']       = $atts;
1157
+	$params['shortcode_atts']       = $atts;
1158 1158
 
1159
-    $output = geodir_sc_gd_listings_output($params);
1159
+	$output = geodir_sc_gd_listings_output($params);
1160 1160
 
1161
-    return $output;
1161
+	return $output;
1162 1162
 }
1163 1163
 add_shortcode('gd_listings', 'geodir_sc_gd_listings');
1164 1164
 
@@ -1206,23 +1206,23 @@  discard block
 block discarded – undo
1206 1206
 		'max_count' => 'all',
1207 1207
 		'max_level' => '1',
1208 1208
 		'before_widget' => '<section id="geodir_cpt_categories_widget-1" class="widget geodir-widget geodir_cpt_categories_widget geodir_sc_cpt_categories_widget">',
1209
-        'after_widget' => '</section>',
1210
-        'before_title' => '<h3 class="widget-title">',
1211
-        'after_title' => '</h3>',
1209
+		'after_widget' => '</section>',
1210
+		'before_title' => '<h3 class="widget-title">',
1211
+		'after_title' => '</h3>',
1212 1212
 	);
1213 1213
 	$params = shortcode_atts($defaults, $atts);
1214 1214
 
1215
-    /**
1216
-     * Validate our incoming params
1217
-     */
1215
+	/**
1216
+	 * Validate our incoming params
1217
+	 */
1218 1218
 	// Make sure we have an array
1219
-    $params['post_type'] = !is_array($params['post_type']) && trim($params['post_type']) != '' ? explode(',', trim($params['post_type'])) : array();
1219
+	$params['post_type'] = !is_array($params['post_type']) && trim($params['post_type']) != '' ? explode(',', trim($params['post_type'])) : array();
1220 1220
 	 
1221 1221
 	// Validate the checkboxes used on the widget
1222
-    $params['hide_empty'] 	= gdsc_to_bool_val($params['hide_empty']);
1223
-    $params['show_count'] 	= gdsc_to_bool_val($params['show_count']);
1224
-    $params['hide_icon'] 	= gdsc_to_bool_val($params['hide_icon']);
1225
-    $params['cpt_left'] 	= gdsc_to_bool_val($params['cpt_left']);
1222
+	$params['hide_empty'] 	= gdsc_to_bool_val($params['hide_empty']);
1223
+	$params['show_count'] 	= gdsc_to_bool_val($params['show_count']);
1224
+	$params['hide_icon'] 	= gdsc_to_bool_val($params['hide_icon']);
1225
+	$params['cpt_left'] 	= gdsc_to_bool_val($params['cpt_left']);
1226 1226
 	
1227 1227
 	if ($params['max_count'] != 'all') {
1228 1228
 		$params['max_count'] = absint($params['max_count']);
@@ -1236,10 +1236,10 @@  discard block
 block discarded – undo
1236 1236
 
1237 1237
 	ob_start();
1238 1238
 	the_widget('geodir_cpt_categories_widget', $params, $params);
1239
-    $output = ob_get_contents();
1240
-    ob_end_clean();
1239
+	$output = ob_get_contents();
1240
+	ob_end_clean();
1241 1241
 
1242
-    return $output;
1242
+	return $output;
1243 1243
 }
1244 1244
 add_shortcode('gd_cpt_categories', 'geodir_sc_cpt_categories_widget');
1245 1245
 
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
  * @return string HTML code.
1255 1255
  */
1256 1256
 function geodir_sc_responsive_videos($atts, $content) {
1257
-    return '<div class="geodir-video-wrapper">'.$content.'</div>';
1257
+	return '<div class="geodir-video-wrapper">'.$content.'</div>';
1258 1258
 }
1259 1259
 add_shortcode('gd_video', 'geodir_sc_responsive_videos');
1260 1260
 ?>
1261 1261
\ No newline at end of file
Please login to merge, or discard this patch.
geodirectory-admin/place_dummy_post.php 3 patches
Indentation   +1220 added lines, -1220 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@  discard block
 block discarded – undo
12 12
 $post_meta = array();
13 13
 
14 14
 if (geodir_dummy_folder_exists())
15
-    $dummy_image_url = geodir_plugin_url() . "/geodirectory-admin/dummy";
15
+	$dummy_image_url = geodir_plugin_url() . "/geodirectory-admin/dummy";
16 16
 else
17
-    $dummy_image_url = 'http://www.wpgeodirectory.com/dummy';
17
+	$dummy_image_url = 'http://www.wpgeodirectory.com/dummy';
18 18
 
19 19
 $dummy_image_url = apply_filters('place_dummy_image_url', $dummy_image_url);
20 20
 
21 21
 switch ($dummy_post_index) {
22 22
 
23
-    case(1):
24
-        $image_array[] = "$dummy_image_url/a1.jpg";
25
-        $image_array[] = "$dummy_image_url/a2.jpg";
26
-        $image_array[] = "$dummy_image_url/a3.jpg";
27
-        $image_array[] = "$dummy_image_url/a4.jpg";
28
-        $image_array[] = "$dummy_image_url/a5.jpg";
29
-        $image_array[] = "$dummy_image_url/a6.jpg";
30
-        $image_array[] = "$dummy_image_url/a7.jpg";
31
-        $image_array[] = "$dummy_image_url/a8.jpg";
32
-        $image_array[] = "$dummy_image_url/a9.jpg";
33
-        $image_array[] = "$dummy_image_url/a10.jpg";
34
-        $image_array[] = "$dummy_image_url/a11.jpg";
35
-
36
-
37
-        $post_info[] = array(
38
-            "listing_type" => 'gd_place',
39
-            "post_title" => 'Franklin Square',
40
-            "post_desc" => ' <h3> Location </h3>
23
+	case(1):
24
+		$image_array[] = "$dummy_image_url/a1.jpg";
25
+		$image_array[] = "$dummy_image_url/a2.jpg";
26
+		$image_array[] = "$dummy_image_url/a3.jpg";
27
+		$image_array[] = "$dummy_image_url/a4.jpg";
28
+		$image_array[] = "$dummy_image_url/a5.jpg";
29
+		$image_array[] = "$dummy_image_url/a6.jpg";
30
+		$image_array[] = "$dummy_image_url/a7.jpg";
31
+		$image_array[] = "$dummy_image_url/a8.jpg";
32
+		$image_array[] = "$dummy_image_url/a9.jpg";
33
+		$image_array[] = "$dummy_image_url/a10.jpg";
34
+		$image_array[] = "$dummy_image_url/a11.jpg";
35
+
36
+
37
+		$post_info[] = array(
38
+			"listing_type" => 'gd_place',
39
+			"post_title" => 'Franklin Square',
40
+			"post_desc" => ' <h3> Location </h3>
41 41
 		
42 42
 		6th and Race Streets in Historic Philadelphia
43 43
 		<h3>The Experience</h3>
@@ -72,42 +72,42 @@  discard block
 block discarded – undo
72 72
 		Just in time for summer, Franklin Square has opened SquareBurger, a Stephen Starr-run “burger shack” selling summer staples: hot dogs, fries, milkshakes (made with Tasty Kakes) and, of course, hamburgers and cheeseburgers.
73 73
 		
74 74
 		SquareBurger is open until October - perfect for a couple bites between rounds of miniature golf!',
75
-            "post_images" => $image_array,
76
-            "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
77
-            "post_tags" => array('Tags', 'Sample Tags'),
78
-            "geodir_video" => '',
79
-            "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm',
80
-            "geodir_contact" => '(111) 677-4444',
81
-            "geodir_email" => '[email protected]',
82
-            "geodir_website" => 'http://franklinsquare.com',
83
-            "geodir_twitter" => 'http://twitter.com/franklinsquare',
84
-            "geodir_facebook" => 'http://facebook.com/franklinsquare',
85
-            "post_dummy" => '1'
86
-        );
87
-
88
-
89
-        break;
90
-    case 2:
91
-        $image_array = array();
92
-        $post_meta = array();
93
-
94
-        /// Attractions ////post start 2///
95
-        $image_array[] = "$dummy_image_url/a6.jpg";
96
-        $image_array[] = "$dummy_image_url/a1.jpg";
97
-        $image_array[] = "$dummy_image_url/a3.jpg";
98
-        $image_array[] = "$dummy_image_url/a4.jpg";
99
-        $image_array[] = "$dummy_image_url/a5.jpg";
100
-        $image_array[] = "$dummy_image_url/a2.jpg";
101
-        $image_array[] = "$dummy_image_url/a7.jpg";
102
-        $image_array[] = "$dummy_image_url/a8.jpg";
103
-        $image_array[] = "$dummy_image_url/a9.jpg";
104
-        $image_array[] = "$dummy_image_url/a10.jpg";
105
-        $image_array[] = "$dummy_image_url/a11.jpg";
106
-
107
-        $post_info[] = array(
108
-            "listing_type" => 'gd_place',
109
-            "post_title" => 'Please Touch Museum',
110
-            "post_desc" => '<h3>New Location! </h3>
75
+			"post_images" => $image_array,
76
+			"post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
77
+			"post_tags" => array('Tags', 'Sample Tags'),
78
+			"geodir_video" => '',
79
+			"geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm',
80
+			"geodir_contact" => '(111) 677-4444',
81
+			"geodir_email" => '[email protected]',
82
+			"geodir_website" => 'http://franklinsquare.com',
83
+			"geodir_twitter" => 'http://twitter.com/franklinsquare',
84
+			"geodir_facebook" => 'http://facebook.com/franklinsquare',
85
+			"post_dummy" => '1'
86
+		);
87
+
88
+
89
+		break;
90
+	case 2:
91
+		$image_array = array();
92
+		$post_meta = array();
93
+
94
+		/// Attractions ////post start 2///
95
+		$image_array[] = "$dummy_image_url/a6.jpg";
96
+		$image_array[] = "$dummy_image_url/a1.jpg";
97
+		$image_array[] = "$dummy_image_url/a3.jpg";
98
+		$image_array[] = "$dummy_image_url/a4.jpg";
99
+		$image_array[] = "$dummy_image_url/a5.jpg";
100
+		$image_array[] = "$dummy_image_url/a2.jpg";
101
+		$image_array[] = "$dummy_image_url/a7.jpg";
102
+		$image_array[] = "$dummy_image_url/a8.jpg";
103
+		$image_array[] = "$dummy_image_url/a9.jpg";
104
+		$image_array[] = "$dummy_image_url/a10.jpg";
105
+		$image_array[] = "$dummy_image_url/a11.jpg";
106
+
107
+		$post_info[] = array(
108
+			"listing_type" => 'gd_place',
109
+			"post_title" => 'Please Touch Museum',
110
+			"post_desc" => '<h3>New Location! </h3>
111 111
 		
112 112
 		Who doesn&acute;t love the Please Touch Museum? And now, taking kids to the Museum is better than ever. The nation&acute;s premier children&acute;s museum - which has been a beloved landmark since it opened in 1976 - has a new home in Fairmount Park, opening its doors to a world of educational, hands-on fun.
113 113
 		
@@ -139,42 +139,42 @@  discard block
 block discarded – undo
139 139
 		
140 140
 		You can buy admission tickets to the Please Touch Museum online through our partners at the Independence Visitor Center. Just click the button below.',
141 141
 
142
-            "post_images" => $image_array,
143
-            "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
144
-            "post_tags" => array('Tags', 'Sample Tags'),
145
-            "geodir_video" => '',
146
-            "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm',
147
-            "geodir_contact" => '(222) 777-1111',
148
-            "geodir_email" => '[email protected]',
149
-            "geodir_website" => 'http://pleasetouchmuseum.com',
150
-            "geodir_twitter" => 'http://twitter.com/pleasetouchmuseum',
151
-            "geodir_facebook" => 'http://facebook.com/pleasetouchmuseum',
152
-            "post_dummy" => '1'
153
-        );
154
-
155
-        break;
156
-    case 3:
157
-        $image_array = array();
158
-        $post_meta = array();
159
-
160
-        ////post end///
161
-        /// Attractions ////post start 3///
162
-        $image_array[] = "$dummy_image_url/a9.jpg";
163
-        $image_array[] = "$dummy_image_url/a10.jpg";
164
-        $image_array[] = "$dummy_image_url/a3.jpg";
165
-        $image_array[] = "$dummy_image_url/a4.jpg";
166
-        $image_array[] = "$dummy_image_url/a5.jpg";
167
-        $image_array[] = "$dummy_image_url/a2.jpg";
168
-        $image_array[] = "$dummy_image_url/a7.jpg";
169
-        $image_array[] = "$dummy_image_url/a8.jpg";
170
-        $image_array[] = "$dummy_image_url/a6.jpg";
171
-        $image_array[] = "$dummy_image_url/a1.jpg";
172
-        $image_array[] = "$dummy_image_url/a11.jpg";
173
-
174
-        $post_info[] = array(
175
-            "listing_type" => 'gd_place',
176
-            "post_title" => 'Longwood Gardens',
177
-            "post_desc" => '<h3>The Experience </h3>
142
+			"post_images" => $image_array,
143
+			"post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
144
+			"post_tags" => array('Tags', 'Sample Tags'),
145
+			"geodir_video" => '',
146
+			"geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm',
147
+			"geodir_contact" => '(222) 777-1111',
148
+			"geodir_email" => '[email protected]',
149
+			"geodir_website" => 'http://pleasetouchmuseum.com',
150
+			"geodir_twitter" => 'http://twitter.com/pleasetouchmuseum',
151
+			"geodir_facebook" => 'http://facebook.com/pleasetouchmuseum',
152
+			"post_dummy" => '1'
153
+		);
154
+
155
+		break;
156
+	case 3:
157
+		$image_array = array();
158
+		$post_meta = array();
159
+
160
+		////post end///
161
+		/// Attractions ////post start 3///
162
+		$image_array[] = "$dummy_image_url/a9.jpg";
163
+		$image_array[] = "$dummy_image_url/a10.jpg";
164
+		$image_array[] = "$dummy_image_url/a3.jpg";
165
+		$image_array[] = "$dummy_image_url/a4.jpg";
166
+		$image_array[] = "$dummy_image_url/a5.jpg";
167
+		$image_array[] = "$dummy_image_url/a2.jpg";
168
+		$image_array[] = "$dummy_image_url/a7.jpg";
169
+		$image_array[] = "$dummy_image_url/a8.jpg";
170
+		$image_array[] = "$dummy_image_url/a6.jpg";
171
+		$image_array[] = "$dummy_image_url/a1.jpg";
172
+		$image_array[] = "$dummy_image_url/a11.jpg";
173
+
174
+		$post_info[] = array(
175
+			"listing_type" => 'gd_place',
176
+			"post_title" => 'Longwood Gardens',
177
+			"post_desc" => '<h3>The Experience </h3>
178 178
 		
179 179
 		When you&acute;re at Longwood Gardens, it&acute;s easy to imagine that you&acute;re at a giant, royal garden in Europe. Stroll along the many paths through acres of exquisitely maintained grounds featuring 11,000 different types of plants.
180 180
 		
@@ -199,42 +199,42 @@  discard block
 block discarded – undo
199 199
 		<h3>Buy Tickets Online In Advance </h3>
200 200
 		
201 201
 		You can buy admission tickets to Longwood Gardens online through our partners at the Independence Visitor Center. Just click the button below.',
202
-            "post_images" => $image_array,
203
-            "post_category" => array('gd_placecategory' => array('Attractions')),
204
-            "post_tags" => array('wood', 'garden'),
205
-            "geodir_video" => '',
206
-            "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm',
207
-            "geodir_contact" => '(111) 888-1111',
208
-            "geodir_email" => '[email protected]',
209
-            "geodir_website" => 'http://longwoodgardens.com',
210
-            "geodir_twitter" => 'http://twitter.com/longwoodgardens',
211
-            "geodir_facebook" => 'http://facebook.com/longwoodgardens',
212
-            "post_dummy" => '1'
213
-        );
214
-        break;
215
-    ////post end///
216
-    /// Attractions ////post start 4///
217
-
218
-    case 4:
219
-
220
-        $image_array = array();
221
-        $post_meta = array();
222
-        $image_array[] = "$dummy_image_url/a11.jpg";
223
-        $image_array[] = "$dummy_image_url/a10.jpg";
224
-        $image_array[] = "$dummy_image_url/a3.jpg";
225
-        $image_array[] = "$dummy_image_url/a4.jpg";
226
-        $image_array[] = "$dummy_image_url/a5.jpg";
227
-        $image_array[] = "$dummy_image_url/a2.jpg";
228
-        $image_array[] = "$dummy_image_url/a7.jpg";
229
-        $image_array[] = "$dummy_image_url/a8.jpg";
230
-        $image_array[] = "$dummy_image_url/a6.jpg";
231
-        $image_array[] = "$dummy_image_url/a1.jpg";
232
-        $image_array[] = "$dummy_image_url/a9.jpg";
233
-
234
-        $post_info[] = array(
235
-            "listing_type" => 'gd_place',
236
-            "post_title" => 'The Philadelphia Zoo',
237
-            "post_desc" => '<h3>The Zoo 150th Birthday</h3>
202
+			"post_images" => $image_array,
203
+			"post_category" => array('gd_placecategory' => array('Attractions')),
204
+			"post_tags" => array('wood', 'garden'),
205
+			"geodir_video" => '',
206
+			"geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm',
207
+			"geodir_contact" => '(111) 888-1111',
208
+			"geodir_email" => '[email protected]',
209
+			"geodir_website" => 'http://longwoodgardens.com',
210
+			"geodir_twitter" => 'http://twitter.com/longwoodgardens',
211
+			"geodir_facebook" => 'http://facebook.com/longwoodgardens',
212
+			"post_dummy" => '1'
213
+		);
214
+		break;
215
+	////post end///
216
+	/// Attractions ////post start 4///
217
+
218
+	case 4:
219
+
220
+		$image_array = array();
221
+		$post_meta = array();
222
+		$image_array[] = "$dummy_image_url/a11.jpg";
223
+		$image_array[] = "$dummy_image_url/a10.jpg";
224
+		$image_array[] = "$dummy_image_url/a3.jpg";
225
+		$image_array[] = "$dummy_image_url/a4.jpg";
226
+		$image_array[] = "$dummy_image_url/a5.jpg";
227
+		$image_array[] = "$dummy_image_url/a2.jpg";
228
+		$image_array[] = "$dummy_image_url/a7.jpg";
229
+		$image_array[] = "$dummy_image_url/a8.jpg";
230
+		$image_array[] = "$dummy_image_url/a6.jpg";
231
+		$image_array[] = "$dummy_image_url/a1.jpg";
232
+		$image_array[] = "$dummy_image_url/a9.jpg";
233
+
234
+		$post_info[] = array(
235
+			"listing_type" => 'gd_place',
236
+			"post_title" => 'The Philadelphia Zoo',
237
+			"post_desc" => '<h3>The Zoo 150th Birthday</h3>
238 238
 		
239 239
 		The Philadelphia Zoo celebrated its 150th anniversary in 2009. So stop by and celebrate this major achievement at America&acute;s first zoo!
240 240
 		
@@ -269,45 +269,45 @@  discard block
 block discarded – undo
269 269
 		The nation&acute;s oldest zoo was chartered in 1859, but the impending Civil War delayed its opening until 1874. In addition to its animals, the zoo is known for its historic architecture, which includes the country home of William Penn&acute;s grandson; its botanical collections of over 500 plant species; its groundbreaking research and its fine veterinary facilities.
270 270
 		
271 271
 		The Primate Reserve, Carnivore Kingdom, and Rare Animal Conservation Center, with its tree kangaroos and blue-eyed lemurs, are brand new, but there&acute;s still fun to be had in the historic, old-style bird, pachyderm and carnivore houses. In the Treehouse, kids can investigate the world from an animal&acute;s perspective; outdoors, the Zoo Balloon lifts passengers 400 feet into the air for a bird&acute;s-eye view of the zoo.',
272
-            "post_images" => $image_array,
273
-            "post_category" => array('gd_placecategory' => array('Attractions')),
274
-            "post_tags" => array('wood', 'garden'),
275
-            "geodir_video" => '',
276
-            "geodir_timing" => 'Open today until 11.30 a.m., Sunday 11 am to 7 pm',
277
-            "geodir_contact" => '(211) 143-1900',
278
-            "geodir_email" => '[email protected]',
279
-            "geodir_website" => 'http://philadelphiazoo.com',
280
-            "geodir_twitter" => 'http://twitter.com/philadelphiazoo',
281
-            "geodir_facebook" => 'http://facebook.com/philadelphiazoo',
282
-            "post_dummy" => '1'
283
-        );
284
-
285
-        ////post end///
286
-        /// Attractions ////post start 4///
287
-        break;
288
-    case 5:
289
-
290
-
291
-        $image_array = array();
292
-        $post_meta = array();
293
-
294
-        /// Attractions ////post start 5///
295
-        $image_array[] = "$dummy_image_url/a12.jpg";
296
-        $image_array[] = "$dummy_image_url/a13.jpg";
297
-        $image_array[] = "$dummy_image_url/a3.jpg";
298
-        $image_array[] = "$dummy_image_url/a4.jpg";
299
-        $image_array[] = "$dummy_image_url/a5.jpg";
300
-        $image_array[] = "$dummy_image_url/a2.jpg";
301
-        $image_array[] = "$dummy_image_url/a7.jpg";
302
-        $image_array[] = "$dummy_image_url/a8.jpg";
303
-        $image_array[] = "$dummy_image_url/a6.jpg";
304
-        $image_array[] = "$dummy_image_url/a1.jpg";
305
-        $image_array[] = "$dummy_image_url/a9.jpg";
306
-
307
-        $post_info[] = array(
308
-            "listing_type" => 'gd_place',
309
-            "post_title" => 'National Constitution Center',
310
-            "post_desc" => '<h3>The Experience</h3>
272
+			"post_images" => $image_array,
273
+			"post_category" => array('gd_placecategory' => array('Attractions')),
274
+			"post_tags" => array('wood', 'garden'),
275
+			"geodir_video" => '',
276
+			"geodir_timing" => 'Open today until 11.30 a.m., Sunday 11 am to 7 pm',
277
+			"geodir_contact" => '(211) 143-1900',
278
+			"geodir_email" => '[email protected]',
279
+			"geodir_website" => 'http://philadelphiazoo.com',
280
+			"geodir_twitter" => 'http://twitter.com/philadelphiazoo',
281
+			"geodir_facebook" => 'http://facebook.com/philadelphiazoo',
282
+			"post_dummy" => '1'
283
+		);
284
+
285
+		////post end///
286
+		/// Attractions ////post start 4///
287
+		break;
288
+	case 5:
289
+
290
+
291
+		$image_array = array();
292
+		$post_meta = array();
293
+
294
+		/// Attractions ////post start 5///
295
+		$image_array[] = "$dummy_image_url/a12.jpg";
296
+		$image_array[] = "$dummy_image_url/a13.jpg";
297
+		$image_array[] = "$dummy_image_url/a3.jpg";
298
+		$image_array[] = "$dummy_image_url/a4.jpg";
299
+		$image_array[] = "$dummy_image_url/a5.jpg";
300
+		$image_array[] = "$dummy_image_url/a2.jpg";
301
+		$image_array[] = "$dummy_image_url/a7.jpg";
302
+		$image_array[] = "$dummy_image_url/a8.jpg";
303
+		$image_array[] = "$dummy_image_url/a6.jpg";
304
+		$image_array[] = "$dummy_image_url/a1.jpg";
305
+		$image_array[] = "$dummy_image_url/a9.jpg";
306
+
307
+		$post_info[] = array(
308
+			"listing_type" => 'gd_place',
309
+			"post_title" => 'National Constitution Center',
310
+			"post_desc" => '<h3>The Experience</h3>
311 311
 	
312 312
 	It only four pages long, but the U.S. Constitution is among the most influential and important documents in the history of the world.
313 313
 	
@@ -329,45 +329,45 @@  discard block
 block discarded – undo
329 329
 	<h3>Kids Stuff </h3>
330 330
 	
331 331
 	The Center frequently hosts special events with a focus on children that include informative and engaging hands-on activities. For specific information, check out the Center website.',
332
-            "post_images" => $image_array,
333
-            "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
334
-            "post_tags" => array('Tag', 'Center'),
335
-            "geodir_video" => '',
336
-            "geodir_timing" => 'Open today until 9.30 a.m., Sunday 11 am to 7 pm',
337
-            "geodir_contact" => '(111) 111-1111',
338
-            "geodir_email" => '[email protected]',
339
-            "geodir_website" => 'http://ncc.com',
340
-            "geodir_twitter" => 'http://twitter.com/ncc',
341
-            "geodir_facebook" => 'http://facebook.com/ncc',
342
-            "post_dummy" => '1'
343
-        );
344
-
345
-        ////post end///
346
-        /// Attractions ////post start 5///
347
-        break;
348
-    case 6:
349
-
350
-
351
-        $image_array = array();
352
-        $post_meta = array();
353
-
354
-        /// Attractions ////post start 6///
355
-        $image_array[] = "$dummy_image_url/a14.jpg";
356
-        $image_array[] = "$dummy_image_url/a13.jpg";
357
-        $image_array[] = "$dummy_image_url/a3.jpg";
358
-        $image_array[] = "$dummy_image_url/a4.jpg";
359
-        $image_array[] = "$dummy_image_url/a5.jpg";
360
-        $image_array[] = "$dummy_image_url/a2.jpg";
361
-        $image_array[] = "$dummy_image_url/a7.jpg";
362
-        $image_array[] = "$dummy_image_url/a8.jpg";
363
-        $image_array[] = "$dummy_image_url/a6.jpg";
364
-        $image_array[] = "$dummy_image_url/a1.jpg";
365
-        $image_array[] = "$dummy_image_url/a9.jpg";
366
-
367
-        $post_info[] = array(
368
-            "listing_type" => 'gd_place',
369
-            "post_title" => 'Sadsbury Woods Preserve',
370
-            "post_desc" => 'A more than 500-acre nature preserve ideal for walking and hiking, Sadsbury Woods is also an important habitat for interior nesting birds and small mammals. An increasingly rare area of interior woodlands, defined as an area at least 300 feet from any road, lawn or meadow, provides a critical habitat for many species of birds, especially neo-tropical migrant songbirds.
332
+			"post_images" => $image_array,
333
+			"post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
334
+			"post_tags" => array('Tag', 'Center'),
335
+			"geodir_video" => '',
336
+			"geodir_timing" => 'Open today until 9.30 a.m., Sunday 11 am to 7 pm',
337
+			"geodir_contact" => '(111) 111-1111',
338
+			"geodir_email" => '[email protected]',
339
+			"geodir_website" => 'http://ncc.com',
340
+			"geodir_twitter" => 'http://twitter.com/ncc',
341
+			"geodir_facebook" => 'http://facebook.com/ncc',
342
+			"post_dummy" => '1'
343
+		);
344
+
345
+		////post end///
346
+		/// Attractions ////post start 5///
347
+		break;
348
+	case 6:
349
+
350
+
351
+		$image_array = array();
352
+		$post_meta = array();
353
+
354
+		/// Attractions ////post start 6///
355
+		$image_array[] = "$dummy_image_url/a14.jpg";
356
+		$image_array[] = "$dummy_image_url/a13.jpg";
357
+		$image_array[] = "$dummy_image_url/a3.jpg";
358
+		$image_array[] = "$dummy_image_url/a4.jpg";
359
+		$image_array[] = "$dummy_image_url/a5.jpg";
360
+		$image_array[] = "$dummy_image_url/a2.jpg";
361
+		$image_array[] = "$dummy_image_url/a7.jpg";
362
+		$image_array[] = "$dummy_image_url/a8.jpg";
363
+		$image_array[] = "$dummy_image_url/a6.jpg";
364
+		$image_array[] = "$dummy_image_url/a1.jpg";
365
+		$image_array[] = "$dummy_image_url/a9.jpg";
366
+
367
+		$post_info[] = array(
368
+			"listing_type" => 'gd_place',
369
+			"post_title" => 'Sadsbury Woods Preserve',
370
+			"post_desc" => 'A more than 500-acre nature preserve ideal for walking and hiking, Sadsbury Woods is also an important habitat for interior nesting birds and small mammals. An increasingly rare area of interior woodlands, defined as an area at least 300 feet from any road, lawn or meadow, provides a critical habitat for many species of birds, especially neo-tropical migrant songbirds.
371 371
 	
372 372
 	Situated on the western edge of Chester County, the land remains much as it did centuries ago, and now serves as a permanent refuge in an area facing dramatically increasing development pressure.
373 373
 	
@@ -383,45 +383,45 @@  discard block
 block discarded – undo
383 383
 	Outsider Tip
384 384
 	
385 385
 	The deep forest is a great place for spotting neo-tropical songbirds in the spring and summer months',
386
-            "post_images" => $image_array,
387
-            "post_category" => array('gd_placecategory' => array('Attractions')),
388
-            "post_tags" => array('sample', 'tags'),
389
-            "geodir_video" => '',
390
-            "geodir_timing" => 'Open today until 12.30 p.m., Sunday 12 pm to 7 pm',
391
-            "geodir_contact" => '(222) 999-9999',
392
-            "geodir_email" => '[email protected]',
393
-            "geodir_website" => 'http://swp.com',
394
-            "geodir_twitter" => 'http://twitter.com/swp',
395
-            "geodir_facebook" => 'http://facebook.com/swp',
396
-            "post_dummy" => '1'
397
-        );
398
-
399
-        ////post end///
400
-        /// Attractions ////post start 6///
401
-
402
-        break;
403
-    case 7:
404
-
405
-        $image_array = array();
406
-        $post_meta = array();
407
-
408
-        /// Attractions ////post start 7///
409
-        $image_array[] = "$dummy_image_url/a15.jpg";
410
-        $image_array[] = "$dummy_image_url/a16.jpg";
411
-        $image_array[] = "$dummy_image_url/a17.jpg";
412
-        $image_array[] = "$dummy_image_url/a4.jpg";
413
-        $image_array[] = "$dummy_image_url/a5.jpg";
414
-        $image_array[] = "$dummy_image_url/a2.jpg";
415
-        $image_array[] = "$dummy_image_url/a7.jpg";
416
-        $image_array[] = "$dummy_image_url/a8.jpg";
417
-        $image_array[] = "$dummy_image_url/a6.jpg";
418
-        $image_array[] = "$dummy_image_url/a1.jpg";
419
-        $image_array[] = "$dummy_image_url/a9.jpg";
420
-
421
-        $post_info[] = array(
422
-            "listing_type" => 'gd_place',
423
-            "post_title" => 'Museum Without Walls',
424
-            "post_desc" => '<h3>The Experience </h3>
386
+			"post_images" => $image_array,
387
+			"post_category" => array('gd_placecategory' => array('Attractions')),
388
+			"post_tags" => array('sample', 'tags'),
389
+			"geodir_video" => '',
390
+			"geodir_timing" => 'Open today until 12.30 p.m., Sunday 12 pm to 7 pm',
391
+			"geodir_contact" => '(222) 999-9999',
392
+			"geodir_email" => '[email protected]',
393
+			"geodir_website" => 'http://swp.com',
394
+			"geodir_twitter" => 'http://twitter.com/swp',
395
+			"geodir_facebook" => 'http://facebook.com/swp',
396
+			"post_dummy" => '1'
397
+		);
398
+
399
+		////post end///
400
+		/// Attractions ////post start 6///
401
+
402
+		break;
403
+	case 7:
404
+
405
+		$image_array = array();
406
+		$post_meta = array();
407
+
408
+		/// Attractions ////post start 7///
409
+		$image_array[] = "$dummy_image_url/a15.jpg";
410
+		$image_array[] = "$dummy_image_url/a16.jpg";
411
+		$image_array[] = "$dummy_image_url/a17.jpg";
412
+		$image_array[] = "$dummy_image_url/a4.jpg";
413
+		$image_array[] = "$dummy_image_url/a5.jpg";
414
+		$image_array[] = "$dummy_image_url/a2.jpg";
415
+		$image_array[] = "$dummy_image_url/a7.jpg";
416
+		$image_array[] = "$dummy_image_url/a8.jpg";
417
+		$image_array[] = "$dummy_image_url/a6.jpg";
418
+		$image_array[] = "$dummy_image_url/a1.jpg";
419
+		$image_array[] = "$dummy_image_url/a9.jpg";
420
+
421
+		$post_info[] = array(
422
+			"listing_type" => 'gd_place',
423
+			"post_title" => 'Museum Without Walls',
424
+			"post_desc" => '<h3>The Experience </h3>
425 425
 	
426 426
 	Museum Without Walls: AUDIO is a multi-platform, interactive audio tour, designed to allow locals and visitors alike to experience Philadelphia extensive collection of public art and outdoor sculpture along the Benjamin Franklin Parkway and Kelly Drive. This innovative program invites passersby to stop, look, listen and see this city public art in a new way. Discover the untold histories of the 51 outdoor sculptures at 35 stops through these professionally produced three-minute interpretive audio segments. The many narratives have been spoken by more than 100 individuals, all with personal connections to the pieces of art.
427 427
 	
@@ -431,45 +431,45 @@  discard block
 block discarded – undo
431 431
 	<h3>History </h3>
432 432
 	
433 433
 	Philadelphia has more outdoor sculpture than any other American city, yet this extensive collection often goes unnoticed. This program is intended to reveal the distinct stories behind each of these works, that have become visual white noise for so many of the city residents and visitors. ',
434
-            "post_images" => $image_array,
435
-            "post_category" => array('gd_placecategory' => array('Attractions')),
436
-            "post_tags" => array('Museum'),
437
-            "geodir_video" => '',
438
-            "geodir_timing" => 'Open today until 10.30 a.m., Sunday 10 am to 7 pm',
439
-            "geodir_contact" => '(222) 999-9999',
440
-            "geodir_email" => '[email protected]',
441
-            "geodir_website" => 'http://museumwithoutwallsaudio.org/',
442
-            "geodir_twitter" => 'http://twitter.com/mwwalls',
443
-            "geodir_facebook" => 'http://facebook.com/mwwalls',
444
-            "post_dummy" => '1'
445
-        );
446
-
447
-        ////post end///
448
-        /// Attractions ////post start 7///
449
-
450
-        break;
451
-    case 8:
452
-
453
-        $image_array = array();
454
-        $post_meta = array();
455
-
456
-        /// Attractions ////post start 8///
457
-        $image_array[] = "$dummy_image_url/a18.jpg";
458
-        $image_array[] = "$dummy_image_url/a10.jpg";
459
-        $image_array[] = "$dummy_image_url/a3.jpg";
460
-        $image_array[] = "$dummy_image_url/a4.jpg";
461
-        $image_array[] = "$dummy_image_url/a5.jpg";
462
-        $image_array[] = "$dummy_image_url/a2.jpg";
463
-        $image_array[] = "$dummy_image_url/a7.jpg";
464
-        $image_array[] = "$dummy_image_url/a8.jpg";
465
-        $image_array[] = "$dummy_image_url/a6.jpg";
466
-        $image_array[] = "$dummy_image_url/a1.jpg";
467
-        $image_array[] = "$dummy_image_url/a9.jpg";
468
-
469
-        $post_info[] = array(
470
-            "listing_type" => 'gd_place',
471
-            "post_title" => 'Audacious Freedom',
472
-            "post_desc" => 'Audacious Freedom, the major, new exhibit at the African American Museum in Philadelphia , explores the lives of people of African descent living in Philadelphia between 1776 and 1876.
434
+			"post_images" => $image_array,
435
+			"post_category" => array('gd_placecategory' => array('Attractions')),
436
+			"post_tags" => array('Museum'),
437
+			"geodir_video" => '',
438
+			"geodir_timing" => 'Open today until 10.30 a.m., Sunday 10 am to 7 pm',
439
+			"geodir_contact" => '(222) 999-9999',
440
+			"geodir_email" => '[email protected]',
441
+			"geodir_website" => 'http://museumwithoutwallsaudio.org/',
442
+			"geodir_twitter" => 'http://twitter.com/mwwalls',
443
+			"geodir_facebook" => 'http://facebook.com/mwwalls',
444
+			"post_dummy" => '1'
445
+		);
446
+
447
+		////post end///
448
+		/// Attractions ////post start 7///
449
+
450
+		break;
451
+	case 8:
452
+
453
+		$image_array = array();
454
+		$post_meta = array();
455
+
456
+		/// Attractions ////post start 8///
457
+		$image_array[] = "$dummy_image_url/a18.jpg";
458
+		$image_array[] = "$dummy_image_url/a10.jpg";
459
+		$image_array[] = "$dummy_image_url/a3.jpg";
460
+		$image_array[] = "$dummy_image_url/a4.jpg";
461
+		$image_array[] = "$dummy_image_url/a5.jpg";
462
+		$image_array[] = "$dummy_image_url/a2.jpg";
463
+		$image_array[] = "$dummy_image_url/a7.jpg";
464
+		$image_array[] = "$dummy_image_url/a8.jpg";
465
+		$image_array[] = "$dummy_image_url/a6.jpg";
466
+		$image_array[] = "$dummy_image_url/a1.jpg";
467
+		$image_array[] = "$dummy_image_url/a9.jpg";
468
+
469
+		$post_info[] = array(
470
+			"listing_type" => 'gd_place',
471
+			"post_title" => 'Audacious Freedom',
472
+			"post_desc" => 'Audacious Freedom, the major, new exhibit at the African American Museum in Philadelphia , explores the lives of people of African descent living in Philadelphia between 1776 and 1876.
473 473
 	
474 474
 	Discover how African Americans in Philadelphia lived and worked while helping to shape the young nation in its formative stages.
475 475
 	
@@ -477,45 +477,45 @@  discard block
 block discarded – undo
477 477
 	
478 478
 	The groundbreaking exhibit allows visitors to “walk the streets” of Historic Philadelphia using a large-scale map. Young children can join the action with Children&acute;s Corner, which highlights the daily lives of children during that period.
479 479
 	',
480
-            "post_images" => $image_array,
481
-            "post_category" => array('gd_placecategory' => array('Attractions')),
482
-            "post_tags" => array('Tag1'),
483
-            "geodir_video" => '',
484
-            "geodir_timing" => 'Open today until 11.30 a.m., Sunday 1 pm to 7 pm',
485
-            "geodir_contact" => '(777) 777-7777',
486
-            "geodir_email" => '[email protected]',
487
-            "geodir_website" => 'http://www.aampmuseum.org/',
488
-            "geodir_twitter" => 'http://twitter.com/aampmuseum',
489
-            "geodir_facebook" => 'http://facebook.com/aampmuseum',
490
-            "post_dummy" => '1'
491
-        );
492
-
493
-        ////post end///
494
-        /// Attractions ////post start 8///
495
-
496
-
497
-        break;
498
-    case 9:
499
-        $image_array = array();
500
-        $post_meta = array();
501
-
502
-        /// Attractions ////post start 9///
503
-        $image_array[] = "$dummy_image_url/a19.jpg";
504
-        $image_array[] = "$dummy_image_url/a20.jpg";
505
-        $image_array[] = "$dummy_image_url/a3.jpg";
506
-        $image_array[] = "$dummy_image_url/a4.jpg";
507
-        $image_array[] = "$dummy_image_url/a5.jpg";
508
-        $image_array[] = "$dummy_image_url/a2.jpg";
509
-        $image_array[] = "$dummy_image_url/a7.jpg";
510
-        $image_array[] = "$dummy_image_url/a8.jpg";
511
-        $image_array[] = "$dummy_image_url/a6.jpg";
512
-        $image_array[] = "$dummy_image_url/a1.jpg";
513
-        $image_array[] = "$dummy_image_url/a9.jpg";
514
-
515
-        $post_info[] = array(
516
-            "listing_type" => 'gd_place',
517
-            "post_title" => 'The Liberty Bell Center',
518
-            "post_desc" => '<h3>The Experience </h3>
480
+			"post_images" => $image_array,
481
+			"post_category" => array('gd_placecategory' => array('Attractions')),
482
+			"post_tags" => array('Tag1'),
483
+			"geodir_video" => '',
484
+			"geodir_timing" => 'Open today until 11.30 a.m., Sunday 1 pm to 7 pm',
485
+			"geodir_contact" => '(777) 777-7777',
486
+			"geodir_email" => '[email protected]',
487
+			"geodir_website" => 'http://www.aampmuseum.org/',
488
+			"geodir_twitter" => 'http://twitter.com/aampmuseum',
489
+			"geodir_facebook" => 'http://facebook.com/aampmuseum',
490
+			"post_dummy" => '1'
491
+		);
492
+
493
+		////post end///
494
+		/// Attractions ////post start 8///
495
+
496
+
497
+		break;
498
+	case 9:
499
+		$image_array = array();
500
+		$post_meta = array();
501
+
502
+		/// Attractions ////post start 9///
503
+		$image_array[] = "$dummy_image_url/a19.jpg";
504
+		$image_array[] = "$dummy_image_url/a20.jpg";
505
+		$image_array[] = "$dummy_image_url/a3.jpg";
506
+		$image_array[] = "$dummy_image_url/a4.jpg";
507
+		$image_array[] = "$dummy_image_url/a5.jpg";
508
+		$image_array[] = "$dummy_image_url/a2.jpg";
509
+		$image_array[] = "$dummy_image_url/a7.jpg";
510
+		$image_array[] = "$dummy_image_url/a8.jpg";
511
+		$image_array[] = "$dummy_image_url/a6.jpg";
512
+		$image_array[] = "$dummy_image_url/a1.jpg";
513
+		$image_array[] = "$dummy_image_url/a9.jpg";
514
+
515
+		$post_info[] = array(
516
+			"listing_type" => 'gd_place',
517
+			"post_title" => 'The Liberty Bell Center',
518
+			"post_desc" => '<h3>The Experience </h3>
519 519
 	
520 520
 	The Liberty Bell has a new home, and it is as powerful and dramatic as the Bell itself. Throughout the expansive, light-filled Center, larger-than-life historic documents and graphic images explore the facts and the myths surrounding the Bell.
521 521
 	
@@ -536,45 +536,45 @@  discard block
 block discarded – undo
536 536
 	The Bell is suspended from what is believed to be its original yoke, made of American elm.
537 537
 	
538 538
 	The Liberty Bell weighs 2,080 pounds. The yoke weighs about 100 pounds.',
539
-            "post_images" => $image_array,
540
-            "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
541
-            "post_tags" => array(''),
542
-            "geodir_video" => '',
543
-            "geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.',
544
-            "geodir_contact" => '(777) 666-6666',
545
-            "geodir_email" => '[email protected]',
546
-            "geodir_website" => 'http://www.nps.gov/inde',
547
-            "geodir_twitter" => 'http://twitter.com/nps',
548
-            "geodir_facebook" => 'http://facebook.com/nps',
549
-            "post_dummy" => '1'
550
-        );
551
-
552
-        ////post end///
553
-        /// Attractions ////post start 9///
554
-        break;
555
-    case 10:
556
-
557
-
558
-        $image_array = array();
559
-        $post_meta = array();
560
-
561
-        /// Attractions ////post start 10///
562
-        $image_array[] = "$dummy_image_url/a19.jpg";
563
-        $image_array[] = "$dummy_image_url/a20.jpg";
564
-        $image_array[] = "$dummy_image_url/a3.jpg";
565
-        $image_array[] = "$dummy_image_url/a4.jpg";
566
-        $image_array[] = "$dummy_image_url/a5.jpg";
567
-        $image_array[] = "$dummy_image_url/a2.jpg";
568
-        $image_array[] = "$dummy_image_url/a7.jpg";
569
-        $image_array[] = "$dummy_image_url/a8.jpg";
570
-        $image_array[] = "$dummy_image_url/a6.jpg";
571
-        $image_array[] = "$dummy_image_url/a1.jpg";
572
-        $image_array[] = "$dummy_image_url/a9.jpg";
573
-
574
-        $post_info[] = array(
575
-            "listing_type" => 'gd_place',
576
-            "post_title" => 'Rittenhouse Square',
577
-            "post_desc" => '
539
+			"post_images" => $image_array,
540
+			"post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
541
+			"post_tags" => array(''),
542
+			"geodir_video" => '',
543
+			"geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.',
544
+			"geodir_contact" => '(777) 666-6666',
545
+			"geodir_email" => '[email protected]',
546
+			"geodir_website" => 'http://www.nps.gov/inde',
547
+			"geodir_twitter" => 'http://twitter.com/nps',
548
+			"geodir_facebook" => 'http://facebook.com/nps',
549
+			"post_dummy" => '1'
550
+		);
551
+
552
+		////post end///
553
+		/// Attractions ////post start 9///
554
+		break;
555
+	case 10:
556
+
557
+
558
+		$image_array = array();
559
+		$post_meta = array();
560
+
561
+		/// Attractions ////post start 10///
562
+		$image_array[] = "$dummy_image_url/a19.jpg";
563
+		$image_array[] = "$dummy_image_url/a20.jpg";
564
+		$image_array[] = "$dummy_image_url/a3.jpg";
565
+		$image_array[] = "$dummy_image_url/a4.jpg";
566
+		$image_array[] = "$dummy_image_url/a5.jpg";
567
+		$image_array[] = "$dummy_image_url/a2.jpg";
568
+		$image_array[] = "$dummy_image_url/a7.jpg";
569
+		$image_array[] = "$dummy_image_url/a8.jpg";
570
+		$image_array[] = "$dummy_image_url/a6.jpg";
571
+		$image_array[] = "$dummy_image_url/a1.jpg";
572
+		$image_array[] = "$dummy_image_url/a9.jpg";
573
+
574
+		$post_info[] = array(
575
+			"listing_type" => 'gd_place',
576
+			"post_title" => 'Rittenhouse Square',
577
+			"post_desc" => '
578 578
 	
579 579
 	Unlike the other squares, the early Southwest Square was never used as a burial ground, although it offered pasturage for local livestock and a convenient dumping spot for “night soil”.
580 580
 	<h3> History </h3>
@@ -607,45 +607,45 @@  discard block
 block discarded – undo
607 607
 	
608 608
 	Meanwhile, several more restaurants, bars and clubs have opened along the surrounding blocks in recent years, like Parc, Tria, Continental Midtown, Alfa, Walnut Room, and Twenty Manning just to name a few.
609 609
 	',
610
-            "post_images" => $image_array,
611
-            "post_category" => array('gd_placecategory' => array('Attractions')),
612
-            "post_tags" => array('Museum'),
613
-            "geodir_video" => '',
614
-            "geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.',
615
-            "geodir_contact" => '(777) 666-6666',
616
-            "geodir_email" => '[email protected]',
617
-            "geodir_website" => 'http://www.fairmountpark.org/rittenhousesquare.asp',
618
-            "geodir_twitter" => 'http://twitter.com/fairmountpark',
619
-            "geodir_facebook" => 'http://facebook.com/fairmountpark',
620
-            "post_dummy" => '1'
621
-        );
622
-
623
-        ////post end///
624
-        /// Attractions ////post start 10///
625
-        break;
626
-    case 11:
627
-
628
-
629
-        $image_array = array();
630
-        $post_meta = array();
631
-
632
-        /// Hotels ////post start 1///
633
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
634
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
635
-        $image_array[] = "$dummy_image_url/hotels3.jpg";
636
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
637
-        $image_array[] = "$dummy_image_url/hotels5.jpg";
638
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
639
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
640
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
641
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
642
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
643
-        $image_array[] = "$dummy_image_url/hotels11.jpg";
644
-
645
-        $post_info[] = array(
646
-            "listing_type" => 'gd_place',
647
-            "post_title" => 'Loews Philadelphia Hotel',
648
-            "post_desc" => '
610
+			"post_images" => $image_array,
611
+			"post_category" => array('gd_placecategory' => array('Attractions')),
612
+			"post_tags" => array('Museum'),
613
+			"geodir_video" => '',
614
+			"geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.',
615
+			"geodir_contact" => '(777) 666-6666',
616
+			"geodir_email" => '[email protected]',
617
+			"geodir_website" => 'http://www.fairmountpark.org/rittenhousesquare.asp',
618
+			"geodir_twitter" => 'http://twitter.com/fairmountpark',
619
+			"geodir_facebook" => 'http://facebook.com/fairmountpark',
620
+			"post_dummy" => '1'
621
+		);
622
+
623
+		////post end///
624
+		/// Attractions ////post start 10///
625
+		break;
626
+	case 11:
627
+
628
+
629
+		$image_array = array();
630
+		$post_meta = array();
631
+
632
+		/// Hotels ////post start 1///
633
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
634
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
635
+		$image_array[] = "$dummy_image_url/hotels3.jpg";
636
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
637
+		$image_array[] = "$dummy_image_url/hotels5.jpg";
638
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
639
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
640
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
641
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
642
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
643
+		$image_array[] = "$dummy_image_url/hotels11.jpg";
644
+
645
+		$post_info[] = array(
646
+			"listing_type" => 'gd_place',
647
+			"post_title" => 'Loews Philadelphia Hotel',
648
+			"post_desc" => '
649 649
 	
650 650
 	<h3>OVERVIEW </h3>
651 651
 	
@@ -712,45 +712,45 @@  discard block
 block discarded – undo
712 712
 	
713 713
 	SoleFood Restaurant is proud to be serving Starbucks. Come in and enjoy a fresh cup of coffee during your morning rush. The Coffee Bar also offer small breakfast items for your enjoyment.
714 714
 	',
715
-            "post_images" => $image_array,
716
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
717
-            "post_tags" => array(''),
718
-            "geodir_video" => '',
719
-            "geodir_timing" => 'Daily, 6:30 am – 12:00 pm',
720
-            "geodir_contact" => '(111) 111-0000',
721
-            "geodir_email" => '[email protected]',
722
-            "geodir_website" => 'http://www.loewshotels.com/en/hotels/philadelphia-hotel/overview.aspx',
723
-            "geodir_twitter" => 'http://twitter.com/loewshotels',
724
-            "geodir_facebook" => 'http://facebook.com/loewshotels',
725
-            "post_dummy" => '1'
726
-        );
727
-
728
-        ////post end///
729
-        /// Hotels ////post start 1///
730
-        break;
731
-    case 12:
732
-
733
-
734
-        $image_array = array();
735
-        $post_meta = array();
736
-
737
-        /// Hotels ////post start 2///
738
-        $image_array[] = "$dummy_image_url/hotels5.jpg";
739
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
740
-        $image_array[] = "$dummy_image_url/hotels3.jpg";
741
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
742
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
743
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
744
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
745
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
746
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
747
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
748
-        $image_array[] = "$dummy_image_url/hotels11.jpg";
749
-
750
-        $post_info[] = array(
751
-            "listing_type" => 'gd_place',
752
-            "post_title" => 'Embassy Suites Philadelphia',
753
-            "post_desc" => '
715
+			"post_images" => $image_array,
716
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
717
+			"post_tags" => array(''),
718
+			"geodir_video" => '',
719
+			"geodir_timing" => 'Daily, 6:30 am – 12:00 pm',
720
+			"geodir_contact" => '(111) 111-0000',
721
+			"geodir_email" => '[email protected]',
722
+			"geodir_website" => 'http://www.loewshotels.com/en/hotels/philadelphia-hotel/overview.aspx',
723
+			"geodir_twitter" => 'http://twitter.com/loewshotels',
724
+			"geodir_facebook" => 'http://facebook.com/loewshotels',
725
+			"post_dummy" => '1'
726
+		);
727
+
728
+		////post end///
729
+		/// Hotels ////post start 1///
730
+		break;
731
+	case 12:
732
+
733
+
734
+		$image_array = array();
735
+		$post_meta = array();
736
+
737
+		/// Hotels ////post start 2///
738
+		$image_array[] = "$dummy_image_url/hotels5.jpg";
739
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
740
+		$image_array[] = "$dummy_image_url/hotels3.jpg";
741
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
742
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
743
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
744
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
745
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
746
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
747
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
748
+		$image_array[] = "$dummy_image_url/hotels11.jpg";
749
+
750
+		$post_info[] = array(
751
+			"listing_type" => 'gd_place',
752
+			"post_title" => 'Embassy Suites Philadelphia',
753
+			"post_desc" => '
754 754
 	The newly renovated Embassy Suites Philadelphia – Center City hotel is conveniently situated in the heart of downtown Philadelphia, Pennsylvania and Philadelphia&acute;s Center City business district. This hotel in Philadelphia is located only eight miles from Philadelphia International Airport and just minutes from top Philadelphia attractions, including:
755 755
 	
756 756
 	Philadelphia Museum of Art
@@ -766,45 +766,45 @@  discard block
 block discarded – undo
766 766
 	
767 767
 	A delicious, complimentary cooked-to-order breakfast is offered each morning, and a hotel Manager&acute;s Reception every night – featuring complimentary refreshments and great company.
768 768
 	',
769
-            "post_images" => $image_array,
770
-            "post_category" => array('gd_placecategory' => array('Hotels')),
771
-            "post_tags" => array(''),
772
-            "geodir_video" => '',
773
-            "geodir_timing" => 'Daily, 10:30 am – 10 pm',
774
-            "geodir_contact" => '(111) 111-0000',
775
-            "geodir_email" => '[email protected]',
776
-            "geodir_website" => 'http://embassysuites1.hilton.com/en_US/es/hotel/PHLDTES-Embassy-Suites-Philadelphia-Center-City-Pennsylvania/index.do',
777
-            "geodir_twitter" => 'http://twitter.com/embassysuites1',
778
-            "geodir_facebook" => 'http://facebook.com/embassysuites1',
779
-            "post_dummy" => '1'
780
-        );
781
-
782
-        ////post end///
783
-        /// Hotels ////post start 2///
784
-
785
-        break;
786
-    case 13:
787
-
788
-        $image_array = array();
789
-        $post_meta = array();
790
-
791
-        /// Hotels ////post start 3///
792
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
793
-        $image_array[] = "$dummy_image_url/hotels11.jpg";
794
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
795
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
796
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
797
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
798
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
799
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
800
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
801
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
802
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
803
-
804
-        $post_info[] = array(
805
-            "listing_type" => 'gd_place',
806
-            "post_title" => 'Doubletree Hotel Philadelphia',
807
-            "post_desc" => '
769
+			"post_images" => $image_array,
770
+			"post_category" => array('gd_placecategory' => array('Hotels')),
771
+			"post_tags" => array(''),
772
+			"geodir_video" => '',
773
+			"geodir_timing" => 'Daily, 10:30 am – 10 pm',
774
+			"geodir_contact" => '(111) 111-0000',
775
+			"geodir_email" => '[email protected]',
776
+			"geodir_website" => 'http://embassysuites1.hilton.com/en_US/es/hotel/PHLDTES-Embassy-Suites-Philadelphia-Center-City-Pennsylvania/index.do',
777
+			"geodir_twitter" => 'http://twitter.com/embassysuites1',
778
+			"geodir_facebook" => 'http://facebook.com/embassysuites1',
779
+			"post_dummy" => '1'
780
+		);
781
+
782
+		////post end///
783
+		/// Hotels ////post start 2///
784
+
785
+		break;
786
+	case 13:
787
+
788
+		$image_array = array();
789
+		$post_meta = array();
790
+
791
+		/// Hotels ////post start 3///
792
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
793
+		$image_array[] = "$dummy_image_url/hotels11.jpg";
794
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
795
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
796
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
797
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
798
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
799
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
800
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
801
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
802
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
803
+
804
+		$post_info[] = array(
805
+			"listing_type" => 'gd_place',
806
+			"post_title" => 'Doubletree Hotel Philadelphia',
807
+			"post_desc" => '
808 808
 	With 434 rooms, the Doubletree Hotel is a great option for your upcoming stay in Philadelphia.
809 809
 	
810 810
 	<h3>Location </h3>
@@ -834,47 +834,47 @@  discard block
 block discarded – undo
834 834
 	Stop in the restaurant - which serves lunch and dinner daily - for a drink and some light fare. With its location right on Broad Street, you&acute;re close to everything you could ever want in a night on the town.
835 835
 	',
836 836
 
837
-            "post_images" => $image_array,
838
-
839
-            "post_category" => array('gd_placecategory' => array('Hotels')),
840
-            "post_tags" => array(''),
841
-            "geodir_video" => '',
842
-            "geodir_timing" => 'Daily, 10:30 am – 10 pm',
843
-            "geodir_contact" => '(111) 111-0000',
844
-            "geodir_email" => '[email protected]',
845
-            "geodir_website" => 'http://doubletree1.hilton.com/en_US/dt/hotel/PHLBLDT-Doubletree-Hotel-Philadelphia-Pennsylvania/index.do',
846
-            "geodir_twitter" => 'http://twitter.com/doubletree1',
847
-            "geodir_facebook" => 'http://facebook.com/doubletree1',
848
-            "post_dummy" => '1'
849
-        );
850
-
851
-        ////post end///
852
-        /// Hotels ////post start 3///
853
-
854
-        break;
855
-    case 14:
856
-
857
-
858
-        $image_array = array();
859
-        $post_meta = array();
860
-
861
-        /// Hotels ////post start 4///
862
-        $image_array[] = "$dummy_image_url/hotels15.jpg";
863
-        $image_array[] = "$dummy_image_url/hotels16.jpg";
864
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
865
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
866
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
867
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
868
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
869
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
870
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
871
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
872
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
873
-
874
-        $post_info[] = array(
875
-            "listing_type" => 'gd_place',
876
-            "post_title" => 'Philadelphia Marriott Downtown',
877
-            "post_desc" => '
837
+			"post_images" => $image_array,
838
+
839
+			"post_category" => array('gd_placecategory' => array('Hotels')),
840
+			"post_tags" => array(''),
841
+			"geodir_video" => '',
842
+			"geodir_timing" => 'Daily, 10:30 am – 10 pm',
843
+			"geodir_contact" => '(111) 111-0000',
844
+			"geodir_email" => '[email protected]',
845
+			"geodir_website" => 'http://doubletree1.hilton.com/en_US/dt/hotel/PHLBLDT-Doubletree-Hotel-Philadelphia-Pennsylvania/index.do',
846
+			"geodir_twitter" => 'http://twitter.com/doubletree1',
847
+			"geodir_facebook" => 'http://facebook.com/doubletree1',
848
+			"post_dummy" => '1'
849
+		);
850
+
851
+		////post end///
852
+		/// Hotels ////post start 3///
853
+
854
+		break;
855
+	case 14:
856
+
857
+
858
+		$image_array = array();
859
+		$post_meta = array();
860
+
861
+		/// Hotels ////post start 4///
862
+		$image_array[] = "$dummy_image_url/hotels15.jpg";
863
+		$image_array[] = "$dummy_image_url/hotels16.jpg";
864
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
865
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
866
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
867
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
868
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
869
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
870
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
871
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
872
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
873
+
874
+		$post_info[] = array(
875
+			"listing_type" => 'gd_place',
876
+			"post_title" => 'Philadelphia Marriott Downtown',
877
+			"post_desc" => '
878 878
 	Get ready to stay and play at the new aloft Philadelphia Airport!
879 879
 	
880 880
 	This incredibly modern hotel is located just five minutes from Philadelphia International Airport, offering a great convenience to travelers looking for fresh and fun accommodations.
@@ -901,45 +901,45 @@  discard block
 block discarded – undo
901 901
 	
902 902
 	Aahh…breathe deep at Aloft. This hotel is smoke-free.
903 903
 	',
904
-            "post_images" => $image_array,
905
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
906
-            "post_tags" => array(''),
907
-            "geodir_video" => '',
908
-            "geodir_timing" => '24 Hours',
909
-            "geodir_contact" => '(123) 111-2222',
910
-            "geodir_email" => '[email protected]',
911
-            "geodir_website" => 'http://www.marriott.com/hotels/travel/phldt-philadelphia-marriott-downtown/',
912
-            "geodir_twitter" => 'http://twitter.com/marriott',
913
-            "geodir_facebook" => 'http://facebook.com/marriott',
914
-            "post_dummy" => '1'
915
-        );
916
-
917
-        ////post end///
918
-        /// Hotels ////post start 4///
919
-        break;
920
-    case 15:
921
-
922
-
923
-        $image_array = array();
924
-        $post_meta = array();
925
-
926
-        /// Hotels ////post start 5///
927
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
928
-        $image_array[] = "$dummy_image_url/hotels16.jpg";
929
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
930
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
931
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
932
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
933
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
934
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
935
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
936
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
937
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
938
-
939
-        $post_info[] = array(
940
-            "listing_type" => 'gd_place',
941
-            "post_title" => 'Hilton Inn at Penn',
942
-            "post_desc" => '
904
+			"post_images" => $image_array,
905
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
906
+			"post_tags" => array(''),
907
+			"geodir_video" => '',
908
+			"geodir_timing" => '24 Hours',
909
+			"geodir_contact" => '(123) 111-2222',
910
+			"geodir_email" => '[email protected]',
911
+			"geodir_website" => 'http://www.marriott.com/hotels/travel/phldt-philadelphia-marriott-downtown/',
912
+			"geodir_twitter" => 'http://twitter.com/marriott',
913
+			"geodir_facebook" => 'http://facebook.com/marriott',
914
+			"post_dummy" => '1'
915
+		);
916
+
917
+		////post end///
918
+		/// Hotels ////post start 4///
919
+		break;
920
+	case 15:
921
+
922
+
923
+		$image_array = array();
924
+		$post_meta = array();
925
+
926
+		/// Hotels ////post start 5///
927
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
928
+		$image_array[] = "$dummy_image_url/hotels16.jpg";
929
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
930
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
931
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
932
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
933
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
934
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
935
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
936
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
937
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
938
+
939
+		$post_info[] = array(
940
+			"listing_type" => 'gd_place',
941
+			"post_title" => 'Hilton Inn at Penn',
942
+			"post_desc" => '
943 943
 	Located in the heart of Penn&acute;s campus in the beautiful University City neighborhood of Philadelphia, The Hilton Inn at Penn is a great choice for accommodations during your upcoming visit to Philadelphia.
944 944
 	
945 945
 	The location puts you right in the middle of the prestigious University of Pennsylvania and its many nearby educational, medical and corporate centers. And Center City Philadelphia is only a short cab ride away. So if you want to get out and explore the city, you are set.
@@ -955,45 +955,45 @@  discard block
 block discarded – undo
955 955
 	
956 956
 	The pasta is handmade right in front of you and then dished up along side delectable entrées such as grilled veal tenderloin and honey glazed sea scallops. And the wine bar offers more than 30 varieties by the glass and more than 100 by the bottle.  
957 957
 	',
958
-            "post_images" => $image_array,
959
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
960
-            "post_tags" => array(''),
961
-            "geodir_video" => '',
962
-            "geodir_timing" => 'Daily : 11 am to 11 pm',
963
-            "geodir_contact" => '(888) 888-8888',
964
-            "geodir_email" => '[email protected]',
965
-            "geodir_website" => 'http://www.theinnatpenn.com/',
966
-            "geodir_twitter" => 'http://twitter.com/theinnatpenn',
967
-            "geodir_facebook" => 'http://facebook.com/theinnatpenn',
968
-            "post_dummy" => '1'
969
-        );
970
-
971
-        ////post end///
972
-        /// Hotels ////post start 5///
973
-        break;
974
-    case 16:
975
-
976
-
977
-        $image_array = array();
978
-        $post_meta = array();
979
-
980
-        /// Hotels ////post start 6///
981
-        $image_array[] = "$dummy_image_url/hotels17.jpg";
982
-        $image_array[] = "$dummy_image_url/hotels18.jpg";
983
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
984
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
985
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
986
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
987
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
988
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
989
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
990
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
991
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
992
-
993
-        $post_info[] = array(
994
-            "listing_type" => 'gd_place',
995
-            "post_title" => 'Courtyard Philadelphia Downtown',
996
-            "post_desc" => '
958
+			"post_images" => $image_array,
959
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
960
+			"post_tags" => array(''),
961
+			"geodir_video" => '',
962
+			"geodir_timing" => 'Daily : 11 am to 11 pm',
963
+			"geodir_contact" => '(888) 888-8888',
964
+			"geodir_email" => '[email protected]',
965
+			"geodir_website" => 'http://www.theinnatpenn.com/',
966
+			"geodir_twitter" => 'http://twitter.com/theinnatpenn',
967
+			"geodir_facebook" => 'http://facebook.com/theinnatpenn',
968
+			"post_dummy" => '1'
969
+		);
970
+
971
+		////post end///
972
+		/// Hotels ////post start 5///
973
+		break;
974
+	case 16:
975
+
976
+
977
+		$image_array = array();
978
+		$post_meta = array();
979
+
980
+		/// Hotels ////post start 6///
981
+		$image_array[] = "$dummy_image_url/hotels17.jpg";
982
+		$image_array[] = "$dummy_image_url/hotels18.jpg";
983
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
984
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
985
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
986
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
987
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
988
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
989
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
990
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
991
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
992
+
993
+		$post_info[] = array(
994
+			"listing_type" => 'gd_place',
995
+			"post_title" => 'Courtyard Philadelphia Downtown',
996
+			"post_desc" => '
997 997
 	<h3>Overview </h3>
998 998
 	
999 999
 	The Philadelphia Downtown Courtyard opened it&acute;s doors after a grand $75 million restoration, recapturing the grandeur of its 1926 origins while incorporating state of the art systems throughout.
@@ -1023,45 +1023,45 @@  discard block
 block discarded – undo
1023 1023
 	
1024 1024
 	Recently featured on WE TV&acute;s “My Fair Wedding”, the Courtyard Marriott Philadelphia is one of the city&acute;s leading venues for corporate and social affairs with over 10,000 sq ft of flexible meeting space, including two Grand Ballrooms each with over 3,000 square feet accommodating up to 250 people. In addition, the hotel has a total of 11 meeting rooms making it an ideal home for all occasions. The hotel boasts an experienced full-service Event and Culinary Teams, ready to take care of all the details and ensure your event is not only a success, but a lasting memory. 
1025 1025
 	',
1026
-            "post_images" => $image_array,
1027
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
1028
-            "post_tags" => array(''),
1029
-            "geodir_video" => '',
1030
-            "geodir_timing" => 'Daily : 11 am to 11 pm',
1031
-            "geodir_contact" => '(888) 888-8888',
1032
-            "geodir_email" => '[email protected]',
1033
-            "geodir_website" => 'http://www.theinnatpenn.com/',
1034
-            "geodir_twitter" => 'http://twitter.com/theinnatpenn',
1035
-            "geodir_facebook" => 'http://facebook.com/theinnatpenn',
1036
-            "post_dummy" => '1'
1037
-        );
1038
-
1039
-        ////post end///
1040
-        /// Hotels ////post start 6///
1041
-
1042
-        break;
1043
-    case 17:
1044
-
1045
-        $image_array = array();
1046
-        $post_meta = array();
1047
-
1048
-        /// Hotels ////post start 7///
1049
-        $image_array[] = "$dummy_image_url/hotels11.jpg";
1050
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
1051
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
1052
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
1053
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1054
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
1055
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
1056
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
1057
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
1058
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1059
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
1060
-
1061
-        $post_info[] = array(
1062
-            "listing_type" => 'gd_place',
1063
-            "post_title" => 'Four Seasons Philadelphia',
1064
-            "post_desc" => '
1026
+			"post_images" => $image_array,
1027
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
1028
+			"post_tags" => array(''),
1029
+			"geodir_video" => '',
1030
+			"geodir_timing" => 'Daily : 11 am to 11 pm',
1031
+			"geodir_contact" => '(888) 888-8888',
1032
+			"geodir_email" => '[email protected]',
1033
+			"geodir_website" => 'http://www.theinnatpenn.com/',
1034
+			"geodir_twitter" => 'http://twitter.com/theinnatpenn',
1035
+			"geodir_facebook" => 'http://facebook.com/theinnatpenn',
1036
+			"post_dummy" => '1'
1037
+		);
1038
+
1039
+		////post end///
1040
+		/// Hotels ////post start 6///
1041
+
1042
+		break;
1043
+	case 17:
1044
+
1045
+		$image_array = array();
1046
+		$post_meta = array();
1047
+
1048
+		/// Hotels ////post start 7///
1049
+		$image_array[] = "$dummy_image_url/hotels11.jpg";
1050
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
1051
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
1052
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
1053
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1054
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
1055
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
1056
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
1057
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
1058
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1059
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
1060
+
1061
+		$post_info[] = array(
1062
+			"listing_type" => 'gd_place',
1063
+			"post_title" => 'Four Seasons Philadelphia',
1064
+			"post_desc" => '
1065 1065
 	<h3>Overview </h3>
1066 1066
 	
1067 1067
 	The Philadelphia Downtown Courtyard opened it&acute;s doors after a grand $75 million restoration, recapturing the grandeur of its 1926 origins while incorporating state of the art systems throughout.
@@ -1091,45 +1091,45 @@  discard block
 block discarded – undo
1091 1091
 	
1092 1092
 	Recently featured on WE TV&acute;s “My Fair Wedding”, the Courtyard Marriott Philadelphia is one of the city&acute;s leading venues for corporate and social affairs with over 10,000 sq ft of flexible meeting space, including two Grand Ballrooms each with over 3,000 square feet accommodating up to 250 people. In addition, the hotel has a total of 11 meeting rooms making it an ideal home for all occasions. The hotel boasts an experienced full-service Event and Culinary Teams, ready to take care of all the details and ensure your event is not only a success, but a lasting memory. 
1093 1093
 	',
1094
-            "post_images" => $image_array,
1095
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
1096
-            "post_tags" => array(''),
1097
-            "geodir_video" => '',
1098
-            "geodir_timing" => 'Daily : 11 am to 11 pm',
1099
-            "geodir_contact" => '(143) 888-8888',
1100
-            "geodir_email" => '[email protected]',
1101
-            "geodir_website" => 'http://www.fourseasons.com/philadelphia/',
1102
-            "geodir_twitter" => 'http://twitter.com/fourseasons',
1103
-            "geodir_facebook" => 'http://facebook.com/fourseasons',
1104
-            "post_dummy" => '1'
1105
-        );
1106
-
1107
-        ////post end///
1108
-        /// Hotels ////post start 7///
1109
-        break;
1110
-    case 18:
1111
-
1112
-
1113
-        $image_array = array();
1114
-        $post_meta = array();
1115
-
1116
-        /// Hotels ////post start 8///
1117
-        $image_array[] = "$dummy_image_url/hotels11.jpg";
1118
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
1119
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
1120
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
1121
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1122
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
1123
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
1124
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
1125
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
1126
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1127
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
1128
-
1129
-        $post_info[] = array(
1130
-            "listing_type" => 'gd_place',
1131
-            "post_title" => 'Alexander Inn',
1132
-            "post_desc" => '
1094
+			"post_images" => $image_array,
1095
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
1096
+			"post_tags" => array(''),
1097
+			"geodir_video" => '',
1098
+			"geodir_timing" => 'Daily : 11 am to 11 pm',
1099
+			"geodir_contact" => '(143) 888-8888',
1100
+			"geodir_email" => '[email protected]',
1101
+			"geodir_website" => 'http://www.fourseasons.com/philadelphia/',
1102
+			"geodir_twitter" => 'http://twitter.com/fourseasons',
1103
+			"geodir_facebook" => 'http://facebook.com/fourseasons',
1104
+			"post_dummy" => '1'
1105
+		);
1106
+
1107
+		////post end///
1108
+		/// Hotels ////post start 7///
1109
+		break;
1110
+	case 18:
1111
+
1112
+
1113
+		$image_array = array();
1114
+		$post_meta = array();
1115
+
1116
+		/// Hotels ////post start 8///
1117
+		$image_array[] = "$dummy_image_url/hotels11.jpg";
1118
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
1119
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
1120
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
1121
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1122
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
1123
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
1124
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
1125
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
1126
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1127
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
1128
+
1129
+		$post_info[] = array(
1130
+			"listing_type" => 'gd_place',
1131
+			"post_title" => 'Alexander Inn',
1132
+			"post_desc" => '
1133 1133
 	The Alexander Inn is one of Philadelphia&acute;s most popular and reasonably priced small hotels.
1134 1134
 	
1135 1135
 	Conveniently located in the heart of the Washington Square West neighborhood in Center City Philadelphia, the Alexander Inn is a great place to base your stay in Philadelphia.
@@ -1138,45 +1138,45 @@  discard block
 block discarded – undo
1138 1138
 	
1139 1139
 	Rooms are also fitted with DirecTV (including many complimentary channels like CNN, ESPN, eight movie channels, etc.) and telephones with modem ports and direct dial. You will also have access to the hotel&acute;s free 24-hour fitness and e-mail centers.  
1140 1140
 	',
1141
-            "post_images" => $image_array,
1142
-            "post_category" => array('gd_placecategory' => array('Hotels')),
1143
-            "post_tags" => array(''),
1144
-            "geodir_video" => '',
1145
-            "geodir_timing" => 'Daily : 11 am to 11 pm',
1146
-            "geodir_contact" => '(143) 888-8888',
1147
-            "geodir_email" => '[email protected]',
1148
-            "geodir_website" => 'http://www.alexanderinn.com/',
1149
-            "geodir_twitter" => 'http://twitter.com/alexanderinn',
1150
-            "geodir_facebook" => 'http://facebook.com/alexanderinn',
1151
-            "post_dummy" => '1'
1152
-        );
1153
-
1154
-        ////post end///
1155
-        /// Hotels ////post start 8///
1156
-        break;
1157
-    case 19:
1158
-
1159
-
1160
-        $image_array = array();
1161
-        $post_meta = array();
1162
-
1163
-        /// Hotels ////post start 9///
1164
-        $image_array[] = "$dummy_image_url/hotels5.jpg";
1165
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
1166
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
1167
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
1168
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1169
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
1170
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
1171
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
1172
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
1173
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1174
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
1175
-
1176
-        $post_info[] = array(
1177
-            "listing_type" => 'gd_place',
1178
-            "post_title" => 'Best Western Center City Hotel',
1179
-            "post_desc" => '
1141
+			"post_images" => $image_array,
1142
+			"post_category" => array('gd_placecategory' => array('Hotels')),
1143
+			"post_tags" => array(''),
1144
+			"geodir_video" => '',
1145
+			"geodir_timing" => 'Daily : 11 am to 11 pm',
1146
+			"geodir_contact" => '(143) 888-8888',
1147
+			"geodir_email" => '[email protected]',
1148
+			"geodir_website" => 'http://www.alexanderinn.com/',
1149
+			"geodir_twitter" => 'http://twitter.com/alexanderinn',
1150
+			"geodir_facebook" => 'http://facebook.com/alexanderinn',
1151
+			"post_dummy" => '1'
1152
+		);
1153
+
1154
+		////post end///
1155
+		/// Hotels ////post start 8///
1156
+		break;
1157
+	case 19:
1158
+
1159
+
1160
+		$image_array = array();
1161
+		$post_meta = array();
1162
+
1163
+		/// Hotels ////post start 9///
1164
+		$image_array[] = "$dummy_image_url/hotels5.jpg";
1165
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
1166
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
1167
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
1168
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1169
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
1170
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
1171
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
1172
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
1173
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1174
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
1175
+
1176
+		$post_info[] = array(
1177
+			"listing_type" => 'gd_place',
1178
+			"post_title" => 'Best Western Center City Hotel',
1179
+			"post_desc" => '
1180 1180
 	The Alexander Inn is one of Philadelphia&acute;s most popular and reasonably priced small hotels.
1181 1181
 	
1182 1182
 	Conveniently located in the heart of the Washington Square West neighborhood in Center City Philadelphia, the Alexander Inn is a great place to base your stay in Philadelphia.
@@ -1185,91 +1185,91 @@  discard block
 block discarded – undo
1185 1185
 	
1186 1186
 	Rooms are also fitted with DirecTV (including many complimentary channels like CNN, ESPN, eight movie channels, etc.) and telephones with modem ports and direct dial. You will also have access to the hotel&acute;s free 24-hour fitness and e-mail centers.  
1187 1187
 	',
1188
-            "post_images" => $image_array,
1189
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
1190
-            "post_tags" => array(''),
1191
-            "geodir_video" => '',
1192
-            "geodir_timing" => 'Daily : 10 am to 11 pm',
1193
-            "geodir_contact" => '(243) 222-12344',
1194
-            "geodir_email" => '[email protected]',
1195
-            "geodir_website" => 'http://book.bestwestern.com/bestwestern/productInfo.do?propertyCode=39087',
1196
-            "geodir_twitter" => 'http://twitter.com/bestwestern',
1197
-            "geodir_facebook" => 'http://facebook.com/bestwestern',
1198
-            "post_dummy" => '1'
1199
-        );
1200
-
1201
-        ////post end///
1202
-        /// Hotels ////post start 9///
1203
-        break;
1204
-    case 20:
1205
-
1206
-
1207
-        $image_array = array();
1208
-        $post_meta = array();
1209
-
1210
-        /// Hotels ////post start 10///
1211
-        $image_array[] = "$dummy_image_url/hotels7.jpg";
1212
-        $image_array[] = "$dummy_image_url/hotels10.jpg";
1213
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
1214
-        $image_array[] = "$dummy_image_url/hotels4.jpg";
1215
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1216
-        $image_array[] = "$dummy_image_url/hotels6.jpg";
1217
-        $image_array[] = "$dummy_image_url/hotels12.jpg";
1218
-        $image_array[] = "$dummy_image_url/hotels8.jpg";
1219
-        $image_array[] = "$dummy_image_url/hotels9.jpg";
1220
-        $image_array[] = "$dummy_image_url/hotels1.jpg";
1221
-        $image_array[] = "$dummy_image_url/hotels2.jpg";
1222
-
1223
-        $post_info[] = array(
1224
-            "listing_type" => 'gd_place',
1225
-            "post_title" => 'Chestnut Hill Hotel',
1226
-            "post_desc" => '
1188
+			"post_images" => $image_array,
1189
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
1190
+			"post_tags" => array(''),
1191
+			"geodir_video" => '',
1192
+			"geodir_timing" => 'Daily : 10 am to 11 pm',
1193
+			"geodir_contact" => '(243) 222-12344',
1194
+			"geodir_email" => '[email protected]',
1195
+			"geodir_website" => 'http://book.bestwestern.com/bestwestern/productInfo.do?propertyCode=39087',
1196
+			"geodir_twitter" => 'http://twitter.com/bestwestern',
1197
+			"geodir_facebook" => 'http://facebook.com/bestwestern',
1198
+			"post_dummy" => '1'
1199
+		);
1200
+
1201
+		////post end///
1202
+		/// Hotels ////post start 9///
1203
+		break;
1204
+	case 20:
1205
+
1206
+
1207
+		$image_array = array();
1208
+		$post_meta = array();
1209
+
1210
+		/// Hotels ////post start 10///
1211
+		$image_array[] = "$dummy_image_url/hotels7.jpg";
1212
+		$image_array[] = "$dummy_image_url/hotels10.jpg";
1213
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
1214
+		$image_array[] = "$dummy_image_url/hotels4.jpg";
1215
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1216
+		$image_array[] = "$dummy_image_url/hotels6.jpg";
1217
+		$image_array[] = "$dummy_image_url/hotels12.jpg";
1218
+		$image_array[] = "$dummy_image_url/hotels8.jpg";
1219
+		$image_array[] = "$dummy_image_url/hotels9.jpg";
1220
+		$image_array[] = "$dummy_image_url/hotels1.jpg";
1221
+		$image_array[] = "$dummy_image_url/hotels2.jpg";
1222
+
1223
+		$post_info[] = array(
1224
+			"listing_type" => 'gd_place',
1225
+			"post_title" => 'Chestnut Hill Hotel',
1226
+			"post_desc" => '
1227 1227
 	The Chestnut Hill Hotel is located in the historic community of Chestnut Hill, approximately nine miles northwest from Center City Philadelphia. Although Chestnut Hill is close to Center City by today&acute;s standards, it was originally a distant “suburb” on the outskirts of the Philadelphia countryside.
1228 1228
 	
1229 1229
 	Today, it is one of the region&acute;s most charming neighborhoods. Tree-lined streets and grand estates surround its main street, Germantown Avenue, where you can stroll and shop at more than 200 specialty shops and restaurants, along with trendy salons and other modern boutiques.
1230 1230
 	
1231 1231
 	The Chestnut Hill Hotel fits perfectly in this setting - the hotel&acute;s 36 rooms and suites, decorated in an 18th-century style, hold the hotel to its boutique roots. It&acute;s a perfect place at which to enjoy a romantic getaway in Philadelphia. 
1232 1232
 	',
1233
-            "post_images" => $image_array,
1234
-            "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
1235
-            "post_tags" => array(''),
1236
-            "geodir_video" => '',
1237
-            "geodir_timing" => 'Daily : 10 am to 11 pm',
1238
-            "geodir_contact" => '(243) 222-12344',
1239
-            "geodir_email" => '[email protected]',
1240
-            "geodir_website" => 'http://www.chestnuthillhotel.com/',
1241
-            "geodir_twitter" => 'http://twitter.com/chestnuthillhotel',
1242
-            "geodir_facebook" => 'http://facebook.com/chestnuthillhotel',
1243
-            "post_dummy" => '1'
1244
-        );
1245
-
1246
-        ////post end///
1247
-        /// Hotels ////post start 10///
1248
-
1249
-        break;
1250
-    case 21:
1251
-
1252
-
1253
-        $image_array = array();
1254
-        $post_meta = array();
1255
-
1256
-        /// Restaurants ////post start 1//
1257
-        $image_array[] = "$dummy_image_url/restaurants1.jpg";
1258
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1259
-        $image_array[] = "$dummy_image_url/restaurants3.jpg";
1260
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1261
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1262
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1263
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1264
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1265
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1266
-        $image_array[] = "$dummy_image_url/restaurants10.jpg";
1267
-        $image_array[] = "$dummy_image_url/restaurants11.jpg";
1268
-
1269
-        $post_info[] = array(
1270
-            "listing_type" => 'gd_place',
1271
-            "post_title" => 'Village Whiskey',
1272
-            "post_desc" => '
1233
+			"post_images" => $image_array,
1234
+			"post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
1235
+			"post_tags" => array(''),
1236
+			"geodir_video" => '',
1237
+			"geodir_timing" => 'Daily : 10 am to 11 pm',
1238
+			"geodir_contact" => '(243) 222-12344',
1239
+			"geodir_email" => '[email protected]',
1240
+			"geodir_website" => 'http://www.chestnuthillhotel.com/',
1241
+			"geodir_twitter" => 'http://twitter.com/chestnuthillhotel',
1242
+			"geodir_facebook" => 'http://facebook.com/chestnuthillhotel',
1243
+			"post_dummy" => '1'
1244
+		);
1245
+
1246
+		////post end///
1247
+		/// Hotels ////post start 10///
1248
+
1249
+		break;
1250
+	case 21:
1251
+
1252
+
1253
+		$image_array = array();
1254
+		$post_meta = array();
1255
+
1256
+		/// Restaurants ////post start 1//
1257
+		$image_array[] = "$dummy_image_url/restaurants1.jpg";
1258
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1259
+		$image_array[] = "$dummy_image_url/restaurants3.jpg";
1260
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1261
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1262
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1263
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1264
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1265
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1266
+		$image_array[] = "$dummy_image_url/restaurants10.jpg";
1267
+		$image_array[] = "$dummy_image_url/restaurants11.jpg";
1268
+
1269
+		$post_info[] = array(
1270
+			"listing_type" => 'gd_place',
1271
+			"post_title" => 'Village Whiskey',
1272
+			"post_desc" => '
1273 1273
 	
1274 1274
 	
1275 1275
 	Located in a Rittenhouse Square space evoking the free-wheeling spirit of a speakeasy, Village Whiskey is prolific Chef Jose Garces’ intimate, 30-seat tribute to the time-honored liquor.
@@ -1295,45 +1295,45 @@  discard block
 block discarded – undo
1295 1295
 	
1296 1296
 	During the warmer months, diners can sit at large, wooden tables placed along Sansom Street for whiskey alfresco.
1297 1297
 	',
1298
-            "post_images" => $image_array,
1299
-            "post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
1300
-            "post_tags" => array('Sample Tag1'),
1301
-            "geodir_video" => '',
1302
-            "geodir_timing" => 'Daily : 10 am to 11 pm',
1303
-            "geodir_contact" => '(243) 222-12344',
1304
-            "geodir_email" => '[email protected]',
1305
-            "geodir_website" => 'http://www.villagewhiskey.com/',
1306
-            "geodir_twitter" => 'http://twitter.com/villagewhiskey',
1307
-            "geodir_facebook" => 'http://facebook.com/villagewhiskey',
1308
-            "post_dummy" => '1'
1309
-        );
1310
-
1311
-        ////post end///
1312
-        /// Restaurants ////post start 1///
1313
-        break;
1314
-    case 22:
1315
-
1316
-
1317
-        $image_array = array();
1318
-        $post_meta = array();
1319
-
1320
-        /// Restaurants ////post start 2//
1321
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1322
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1323
-        $image_array[] = "$dummy_image_url/restaurants3.jpg";
1324
-        $image_array[] = "$dummy_image_url/restaurants1.jpg";
1325
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1326
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1327
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1328
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1329
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1330
-        $image_array[] = "$dummy_image_url/restaurants10.jpg";
1331
-        $image_array[] = "$dummy_image_url/restaurants11.jpg";
1332
-
1333
-        $post_info[] = array(
1334
-            "listing_type" => 'gd_place',
1335
-            "post_title" => 'Zavino Pizzeria and Wine Bar',
1336
-            "post_desc" => '
1298
+			"post_images" => $image_array,
1299
+			"post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
1300
+			"post_tags" => array('Sample Tag1'),
1301
+			"geodir_video" => '',
1302
+			"geodir_timing" => 'Daily : 10 am to 11 pm',
1303
+			"geodir_contact" => '(243) 222-12344',
1304
+			"geodir_email" => '[email protected]',
1305
+			"geodir_website" => 'http://www.villagewhiskey.com/',
1306
+			"geodir_twitter" => 'http://twitter.com/villagewhiskey',
1307
+			"geodir_facebook" => 'http://facebook.com/villagewhiskey',
1308
+			"post_dummy" => '1'
1309
+		);
1310
+
1311
+		////post end///
1312
+		/// Restaurants ////post start 1///
1313
+		break;
1314
+	case 22:
1315
+
1316
+
1317
+		$image_array = array();
1318
+		$post_meta = array();
1319
+
1320
+		/// Restaurants ////post start 2//
1321
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1322
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1323
+		$image_array[] = "$dummy_image_url/restaurants3.jpg";
1324
+		$image_array[] = "$dummy_image_url/restaurants1.jpg";
1325
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1326
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1327
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1328
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1329
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1330
+		$image_array[] = "$dummy_image_url/restaurants10.jpg";
1331
+		$image_array[] = "$dummy_image_url/restaurants11.jpg";
1332
+
1333
+		$post_info[] = array(
1334
+			"listing_type" => 'gd_place',
1335
+			"post_title" => 'Zavino Pizzeria and Wine Bar',
1336
+			"post_desc" => '
1337 1337
 	Zavino is a new pizzeria and wine bar located at the epicenter of the city&acute;s trendy Midtown Village neighborhood. The restaurant features a seasonal menu, classic cocktails, an approachable selection of wine and beer and some of the best late night menu offerings in the area.
1338 1338
 	
1339 1339
 	The restaurant&acute;s interior looks great - it has a simple, rustic feel with an original brick wall, large picture windows, a long bar and a large outdoor cafe coming this spring.
@@ -1352,46 +1352,46 @@  discard block
 block discarded – undo
1352 1352
 	
1353 1353
 	Pizzas vary in price from $8 to $12.
1354 1354
 	',
1355
-            "post_images" => $image_array,
1356
-            "post_category" => array('gd_placecategory' => array('Restaurants')),
1357
-            "post_tags" => array('Sample Tag1'),
1358
-            "geodir_video" => '',
1359
-            "geodir_timing" => 'Daily : 10 am to 11 pm',
1360
-            "geodir_contact" => '(243) 222-12344',
1361
-            "geodir_email" => '[email protected]',
1362
-            "geodir_website" => 'http://www.villagewhiskey.com/',
1363
-            "geodir_twitter" => 'http://twitter.com/villagewhiskey',
1364
-            "geodir_facebook" => 'http://facebook.com/villagewhiskey',
1365
-            "post_dummy" => '1'
1366
-        );
1367
-
1368
-        ////post end///
1369
-        /// Restaurants ////post start 2///
1370
-
1371
-        break;
1372
-    case 23:
1373
-
1374
-
1375
-        $image_array = array();
1376
-        $post_meta = array();
1377
-
1378
-        /// Restaurants ////post start 3//
1379
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1380
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1381
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1382
-        $image_array[] = "$dummy_image_url/restaurants1.jpg";
1383
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1384
-        $image_array[] = "$dummy_image_url/restaurants3.jpg";
1385
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1386
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1387
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1388
-        $image_array[] = "$dummy_image_url/restaurants10.jpg";
1389
-        $image_array[] = "$dummy_image_url/restaurants11.jpg";
1390
-
1391
-        $post_info[] = array(
1392
-            "listing_type" => 'gd_place',
1393
-            "post_title" => 'Parc',
1394
-            "post_desc" => '
1355
+			"post_images" => $image_array,
1356
+			"post_category" => array('gd_placecategory' => array('Restaurants')),
1357
+			"post_tags" => array('Sample Tag1'),
1358
+			"geodir_video" => '',
1359
+			"geodir_timing" => 'Daily : 10 am to 11 pm',
1360
+			"geodir_contact" => '(243) 222-12344',
1361
+			"geodir_email" => '[email protected]',
1362
+			"geodir_website" => 'http://www.villagewhiskey.com/',
1363
+			"geodir_twitter" => 'http://twitter.com/villagewhiskey',
1364
+			"geodir_facebook" => 'http://facebook.com/villagewhiskey',
1365
+			"post_dummy" => '1'
1366
+		);
1367
+
1368
+		////post end///
1369
+		/// Restaurants ////post start 2///
1370
+
1371
+		break;
1372
+	case 23:
1373
+
1374
+
1375
+		$image_array = array();
1376
+		$post_meta = array();
1377
+
1378
+		/// Restaurants ////post start 3//
1379
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1380
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1381
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1382
+		$image_array[] = "$dummy_image_url/restaurants1.jpg";
1383
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1384
+		$image_array[] = "$dummy_image_url/restaurants3.jpg";
1385
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1386
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1387
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1388
+		$image_array[] = "$dummy_image_url/restaurants10.jpg";
1389
+		$image_array[] = "$dummy_image_url/restaurants11.jpg";
1390
+
1391
+		$post_info[] = array(
1392
+			"listing_type" => 'gd_place',
1393
+			"post_title" => 'Parc',
1394
+			"post_desc" => '
1395 1395
 	If you love Paris in the springtime, Parc is a veritable grand cru.
1396 1396
 	
1397 1397
 	With Parc, famed restaurateur Stephen Starr brings a certain je ne sais quoi to Rittenhouse Square. Parc offers an authentic French bistro experience, fully equipped with a chic Parisian ambiance and gorgeous sidewalk seating overlooking the Square.
@@ -1419,45 +1419,45 @@  discard block
 block discarded – undo
1419 1419
 	
1420 1420
 	To put it simply, Parc is nothing short of an authentic Parisian dining experience - right here in the heart of Rittenhouse Square.
1421 1421
 	',
1422
-            "post_images" => $image_array,
1423
-            "post_category" => array('gd_placecategory' => array('Restaurants')),
1424
-            "post_tags" => array('Sample Tag1'),
1425
-            "geodir_video" => '',
1426
-            "geodir_timing" => 'Daily : 10 am to 12 pm',
1427
-            "geodir_contact" => '(143) 222-12344',
1428
-            "geodir_email" => '[email protected]',
1429
-            "geodir_website" => 'http://www.parc-restaurant.com/',
1430
-            "geodir_twitter" => 'http://twitter.com/parc-restaurant',
1431
-            "geodir_facebook" => 'http://facebook.com/parc-restaurant',
1432
-            "post_dummy" => '1'
1433
-        );
1434
-
1435
-        ////post end///
1436
-        /// Restaurants ////post start 3///
1437
-        break;
1438
-    case 24:
1439
-
1440
-
1441
-        $image_array = array();
1442
-        $post_meta = array();
1443
-
1444
-        /// Restaurants ////post start 4//
1445
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1446
-        $image_array[] = "$dummy_image_url/restaurants10.jpg";
1447
-        $image_array[] = "$dummy_image_url/restaurants3.jpg";
1448
-        $image_array[] = "$dummy_image_url/restaurants1.jpg";
1449
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1450
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1451
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1452
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1453
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1454
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1455
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1456
-
1457
-        $post_info[] = array(
1458
-            "listing_type" => 'gd_place',
1459
-            "post_title" => 'Percy Street Barbecue',
1460
-            "post_desc" => '
1422
+			"post_images" => $image_array,
1423
+			"post_category" => array('gd_placecategory' => array('Restaurants')),
1424
+			"post_tags" => array('Sample Tag1'),
1425
+			"geodir_video" => '',
1426
+			"geodir_timing" => 'Daily : 10 am to 12 pm',
1427
+			"geodir_contact" => '(143) 222-12344',
1428
+			"geodir_email" => '[email protected]',
1429
+			"geodir_website" => 'http://www.parc-restaurant.com/',
1430
+			"geodir_twitter" => 'http://twitter.com/parc-restaurant',
1431
+			"geodir_facebook" => 'http://facebook.com/parc-restaurant',
1432
+			"post_dummy" => '1'
1433
+		);
1434
+
1435
+		////post end///
1436
+		/// Restaurants ////post start 3///
1437
+		break;
1438
+	case 24:
1439
+
1440
+
1441
+		$image_array = array();
1442
+		$post_meta = array();
1443
+
1444
+		/// Restaurants ////post start 4//
1445
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1446
+		$image_array[] = "$dummy_image_url/restaurants10.jpg";
1447
+		$image_array[] = "$dummy_image_url/restaurants3.jpg";
1448
+		$image_array[] = "$dummy_image_url/restaurants1.jpg";
1449
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1450
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1451
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1452
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1453
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1454
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1455
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1456
+
1457
+		$post_info[] = array(
1458
+			"listing_type" => 'gd_place',
1459
+			"post_title" => 'Percy Street Barbecue',
1460
+			"post_desc" => '
1461 1461
 	Percy Street Barbecue sees the South Street debut of restaurateurs Steven Cook and Michael Solomonov (Zahav, Xochitl).
1462 1462
 	
1463 1463
 	Serving a straightforward selection of slowly smoked meats and homey side dishes alongside craft beers and tasty cocktails, Percy Street is an ideal venue for Chef Erin OShea much-lauded Southern cooking, and is on its way to become the city top spot for barbecue.
@@ -1483,46 +1483,46 @@  discard block
 block discarded – undo
1483 1483
 	
1484 1484
 	Seating in the form of repurposed church pews, and bare light bulbs overhead in the dining room lend to the restaurant Texas-esque aesthetic.
1485 1485
 	',
1486
-            "post_images" => $image_array,
1487
-            "post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
1488
-            "post_tags" => array('Sample Tag1'),
1489
-            "geodir_video" => '',
1490
-            "geodir_timing" => 'Percy Street is closed on Mondays. The restaurant is also open for weekend lunch/brunch from 11:30 a.m. to 2:30 p.m.',
1491
-            "geodir_contact" => '(143) 222-12344',
1492
-            "geodir_email" => '[email protected]',
1493
-            "geodir_website" => 'http://www.percystreet.com/',
1494
-            "geodir_twitter" => 'http://twitter.com/percystreet',
1495
-            "geodir_facebook" => 'http://facebook.com/percystreet',
1496
-            "post_dummy" => '1'
1497
-        );
1498
-
1499
-        ////post end///
1500
-        /// Restaurants ////post start 4///
1501
-
1502
-        break;
1503
-    case 25:
1504
-
1505
-
1506
-        $image_array = array();
1507
-        $post_meta = array();
1508
-
1509
-        /// Restaurants ////post start 5//
1510
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1511
-        $image_array[] = "$dummy_image_url/restaurants10.jpg";
1512
-        $image_array[] = "$dummy_image_url/restaurants3.jpg";
1513
-        $image_array[] = "$dummy_image_url/restaurants1.jpg";
1514
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1515
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1516
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1517
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1518
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1519
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1520
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1521
-
1522
-        $post_info[] = array(
1523
-            "listing_type" => 'gd_place',
1524
-            "post_title" => 'The Fountain Restaurant',
1525
-            "post_desc" => '
1486
+			"post_images" => $image_array,
1487
+			"post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
1488
+			"post_tags" => array('Sample Tag1'),
1489
+			"geodir_video" => '',
1490
+			"geodir_timing" => 'Percy Street is closed on Mondays. The restaurant is also open for weekend lunch/brunch from 11:30 a.m. to 2:30 p.m.',
1491
+			"geodir_contact" => '(143) 222-12344',
1492
+			"geodir_email" => '[email protected]',
1493
+			"geodir_website" => 'http://www.percystreet.com/',
1494
+			"geodir_twitter" => 'http://twitter.com/percystreet',
1495
+			"geodir_facebook" => 'http://facebook.com/percystreet',
1496
+			"post_dummy" => '1'
1497
+		);
1498
+
1499
+		////post end///
1500
+		/// Restaurants ////post start 4///
1501
+
1502
+		break;
1503
+	case 25:
1504
+
1505
+
1506
+		$image_array = array();
1507
+		$post_meta = array();
1508
+
1509
+		/// Restaurants ////post start 5//
1510
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1511
+		$image_array[] = "$dummy_image_url/restaurants10.jpg";
1512
+		$image_array[] = "$dummy_image_url/restaurants3.jpg";
1513
+		$image_array[] = "$dummy_image_url/restaurants1.jpg";
1514
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1515
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1516
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1517
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1518
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1519
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1520
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1521
+
1522
+		$post_info[] = array(
1523
+			"listing_type" => 'gd_place',
1524
+			"post_title" => 'The Fountain Restaurant',
1525
+			"post_desc" => '
1526 1526
 	The Fountain Restaurant in the Four Seasons Hotel Philadelphia has received seemingly every type of accolade there is, from top honors in Gourmet magazine to Forbes Travel Guide&acute;s 2010 Five Star award to a perfect Five Diamond rating from AAA. It&acute;s been a Philadelphia favorite for special occasion meals for decades.
1527 1527
 	
1528 1528
 	Additionally rated as the best restaurant in Philadelphia by Zagat&acute;s, the Fountain Restaurant overlooks the majestic Swann Memorial Fountain sculpture by Alexander Stirling Calder in the center of Logan Square. You&acute;ll also enjoy sweeping views of the grand Benjamin Franklin Parkway and its gorgeous Beaux Arts architecture.
@@ -1532,45 +1532,45 @@  discard block
 block discarded – undo
1532 1532
 	You can order a la carte or select the prix fix option to enjoy the “spontaneous tastes” menu which gives the chef control of a few courses. The menu changes regularly, but you can expect to see globaly influenced items like Pan-fried Veal Sweetbreads, Braised Dover Sole Roulade, Sautéed Venison Medallions and Roasted Australian Lamb Saddle.
1533 1533
 	
1534 1534
 	',
1535
-            "post_images" => $image_array,
1536
-            "post_category" => array('gd_placecategory' => array('Restaurants')),
1537
-            "post_tags" => array('food'),
1538
-            "geodir_video" => '',
1539
-            "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 11:30 a.m. to 2:30 p.m.',
1540
-            "geodir_contact" => '(103) 100-12344',
1541
-            "geodir_email" => '[email protected]',
1542
-            "geodir_website" => 'http://www.fourseasons.com/philadelphia/dining',
1543
-            "geodir_twitter" => 'http://twitter.com/fourseasons',
1544
-            "geodir_facebook" => 'http://facebook.com/fourseasons',
1545
-            "post_dummy" => '1'
1546
-        );
1547
-
1548
-        ////post end///
1549
-        /// Restaurants ////post start 5///
1550
-        break;
1551
-    case 26:
1552
-
1553
-
1554
-        $image_array = array();
1555
-        $post_meta = array();
1556
-
1557
-        /// Restaurants ////post start 6//
1558
-        $image_array[] = "$dummy_image_url/restaurants11.jpg";
1559
-        $image_array[] = "$dummy_image_url/restaurants10.jpg";
1560
-        $image_array[] = "$dummy_image_url/restaurants3.jpg";
1561
-        $image_array[] = "$dummy_image_url/restaurants1.jpg";
1562
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1563
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1564
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1565
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1566
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1567
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1568
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1569
-
1570
-        $post_info[] = array(
1571
-            "listing_type" => 'gd_place',
1572
-            "post_title" => 'Lacroix at The Rittenhouse',
1573
-            "post_desc" => '
1535
+			"post_images" => $image_array,
1536
+			"post_category" => array('gd_placecategory' => array('Restaurants')),
1537
+			"post_tags" => array('food'),
1538
+			"geodir_video" => '',
1539
+			"geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 11:30 a.m. to 2:30 p.m.',
1540
+			"geodir_contact" => '(103) 100-12344',
1541
+			"geodir_email" => '[email protected]',
1542
+			"geodir_website" => 'http://www.fourseasons.com/philadelphia/dining',
1543
+			"geodir_twitter" => 'http://twitter.com/fourseasons',
1544
+			"geodir_facebook" => 'http://facebook.com/fourseasons',
1545
+			"post_dummy" => '1'
1546
+		);
1547
+
1548
+		////post end///
1549
+		/// Restaurants ////post start 5///
1550
+		break;
1551
+	case 26:
1552
+
1553
+
1554
+		$image_array = array();
1555
+		$post_meta = array();
1556
+
1557
+		/// Restaurants ////post start 6//
1558
+		$image_array[] = "$dummy_image_url/restaurants11.jpg";
1559
+		$image_array[] = "$dummy_image_url/restaurants10.jpg";
1560
+		$image_array[] = "$dummy_image_url/restaurants3.jpg";
1561
+		$image_array[] = "$dummy_image_url/restaurants1.jpg";
1562
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1563
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1564
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1565
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1566
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1567
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1568
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1569
+
1570
+		$post_info[] = array(
1571
+			"listing_type" => 'gd_place',
1572
+			"post_title" => 'Lacroix at The Rittenhouse',
1573
+			"post_desc" => '
1574 1574
 	A deluxe hotel like The Rittenhouse deserves a deluxe restaurant, a fitting description for Lacroix, named “Restaurant of the Year” in 2003 by Esquire magazine.
1575 1575
 	
1576 1576
 	Located on the second floor of the Rittenhouse Hotel, Lacroix features elegant décor and a broad view of Rittenhouse Square, which combine to make the ambiance at Lacroix as enjoyable as the meal itself.
@@ -1581,46 +1581,46 @@  discard block
 block discarded – undo
1581 1581
 	
1582 1582
 	Sunday Brunch at Lacroix - which features such delectable dishes as baby lamb chops with garlic crust and banyuls sauce, niman ranch smoked bacon, quail eggs with artichoke, golden beet and shiitakes, and french baguette toast with apple, raspberry and rosemary jam - is also highly recommended.
1583 1583
 	',
1584
-            "post_images" => $image_array,
1585
-            "post_category" => array('gd_placecategory' => array('Restaurants')),
1586
-            "post_tags" => array('food'),
1587
-            "geodir_video" => '',
1588
-            "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1589
-            "geodir_contact" => '(113) 121-12344',
1590
-            "geodir_email" => '[email protected]',
1591
-            "geodir_website" => 'http://www.rittenhousehotel.com/lacroix.cfm',
1592
-            "geodir_twitter" => 'http://twitter.com/rittenhousehotel',
1593
-            "geodir_facebook" => 'http://facebook.com/rittenhousehotel',
1594
-            "post_dummy" => '1'
1595
-        );
1596
-
1597
-        ////post end///
1598
-        /// Restaurants ////post start 6///
1599
-
1600
-        break;
1601
-    case 27:
1602
-
1603
-
1604
-        $image_array = array();
1605
-        $post_meta = array();
1606
-
1607
-        /// Restaurants ////post start 7//
1608
-        $image_array[] = "$dummy_image_url/restaurants12.jpg";
1609
-        $image_array[] = "$dummy_image_url/restaurants13.jpg";
1610
-        $image_array[] = "$dummy_image_url/restaurants14.jpg";
1611
-        $image_array[] = "$dummy_image_url/restaurants15.jpg";
1612
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1613
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1614
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1615
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1616
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1617
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1618
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1619
-
1620
-        $post_info[] = array(
1621
-            "listing_type" => 'gd_place',
1622
-            "post_title" => 'Lacroix at The Rittenhouse',
1623
-            "post_desc" => '
1584
+			"post_images" => $image_array,
1585
+			"post_category" => array('gd_placecategory' => array('Restaurants')),
1586
+			"post_tags" => array('food'),
1587
+			"geodir_video" => '',
1588
+			"geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1589
+			"geodir_contact" => '(113) 121-12344',
1590
+			"geodir_email" => '[email protected]',
1591
+			"geodir_website" => 'http://www.rittenhousehotel.com/lacroix.cfm',
1592
+			"geodir_twitter" => 'http://twitter.com/rittenhousehotel',
1593
+			"geodir_facebook" => 'http://facebook.com/rittenhousehotel',
1594
+			"post_dummy" => '1'
1595
+		);
1596
+
1597
+		////post end///
1598
+		/// Restaurants ////post start 6///
1599
+
1600
+		break;
1601
+	case 27:
1602
+
1603
+
1604
+		$image_array = array();
1605
+		$post_meta = array();
1606
+
1607
+		/// Restaurants ////post start 7//
1608
+		$image_array[] = "$dummy_image_url/restaurants12.jpg";
1609
+		$image_array[] = "$dummy_image_url/restaurants13.jpg";
1610
+		$image_array[] = "$dummy_image_url/restaurants14.jpg";
1611
+		$image_array[] = "$dummy_image_url/restaurants15.jpg";
1612
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1613
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1614
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1615
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1616
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1617
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1618
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1619
+
1620
+		$post_info[] = array(
1621
+			"listing_type" => 'gd_place',
1622
+			"post_title" => 'Lacroix at The Rittenhouse',
1623
+			"post_desc" => '
1624 1624
 	A deluxe hotel like The Rittenhouse deserves a deluxe restaurant, a fitting description for Lacroix, named “Restaurant of the Year” in 2003 by Esquire magazine.
1625 1625
 	
1626 1626
 	Located on the second floor of the Rittenhouse Hotel, Lacroix features elegant décor and a broad view of Rittenhouse Square, which combine to make the ambiance at Lacroix as enjoyable as the meal itself.
@@ -1631,45 +1631,45 @@  discard block
 block discarded – undo
1631 1631
 	
1632 1632
 	Sunday Brunch at Lacroix - which features such delectable dishes as baby lamb chops with garlic crust and banyuls sauce, niman ranch smoked bacon, quail eggs with artichoke, golden beet and shiitakes, and french baguette toast with apple, raspberry and rosemary jam - is also highly recommended.
1633 1633
 	',
1634
-            "post_images" => $image_array,
1635
-            "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
1636
-            "post_tags" => array('food'),
1637
-            "geodir_video" => '',
1638
-            "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1639
-            "geodir_contact" => '(113) 121-12344',
1640
-            "geodir_email" => '[email protected]',
1641
-            "geodir_website" => 'http://www.zamarestaurant.com/',
1642
-            "geodir_twitter" => 'http://twitter.com/zamarestaurant',
1643
-            "geodir_facebook" => 'http://facebook.com/zamarestaurant',
1644
-            "post_dummy" => '1'
1645
-        );
1646
-
1647
-        ////post end///
1648
-        /// Restaurants ////post start 7///
1649
-
1650
-        break;
1651
-    case 28:
1652
-
1653
-        $image_array = array();
1654
-        $post_meta = array();
1655
-
1656
-        /// Restaurants ////post start 8//
1657
-        $image_array[] = "$dummy_image_url/restaurants16.jpg";
1658
-        $image_array[] = "$dummy_image_url/restaurants17.jpg";
1659
-        $image_array[] = "$dummy_image_url/restaurants18.jpg";
1660
-        $image_array[] = "$dummy_image_url/restaurants19.jpg";
1661
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1662
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1663
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1664
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1665
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1666
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1667
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1668
-
1669
-        $post_info[] = array(
1670
-            "listing_type" => 'gd_place',
1671
-            "post_title" => 'Sampan',
1672
-            "post_desc" => '
1634
+			"post_images" => $image_array,
1635
+			"post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
1636
+			"post_tags" => array('food'),
1637
+			"geodir_video" => '',
1638
+			"geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1639
+			"geodir_contact" => '(113) 121-12344',
1640
+			"geodir_email" => '[email protected]',
1641
+			"geodir_website" => 'http://www.zamarestaurant.com/',
1642
+			"geodir_twitter" => 'http://twitter.com/zamarestaurant',
1643
+			"geodir_facebook" => 'http://facebook.com/zamarestaurant',
1644
+			"post_dummy" => '1'
1645
+		);
1646
+
1647
+		////post end///
1648
+		/// Restaurants ////post start 7///
1649
+
1650
+		break;
1651
+	case 28:
1652
+
1653
+		$image_array = array();
1654
+		$post_meta = array();
1655
+
1656
+		/// Restaurants ////post start 8//
1657
+		$image_array[] = "$dummy_image_url/restaurants16.jpg";
1658
+		$image_array[] = "$dummy_image_url/restaurants17.jpg";
1659
+		$image_array[] = "$dummy_image_url/restaurants18.jpg";
1660
+		$image_array[] = "$dummy_image_url/restaurants19.jpg";
1661
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1662
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1663
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1664
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1665
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1666
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1667
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1668
+
1669
+		$post_info[] = array(
1670
+			"listing_type" => 'gd_place',
1671
+			"post_title" => 'Sampan',
1672
+			"post_desc" => '
1673 1673
 	Chef and charismatic television star Michael Schulson returns to Philadelphia with the opening of Sampan, a modern Asian restaurant where he serves the acclaimed cuisine that has made him one of the country&acute;s highly sought-after culinary talents.
1674 1674
 	
1675 1675
 	Schulson returns to Philadelphia after having opened Buddakan in New York City for Stephen Starr and Izakaya at the Borgata in Atlantic City and then having gone on to star in Style network&acute;s popular series Pantry Raid and TLC Ultimate Cake Off.
@@ -1688,45 +1688,45 @@  discard block
 block discarded – undo
1688 1688
 	
1689 1689
 	Prices range from $5 to $19.
1690 1690
 	',
1691
-            "post_images" => $image_array,
1692
-            "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
1693
-            "post_tags" => array('restaurant'),
1694
-            "geodir_video" => '',
1695
-            "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1696
-            "geodir_contact" => '(000) 111-2222',
1697
-            "geodir_email" => '[email protected]',
1698
-            "geodir_website" => 'http://www.sampanphilly.com/',
1699
-            "geodir_twitter" => 'http://twitter.com/sampanphilly',
1700
-            "geodir_facebook" => 'http://facebook.com/sampanphilly',
1701
-            "post_dummy" => '1'
1702
-        );
1703
-
1704
-        ////post end///
1705
-        /// Restaurants ////post start 8///
1706
-
1707
-        break;
1708
-    case 29:
1709
-
1710
-        $image_array = array();
1711
-        $post_meta = array();
1712
-
1713
-        /// Restaurants ////post start 9//
1714
-        $image_array[] = "$dummy_image_url/restaurants17.jpg";
1715
-        $image_array[] = "$dummy_image_url/restaurants16.jpg";
1716
-        $image_array[] = "$dummy_image_url/restaurants18.jpg";
1717
-        $image_array[] = "$dummy_image_url/restaurants19.jpg";
1718
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1719
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1720
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1721
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1722
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1723
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1724
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1725
-
1726
-        $post_info[] = array(
1727
-            "listing_type" => 'gd_place',
1728
-            "post_title" => 'Morimoto',
1729
-            "post_desc" => '
1691
+			"post_images" => $image_array,
1692
+			"post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
1693
+			"post_tags" => array('restaurant'),
1694
+			"geodir_video" => '',
1695
+			"geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1696
+			"geodir_contact" => '(000) 111-2222',
1697
+			"geodir_email" => '[email protected]',
1698
+			"geodir_website" => 'http://www.sampanphilly.com/',
1699
+			"geodir_twitter" => 'http://twitter.com/sampanphilly',
1700
+			"geodir_facebook" => 'http://facebook.com/sampanphilly',
1701
+			"post_dummy" => '1'
1702
+		);
1703
+
1704
+		////post end///
1705
+		/// Restaurants ////post start 8///
1706
+
1707
+		break;
1708
+	case 29:
1709
+
1710
+		$image_array = array();
1711
+		$post_meta = array();
1712
+
1713
+		/// Restaurants ////post start 9//
1714
+		$image_array[] = "$dummy_image_url/restaurants17.jpg";
1715
+		$image_array[] = "$dummy_image_url/restaurants16.jpg";
1716
+		$image_array[] = "$dummy_image_url/restaurants18.jpg";
1717
+		$image_array[] = "$dummy_image_url/restaurants19.jpg";
1718
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1719
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1720
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1721
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1722
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1723
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1724
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1725
+
1726
+		$post_info[] = array(
1727
+			"listing_type" => 'gd_place',
1728
+			"post_title" => 'Morimoto',
1729
+			"post_desc" => '
1730 1730
 	Stephen Starr creative Japanese restaurant has garnered all kinds of national and international attention since opening a few years back. Located a block from Independence Hall on Chestnut Street, Morimoto has an interior - awash in glass and colors - that is both striking and serene in its design.
1731 1731
 	
1732 1732
 	The restaurant&acute;s namesake and head chef, Morimoto (of Food Network&acute;s Iron Chef fame), has created a menu offering the very best in contemporary Japanese cusine. While regulars flock here for the exquisitely prepared sushi, Morimoto offers diners a broad spectrum of flavors that delve beyond nigiri and sashimi.
@@ -1739,45 +1739,45 @@  discard block
 block discarded – undo
1739 1739
 	
1740 1740
 	The mezzanine level lounge is a great spot to have a pre-meal cocktail while waiting for your table. You can enjoy a sake or try a “Sakura” - a cosmo made with Sake - in the sleek space that overlooks the brilliant restaurant below.
1741 1741
 	',
1742
-            "post_images" => $image_array,
1743
-            "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife', 'Feature')),
1744
-            "post_tags" => array('America'),
1745
-            "geodir_video" => '',
1746
-            "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1747
-            "geodir_contact" => '(000) 111-2222',
1748
-            "geodir_email" => '[email protected]',
1749
-            "geodir_website" => 'http://www.morimotorestaurant.com/',
1750
-            "geodir_twitter" => 'http://twitter.com/morimotorestaurant',
1751
-            "geodir_facebook" => 'http://facebook.com/morimotorestaurant',
1752
-            "post_dummy" => '1'
1753
-        );
1754
-
1755
-        ////post end///
1756
-        /// Restaurants ////post start 9///
1757
-        break;
1758
-    case 30:
1759
-
1760
-
1761
-        $image_array = array();
1762
-        $post_meta = array();
1763
-
1764
-        /// Restaurants ////post start 10//
1765
-        $image_array[] = "$dummy_image_url/restaurants19.jpg";
1766
-        $image_array[] = "$dummy_image_url/restaurants17.jpg";
1767
-        $image_array[] = "$dummy_image_url/restaurants18.jpg";
1768
-        $image_array[] = "$dummy_image_url/restaurants16.jpg";
1769
-        $image_array[] = "$dummy_image_url/restaurants5.jpg";
1770
-        $image_array[] = "$dummy_image_url/restaurants6.jpg";
1771
-        $image_array[] = "$dummy_image_url/restaurants7.jpg";
1772
-        $image_array[] = "$dummy_image_url/restaurants8.jpg";
1773
-        $image_array[] = "$dummy_image_url/restaurants9.jpg";
1774
-        $image_array[] = "$dummy_image_url/restaurants2.jpg";
1775
-        $image_array[] = "$dummy_image_url/restaurants4.jpg";
1776
-
1777
-        $post_info[] = array(
1778
-            "listing_type" => 'gd_place',
1779
-            "post_title" => 'Buddakan',
1780
-            "post_desc" => '
1742
+			"post_images" => $image_array,
1743
+			"post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife', 'Feature')),
1744
+			"post_tags" => array('America'),
1745
+			"geodir_video" => '',
1746
+			"geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1747
+			"geodir_contact" => '(000) 111-2222',
1748
+			"geodir_email" => '[email protected]',
1749
+			"geodir_website" => 'http://www.morimotorestaurant.com/',
1750
+			"geodir_twitter" => 'http://twitter.com/morimotorestaurant',
1751
+			"geodir_facebook" => 'http://facebook.com/morimotorestaurant',
1752
+			"post_dummy" => '1'
1753
+		);
1754
+
1755
+		////post end///
1756
+		/// Restaurants ////post start 9///
1757
+		break;
1758
+	case 30:
1759
+
1760
+
1761
+		$image_array = array();
1762
+		$post_meta = array();
1763
+
1764
+		/// Restaurants ////post start 10//
1765
+		$image_array[] = "$dummy_image_url/restaurants19.jpg";
1766
+		$image_array[] = "$dummy_image_url/restaurants17.jpg";
1767
+		$image_array[] = "$dummy_image_url/restaurants18.jpg";
1768
+		$image_array[] = "$dummy_image_url/restaurants16.jpg";
1769
+		$image_array[] = "$dummy_image_url/restaurants5.jpg";
1770
+		$image_array[] = "$dummy_image_url/restaurants6.jpg";
1771
+		$image_array[] = "$dummy_image_url/restaurants7.jpg";
1772
+		$image_array[] = "$dummy_image_url/restaurants8.jpg";
1773
+		$image_array[] = "$dummy_image_url/restaurants9.jpg";
1774
+		$image_array[] = "$dummy_image_url/restaurants2.jpg";
1775
+		$image_array[] = "$dummy_image_url/restaurants4.jpg";
1776
+
1777
+		$post_info[] = array(
1778
+			"listing_type" => 'gd_place',
1779
+			"post_title" => 'Buddakan',
1780
+			"post_desc" => '
1781 1781
 	<h3>The Experience </h3>
1782 1782
 	
1783 1783
 	A towering gilded statue of the Buddha generates elegant calm in this 175-seat, Pan Asian restaurant with sleek, modern decor. Immensely popular, Buddakan is a restaurant that is great for both large parties and intimate dinners.
@@ -1788,86 +1788,86 @@  discard block
 block discarded – undo
1788 1788
 	
1789 1789
 	Be sure to make your reservation before coming to town as Buddakan fills up quickly especially on weekends. Better yet, make your reservation right now .
1790 1790
 	',
1791
-            "post_images" => $image_array,
1792
-            "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
1793
-            "post_tags" => array('America'),
1794
-            "geodir_video" => '',
1795
-            "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1796
-            "geodir_contact" => '(000) 111-2222',
1797
-            "geodir_email" => '[email protected]',
1798
-            "geodir_website" => 'http://www.buddakan.com/',
1799
-            "geodir_twitter" => 'http://twitter.com/buddakan',
1800
-            "geodir_facebook" => 'http://facebook.com/buddakan',
1801
-            "post_dummy" => '1'
1802
-        );
1803
-        break;
1804
-
1805
-    ////post end///
1806
-    /// Restaurants ////post start 10///
1791
+			"post_images" => $image_array,
1792
+			"post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
1793
+			"post_tags" => array('America'),
1794
+			"geodir_video" => '',
1795
+			"geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.',
1796
+			"geodir_contact" => '(000) 111-2222',
1797
+			"geodir_email" => '[email protected]',
1798
+			"geodir_website" => 'http://www.buddakan.com/',
1799
+			"geodir_twitter" => 'http://twitter.com/buddakan',
1800
+			"geodir_facebook" => 'http://facebook.com/buddakan',
1801
+			"post_dummy" => '1'
1802
+		);
1803
+		break;
1804
+
1805
+	////post end///
1806
+	/// Restaurants ////post start 10///
1807 1807
 } // end of switch
1808 1808
 
1809 1809
 
1810 1810
 foreach ($post_info as $post_info) {
1811
-    $default_location = geodir_get_default_location();
1812
-    if ($city_bound_lat1 > $city_bound_lat2)
1813
-        $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1));
1814
-    else
1815
-        $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2));
1811
+	$default_location = geodir_get_default_location();
1812
+	if ($city_bound_lat1 > $city_bound_lat2)
1813
+		$dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1));
1814
+	else
1815
+		$dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2));
1816 1816
 
1817 1817
 
1818
-    if ($city_bound_lng1 > $city_bound_lng2)
1819
-        $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1));
1820
-    else
1821
-        $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2));
1818
+	if ($city_bound_lng1 > $city_bound_lng2)
1819
+		$dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1));
1820
+	else
1821
+		$dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2));
1822 1822
 
1823
-    $load_map = get_option('geodir_load_map');
1823
+	$load_map = get_option('geodir_load_map');
1824 1824
     
1825
-    if ($load_map == 'osm') {
1826
-        $post_address = geodir_get_osm_address_by_lat_lan($dummy_post_latitude, $dummy_post_longitude);
1827
-    } else {
1828
-        $post_address = geodir_get_address_by_lat_lan($dummy_post_latitude, $dummy_post_longitude);
1829
-    }
1830
-
1831
-    $postal_code = '';
1832
-    if (!empty($post_address)) {
1833
-        if ($load_map == 'osm') {
1834
-            $address = !empty($post_address->formatted_address) ? $post_address->formatted_address : '';
1835
-            $postal_code = !empty($post_address->address->postcode) ? $post_address->address->postcode : '';
1836
-        } else {
1837
-            $addresses = array();
1838
-            $addresses_default = array();
1825
+	if ($load_map == 'osm') {
1826
+		$post_address = geodir_get_osm_address_by_lat_lan($dummy_post_latitude, $dummy_post_longitude);
1827
+	} else {
1828
+		$post_address = geodir_get_address_by_lat_lan($dummy_post_latitude, $dummy_post_longitude);
1829
+	}
1830
+
1831
+	$postal_code = '';
1832
+	if (!empty($post_address)) {
1833
+		if ($load_map == 'osm') {
1834
+			$address = !empty($post_address->formatted_address) ? $post_address->formatted_address : '';
1835
+			$postal_code = !empty($post_address->address->postcode) ? $post_address->address->postcode : '';
1836
+		} else {
1837
+			$addresses = array();
1838
+			$addresses_default = array();
1839 1839
             
1840
-            foreach ($post_address as $add_key => $add_value) {
1841
-                if ($add_key < 2 && !empty($add_value->long_name)) {
1842
-                    $addresses_default[] = $add_value->long_name;
1843
-                }
1844
-                if ($add_value->types[0] == 'postal_code') {
1845
-                    $postal_code = $add_value->long_name;
1846
-                }
1847
-                if ($add_value->types[0] == 'street_number') {
1848
-                    $addresses[] = $add_value->long_name;
1849
-                }
1850
-                if ($add_value->types[0] == 'route') {
1851
-                    $addresses[] = $add_value->long_name;
1852
-                }
1853
-                if ($add_value->types[0] == 'neighborhood') {
1854
-                    $addresses[] = $add_value->long_name;
1855
-                }
1856
-                if ($add_value->types[0] == 'sublocality') {
1857
-                    $addresses[] = $add_value->long_name;
1858
-                }
1859
-            }
1860
-            $address = !empty($addresses) ? implode(', ', $addresses) : (!empty($addresses_default) ? implode(', ', $addresses_default) : '');
1861
-        }
1862
-
1863
-        $post_info['post_address'] = !empty($address) ? $address : $default_location->city;
1864
-        $post_info['post_city'] = $default_location->city;
1865
-        $post_info['post_region'] = $default_location->region;
1866
-        $post_info['post_country'] = $default_location->country;
1867
-        $post_info['post_zip'] = $postal_code;
1868
-        $post_info['post_latitude'] = $dummy_post_latitude;
1869
-        $post_info['post_longitude'] = $dummy_post_longitude;
1870
-    }
1840
+			foreach ($post_address as $add_key => $add_value) {
1841
+				if ($add_key < 2 && !empty($add_value->long_name)) {
1842
+					$addresses_default[] = $add_value->long_name;
1843
+				}
1844
+				if ($add_value->types[0] == 'postal_code') {
1845
+					$postal_code = $add_value->long_name;
1846
+				}
1847
+				if ($add_value->types[0] == 'street_number') {
1848
+					$addresses[] = $add_value->long_name;
1849
+				}
1850
+				if ($add_value->types[0] == 'route') {
1851
+					$addresses[] = $add_value->long_name;
1852
+				}
1853
+				if ($add_value->types[0] == 'neighborhood') {
1854
+					$addresses[] = $add_value->long_name;
1855
+				}
1856
+				if ($add_value->types[0] == 'sublocality') {
1857
+					$addresses[] = $add_value->long_name;
1858
+				}
1859
+			}
1860
+			$address = !empty($addresses) ? implode(', ', $addresses) : (!empty($addresses_default) ? implode(', ', $addresses_default) : '');
1861
+		}
1862
+
1863
+		$post_info['post_address'] = !empty($address) ? $address : $default_location->city;
1864
+		$post_info['post_city'] = $default_location->city;
1865
+		$post_info['post_region'] = $default_location->region;
1866
+		$post_info['post_country'] = $default_location->country;
1867
+		$post_info['post_zip'] = $postal_code;
1868
+		$post_info['post_latitude'] = $dummy_post_latitude;
1869
+		$post_info['post_longitude'] = $dummy_post_longitude;
1870
+	}
1871 1871
     
1872
-    geodir_save_listing($post_info, true);
1872
+	geodir_save_listing($post_info, true);
1873 1873
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 $post_meta = array();
13 13
 
14 14
 if (geodir_dummy_folder_exists())
15
-    $dummy_image_url = geodir_plugin_url() . "/geodirectory-admin/dummy";
15
+    $dummy_image_url = geodir_plugin_url()."/geodirectory-admin/dummy";
16 16
 else
17 17
     $dummy_image_url = 'http://www.wpgeodirectory.com/dummy';
18 18
 
Please login to merge, or discard this patch.
Braces   +17 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,10 +11,11 @@  discard block
 block discarded – undo
11 11
 $image_array = array();
12 12
 $post_meta = array();
13 13
 
14
-if (geodir_dummy_folder_exists())
15
-    $dummy_image_url = geodir_plugin_url() . "/geodirectory-admin/dummy";
16
-else
17
-    $dummy_image_url = 'http://www.wpgeodirectory.com/dummy';
14
+if (geodir_dummy_folder_exists()) {
15
+    $dummy_image_url = geodir_plugin_url() . "/geodirectory-admin/dummy";
16
+} else {
17
+    $dummy_image_url = 'http://www.wpgeodirectory.com/dummy';
18
+}
18 19
 
19 20
 $dummy_image_url = apply_filters('place_dummy_image_url', $dummy_image_url);
20 21
 
@@ -1809,16 +1810,18 @@  discard block
 block discarded – undo
1809 1810
 
1810 1811
 foreach ($post_info as $post_info) {
1811 1812
     $default_location = geodir_get_default_location();
1812
-    if ($city_bound_lat1 > $city_bound_lat2)
1813
-        $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1));
1814
-    else
1815
-        $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2));
1816
-
1817
-
1818
-    if ($city_bound_lng1 > $city_bound_lng2)
1819
-        $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1));
1820
-    else
1821
-        $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2));
1813
+    if ($city_bound_lat1 > $city_bound_lat2) {
1814
+            $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1));
1815
+    } else {
1816
+            $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2));
1817
+    }
1818
+
1819
+
1820
+    if ($city_bound_lng1 > $city_bound_lng2) {
1821
+            $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1));
1822
+    } else {
1823
+            $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2));
1824
+    }
1822 1825
 
1823 1826
     $load_map = get_option('geodir_load_map');
1824 1827
     
Please login to merge, or discard this patch.
geodirectory-templates/listing-detail.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 // We are submitting iframes etc so we turn this off to allow them to show on preview.
13 13
 if(geodir_is_page('preview')){
14
-    header("X-XSS-Protection: 0");
14
+	header("X-XSS-Protection: 0");
15 15
 }
16 16
 
17 17
 
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
 
39 39
 ###### SIDEBAR ON LEFT ######
40 40
 if (get_option('geodir_detail_sidebar_left_section')) {
41
-    /**
42
-     * Adds the details page sidebar to the details template page.
43
-     *
44
-     * @since 1.1.0
45
-     */
46
-    do_action('geodir_detail_sidebar');
41
+	/**
42
+	 * Adds the details page sidebar to the details template page.
43
+	 *
44
+	 * @since 1.1.0
45
+	 */
46
+	do_action('geodir_detail_sidebar');
47 47
 }
48 48
 
49 49
 ###### MAIN CONTENT WRAPPERS OPEN ######
@@ -72,29 +72,29 @@  discard block
 block discarded – undo
72 72
 // this call the main page content
73 73
 global $preview;
74 74
 if (have_posts() && !$preview) {
75
-    the_post();
76
-    global $post, $post_images;
77
-    /**
78
-     * Calls the details page main content on the details template page.
79
-     *
80
-     * @since 1.1.0
81
-     * @param object $post The current post object.
82
-     */
83
-    do_action('geodir_details_main_content', $post);
75
+	the_post();
76
+	global $post, $post_images;
77
+	/**
78
+	 * Calls the details page main content on the details template page.
79
+	 *
80
+	 * @since 1.1.0
81
+	 * @param object $post The current post object.
82
+	 */
83
+	do_action('geodir_details_main_content', $post);
84 84
 } elseif ($preview) {
85
-    /**
86
-     * Called on the details page if the page is being previewed.
87
-     *
88
-     * This sets the value of `$post` to the preview values before the main content is called.
89
-     *
90
-     * @since 1.1.0
91
-     */
92
-    do_action('geodir_action_geodir_set_preview_post'); // set the $post to the preview values
93
-    if (defined( 'GD_TESTING_MODE' )) {
94
-        global $post;
95
-    }
96
-    /** This action is documented in geodirectory-templates/listing-detail.php */
97
-    do_action('geodir_details_main_content', $post);
85
+	/**
86
+	 * Called on the details page if the page is being previewed.
87
+	 *
88
+	 * This sets the value of `$post` to the preview values before the main content is called.
89
+	 *
90
+	 * @since 1.1.0
91
+	 */
92
+	do_action('geodir_action_geodir_set_preview_post'); // set the $post to the preview values
93
+	if (defined( 'GD_TESTING_MODE' )) {
94
+		global $post;
95
+	}
96
+	/** This action is documented in geodirectory-templates/listing-detail.php */
97
+	do_action('geodir_details_main_content', $post);
98 98
 }
99 99
 
100 100
 /** This action is documented in geodirectory-templates/geodir-home.php */
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 
119 119
 ###### SIDEBAR ON RIGHT ######
120 120
 if (!get_option('geodir_detail_sidebar_left_section')) {
121
-    /** This action is documented in geodirectory-templates/listing-detail.php */
122
-    do_action('geodir_detail_sidebar');
121
+	/** This action is documented in geodirectory-templates/listing-detail.php */
122
+	do_action('geodir_detail_sidebar');
123 123
 }
124 124
 
125 125
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // We are submitting iframes etc so we turn this off to allow them to show on preview.
13
-if(geodir_is_page('preview')){
13
+if (geodir_is_page('preview')) {
14 14
     header("X-XSS-Protection: 0");
15 15
 }
16 16
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
  * @param string $itemtype The itemtype value of the HTML element.
64 64
  * @see 'geodir_article_close'
65 65
  */
66
-do_action('geodir_article_open', 'details-page', 'post-' . get_the_ID(), get_post_class(), '');
66
+do_action('geodir_article_open', 'details-page', 'post-'.get_the_ID(), get_post_class(), '');
67 67
 
68 68
 ###### MAIN CONTENT ######
69 69
 /** This action is documented in geodirectory-templates/geodir-home.php */
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @since 1.1.0
91 91
      */
92 92
     do_action('geodir_action_geodir_set_preview_post'); // set the $post to the preview values
93
-    if (defined( 'GD_TESTING_MODE' )) {
93
+    if (defined('GD_TESTING_MODE')) {
94 94
         global $post;
95 95
     }
96 96
     /** This action is documented in geodirectory-templates/listing-detail.php */
Please login to merge, or discard this patch.