@@ -46,7 +46,6 @@ discard block |
||
| 46 | 46 | * @since 1.0.0 |
| 47 | 47 | * @since 1.5.2 Added TERRAIN map type. |
| 48 | 48 | * |
| 49 | - * @param string $value Input value to validate measurement. |
|
| 50 | 49 | * @return string The measurement valud in valid format. |
| 51 | 50 | */ |
| 52 | 51 | function gdsc_validate_map_args($params) |
@@ -95,7 +94,7 @@ discard block |
||
| 95 | 94 | * @param mixed $in The variable to check |
| 96 | 95 | * @param bool $strict If set to false, consider everything that is not false to be true. |
| 97 | 96 | * |
| 98 | - * @return bool The boolean equivalent or null |
|
| 97 | + * @return null|boolean The boolean equivalent or null |
|
| 99 | 98 | */ |
| 100 | 99 | function gdsc_to_bool_val($in, $strict = false) |
| 101 | 100 | { |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | // If this file is called directly, abort. |
| 11 | 11 | if (!defined('WPINC')) { |
| 12 | - die; |
|
| 12 | + die; |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | /** |
@@ -22,22 +22,22 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | function gdsc_validate_measurements($value) |
| 24 | 24 | { |
| 25 | - if ((strlen($value) - 1) == strpos(trim($value), '%')) { |
|
| 26 | - // $value is entered as a percent, so it can't be less than 0 or more than 100 |
|
| 27 | - $value = preg_replace('/\D/', '', $value); |
|
| 28 | - if (100 < $value) { |
|
| 29 | - $value = 100; |
|
| 30 | - } |
|
| 31 | - // Re-add the percent symbol |
|
| 32 | - $value = $value . '%'; |
|
| 33 | - } elseif ((strlen($value) - 2) == strpos(trim($value), 'px')) { |
|
| 34 | - // Get the absint & re-add the 'px' |
|
| 35 | - $value = preg_replace('/\D/', '', $value) . 'px'; |
|
| 36 | - } else { |
|
| 37 | - $value = preg_replace('/\D/', '', $value); |
|
| 38 | - } |
|
| 39 | - |
|
| 40 | - return $value; |
|
| 25 | + if ((strlen($value) - 1) == strpos(trim($value), '%')) { |
|
| 26 | + // $value is entered as a percent, so it can't be less than 0 or more than 100 |
|
| 27 | + $value = preg_replace('/\D/', '', $value); |
|
| 28 | + if (100 < $value) { |
|
| 29 | + $value = 100; |
|
| 30 | + } |
|
| 31 | + // Re-add the percent symbol |
|
| 32 | + $value = $value . '%'; |
|
| 33 | + } elseif ((strlen($value) - 2) == strpos(trim($value), 'px')) { |
|
| 34 | + // Get the absint & re-add the 'px' |
|
| 35 | + $value = preg_replace('/\D/', '', $value) . 'px'; |
|
| 36 | + } else { |
|
| 37 | + $value = preg_replace('/\D/', '', $value); |
|
| 38 | + } |
|
| 39 | + |
|
| 40 | + return $value; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -52,35 +52,35 @@ discard block |
||
| 52 | 52 | function gdsc_validate_map_args($params) |
| 53 | 53 | { |
| 54 | 54 | |
| 55 | - $params['width'] = gdsc_validate_measurements($params['width']); |
|
| 56 | - $params['height'] = gdsc_validate_measurements($params['height']); |
|
| 55 | + $params['width'] = gdsc_validate_measurements($params['width']); |
|
| 56 | + $params['height'] = gdsc_validate_measurements($params['height']); |
|
| 57 | 57 | |
| 58 | - // Only accept our 4 maptypes. Otherwise, revert to the default. |
|
| 59 | - if (!(in_array(geodir_strtoupper($params['maptype']), array('HYBRID', 'SATELLITE', 'ROADMAP', 'TERRAIN')))) { |
|
| 60 | - $params['maptype'] = 'ROADMAP'; |
|
| 61 | - } else { |
|
| 62 | - $params['maptype'] = geodir_strtoupper($params['maptype']); |
|
| 63 | - } |
|
| 58 | + // Only accept our 4 maptypes. Otherwise, revert to the default. |
|
| 59 | + if (!(in_array(geodir_strtoupper($params['maptype']), array('HYBRID', 'SATELLITE', 'ROADMAP', 'TERRAIN')))) { |
|
| 60 | + $params['maptype'] = 'ROADMAP'; |
|
| 61 | + } else { |
|
| 62 | + $params['maptype'] = geodir_strtoupper($params['maptype']); |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - // Zoom accepts a value between 1 and 19 |
|
| 66 | - $params['zoom'] = absint($params['zoom']); |
|
| 67 | - if (19 < $params['zoom']) { |
|
| 68 | - $params['zoom'] = '19'; |
|
| 69 | - } |
|
| 70 | - if (0 == $params['zoom']) { |
|
| 71 | - $params['zoom'] = '1'; |
|
| 72 | - } |
|
| 65 | + // Zoom accepts a value between 1 and 19 |
|
| 66 | + $params['zoom'] = absint($params['zoom']); |
|
| 67 | + if (19 < $params['zoom']) { |
|
| 68 | + $params['zoom'] = '19'; |
|
| 69 | + } |
|
| 70 | + if (0 == $params['zoom']) { |
|
| 71 | + $params['zoom'] = '1'; |
|
| 72 | + } |
|
| 73 | 73 | |
| 74 | - // Child_collapse must be boolean |
|
| 75 | - $params['child_collapse'] = gdsc_to_bool_val($params['child_collapse']); |
|
| 74 | + // Child_collapse must be boolean |
|
| 75 | + $params['child_collapse'] = gdsc_to_bool_val($params['child_collapse']); |
|
| 76 | 76 | |
| 77 | - // Scrollwheel must be boolean |
|
| 78 | - $params['scrollwheel'] = gdsc_to_bool_val($params['scrollwheel']); |
|
| 77 | + // Scrollwheel must be boolean |
|
| 78 | + $params['scrollwheel'] = gdsc_to_bool_val($params['scrollwheel']); |
|
| 79 | 79 | |
| 80 | - // Scrollwheel must be boolean |
|
| 81 | - $params['autozoom'] = gdsc_to_bool_val($params['autozoom']); |
|
| 80 | + // Scrollwheel must be boolean |
|
| 81 | + $params['autozoom'] = gdsc_to_bool_val($params['autozoom']); |
|
| 82 | 82 | |
| 83 | - return $params; |
|
| 83 | + return $params; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -99,52 +99,52 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | function gdsc_to_bool_val($in, $strict = false) |
| 101 | 101 | { |
| 102 | - $out = null; |
|
| 103 | - |
|
| 104 | - // if not strict, we only have to check if something is false |
|
| 105 | - if (in_array($in, array( |
|
| 106 | - 'false', |
|
| 107 | - 'False', |
|
| 108 | - 'FALSE', |
|
| 109 | - 'no', |
|
| 110 | - 'No', |
|
| 111 | - 'n', |
|
| 112 | - 'N', |
|
| 113 | - '0', |
|
| 114 | - 'off', |
|
| 115 | - 'Off', |
|
| 116 | - 'OFF', |
|
| 117 | - false, |
|
| 118 | - 0, |
|
| 119 | - null |
|
| 120 | - ), true)) { |
|
| 121 | - $out = false; |
|
| 122 | - } else if ($strict) { |
|
| 123 | - // if strict, check the equivalent true values |
|
| 124 | - if (in_array($in, array( |
|
| 125 | - 'true', |
|
| 126 | - 'True', |
|
| 127 | - 'TRUE', |
|
| 128 | - 'yes', |
|
| 129 | - 'Yes', |
|
| 130 | - 'y', |
|
| 131 | - 'Y', |
|
| 132 | - '1', |
|
| 133 | - 'on', |
|
| 134 | - 'On', |
|
| 135 | - 'ON', |
|
| 136 | - true, |
|
| 137 | - 1 |
|
| 138 | - ), true)) { |
|
| 139 | - $out = true; |
|
| 140 | - } |
|
| 141 | - } else { |
|
| 142 | - // not strict? let the regular php bool check figure it out (will |
|
| 143 | - // largely default to true) |
|
| 144 | - $out = ($in ? true : false); |
|
| 145 | - } |
|
| 146 | - |
|
| 147 | - return $out; |
|
| 102 | + $out = null; |
|
| 103 | + |
|
| 104 | + // if not strict, we only have to check if something is false |
|
| 105 | + if (in_array($in, array( |
|
| 106 | + 'false', |
|
| 107 | + 'False', |
|
| 108 | + 'FALSE', |
|
| 109 | + 'no', |
|
| 110 | + 'No', |
|
| 111 | + 'n', |
|
| 112 | + 'N', |
|
| 113 | + '0', |
|
| 114 | + 'off', |
|
| 115 | + 'Off', |
|
| 116 | + 'OFF', |
|
| 117 | + false, |
|
| 118 | + 0, |
|
| 119 | + null |
|
| 120 | + ), true)) { |
|
| 121 | + $out = false; |
|
| 122 | + } else if ($strict) { |
|
| 123 | + // if strict, check the equivalent true values |
|
| 124 | + if (in_array($in, array( |
|
| 125 | + 'true', |
|
| 126 | + 'True', |
|
| 127 | + 'TRUE', |
|
| 128 | + 'yes', |
|
| 129 | + 'Yes', |
|
| 130 | + 'y', |
|
| 131 | + 'Y', |
|
| 132 | + '1', |
|
| 133 | + 'on', |
|
| 134 | + 'On', |
|
| 135 | + 'ON', |
|
| 136 | + true, |
|
| 137 | + 1 |
|
| 138 | + ), true)) { |
|
| 139 | + $out = true; |
|
| 140 | + } |
|
| 141 | + } else { |
|
| 142 | + // not strict? let the regular php bool check figure it out (will |
|
| 143 | + // largely default to true) |
|
| 144 | + $out = ($in ? true : false); |
|
| 145 | + } |
|
| 146 | + |
|
| 147 | + return $out; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -157,16 +157,16 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | function gdsc_is_post_type_valid($incoming_post_type) |
| 159 | 159 | { |
| 160 | - $post_types = geodir_get_posttypes(); |
|
| 161 | - $post_types = array_map('geodir_strtolower', $post_types); |
|
| 162 | - $post_type_found = false; |
|
| 163 | - foreach ($post_types as $type) { |
|
| 164 | - if (geodir_strtolower($incoming_post_type) == geodir_strtolower($type)) { |
|
| 165 | - $post_type_found = true; |
|
| 166 | - } |
|
| 167 | - } |
|
| 168 | - |
|
| 169 | - return $post_type_found; |
|
| 160 | + $post_types = geodir_get_posttypes(); |
|
| 161 | + $post_types = array_map('geodir_strtolower', $post_types); |
|
| 162 | + $post_type_found = false; |
|
| 163 | + foreach ($post_types as $type) { |
|
| 164 | + if (geodir_strtolower($incoming_post_type) == geodir_strtolower($type)) { |
|
| 165 | + $post_type_found = true; |
|
| 166 | + } |
|
| 167 | + } |
|
| 168 | + |
|
| 169 | + return $post_type_found; |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -186,52 +186,52 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | function gdsc_listing_loop_filter($query) |
| 188 | 188 | { |
| 189 | - global $wp_query, $geodir_post_type, $table, $plugin_prefix, $term; |
|
| 190 | - |
|
| 191 | - $geodir_post_type = geodir_get_current_posttype(); |
|
| 192 | - |
|
| 193 | - if (isset($wp_query->tax_query->queries) && $wp_query->tax_query->queries) { |
|
| 194 | - $taxonomies = wp_list_pluck($wp_query->tax_query->queries, 'taxonomy'); |
|
| 195 | - |
|
| 196 | - if (isset($wp_query->query[$taxonomies[0]])) { |
|
| 197 | - $request_term = explode("/", $wp_query->query[$taxonomies[0]]); |
|
| 198 | - $request_term = end($request_term); |
|
| 199 | - if (!term_exists($request_term)) { |
|
| 200 | - $args = array('number' => '1',); |
|
| 201 | - $terms_arr = get_terms($taxonomies[0], $args); |
|
| 202 | - foreach ($terms_arr as $location_term) { |
|
| 203 | - $term_arr = $location_term; |
|
| 204 | - $term_arr->name = geodir_ucwords(str_replace('-', ' ', $request_term)); |
|
| 205 | - } |
|
| 206 | - $wp_query->queried_object_id = 1; |
|
| 207 | - $wp_query->queried_object = $term_arr; |
|
| 208 | - } |
|
| 209 | - } |
|
| 189 | + global $wp_query, $geodir_post_type, $table, $plugin_prefix, $term; |
|
| 190 | + |
|
| 191 | + $geodir_post_type = geodir_get_current_posttype(); |
|
| 192 | + |
|
| 193 | + if (isset($wp_query->tax_query->queries) && $wp_query->tax_query->queries) { |
|
| 194 | + $taxonomies = wp_list_pluck($wp_query->tax_query->queries, 'taxonomy'); |
|
| 195 | + |
|
| 196 | + if (isset($wp_query->query[$taxonomies[0]])) { |
|
| 197 | + $request_term = explode("/", $wp_query->query[$taxonomies[0]]); |
|
| 198 | + $request_term = end($request_term); |
|
| 199 | + if (!term_exists($request_term)) { |
|
| 200 | + $args = array('number' => '1',); |
|
| 201 | + $terms_arr = get_terms($taxonomies[0], $args); |
|
| 202 | + foreach ($terms_arr as $location_term) { |
|
| 203 | + $term_arr = $location_term; |
|
| 204 | + $term_arr->name = geodir_ucwords(str_replace('-', ' ', $request_term)); |
|
| 205 | + } |
|
| 206 | + $wp_query->queried_object_id = 1; |
|
| 207 | + $wp_query->queried_object = $term_arr; |
|
| 208 | + } |
|
| 209 | + } |
|
| 210 | 210 | |
| 211 | - } |
|
| 212 | - if (isset($query->query_vars['is_geodir_loop']) && $query->query_vars['is_geodir_loop']) { |
|
| 211 | + } |
|
| 212 | + if (isset($query->query_vars['is_geodir_loop']) && $query->query_vars['is_geodir_loop']) { |
|
| 213 | 213 | |
| 214 | - $table = $plugin_prefix . $geodir_post_type . '_detail'; |
|
| 214 | + $table = $plugin_prefix . $geodir_post_type . '_detail'; |
|
| 215 | 215 | |
| 216 | - add_filter('posts_fields', 'geodir_posts_fields', 1); |
|
| 217 | - add_filter('posts_join', 'geodir_posts_join', 1); |
|
| 218 | - geodir_post_where(); |
|
| 219 | - if (!is_admin()) { |
|
| 220 | - add_filter('posts_orderby', 'geodir_posts_orderby', 1); |
|
| 221 | - } |
|
| 216 | + add_filter('posts_fields', 'geodir_posts_fields', 1); |
|
| 217 | + add_filter('posts_join', 'geodir_posts_join', 1); |
|
| 218 | + geodir_post_where(); |
|
| 219 | + if (!is_admin()) { |
|
| 220 | + add_filter('posts_orderby', 'geodir_posts_orderby', 1); |
|
| 221 | + } |
|
| 222 | 222 | |
| 223 | - // advanced filter for popular post view widget |
|
| 224 | - global $wp_query; |
|
| 225 | - if (!is_admin()) { |
|
| 226 | - if (!empty($wp_query->query['with_pics_only'])) { |
|
| 227 | - add_filter('posts_join', 'geodir_filter_widget_join', 1000); |
|
| 228 | - } |
|
| 229 | - add_filter('posts_where', 'geodir_filter_widget_where', 1000); |
|
| 230 | - } |
|
| 223 | + // advanced filter for popular post view widget |
|
| 224 | + global $wp_query; |
|
| 225 | + if (!is_admin()) { |
|
| 226 | + if (!empty($wp_query->query['with_pics_only'])) { |
|
| 227 | + add_filter('posts_join', 'geodir_filter_widget_join', 1000); |
|
| 228 | + } |
|
| 229 | + add_filter('posts_where', 'geodir_filter_widget_where', 1000); |
|
| 230 | + } |
|
| 231 | 231 | |
| 232 | - } |
|
| 232 | + } |
|
| 233 | 233 | |
| 234 | - return $query; |
|
| 234 | + return $query; |
|
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | /** |
@@ -245,40 +245,40 @@ discard block |
||
| 245 | 245 | */ |
| 246 | 246 | function gdsc_manage_category_choice($post_type, $category) |
| 247 | 247 | { |
| 248 | - if (0 == $category || '' == $category) { |
|
| 249 | - return ''; |
|
| 250 | - } |
|
| 248 | + if (0 == $category || '' == $category) { |
|
| 249 | + return ''; |
|
| 250 | + } |
|
| 251 | 251 | |
| 252 | - if (!(gdsc_is_post_type_valid($post_type))) { |
|
| 253 | - return ''; |
|
| 254 | - } |
|
| 252 | + if (!(gdsc_is_post_type_valid($post_type))) { |
|
| 253 | + return ''; |
|
| 254 | + } |
|
| 255 | 255 | |
| 256 | - $taxonomies = geodir_get_taxonomies($post_type); |
|
| 256 | + $taxonomies = geodir_get_taxonomies($post_type); |
|
| 257 | 257 | |
| 258 | - $categories = get_terms(array('taxonomy' => $taxonomies[0])); |
|
| 258 | + $categories = get_terms(array('taxonomy' => $taxonomies[0])); |
|
| 259 | 259 | |
| 260 | - $cat_id = 0; |
|
| 260 | + $cat_id = 0; |
|
| 261 | 261 | |
| 262 | - foreach ($categories as $cat) { |
|
| 263 | - if (is_numeric($category)) { |
|
| 264 | - if (absint($category) == $cat->term_id) { |
|
| 265 | - $cat_id = $cat->term_id; |
|
| 266 | - break; |
|
| 267 | - } |
|
| 268 | - } else { |
|
| 269 | - if ($category == $cat->slug) { |
|
| 270 | - $cat_id = $cat->term_id; |
|
| 271 | - break; |
|
| 272 | - } |
|
| 262 | + foreach ($categories as $cat) { |
|
| 263 | + if (is_numeric($category)) { |
|
| 264 | + if (absint($category) == $cat->term_id) { |
|
| 265 | + $cat_id = $cat->term_id; |
|
| 266 | + break; |
|
| 267 | + } |
|
| 268 | + } else { |
|
| 269 | + if ($category == $cat->slug) { |
|
| 270 | + $cat_id = $cat->term_id; |
|
| 271 | + break; |
|
| 272 | + } |
|
| 273 | 273 | |
| 274 | - if ($category == $cat->name) { |
|
| 275 | - $cat_id = $cat->term_id; |
|
| 276 | - break; |
|
| 277 | - } |
|
| 278 | - } |
|
| 279 | - } |
|
| 274 | + if ($category == $cat->name) { |
|
| 275 | + $cat_id = $cat->term_id; |
|
| 276 | + break; |
|
| 277 | + } |
|
| 278 | + } |
|
| 279 | + } |
|
| 280 | 280 | |
| 281 | - return $cat_id; |
|
| 281 | + return $cat_id; |
|
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | // @todo: Extract this |
@@ -288,11 +288,11 @@ discard block |
||
| 288 | 288 | * Adds the script in the page footer for the home page google map. |
| 289 | 289 | * |
| 290 | 290 | * @since 1.0.0 |
| 291 | - * @return string Print the script in page footer. |
|
| 291 | + * @return string Print the script in page footer. |
|
| 292 | 292 | */ |
| 293 | 293 | function geodir_home_map_add_script() |
| 294 | - { |
|
| 295 | - ?> |
|
| 294 | + { |
|
| 295 | + ?> |
|
| 296 | 296 | <script type="text/javascript"> |
| 297 | 297 | jQuery(document).ready(function () { |
| 298 | 298 | geoDirMapSlide(); |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | } |
| 366 | 366 | </script> |
| 367 | 367 | <?php |
| 368 | - } |
|
| 368 | + } |
|
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | /** |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | function geodir_popular_category_add_scripts() |
| 378 | 378 | { |
| 379 | - ?> |
|
| 379 | + ?> |
|
| 380 | 380 | <script type="text/javascript"> |
| 381 | 381 | jQuery(function ($) { |
| 382 | 382 | $('.geodir-showcat').click(function () { |
@@ -406,56 +406,56 @@ discard block |
||
| 406 | 406 | */ |
| 407 | 407 | function gdsc_validate_layout_choice($layout_choice) |
| 408 | 408 | { |
| 409 | - switch (geodir_strtolower($layout_choice)) { |
|
| 410 | - case 'list'; |
|
| 411 | - case 'one'; |
|
| 412 | - case 'one_column'; |
|
| 413 | - case 'onecolumn'; |
|
| 414 | - case '1'; |
|
| 415 | - $layout_choice = 'list'; |
|
| 416 | - break; |
|
| 417 | - case 'gridview_onehalf'; |
|
| 418 | - case 'two'; |
|
| 419 | - case 'two_column'; |
|
| 420 | - case 'two_columns'; |
|
| 421 | - case 'twocolumn'; |
|
| 422 | - case 'twocolumns'; |
|
| 423 | - case '2'; |
|
| 424 | - $layout_choice = 'gridview_onehalf'; |
|
| 425 | - break; |
|
| 426 | - case 'gridview_onethird'; |
|
| 427 | - case 'three'; |
|
| 428 | - case 'three_column'; |
|
| 429 | - case 'three_columns'; |
|
| 430 | - case 'threecolumn'; |
|
| 431 | - case 'threecolumns'; |
|
| 432 | - case '3'; |
|
| 433 | - $layout_choice = 'gridview_onethird'; |
|
| 434 | - break; |
|
| 435 | - case 'gridview_onefourth'; |
|
| 436 | - case 'four'; |
|
| 437 | - case 'four_column'; |
|
| 438 | - case 'four_columns'; |
|
| 439 | - case 'fourcolumn'; |
|
| 440 | - case 'fourcolumns'; |
|
| 441 | - case '4'; |
|
| 442 | - $layout_choice = 'gridview_onefourth'; |
|
| 443 | - break; |
|
| 444 | - case 'gridview_onefifth'; |
|
| 445 | - case 'five'; |
|
| 446 | - case 'five_column'; |
|
| 447 | - case 'five_columns'; |
|
| 448 | - case 'fivecolumn'; |
|
| 449 | - case 'fivecolumns'; |
|
| 450 | - case '5'; |
|
| 451 | - $layout_choice = 'gridview_onefifth'; |
|
| 452 | - break; |
|
| 453 | - default: |
|
| 454 | - $layout_choice = 'gridview_onehalf'; |
|
| 455 | - break; |
|
| 456 | - } |
|
| 457 | - |
|
| 458 | - return $layout_choice; |
|
| 409 | + switch (geodir_strtolower($layout_choice)) { |
|
| 410 | + case 'list'; |
|
| 411 | + case 'one'; |
|
| 412 | + case 'one_column'; |
|
| 413 | + case 'onecolumn'; |
|
| 414 | + case '1'; |
|
| 415 | + $layout_choice = 'list'; |
|
| 416 | + break; |
|
| 417 | + case 'gridview_onehalf'; |
|
| 418 | + case 'two'; |
|
| 419 | + case 'two_column'; |
|
| 420 | + case 'two_columns'; |
|
| 421 | + case 'twocolumn'; |
|
| 422 | + case 'twocolumns'; |
|
| 423 | + case '2'; |
|
| 424 | + $layout_choice = 'gridview_onehalf'; |
|
| 425 | + break; |
|
| 426 | + case 'gridview_onethird'; |
|
| 427 | + case 'three'; |
|
| 428 | + case 'three_column'; |
|
| 429 | + case 'three_columns'; |
|
| 430 | + case 'threecolumn'; |
|
| 431 | + case 'threecolumns'; |
|
| 432 | + case '3'; |
|
| 433 | + $layout_choice = 'gridview_onethird'; |
|
| 434 | + break; |
|
| 435 | + case 'gridview_onefourth'; |
|
| 436 | + case 'four'; |
|
| 437 | + case 'four_column'; |
|
| 438 | + case 'four_columns'; |
|
| 439 | + case 'fourcolumn'; |
|
| 440 | + case 'fourcolumns'; |
|
| 441 | + case '4'; |
|
| 442 | + $layout_choice = 'gridview_onefourth'; |
|
| 443 | + break; |
|
| 444 | + case 'gridview_onefifth'; |
|
| 445 | + case 'five'; |
|
| 446 | + case 'five_column'; |
|
| 447 | + case 'five_columns'; |
|
| 448 | + case 'fivecolumn'; |
|
| 449 | + case 'fivecolumns'; |
|
| 450 | + case '5'; |
|
| 451 | + $layout_choice = 'gridview_onefifth'; |
|
| 452 | + break; |
|
| 453 | + default: |
|
| 454 | + $layout_choice = 'gridview_onehalf'; |
|
| 455 | + break; |
|
| 456 | + } |
|
| 457 | + |
|
| 458 | + return $layout_choice; |
|
| 459 | 459 | } |
| 460 | 460 | |
| 461 | 461 | /** |
@@ -468,20 +468,20 @@ discard block |
||
| 468 | 468 | */ |
| 469 | 469 | function gdsc_validate_sort_choice($sort_choice) |
| 470 | 470 | { |
| 471 | - $sorts = array( |
|
| 472 | - 'az', |
|
| 473 | - 'latest', |
|
| 474 | - 'featured', |
|
| 475 | - 'high_review', |
|
| 476 | - 'high_rating', |
|
| 477 | - 'random', |
|
| 478 | - ); |
|
| 479 | - |
|
| 480 | - if (!(in_array($sort_choice, $sorts))) { |
|
| 481 | - $sort_choice = 'latest'; |
|
| 482 | - } |
|
| 483 | - |
|
| 484 | - return $sort_choice; |
|
| 471 | + $sorts = array( |
|
| 472 | + 'az', |
|
| 473 | + 'latest', |
|
| 474 | + 'featured', |
|
| 475 | + 'high_review', |
|
| 476 | + 'high_rating', |
|
| 477 | + 'random', |
|
| 478 | + ); |
|
| 479 | + |
|
| 480 | + if (!(in_array($sort_choice, $sorts))) { |
|
| 481 | + $sort_choice = 'latest'; |
|
| 482 | + } |
|
| 483 | + |
|
| 484 | + return $sort_choice; |
|
| 485 | 485 | } |
| 486 | 486 | |
| 487 | 487 | /** |
@@ -494,22 +494,22 @@ discard block |
||
| 494 | 494 | */ |
| 495 | 495 | function gdsc_validate_listing_width($width_choice) |
| 496 | 496 | { |
| 497 | - if (!(empty($width_choice))) { |
|
| 498 | - $width_choice = absint($width_choice); |
|
| 499 | - } else { |
|
| 500 | - return ''; |
|
| 501 | - } |
|
| 502 | - |
|
| 503 | - if (100 < $width_choice) { |
|
| 504 | - $width_choice = 100; |
|
| 505 | - } |
|
| 506 | - |
|
| 507 | - // If listing_width is too narrow, it won't work, arbitrarily set to 10% here |
|
| 508 | - if (10 > $width_choice) { |
|
| 509 | - $width_choice = 10; |
|
| 510 | - } |
|
| 511 | - |
|
| 512 | - return $width_choice; |
|
| 497 | + if (!(empty($width_choice))) { |
|
| 498 | + $width_choice = absint($width_choice); |
|
| 499 | + } else { |
|
| 500 | + return ''; |
|
| 501 | + } |
|
| 502 | + |
|
| 503 | + if (100 < $width_choice) { |
|
| 504 | + $width_choice = 100; |
|
| 505 | + } |
|
| 506 | + |
|
| 507 | + // If listing_width is too narrow, it won't work, arbitrarily set to 10% here |
|
| 508 | + if (10 > $width_choice) { |
|
| 509 | + $width_choice = 10; |
|
| 510 | + } |
|
| 511 | + |
|
| 512 | + return $width_choice; |
|
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | /** |
@@ -522,18 +522,18 @@ discard block |
||
| 522 | 522 | */ |
| 523 | 523 | function gdsc_validate_list_filter_choice($filter_choice) |
| 524 | 524 | { |
| 525 | - $filters = array( |
|
| 526 | - 'all', |
|
| 527 | - 'today', |
|
| 528 | - 'upcoming', |
|
| 529 | - 'past', |
|
| 530 | - ); |
|
| 531 | - |
|
| 532 | - if (!(in_array($filter_choice, $filters))) { |
|
| 533 | - $filter_choice = 'all'; |
|
| 534 | - } |
|
| 535 | - |
|
| 536 | - return $filter_choice; |
|
| 525 | + $filters = array( |
|
| 526 | + 'all', |
|
| 527 | + 'today', |
|
| 528 | + 'upcoming', |
|
| 529 | + 'past', |
|
| 530 | + ); |
|
| 531 | + |
|
| 532 | + if (!(in_array($filter_choice, $filters))) { |
|
| 533 | + $filter_choice = 'all'; |
|
| 534 | + } |
|
| 535 | + |
|
| 536 | + return $filter_choice; |
|
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | /** |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | * @return string Listings HTML content. |
| 554 | 554 | */ |
| 555 | 555 | function geodir_sc_gd_listings_output($args = array()) { |
| 556 | - $title = !empty($args['title']) ? __($args['title'], 'geodirectory') : ''; |
|
| 556 | + $title = !empty($args['title']) ? __($args['title'], 'geodirectory') : ''; |
|
| 557 | 557 | $post_type = !empty($args['post_type']) ? $args['post_type'] : 'gd_place'; |
| 558 | 558 | $category = !empty($args['category']) ? $args['category'] : '0'; |
| 559 | 559 | $post_number = !empty($args['post_number']) ? $args['post_number'] : 10; |
@@ -563,16 +563,16 @@ discard block |
||
| 563 | 563 | $layout = !empty($args['layout']) ? $args['layout'] : 'gridview_onehalf'; |
| 564 | 564 | $with_pagination = !empty($args['with_pagination']) ? true : false; |
| 565 | 565 | $event_type = !empty($args['event_type']) ? $args['event_type'] : ''; |
| 566 | - $shortcode_content = !empty($args['shortcode_content']) ? trim($args['shortcode_content']) : ''; |
|
| 567 | - /** |
|
| 568 | - * Filter the content text displayed when no listings found. |
|
| 569 | - * |
|
| 570 | - * @since 1.6.0 |
|
| 571 | - * |
|
| 572 | - * @param string $shortcode_content The shortcode content text. |
|
| 573 | - * @param array $args Array of arguements to filter listings. |
|
| 574 | - */ |
|
| 575 | - $shortcode_content = apply_filters('geodir_sc_gd_listings_not_found_content', $shortcode_content, $args); |
|
| 566 | + $shortcode_content = !empty($args['shortcode_content']) ? trim($args['shortcode_content']) : ''; |
|
| 567 | + /** |
|
| 568 | + * Filter the content text displayed when no listings found. |
|
| 569 | + * |
|
| 570 | + * @since 1.6.0 |
|
| 571 | + * |
|
| 572 | + * @param string $shortcode_content The shortcode content text. |
|
| 573 | + * @param array $args Array of arguements to filter listings. |
|
| 574 | + */ |
|
| 575 | + $shortcode_content = apply_filters('geodir_sc_gd_listings_not_found_content', $shortcode_content, $args); |
|
| 576 | 576 | |
| 577 | 577 | $top_pagination = $with_pagination && !empty($args['top_pagination']) ? true : false; |
| 578 | 578 | $bottom_pagination = $with_pagination && !empty($args['bottom_pagination']) ? true : false; |
@@ -584,61 +584,61 @@ discard block |
||
| 584 | 584 | $pageno = $geodir_ajax && !empty($args['pageno']) ? $args['pageno'] : 1; |
| 585 | 585 | |
| 586 | 586 | $query_args = array( |
| 587 | - 'posts_per_page' => $post_number, |
|
| 588 | - 'is_geodir_loop' => true, |
|
| 589 | - 'gd_location' => $add_location_filter, |
|
| 590 | - 'post_type' => $post_type, |
|
| 591 | - 'order_by' => $list_sort, |
|
| 587 | + 'posts_per_page' => $post_number, |
|
| 588 | + 'is_geodir_loop' => true, |
|
| 589 | + 'gd_location' => $add_location_filter, |
|
| 590 | + 'post_type' => $post_type, |
|
| 591 | + 'order_by' => $list_sort, |
|
| 592 | 592 | 'pageno' => $pageno |
| 593 | - ); |
|
| 593 | + ); |
|
| 594 | 594 | |
| 595 | - if ($character_count >= 0) { |
|
| 596 | - $query_args['excerpt_length'] = $character_count; |
|
| 597 | - } |
|
| 595 | + if ($character_count >= 0) { |
|
| 596 | + $query_args['excerpt_length'] = $character_count; |
|
| 597 | + } |
|
| 598 | 598 | |
| 599 | - if (!empty($args['post_author'])) { |
|
| 600 | - $query_args['post_author'] = $args['post_author']; |
|
| 601 | - } |
|
| 599 | + if (!empty($args['post_author'])) { |
|
| 600 | + $query_args['post_author'] = $args['post_author']; |
|
| 601 | + } |
|
| 602 | 602 | |
| 603 | - if (!empty($args['show_featured_only'])) { |
|
| 604 | - $query_args['show_featured_only'] = 1; |
|
| 605 | - } |
|
| 603 | + if (!empty($args['show_featured_only'])) { |
|
| 604 | + $query_args['show_featured_only'] = 1; |
|
| 605 | + } |
|
| 606 | 606 | |
| 607 | - if (!empty($args['show_special_only'])) { |
|
| 608 | - $query_args['show_special_only'] = 1; |
|
| 609 | - } |
|
| 607 | + if (!empty($args['show_special_only'])) { |
|
| 608 | + $query_args['show_special_only'] = 1; |
|
| 609 | + } |
|
| 610 | 610 | |
| 611 | - if (!empty($args['with_pics_only'])) { |
|
| 612 | - $query_args['with_pics_only'] = 0; |
|
| 613 | - $query_args['featured_image_only'] = 1; |
|
| 614 | - } |
|
| 611 | + if (!empty($args['with_pics_only'])) { |
|
| 612 | + $query_args['with_pics_only'] = 0; |
|
| 613 | + $query_args['featured_image_only'] = 1; |
|
| 614 | + } |
|
| 615 | 615 | |
| 616 | - if (!empty($args['with_videos_only'])) { |
|
| 617 | - $query_args['with_videos_only'] = 1; |
|
| 618 | - } |
|
| 619 | - $with_no_results = !empty($args['without_no_results']) ? false : true; |
|
| 616 | + if (!empty($args['with_videos_only'])) { |
|
| 617 | + $query_args['with_videos_only'] = 1; |
|
| 618 | + } |
|
| 619 | + $with_no_results = !empty($args['without_no_results']) ? false : true; |
|
| 620 | 620 | |
| 621 | - if (!empty($category) && isset($category[0]) && $category[0] != '0') { |
|
| 622 | - $category_taxonomy = geodir_get_taxonomies($post_type); |
|
| 621 | + if (!empty($category) && isset($category[0]) && $category[0] != '0') { |
|
| 622 | + $category_taxonomy = geodir_get_taxonomies($post_type); |
|
| 623 | 623 | |
| 624 | - ######### WPML ######### |
|
| 625 | - if (function_exists('icl_object_id')) { |
|
| 626 | - $category = gd_lang_object_ids($category, $category_taxonomy[0]); |
|
| 627 | - } |
|
| 628 | - ######### WPML ######### |
|
| 624 | + ######### WPML ######### |
|
| 625 | + if (function_exists('icl_object_id')) { |
|
| 626 | + $category = gd_lang_object_ids($category, $category_taxonomy[0]); |
|
| 627 | + } |
|
| 628 | + ######### WPML ######### |
|
| 629 | 629 | |
| 630 | - $tax_query = array( |
|
| 631 | - 'taxonomy' => $category_taxonomy[0], |
|
| 632 | - 'field' => 'id', |
|
| 633 | - 'terms' => $category |
|
| 634 | - ); |
|
| 630 | + $tax_query = array( |
|
| 631 | + 'taxonomy' => $category_taxonomy[0], |
|
| 632 | + 'field' => 'id', |
|
| 633 | + 'terms' => $category |
|
| 634 | + ); |
|
| 635 | 635 | |
| 636 | - $query_args['tax_query'] = array($tax_query); |
|
| 637 | - } |
|
| 636 | + $query_args['tax_query'] = array($tax_query); |
|
| 637 | + } |
|
| 638 | 638 | |
| 639 | - global $gridview_columns_widget, $geodir_is_widget_listing; |
|
| 639 | + global $gridview_columns_widget, $geodir_is_widget_listing; |
|
| 640 | 640 | |
| 641 | - if ($post_type == 'gd_event' && function_exists('geodir_event_get_widget_events')) { |
|
| 641 | + if ($post_type == 'gd_event' && function_exists('geodir_event_get_widget_events')) { |
|
| 642 | 642 | global $geodir_event_widget_listview; |
| 643 | 643 | $geodir_event_widget_listview = true; |
| 644 | 644 | |
@@ -655,15 +655,15 @@ discard block |
||
| 655 | 655 | } |
| 656 | 656 | $current_gridview_columns_widget = $gridview_columns_widget; |
| 657 | 657 | |
| 658 | - ob_start(); |
|
| 658 | + ob_start(); |
|
| 659 | 659 | if (!empty($widget_listings) || $with_no_results) { |
| 660 | 660 | if (!$geodir_ajax) { |
| 661 | - /** |
|
| 662 | - * Called before the shortcode [gd_listings] content is output. |
|
| 663 | - * |
|
| 664 | - * @since 1.0.0 |
|
| 665 | - */ |
|
| 666 | - do_action('geodir_before_sc_gd_listings'); |
|
| 661 | + /** |
|
| 662 | + * Called before the shortcode [gd_listings] content is output. |
|
| 663 | + * |
|
| 664 | + * @since 1.0.0 |
|
| 665 | + */ |
|
| 666 | + do_action('geodir_before_sc_gd_listings'); |
|
| 667 | 667 | ?> |
| 668 | 668 | <div class="geodir_locations geodir_location_listing geodir-sc-gd-listings"> |
| 669 | 669 | <?php } ?> |
@@ -673,64 +673,64 @@ discard block |
||
| 673 | 673 | </div> |
| 674 | 674 | <?php } ?> |
| 675 | 675 | <?php |
| 676 | - if (!(empty($widget_listings) && !empty($shortcode_content))) { |
|
| 677 | - if (strstr($layout, 'gridview')) { |
|
| 678 | - $listing_view_exp = explode('_', $layout); |
|
| 679 | - $gridview_columns_widget = $layout; |
|
| 680 | - $layout = $listing_view_exp[0]; |
|
| 681 | - } else { |
|
| 682 | - $gridview_columns_widget = ''; |
|
| 683 | - } |
|
| 684 | - |
|
| 685 | - /** |
|
| 686 | - * Filter the widget listing listview template. |
|
| 687 | - * |
|
| 688 | - * @since 1.0.0 |
|
| 689 | - * |
|
| 690 | - * @param string The template file to display listing. |
|
| 691 | - */ |
|
| 692 | - $template = apply_filters("geodir_template_part-widget-listing-listview", geodir_locate_template('widget-listing-listview')); |
|
| 676 | + if (!(empty($widget_listings) && !empty($shortcode_content))) { |
|
| 677 | + if (strstr($layout, 'gridview')) { |
|
| 678 | + $listing_view_exp = explode('_', $layout); |
|
| 679 | + $gridview_columns_widget = $layout; |
|
| 680 | + $layout = $listing_view_exp[0]; |
|
| 681 | + } else { |
|
| 682 | + $gridview_columns_widget = ''; |
|
| 683 | + } |
|
| 684 | + |
|
| 685 | + /** |
|
| 686 | + * Filter the widget listing listview template. |
|
| 687 | + * |
|
| 688 | + * @since 1.0.0 |
|
| 689 | + * |
|
| 690 | + * @param string The template file to display listing. |
|
| 691 | + */ |
|
| 692 | + $template = apply_filters("geodir_template_part-widget-listing-listview", geodir_locate_template('widget-listing-listview')); |
|
| 693 | 693 | |
| 694 | - global $post, $map_jason, $map_canvas_arr, $gd_session; |
|
| 695 | - |
|
| 696 | - $current_post = $post; |
|
| 697 | - $current_map_jason = $map_jason; |
|
| 698 | - $current_map_canvas_arr = $map_canvas_arr; |
|
| 699 | - $geodir_is_widget_listing = true; |
|
| 700 | - $gd_session->un_set('gd_listing_view'); |
|
| 701 | - |
|
| 702 | - if ($with_pagination && $top_pagination) { |
|
| 703 | - echo geodir_sc_listings_pagination($total_posts, $post_number, $pageno); |
|
| 704 | - } |
|
| 705 | - |
|
| 706 | - /** |
|
| 707 | - * Includes listing listview template. |
|
| 708 | - * |
|
| 709 | - * @since 1.0.0 |
|
| 710 | - */ |
|
| 711 | - include($template); |
|
| 694 | + global $post, $map_jason, $map_canvas_arr, $gd_session; |
|
| 695 | + |
|
| 696 | + $current_post = $post; |
|
| 697 | + $current_map_jason = $map_jason; |
|
| 698 | + $current_map_canvas_arr = $map_canvas_arr; |
|
| 699 | + $geodir_is_widget_listing = true; |
|
| 700 | + $gd_session->un_set('gd_listing_view'); |
|
| 701 | + |
|
| 702 | + if ($with_pagination && $top_pagination) { |
|
| 703 | + echo geodir_sc_listings_pagination($total_posts, $post_number, $pageno); |
|
| 704 | + } |
|
| 705 | + |
|
| 706 | + /** |
|
| 707 | + * Includes listing listview template. |
|
| 708 | + * |
|
| 709 | + * @since 1.0.0 |
|
| 710 | + */ |
|
| 711 | + include($template); |
|
| 712 | 712 | |
| 713 | - if ($with_pagination && $bottom_pagination) { |
|
| 714 | - echo geodir_sc_listings_pagination($total_posts, $post_number, $pageno); |
|
| 715 | - } |
|
| 716 | - |
|
| 717 | - $geodir_is_widget_listing = false; |
|
| 718 | - |
|
| 719 | - $GLOBALS['post'] = $current_post; |
|
| 720 | - if (!empty($current_post)) { |
|
| 721 | - setup_postdata($current_post); |
|
| 722 | - } |
|
| 723 | - $map_jason = $current_map_jason; |
|
| 724 | - $map_canvas_arr = $current_map_canvas_arr; |
|
| 725 | - global $gridview_columns_widget; |
|
| 726 | - $gridview_columns_widget = $current_gridview_columns_widget; |
|
| 727 | - } else { |
|
| 728 | - echo $shortcode_content; |
|
| 729 | - } |
|
| 713 | + if ($with_pagination && $bottom_pagination) { |
|
| 714 | + echo geodir_sc_listings_pagination($total_posts, $post_number, $pageno); |
|
| 715 | + } |
|
| 716 | + |
|
| 717 | + $geodir_is_widget_listing = false; |
|
| 718 | + |
|
| 719 | + $GLOBALS['post'] = $current_post; |
|
| 720 | + if (!empty($current_post)) { |
|
| 721 | + setup_postdata($current_post); |
|
| 722 | + } |
|
| 723 | + $map_jason = $current_map_jason; |
|
| 724 | + $map_canvas_arr = $current_map_canvas_arr; |
|
| 725 | + global $gridview_columns_widget; |
|
| 726 | + $gridview_columns_widget = $current_gridview_columns_widget; |
|
| 727 | + } else { |
|
| 728 | + echo $shortcode_content; |
|
| 729 | + } |
|
| 730 | 730 | ?> |
| 731 | 731 | <p class="geodir-sclisting-loading" style="display:none;"><i class="fa fa-cog fa-spin"></i></p> |
| 732 | 732 | <?php |
| 733 | - if (!$geodir_ajax) { |
|
| 733 | + if (!$geodir_ajax) { |
|
| 734 | 734 | ?> |
| 735 | 735 | </div> |
| 736 | 736 | <script type="text/javascript"> |
@@ -767,11 +767,11 @@ discard block |
||
| 767 | 767 | </script> |
| 768 | 768 | <?php } ?> |
| 769 | 769 | <?php |
| 770 | - } |
|
| 770 | + } |
|
| 771 | 771 | $output = ob_get_contents(); |
| 772 | - ob_end_clean(); |
|
| 772 | + ob_end_clean(); |
|
| 773 | 773 | |
| 774 | - return trim($output); |
|
| 774 | + return trim($output); |
|
| 775 | 775 | } |
| 776 | 776 | |
| 777 | 777 | /** |
@@ -798,15 +798,15 @@ discard block |
||
| 798 | 798 | * @return string Listings pagination HTML content. |
| 799 | 799 | */ |
| 800 | 800 | function geodir_sc_listings_pagination($total_posts, $posts_per_page, $pageno, $before = '', $after = '', $prelabel = '', $nxtlabel = '', $pages_to_show = 5, $always_show = false) { |
| 801 | - if (empty($prelabel)) { |
|
| 802 | - $prelabel = '<strong>«</strong>'; |
|
| 803 | - } |
|
| 801 | + if (empty($prelabel)) { |
|
| 802 | + $prelabel = '<strong>«</strong>'; |
|
| 803 | + } |
|
| 804 | 804 | |
| 805 | - if (empty($nxtlabel)) { |
|
| 806 | - $nxtlabel = '<strong>»</strong>'; |
|
| 807 | - } |
|
| 805 | + if (empty($nxtlabel)) { |
|
| 806 | + $nxtlabel = '<strong>»</strong>'; |
|
| 807 | + } |
|
| 808 | 808 | |
| 809 | - $half_pages_to_show = round($pages_to_show / 2); |
|
| 809 | + $half_pages_to_show = round($pages_to_show / 2); |
|
| 810 | 810 | |
| 811 | 811 | $numposts = $total_posts; |
| 812 | 812 | |
@@ -862,9 +862,9 @@ discard block |
||
| 862 | 862 | echo "</div> $after"; |
| 863 | 863 | } |
| 864 | 864 | $output = ob_get_contents(); |
| 865 | - ob_end_clean(); |
|
| 865 | + ob_end_clean(); |
|
| 866 | 866 | |
| 867 | - return trim($output); |
|
| 867 | + return trim($output); |
|
| 868 | 868 | } |
| 869 | 869 | |
| 870 | 870 | /** |
@@ -875,10 +875,10 @@ discard block |
||
| 875 | 875 | * @return string Listings HTML content. |
| 876 | 876 | */ |
| 877 | 877 | function geodir_sclistings_callback() { |
| 878 | - check_ajax_referer('geodir-sclistings-nonce', 'geodir_sclistings_nonce'); |
|
| 879 | - //set variables |
|
| 880 | - $scatts = isset($_POST['scatts']) ? $_POST['scatts'] : NULL; |
|
| 881 | - $pageno = isset($_POST['pageno']) ? absint($_POST['pageno']) : 1; |
|
| 878 | + check_ajax_referer('geodir-sclistings-nonce', 'geodir_sclistings_nonce'); |
|
| 879 | + //set variables |
|
| 880 | + $scatts = isset($_POST['scatts']) ? $_POST['scatts'] : NULL; |
|
| 881 | + $pageno = isset($_POST['pageno']) ? absint($_POST['pageno']) : 1; |
|
| 882 | 882 | |
| 883 | 883 | $shortcode_atts = !empty($scatts) ? (array)json_decode(stripslashes_deep($scatts)) : NULL; |
| 884 | 884 | |
@@ -890,7 +890,7 @@ discard block |
||
| 890 | 890 | } else { |
| 891 | 891 | echo 0; |
| 892 | 892 | } |
| 893 | - wp_die(); |
|
| 893 | + wp_die(); |
|
| 894 | 894 | } |
| 895 | 895 | add_action('wp_ajax_geodir_sclistings', 'geodir_sclistings_callback'); |
| 896 | 896 | add_action('wp_ajax_nopriv_geodir_sclistings', 'geodir_sclistings_callback'); |
| 897 | 897 | \ No newline at end of file |
@@ -29,10 +29,10 @@ discard block |
||
| 29 | 29 | $value = 100; |
| 30 | 30 | } |
| 31 | 31 | // Re-add the percent symbol |
| 32 | - $value = $value . '%'; |
|
| 32 | + $value = $value.'%'; |
|
| 33 | 33 | } elseif ((strlen($value) - 2) == strpos(trim($value), 'px')) { |
| 34 | 34 | // Get the absint & re-add the 'px' |
| 35 | - $value = preg_replace('/\D/', '', $value) . 'px'; |
|
| 35 | + $value = preg_replace('/\D/', '', $value).'px'; |
|
| 36 | 36 | } else { |
| 37 | 37 | $value = preg_replace('/\D/', '', $value); |
| 38 | 38 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | } |
| 212 | 212 | if (isset($query->query_vars['is_geodir_loop']) && $query->query_vars['is_geodir_loop']) { |
| 213 | 213 | |
| 214 | - $table = $plugin_prefix . $geodir_post_type . '_detail'; |
|
| 214 | + $table = $plugin_prefix.$geodir_post_type.'_detail'; |
|
| 215 | 215 | |
| 216 | 216 | add_filter('posts_fields', 'geodir_posts_fields', 1); |
| 217 | 217 | add_filter('posts_join', 'geodir_posts_join', 1); |
@@ -559,11 +559,11 @@ discard block |
||
| 559 | 559 | $post_number = !empty($args['post_number']) ? $args['post_number'] : 10; |
| 560 | 560 | $add_location_filter = !empty($args['add_location_filter']) ? true : false; |
| 561 | 561 | $list_sort = !empty($args['list_sort']) ? $args['list_sort'] : 'latest'; |
| 562 | - $character_count = isset($args['character_count']) ? $args['character_count'] : ''; |
|
| 563 | - $layout = !empty($args['layout']) ? $args['layout'] : 'gridview_onehalf'; |
|
| 564 | - $with_pagination = !empty($args['with_pagination']) ? true : false; |
|
| 565 | - $event_type = !empty($args['event_type']) ? $args['event_type'] : ''; |
|
| 566 | - $shortcode_content = !empty($args['shortcode_content']) ? trim($args['shortcode_content']) : ''; |
|
| 562 | + $character_count = isset($args['character_count']) ? $args['character_count'] : ''; |
|
| 563 | + $layout = !empty($args['layout']) ? $args['layout'] : 'gridview_onehalf'; |
|
| 564 | + $with_pagination = !empty($args['with_pagination']) ? true : false; |
|
| 565 | + $event_type = !empty($args['event_type']) ? $args['event_type'] : ''; |
|
| 566 | + $shortcode_content = !empty($args['shortcode_content']) ? trim($args['shortcode_content']) : ''; |
|
| 567 | 567 | /** |
| 568 | 568 | * Filter the content text displayed when no listings found. |
| 569 | 569 | * |
@@ -575,13 +575,13 @@ discard block |
||
| 575 | 575 | $shortcode_content = apply_filters('geodir_sc_gd_listings_not_found_content', $shortcode_content, $args); |
| 576 | 576 | |
| 577 | 577 | $top_pagination = $with_pagination && !empty($args['top_pagination']) ? true : false; |
| 578 | - $bottom_pagination = $with_pagination && !empty($args['bottom_pagination']) ? true : false; |
|
| 578 | + $bottom_pagination = $with_pagination && !empty($args['bottom_pagination']) ? true : false; |
|
| 579 | 579 | |
| 580 | 580 | $shortcode_atts = !empty($args['shortcode_atts']) ? $args['shortcode_atts'] : array(); |
| 581 | 581 | |
| 582 | 582 | // ajax mode |
| 583 | - $geodir_ajax = !empty($args['geodir_ajax']) ? true : false; |
|
| 584 | - $pageno = $geodir_ajax && !empty($args['pageno']) ? $args['pageno'] : 1; |
|
| 583 | + $geodir_ajax = !empty($args['geodir_ajax']) ? true : false; |
|
| 584 | + $pageno = $geodir_ajax && !empty($args['pageno']) ? $args['pageno'] : 1; |
|
| 585 | 585 | |
| 586 | 586 | $query_args = array( |
| 587 | 587 | 'posts_per_page' => $post_number, |
@@ -740,7 +740,7 @@ discard block |
||
| 740 | 740 | if(!pid > 0 || !(container && typeof container != 'undefined')) { |
| 741 | 741 | return false; |
| 742 | 742 | } |
| 743 | - var scatts = "<?php echo addslashes(json_encode($shortcode_atts));?>"; |
|
| 743 | + var scatts = "<?php echo addslashes(json_encode($shortcode_atts)); ?>"; |
|
| 744 | 744 | |
| 745 | 745 | var data = { |
| 746 | 746 | 'action': 'geodir_sclistings', |
@@ -820,16 +820,16 @@ discard block |
||
| 820 | 820 | if ($max_page > 1 || $always_show) { |
| 821 | 821 | // Extra pagination info |
| 822 | 822 | $geodir_pagination_more_info = get_option('geodir_pagination_advance_info'); |
| 823 | - $start_no = ( $pageno - 1 ) * $posts_per_page + 1; |
|
| 823 | + $start_no = ($pageno - 1) * $posts_per_page + 1; |
|
| 824 | 824 | $end_no = min($pageno * $posts_per_page, $numposts); |
| 825 | 825 | |
| 826 | 826 | if ($geodir_pagination_more_info != '') { |
| 827 | - $pagination_info = '<div class="gd-pagination-details">' . wp_sprintf(__('Showing listings %d-%d of %d', 'geodirectory'), $start_no, $end_no, $numposts) . '</div>'; |
|
| 827 | + $pagination_info = '<div class="gd-pagination-details">'.wp_sprintf(__('Showing listings %d-%d of %d', 'geodirectory'), $start_no, $end_no, $numposts).'</div>'; |
|
| 828 | 828 | |
| 829 | 829 | if ($geodir_pagination_more_info == 'before') { |
| 830 | - $before = $before . $pagination_info; |
|
| 830 | + $before = $before.$pagination_info; |
|
| 831 | 831 | } else if ($geodir_pagination_more_info == 'after') { |
| 832 | - $after = $pagination_info . $after; |
|
| 832 | + $after = $pagination_info.$after; |
|
| 833 | 833 | } |
| 834 | 834 | } |
| 835 | 835 | |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | } |
| 840 | 840 | |
| 841 | 841 | if (($pageno - 1) > 0) { |
| 842 | - echo '<a class="gd-page-sc-prev" href="javascript:void(0);" onclick="gd_sc_gopage(this, ' . (int)($pageno - 1) . ');">' . $prelabel . '</a> '; |
|
| 842 | + echo '<a class="gd-page-sc-prev" href="javascript:void(0);" onclick="gd_sc_gopage(this, '.(int) ($pageno - 1).');">'.$prelabel.'</a> '; |
|
| 843 | 843 | } |
| 844 | 844 | |
| 845 | 845 | for ($i = $pageno - $half_pages_to_show; $i <= $pageno + $half_pages_to_show; $i++) { |
@@ -847,17 +847,17 @@ discard block |
||
| 847 | 847 | if ($i == $pageno) { |
| 848 | 848 | echo "<strong class='on' class='gd-page-sc-act'>$i</strong>"; |
| 849 | 849 | } else { |
| 850 | - echo ' <a class="gd-page-sc-no" href="javascript:void(0);" onclick="gd_sc_gopage(this, ' . (int)$i . ');">' . $i . '</a> '; |
|
| 850 | + echo ' <a class="gd-page-sc-no" href="javascript:void(0);" onclick="gd_sc_gopage(this, '.(int) $i.');">'.$i.'</a> '; |
|
| 851 | 851 | } |
| 852 | 852 | } |
| 853 | 853 | } |
| 854 | 854 | |
| 855 | 855 | if (($pageno + 1) <= $max_page) { |
| 856 | - echo ' <a class="gd-page-sc-nxt" href="javascript:void(0);" onclick="gd_sc_gopage(this, ' . (int)($pageno + 1) . ');">' . $nxtlabel . '</a>'; |
|
| 856 | + echo ' <a class="gd-page-sc-nxt" href="javascript:void(0);" onclick="gd_sc_gopage(this, '.(int) ($pageno + 1).');">'.$nxtlabel.'</a>'; |
|
| 857 | 857 | } |
| 858 | 858 | |
| 859 | 859 | if ($pageno < $max_page) { |
| 860 | - echo ' <a class="gd-page-sc-lst" href="javascript:void(0);" onclick="gd_sc_gopage(this, ' . (int)$max_page . ');">»</a>'; |
|
| 860 | + echo ' <a class="gd-page-sc-lst" href="javascript:void(0);" onclick="gd_sc_gopage(this, '.(int) $max_page.');">»</a>'; |
|
| 861 | 861 | } |
| 862 | 862 | echo "</div> $after"; |
| 863 | 863 | } |
@@ -880,7 +880,7 @@ discard block |
||
| 880 | 880 | $scatts = isset($_POST['scatts']) ? $_POST['scatts'] : NULL; |
| 881 | 881 | $pageno = isset($_POST['pageno']) ? absint($_POST['pageno']) : 1; |
| 882 | 882 | |
| 883 | - $shortcode_atts = !empty($scatts) ? (array)json_decode(stripslashes_deep($scatts)) : NULL; |
|
| 883 | + $shortcode_atts = !empty($scatts) ? (array) json_decode(stripslashes_deep($scatts)) : NULL; |
|
| 884 | 884 | |
| 885 | 885 | if (!empty($shortcode_atts) && is_array($shortcode_atts)) { |
| 886 | 886 | $shortcode_atts['pageno'] = $pageno; |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * @package GeoDirectory |
| 14 | 14 | * @global object $current_user Current user object. |
| 15 | 15 | * @param bool $redirect Optional. Do you want to redirect to signup page, if user not logged in? Default: false. |
| 16 | - * @return bool |
|
| 16 | + * @return null|boolean |
|
| 17 | 17 | */ |
| 18 | 18 | function geodir_is_login($redirect = false) |
| 19 | 19 | {
|
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @since 1.0.0 |
| 71 | 71 | * @package GeoDirectory |
| 72 | - * @return string|mixed|void The email ID. |
|
| 72 | + * @return string The email ID. |
|
| 73 | 73 | */ |
| 74 | 74 | function geodir_get_site_email_id() |
| 75 | 75 | {
|
@@ -25,11 +25,13 @@ discard block |
||
| 25 | 25 | window.location.href = '<?php echo geodir_login_url();?>'; |
| 26 | 26 | </script> |
| 27 | 27 | <?php |
| 28 | - } else |
|
| 29 | - return false; |
|
| 30 | - } else |
|
| 31 | - return true; |
|
| 32 | -} |
|
| 28 | + } else { |
|
| 29 | + return false; |
|
| 30 | + } |
|
| 31 | + } else { |
|
| 32 | + return true; |
|
| 33 | + } |
|
| 34 | + } |
|
| 33 | 35 | |
| 34 | 36 | /** |
| 35 | 37 | * Redirect to SSL url, if SSL is being used. |
@@ -60,7 +62,9 @@ discard block |
||
| 60 | 62 | * @param string $message Login message. |
| 61 | 63 | */ |
| 62 | 64 | $message = apply_filters('login_message', $message);
|
| 63 | - if (!empty($message)) echo $message . "\n"; |
|
| 65 | + if (!empty($message)) { |
|
| 66 | + echo $message . "\n"; |
|
| 67 | + } |
|
| 64 | 68 | |
| 65 | 69 | } |
| 66 | 70 | |
@@ -141,14 +145,16 @@ discard block |
||
| 141 | 145 | global $wpdb; |
| 142 | 146 | |
| 143 | 147 | $errors = new WP_Error(); |
| 144 | - if (empty($_POST['user_login']) && empty($_POST['user_email'])) |
|
| 145 | - $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.', 'geodirectory'));
|
|
| 148 | + if (empty($_POST['user_login']) && empty($_POST['user_email'])) { |
|
| 149 | + $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.', 'geodirectory')); |
|
| 150 | + } |
|
| 146 | 151 | |
| 147 | 152 | if (strpos($_POST['user_login'], '@')) {
|
| 148 | 153 | //$user_data = get_user_by_email(trim($_POST['user_login'])); |
| 149 | 154 | $user_data = get_user_by('email', trim($_POST['user_login']));
|
| 150 | - if (empty($user_data)) |
|
| 151 | - $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.', 'geodirectory'));
|
|
| 155 | + if (empty($user_data)) { |
|
| 156 | + $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.', 'geodirectory')); |
|
| 157 | + } |
|
| 152 | 158 | } else {
|
| 153 | 159 | $login = trim($_POST['user_login']); |
| 154 | 160 | $user_data = get_user_by('email', $login);
|
@@ -161,8 +167,9 @@ discard block |
||
| 161 | 167 | */ |
| 162 | 168 | do_action('lostpassword_post');
|
| 163 | 169 | |
| 164 | - if ($errors->get_error_code()) |
|
| 165 | - return $errors; |
|
| 170 | + if ($errors->get_error_code()) { |
|
| 171 | + return $errors; |
|
| 172 | + } |
|
| 166 | 173 | |
| 167 | 174 | if (!$user_data) {
|
| 168 | 175 | $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.', 'geodirectory'));
|
@@ -192,8 +199,9 @@ discard block |
||
| 192 | 199 | ) |
| 193 | 200 | ); |
| 194 | 201 | |
| 195 | - if (empty($user)) |
|
| 196 | - return new WP_Error('invalid_key', __('Invalid key', 'geodirectory'));
|
|
| 202 | + if (empty($user)) { |
|
| 203 | + return new WP_Error('invalid_key', __('Invalid key', 'geodirectory')); |
|
| 204 | + } |
|
| 197 | 205 | |
| 198 | 206 | $new_pass = wp_generate_password(12, false); |
| 199 | 207 | |
@@ -282,13 +290,14 @@ discard block |
||
| 282 | 290 | } |
| 283 | 291 | |
| 284 | 292 | // Check the username |
| 285 | - if ($user_login == '') |
|
| 286 | - $errors->add('empty_username', __('ERROR: Please enter a username.', 'geodirectory'));
|
|
| 287 | - elseif (!validate_username($user_login)) {
|
|
| 293 | + if ($user_login == '') { |
|
| 294 | + $errors->add('empty_username', __('ERROR: Please enter a username.', 'geodirectory')); |
|
| 295 | + } elseif (!validate_username($user_login)) {
|
|
| 288 | 296 | $errors->add('invalid_username', __('<strong>ERROR</strong>: This username is invalid. Please enter a valid username.', 'geodirectory'));
|
| 289 | 297 | $user_login = ''; |
| 290 | - } elseif (username_exists($user_login)) |
|
| 291 | - $errors->add('username_exists', __('<strong>ERROR</strong>: This username is already registered, please choose another one.', 'geodirectory'));
|
|
| 298 | + } elseif (username_exists($user_login)) { |
|
| 299 | + $errors->add('username_exists', __('<strong>ERROR</strong>: This username is already registered, please choose another one.', 'geodirectory')); |
|
| 300 | + } |
|
| 292 | 301 | |
| 293 | 302 | // Check the e-mail address |
| 294 | 303 | if ($user_email == '') {
|
@@ -296,8 +305,9 @@ discard block |
||
| 296 | 305 | } elseif (!is_email($user_email)) {
|
| 297 | 306 | $errors->add('invalid_email', __('<strong>ERROR</strong>: The email address isn’t correct.', 'geodirectory'));
|
| 298 | 307 | $user_email = ''; |
| 299 | - } elseif (email_exists($user_email)) |
|
| 300 | - $errors->add('email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.', 'geodirectory'));
|
|
| 308 | + } elseif (email_exists($user_email)) { |
|
| 309 | + $errors->add('email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.', 'geodirectory')); |
|
| 310 | + } |
|
| 301 | 311 | |
| 302 | 312 | /** |
| 303 | 313 | * Called when registering a new user. |
@@ -317,8 +327,9 @@ discard block |
||
| 317 | 327 | */ |
| 318 | 328 | $errors = apply_filters('registration_errors', $errors);
|
| 319 | 329 | |
| 320 | - if ($errors->get_error_code()) |
|
| 321 | - return $errors; |
|
| 330 | + if ($errors->get_error_code()) { |
|
| 331 | + return $errors; |
|
| 332 | + } |
|
| 322 | 333 | |
| 323 | 334 | |
| 324 | 335 | if (!isset($user_pass) || $user_pass == '') {
|
@@ -423,28 +434,33 @@ discard block |
||
| 423 | 434 | |
| 424 | 435 | $errors = new WP_Error(); |
| 425 | 436 | |
| 426 | - if (isset($_GET['key'])) |
|
| 427 | - $action = 'resetpass'; |
|
| 437 | + if (isset($_GET['key'])) { |
|
| 438 | + $action = 'resetpass'; |
|
| 439 | + } |
|
| 428 | 440 | |
| 429 | 441 | // validate action so as to default to the login screen |
| 430 | - if (!in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login')) && false === has_filter('login_form_' . $action))
|
|
| 431 | - $action = 'login'; |
|
| 442 | + if (!in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login')) && false === has_filter('login_form_' . $action)) { |
|
| 443 | + $action = 'login'; |
|
| 444 | + } |
|
| 432 | 445 | |
| 433 | 446 | nocache_headers(); |
| 434 | 447 | |
| 435 | 448 | if (defined('RELOCATE')) { // Move flag is set
|
| 436 | - if (isset($_SERVER['PATH_INFO']) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF'])) |
|
| 437 | - $_SERVER['PHP_SELF'] = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']); |
|
| 449 | + if (isset($_SERVER['PATH_INFO']) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF'])) { |
|
| 450 | + $_SERVER['PHP_SELF'] = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']); |
|
| 451 | + } |
|
| 438 | 452 | |
| 439 | 453 | $schema = (isset($_SERVER['HTTPS']) && geodir_strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; |
| 440 | - if (dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != home_url()) |
|
| 441 | - update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']));
|
|
| 454 | + if (dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != home_url()) { |
|
| 455 | + update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'])); |
|
| 456 | + } |
|
| 442 | 457 | } |
| 443 | 458 | |
| 444 | 459 | //Set a cookie now to see if they are supported by the browser. |
| 445 | 460 | //setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); |
| 446 | - if (SITECOOKIEPATH != COOKIEPATH) |
|
| 447 | - setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); |
|
| 461 | + if (SITECOOKIEPATH != COOKIEPATH) { |
|
| 462 | + setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); |
|
| 463 | + } |
|
| 448 | 464 | |
| 449 | 465 | /** |
| 450 | 466 | * Allow plugins to override the default actions, and to add extra actions if they want on the register/signin page. |
@@ -465,8 +481,9 @@ discard block |
||
| 465 | 481 | |
| 466 | 482 | $redirect_to = $_SERVER['HTTP_REFERER']; |
| 467 | 483 | //$redirect_to = home_url().'/?ptype=login&loggedout=true'; |
| 468 | - if (isset($_REQUEST['redirect_to'])) |
|
| 469 | - $redirect_to = $_REQUEST['redirect_to']; |
|
| 484 | + if (isset($_REQUEST['redirect_to'])) { |
|
| 485 | + $redirect_to = $_REQUEST['redirect_to']; |
|
| 486 | + } |
|
| 470 | 487 | $redirect_to = home_url(); |
| 471 | 488 | wp_safe_redirect($redirect_to); |
| 472 | 489 | exit(); |
@@ -486,7 +503,9 @@ discard block |
||
| 486 | 503 | exit(); |
| 487 | 504 | } |
| 488 | 505 | } |
| 489 | - if (isset($_GET['error']) && 'invalidkey' == $_GET['error']) $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.', 'geodirectory'));
|
|
| 506 | + if (isset($_GET['error']) && 'invalidkey' == $_GET['error']) { |
|
| 507 | + $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.', 'geodirectory')); |
|
| 508 | + } |
|
| 490 | 509 | /** |
| 491 | 510 | * Called in the geodir_user_signup() function during the lostpassword case. |
| 492 | 511 | * |
@@ -582,8 +601,9 @@ discard block |
||
| 582 | 601 | } |
| 583 | 602 | |
| 584 | 603 | |
| 585 | - if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) |
|
| 586 | - $secure_cookie = false; |
|
| 604 | + if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) { |
|
| 605 | + $secure_cookie = false; |
|
| 606 | + } |
|
| 587 | 607 | |
| 588 | 608 | $user = wp_signon('', $secure_cookie);
|
| 589 | 609 | |
@@ -652,22 +672,26 @@ discard block |
||
| 652 | 672 | $default_author_link = apply_filters('geodir_dashboard_author_link', $default_author_link, $user_ID);
|
| 653 | 673 | |
| 654 | 674 | $_REQUEST['redirect_to'] = $default_author_link; |
| 655 | - else: |
|
| 656 | - $_REQUEST['redirect_to'] = home_url(); |
|
| 675 | + else { |
|
| 676 | + : |
|
| 677 | + $_REQUEST['redirect_to'] = home_url(); |
|
| 678 | + } |
|
| 657 | 679 | endif; |
| 658 | 680 | |
| 659 | 681 | } |
| 660 | 682 | if (isset($_REQUEST['redirect_to'])) {
|
| 661 | 683 | $redirect_to = $_REQUEST['redirect_to']; |
| 662 | 684 | // Redirect to https if user wants ssl |
| 663 | - if ($secure_cookie && false !== strpos($redirect_to, 'wp-admin')) |
|
| 664 | - $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
|
|
| 685 | + if ($secure_cookie && false !== strpos($redirect_to, 'wp-admin')) { |
|
| 686 | + $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to); |
|
| 687 | + } |
|
| 665 | 688 | } else {
|
| 666 | 689 | $redirect_to = admin_url(); |
| 667 | 690 | } |
| 668 | 691 | |
| 669 | - if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) |
|
| 670 | - $secure_cookie = false; |
|
| 692 | + if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) { |
|
| 693 | + $secure_cookie = false; |
|
| 694 | + } |
|
| 671 | 695 | $user = wp_signon('', $secure_cookie);
|
| 672 | 696 | |
| 673 | 697 | |
@@ -702,11 +726,13 @@ discard block |
||
| 702 | 726 | $errors = $user; |
| 703 | 727 | |
| 704 | 728 | // Clear errors if loggedout is set. |
| 705 | - if (!empty($_GET['loggedout'])) |
|
| 706 | - $errors = new WP_Error(); |
|
| 729 | + if (!empty($_GET['loggedout'])) { |
|
| 730 | + $errors = new WP_Error(); |
|
| 731 | + } |
|
| 707 | 732 | // If cookies are disabled we can't log in even with a valid user+pass |
| 708 | - if (isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE])) |
|
| 709 | - $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress.", 'geodirectory'));
|
|
| 733 | + if (isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE])) { |
|
| 734 | + $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress.", 'geodirectory')); |
|
| 735 | + } |
|
| 710 | 736 | |
| 711 | 737 | // Some parts of this script use the main login form to display a message |
| 712 | 738 | if (isset($_GET['loggedout']) && TRUE == $_GET['loggedout']) {
|
@@ -17,18 +17,18 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | function geodir_is_login($redirect = false) |
| 19 | 19 | {
|
| 20 | - global $current_user; |
|
| 21 | - if (!$current_user->ID) {
|
|
| 22 | - if ($redirect) {
|
|
| 23 | - ?> |
|
| 20 | + global $current_user; |
|
| 21 | + if (!$current_user->ID) {
|
|
| 22 | + if ($redirect) {
|
|
| 23 | + ?> |
|
| 24 | 24 | <script type="text/javascript"> |
| 25 | 25 | window.location.href = '<?php echo geodir_login_url();?>'; |
| 26 | 26 | </script> |
| 27 | 27 | <?php |
| 28 | - } else |
|
| 29 | - return false; |
|
| 30 | - } else |
|
| 31 | - return true; |
|
| 28 | + } else |
|
| 29 | + return false; |
|
| 30 | + } else |
|
| 31 | + return true; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -42,25 +42,25 @@ discard block |
||
| 42 | 42 | {
|
| 43 | 43 | |
| 44 | 44 | // Redirect to https login if forced to use SSL |
| 45 | - if (force_ssl_admin() && !is_ssl()) {
|
|
| 46 | - if (0 === strpos($_SERVER['REQUEST_URI'], 'http')) {
|
|
| 47 | - wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
|
|
| 48 | - exit(); |
|
| 49 | - } else {
|
|
| 50 | - wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
|
| 51 | - exit(); |
|
| 52 | - } |
|
| 53 | - } |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * Filter the login message. |
|
| 57 | - * |
|
| 58 | - * @since 1.0.0 |
|
| 59 | - * |
|
| 60 | - * @param string $message Login message. |
|
| 61 | - */ |
|
| 62 | - $message = apply_filters('login_message', $message);
|
|
| 63 | - if (!empty($message)) echo $message . "\n"; |
|
| 45 | + if (force_ssl_admin() && !is_ssl()) {
|
|
| 46 | + if (0 === strpos($_SERVER['REQUEST_URI'], 'http')) {
|
|
| 47 | + wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
|
|
| 48 | + exit(); |
|
| 49 | + } else {
|
|
| 50 | + wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
|
| 51 | + exit(); |
|
| 52 | + } |
|
| 53 | + } |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * Filter the login message. |
|
| 57 | + * |
|
| 58 | + * @since 1.0.0 |
|
| 59 | + * |
|
| 60 | + * @param string $message Login message. |
|
| 61 | + */ |
|
| 62 | + $message = apply_filters('login_message', $message);
|
|
| 63 | + if (!empty($message)) echo $message . "\n"; |
|
| 64 | 64 | |
| 65 | 65 | } |
| 66 | 66 | |
@@ -73,59 +73,59 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | function geodir_get_site_email_id() |
| 75 | 75 | {
|
| 76 | - if (get_option('site_email')) {
|
|
| 76 | + if (get_option('site_email')) {
|
|
| 77 | 77 | |
| 78 | - return get_option('site_email');
|
|
| 78 | + return get_option('site_email');
|
|
| 79 | 79 | |
| 80 | - } else {
|
|
| 80 | + } else {
|
|
| 81 | 81 | |
| 82 | - return get_option('admin_email');
|
|
| 82 | + return get_option('admin_email');
|
|
| 83 | 83 | |
| 84 | - } |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | if (!function_exists('get_site_emailName')) {
|
| 90 | - /** |
|
| 91 | - * Get site name for sending emails. |
|
| 92 | - * |
|
| 93 | - * @since 1.0.0 |
|
| 94 | - * @package GeoDirectory |
|
| 95 | - * @return string Site name. |
|
| 96 | - */ |
|
| 97 | - function get_site_emailName() |
|
| 90 | + /** |
|
| 91 | + * Get site name for sending emails. |
|
| 92 | + * |
|
| 93 | + * @since 1.0.0 |
|
| 94 | + * @package GeoDirectory |
|
| 95 | + * @return string Site name. |
|
| 96 | + */ |
|
| 97 | + function get_site_emailName() |
|
| 98 | 98 | |
| 99 | - {
|
|
| 99 | + {
|
|
| 100 | 100 | |
| 101 | - if (get_option('site_email_name')) {
|
|
| 101 | + if (get_option('site_email_name')) {
|
|
| 102 | 102 | |
| 103 | - return stripslashes(get_option('site_email_name'));
|
|
| 103 | + return stripslashes(get_option('site_email_name'));
|
|
| 104 | 104 | |
| 105 | - } else {
|
|
| 105 | + } else {
|
|
| 106 | 106 | |
| 107 | - return stripslashes(get_option('blogname'));
|
|
| 107 | + return stripslashes(get_option('blogname'));
|
|
| 108 | 108 | |
| 109 | - } |
|
| 109 | + } |
|
| 110 | 110 | |
| 111 | - } |
|
| 111 | + } |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if (!function_exists('is_allow_user_register')) {
|
| 115 | - /** |
|
| 116 | - * Checks whether the site allowing user registration or not. |
|
| 117 | - * |
|
| 118 | - * @since 1.0.0 |
|
| 119 | - * @package GeoDirectory |
|
| 120 | - * @return bool|string |
|
| 121 | - */ |
|
| 122 | - function is_allow_user_register() |
|
| 115 | + /** |
|
| 116 | + * Checks whether the site allowing user registration or not. |
|
| 117 | + * |
|
| 118 | + * @since 1.0.0 |
|
| 119 | + * @package GeoDirectory |
|
| 120 | + * @return bool|string |
|
| 121 | + */ |
|
| 122 | + function is_allow_user_register() |
|
| 123 | 123 | |
| 124 | - {
|
|
| 124 | + {
|
|
| 125 | 125 | |
| 126 | - return get_option('users_can_register');
|
|
| 126 | + return get_option('users_can_register');
|
|
| 127 | 127 | |
| 128 | - } |
|
| 128 | + } |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -138,107 +138,107 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | function geodir_retrieve_password() |
| 140 | 140 | {
|
| 141 | - global $wpdb; |
|
| 142 | - |
|
| 143 | - $errors = new WP_Error(); |
|
| 144 | - if (empty($_POST['user_login']) && empty($_POST['user_email'])) |
|
| 145 | - $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.', 'geodirectory'));
|
|
| 146 | - |
|
| 147 | - if (strpos($_POST['user_login'], '@')) {
|
|
| 148 | - //$user_data = get_user_by_email(trim($_POST['user_login'])); |
|
| 149 | - $user_data = get_user_by('email', trim($_POST['user_login']));
|
|
| 150 | - if (empty($user_data)) |
|
| 151 | - $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.', 'geodirectory'));
|
|
| 152 | - } else {
|
|
| 153 | - $login = trim($_POST['user_login']); |
|
| 154 | - $user_data = get_user_by('email', $login);
|
|
| 155 | - } |
|
| 156 | - |
|
| 157 | - /** |
|
| 158 | - * Called in the geodir_retrieve_password() function before any errors are set or any emails are sent. |
|
| 159 | - * |
|
| 160 | - * @since 1.0.0 |
|
| 161 | - */ |
|
| 162 | - do_action('lostpassword_post');
|
|
| 163 | - |
|
| 164 | - if ($errors->get_error_code()) |
|
| 165 | - return $errors; |
|
| 166 | - |
|
| 167 | - if (!$user_data) {
|
|
| 168 | - $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.', 'geodirectory'));
|
|
| 169 | - return $errors; |
|
| 170 | - } |
|
| 171 | - |
|
| 172 | - // redefining user_login ensures we return the right case in the email |
|
| 173 | - $user_login = $user_data->user_login; |
|
| 174 | - $user_email = $user_data->user_email; |
|
| 175 | - |
|
| 176 | - /** |
|
| 177 | - * Called in the geodir_retrieve_password() function before any emails are sent. |
|
| 178 | - * |
|
| 179 | - * @since 1.0.0 |
|
| 180 | - * @param string $user_login The users username. |
|
| 181 | - */ |
|
| 182 | - do_action('retrieve_password', $user_login);
|
|
| 183 | - |
|
| 184 | - //////////////////////////////////// |
|
| 185 | - $user_email = isset($_POST['user_email']) ? $_POST['user_email'] : ''; |
|
| 186 | - $user_login = $_POST['user_login']; |
|
| 187 | - |
|
| 188 | - $user = $wpdb->get_row( |
|
| 189 | - $wpdb->prepare( |
|
| 190 | - "SELECT * FROM $wpdb->users WHERE user_login like %s or user_email like %s", |
|
| 191 | - array($user_login, $user_login) |
|
| 192 | - ) |
|
| 193 | - ); |
|
| 194 | - |
|
| 195 | - if (empty($user)) |
|
| 196 | - return new WP_Error('invalid_key', __('Invalid key', 'geodirectory'));
|
|
| 197 | - |
|
| 198 | - $new_pass = wp_generate_password(12, false); |
|
| 199 | - |
|
| 200 | - /** |
|
| 201 | - * Called in the geodir_retrieve_password() function before any emails are sent. |
|
| 202 | - * |
|
| 203 | - * @since 1.0.0 |
|
| 204 | - * @param object $user The user object. |
|
| 205 | - * @param string $new_pass The new pass being sent to the user. |
|
| 206 | - */ |
|
| 207 | - do_action('password_reset', $user, $new_pass);
|
|
| 208 | - |
|
| 209 | - wp_set_password($new_pass, $user->ID); |
|
| 210 | - update_user_meta($user->ID, 'default_password_nag', true); //Set up the Password change nag. |
|
| 211 | - $message = '<p><b>' . __('Your login Information :', 'geodirectory') . '</b></p>';
|
|
| 212 | - $message .= '<p>' . sprintf(__('Username: %s', 'geodirectory'), $user->user_login) . "</p>";
|
|
| 213 | - $message .= '<p>' . sprintf(__('Password: %s', 'geodirectory'), $new_pass) . "</p>";
|
|
| 214 | - //$message .= '<p>You can login to : <a href="'.home_url().'/?ptype=login' . "\">Login</a> or the URL is : ".home_url()."/?ptype=login</p>"; |
|
| 215 | - //$message .= '<p>Thank You,<br> '.get_option('blogname').'</p>';
|
|
| 216 | - $user_email = $user_data->user_email; |
|
| 217 | - $user_name = geodir_get_client_name($user->ID); |
|
| 218 | - $fromEmail = geodir_get_site_email_id(); |
|
| 219 | - $fromEmailName = get_site_emailName(); |
|
| 220 | - $title = sprintf(__('[%s] Your new password', 'geodirectory'), get_option('blogname'));
|
|
| 221 | - /** |
|
| 222 | - * Filter the password reset email subject part. |
|
| 223 | - * |
|
| 224 | - * @since 1.0.0 |
|
| 225 | - * |
|
| 226 | - * @param string $title Password reset email subject. |
|
| 227 | - */ |
|
| 228 | - $title = apply_filters('password_reset_title', $title);
|
|
| 229 | - /** |
|
| 230 | - * Filter the password reset email message part. |
|
| 231 | - * |
|
| 232 | - * @since 1.0.0 |
|
| 233 | - * |
|
| 234 | - * @param string $message Password reset email message. |
|
| 235 | - * @param string $new_pass The new password string. |
|
| 236 | - */ |
|
| 237 | - $message = apply_filters('password_reset_message', $message, $new_pass);
|
|
| 238 | - //geodir_sendEmail($fromEmail,$fromEmailName,$user_email,$user_name,$title,$message,$extra='');///forgot password email |
|
| 239 | - geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $user_name, $title, $message, $extra = '', 'forgot_password', $post_id = '', $user->ID);///forgot password email |
|
| 240 | - |
|
| 241 | - return true; |
|
| 141 | + global $wpdb; |
|
| 142 | + |
|
| 143 | + $errors = new WP_Error(); |
|
| 144 | + if (empty($_POST['user_login']) && empty($_POST['user_email'])) |
|
| 145 | + $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.', 'geodirectory'));
|
|
| 146 | + |
|
| 147 | + if (strpos($_POST['user_login'], '@')) {
|
|
| 148 | + //$user_data = get_user_by_email(trim($_POST['user_login'])); |
|
| 149 | + $user_data = get_user_by('email', trim($_POST['user_login']));
|
|
| 150 | + if (empty($user_data)) |
|
| 151 | + $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.', 'geodirectory'));
|
|
| 152 | + } else {
|
|
| 153 | + $login = trim($_POST['user_login']); |
|
| 154 | + $user_data = get_user_by('email', $login);
|
|
| 155 | + } |
|
| 156 | + |
|
| 157 | + /** |
|
| 158 | + * Called in the geodir_retrieve_password() function before any errors are set or any emails are sent. |
|
| 159 | + * |
|
| 160 | + * @since 1.0.0 |
|
| 161 | + */ |
|
| 162 | + do_action('lostpassword_post');
|
|
| 163 | + |
|
| 164 | + if ($errors->get_error_code()) |
|
| 165 | + return $errors; |
|
| 166 | + |
|
| 167 | + if (!$user_data) {
|
|
| 168 | + $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.', 'geodirectory'));
|
|
| 169 | + return $errors; |
|
| 170 | + } |
|
| 171 | + |
|
| 172 | + // redefining user_login ensures we return the right case in the email |
|
| 173 | + $user_login = $user_data->user_login; |
|
| 174 | + $user_email = $user_data->user_email; |
|
| 175 | + |
|
| 176 | + /** |
|
| 177 | + * Called in the geodir_retrieve_password() function before any emails are sent. |
|
| 178 | + * |
|
| 179 | + * @since 1.0.0 |
|
| 180 | + * @param string $user_login The users username. |
|
| 181 | + */ |
|
| 182 | + do_action('retrieve_password', $user_login);
|
|
| 183 | + |
|
| 184 | + //////////////////////////////////// |
|
| 185 | + $user_email = isset($_POST['user_email']) ? $_POST['user_email'] : ''; |
|
| 186 | + $user_login = $_POST['user_login']; |
|
| 187 | + |
|
| 188 | + $user = $wpdb->get_row( |
|
| 189 | + $wpdb->prepare( |
|
| 190 | + "SELECT * FROM $wpdb->users WHERE user_login like %s or user_email like %s", |
|
| 191 | + array($user_login, $user_login) |
|
| 192 | + ) |
|
| 193 | + ); |
|
| 194 | + |
|
| 195 | + if (empty($user)) |
|
| 196 | + return new WP_Error('invalid_key', __('Invalid key', 'geodirectory'));
|
|
| 197 | + |
|
| 198 | + $new_pass = wp_generate_password(12, false); |
|
| 199 | + |
|
| 200 | + /** |
|
| 201 | + * Called in the geodir_retrieve_password() function before any emails are sent. |
|
| 202 | + * |
|
| 203 | + * @since 1.0.0 |
|
| 204 | + * @param object $user The user object. |
|
| 205 | + * @param string $new_pass The new pass being sent to the user. |
|
| 206 | + */ |
|
| 207 | + do_action('password_reset', $user, $new_pass);
|
|
| 208 | + |
|
| 209 | + wp_set_password($new_pass, $user->ID); |
|
| 210 | + update_user_meta($user->ID, 'default_password_nag', true); //Set up the Password change nag. |
|
| 211 | + $message = '<p><b>' . __('Your login Information :', 'geodirectory') . '</b></p>';
|
|
| 212 | + $message .= '<p>' . sprintf(__('Username: %s', 'geodirectory'), $user->user_login) . "</p>";
|
|
| 213 | + $message .= '<p>' . sprintf(__('Password: %s', 'geodirectory'), $new_pass) . "</p>";
|
|
| 214 | + //$message .= '<p>You can login to : <a href="'.home_url().'/?ptype=login' . "\">Login</a> or the URL is : ".home_url()."/?ptype=login</p>"; |
|
| 215 | + //$message .= '<p>Thank You,<br> '.get_option('blogname').'</p>';
|
|
| 216 | + $user_email = $user_data->user_email; |
|
| 217 | + $user_name = geodir_get_client_name($user->ID); |
|
| 218 | + $fromEmail = geodir_get_site_email_id(); |
|
| 219 | + $fromEmailName = get_site_emailName(); |
|
| 220 | + $title = sprintf(__('[%s] Your new password', 'geodirectory'), get_option('blogname'));
|
|
| 221 | + /** |
|
| 222 | + * Filter the password reset email subject part. |
|
| 223 | + * |
|
| 224 | + * @since 1.0.0 |
|
| 225 | + * |
|
| 226 | + * @param string $title Password reset email subject. |
|
| 227 | + */ |
|
| 228 | + $title = apply_filters('password_reset_title', $title);
|
|
| 229 | + /** |
|
| 230 | + * Filter the password reset email message part. |
|
| 231 | + * |
|
| 232 | + * @since 1.0.0 |
|
| 233 | + * |
|
| 234 | + * @param string $message Password reset email message. |
|
| 235 | + * @param string $new_pass The new password string. |
|
| 236 | + */ |
|
| 237 | + $message = apply_filters('password_reset_message', $message, $new_pass);
|
|
| 238 | + //geodir_sendEmail($fromEmail,$fromEmailName,$user_email,$user_name,$title,$message,$extra='');///forgot password email |
|
| 239 | + geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $user_name, $title, $message, $extra = '', 'forgot_password', $post_id = '', $user->ID);///forgot password email |
|
| 240 | + |
|
| 241 | + return true; |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | /** |
@@ -253,80 +253,80 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | function geodir_register_new_user($user_login, $user_email) |
| 255 | 255 | {
|
| 256 | - global $wpdb; |
|
| 257 | - $errors = new WP_Error(); |
|
| 258 | - |
|
| 259 | - |
|
| 260 | - $user_login = sanitize_user($user_login); |
|
| 261 | - $user_login = str_replace(",", "", $user_login);
|
|
| 262 | - $user_email = str_replace(",", "", $user_email);
|
|
| 263 | - /** |
|
| 264 | - * Filter the user registration email. |
|
| 265 | - * |
|
| 266 | - * @since 1.0.0 |
|
| 267 | - * |
|
| 268 | - * @param string $user_email User registration email. |
|
| 269 | - */ |
|
| 270 | - $user_email = apply_filters('user_registration_email', $user_email);
|
|
| 271 | - |
|
| 272 | - |
|
| 273 | - if (get_option('geodir_allow_cpass')) {
|
|
| 274 | - $user_pass = $_REQUEST['user_pass']; |
|
| 275 | - $user_pass2 = $_REQUEST['user_pass2']; |
|
| 276 | - // Check the password |
|
| 277 | - if ($user_pass != $user_pass2) {
|
|
| 278 | - $errors->add('pass_match', __('ERROR: Passwords do not match.', 'geodirectory'));
|
|
| 279 | - } elseif (strlen($user_pass) < 7) {
|
|
| 280 | - $errors->add('pass_match', __('ERROR: Password must be 7 characters or more.', 'geodirectory'));
|
|
| 281 | - } |
|
| 282 | - } |
|
| 283 | - |
|
| 284 | - // Check the username |
|
| 285 | - if ($user_login == '') |
|
| 286 | - $errors->add('empty_username', __('ERROR: Please enter a username.', 'geodirectory'));
|
|
| 287 | - elseif (!validate_username($user_login)) {
|
|
| 288 | - $errors->add('invalid_username', __('<strong>ERROR</strong>: This username is invalid. Please enter a valid username.', 'geodirectory'));
|
|
| 289 | - $user_login = ''; |
|
| 290 | - } elseif (username_exists($user_login)) |
|
| 291 | - $errors->add('username_exists', __('<strong>ERROR</strong>: This username is already registered, please choose another one.', 'geodirectory'));
|
|
| 292 | - |
|
| 293 | - // Check the e-mail address |
|
| 294 | - if ($user_email == '') {
|
|
| 295 | - $errors->add('empty_email', __('<strong>ERROR</strong>: Please type your e-mail address.', 'geodirectory'));
|
|
| 296 | - } elseif (!is_email($user_email)) {
|
|
| 297 | - $errors->add('invalid_email', __('<strong>ERROR</strong>: The email address isn’t correct.', 'geodirectory'));
|
|
| 298 | - $user_email = ''; |
|
| 299 | - } elseif (email_exists($user_email)) |
|
| 300 | - $errors->add('email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.', 'geodirectory'));
|
|
| 301 | - |
|
| 302 | - /** |
|
| 303 | - * Called when registering a new user. |
|
| 304 | - * |
|
| 305 | - * This is a WordPress core hook. |
|
| 306 | - * |
|
| 307 | - * @link https://codex.wordpress.org/Plugin_API/Action_Reference/register_post |
|
| 308 | - * @since 1.0.0 |
|
| 309 | - */ |
|
| 310 | - do_action('register_post', $user_login, $user_email, $errors);
|
|
| 311 | - /** |
|
| 312 | - * Filter the registration error messages. |
|
| 313 | - * |
|
| 314 | - * @since 1.0.0 |
|
| 315 | - * |
|
| 316 | - * @param object $errors Registration error messages. |
|
| 317 | - */ |
|
| 318 | - $errors = apply_filters('registration_errors', $errors);
|
|
| 319 | - |
|
| 320 | - if ($errors->get_error_code()) |
|
| 321 | - return $errors; |
|
| 322 | - |
|
| 323 | - |
|
| 324 | - if (!isset($user_pass) || $user_pass == '') {
|
|
| 325 | - $user_pass = wp_generate_password(12, false); |
|
| 326 | - } |
|
| 327 | - $user_id = wp_create_user($user_login, $user_pass, $user_email); |
|
| 328 | - $user_web = ''; |
|
| 329 | - /*$user_add1 = $_POST['user_add1']; |
|
| 256 | + global $wpdb; |
|
| 257 | + $errors = new WP_Error(); |
|
| 258 | + |
|
| 259 | + |
|
| 260 | + $user_login = sanitize_user($user_login); |
|
| 261 | + $user_login = str_replace(",", "", $user_login);
|
|
| 262 | + $user_email = str_replace(",", "", $user_email);
|
|
| 263 | + /** |
|
| 264 | + * Filter the user registration email. |
|
| 265 | + * |
|
| 266 | + * @since 1.0.0 |
|
| 267 | + * |
|
| 268 | + * @param string $user_email User registration email. |
|
| 269 | + */ |
|
| 270 | + $user_email = apply_filters('user_registration_email', $user_email);
|
|
| 271 | + |
|
| 272 | + |
|
| 273 | + if (get_option('geodir_allow_cpass')) {
|
|
| 274 | + $user_pass = $_REQUEST['user_pass']; |
|
| 275 | + $user_pass2 = $_REQUEST['user_pass2']; |
|
| 276 | + // Check the password |
|
| 277 | + if ($user_pass != $user_pass2) {
|
|
| 278 | + $errors->add('pass_match', __('ERROR: Passwords do not match.', 'geodirectory'));
|
|
| 279 | + } elseif (strlen($user_pass) < 7) {
|
|
| 280 | + $errors->add('pass_match', __('ERROR: Password must be 7 characters or more.', 'geodirectory'));
|
|
| 281 | + } |
|
| 282 | + } |
|
| 283 | + |
|
| 284 | + // Check the username |
|
| 285 | + if ($user_login == '') |
|
| 286 | + $errors->add('empty_username', __('ERROR: Please enter a username.', 'geodirectory'));
|
|
| 287 | + elseif (!validate_username($user_login)) {
|
|
| 288 | + $errors->add('invalid_username', __('<strong>ERROR</strong>: This username is invalid. Please enter a valid username.', 'geodirectory'));
|
|
| 289 | + $user_login = ''; |
|
| 290 | + } elseif (username_exists($user_login)) |
|
| 291 | + $errors->add('username_exists', __('<strong>ERROR</strong>: This username is already registered, please choose another one.', 'geodirectory'));
|
|
| 292 | + |
|
| 293 | + // Check the e-mail address |
|
| 294 | + if ($user_email == '') {
|
|
| 295 | + $errors->add('empty_email', __('<strong>ERROR</strong>: Please type your e-mail address.', 'geodirectory'));
|
|
| 296 | + } elseif (!is_email($user_email)) {
|
|
| 297 | + $errors->add('invalid_email', __('<strong>ERROR</strong>: The email address isn’t correct.', 'geodirectory'));
|
|
| 298 | + $user_email = ''; |
|
| 299 | + } elseif (email_exists($user_email)) |
|
| 300 | + $errors->add('email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.', 'geodirectory'));
|
|
| 301 | + |
|
| 302 | + /** |
|
| 303 | + * Called when registering a new user. |
|
| 304 | + * |
|
| 305 | + * This is a WordPress core hook. |
|
| 306 | + * |
|
| 307 | + * @link https://codex.wordpress.org/Plugin_API/Action_Reference/register_post |
|
| 308 | + * @since 1.0.0 |
|
| 309 | + */ |
|
| 310 | + do_action('register_post', $user_login, $user_email, $errors);
|
|
| 311 | + /** |
|
| 312 | + * Filter the registration error messages. |
|
| 313 | + * |
|
| 314 | + * @since 1.0.0 |
|
| 315 | + * |
|
| 316 | + * @param object $errors Registration error messages. |
|
| 317 | + */ |
|
| 318 | + $errors = apply_filters('registration_errors', $errors);
|
|
| 319 | + |
|
| 320 | + if ($errors->get_error_code()) |
|
| 321 | + return $errors; |
|
| 322 | + |
|
| 323 | + |
|
| 324 | + if (!isset($user_pass) || $user_pass == '') {
|
|
| 325 | + $user_pass = wp_generate_password(12, false); |
|
| 326 | + } |
|
| 327 | + $user_id = wp_create_user($user_login, $user_pass, $user_email); |
|
| 328 | + $user_web = ''; |
|
| 329 | + /*$user_add1 = $_POST['user_add1']; |
|
| 330 | 330 | $user_add2 = $_POST['user_add2']; |
| 331 | 331 | $user_city = $_POST['user_city']; |
| 332 | 332 | $user_state = $_POST['user_state']; |
@@ -335,77 +335,77 @@ discard block |
||
| 335 | 335 | $user_web = $_POST['user_web']; |
| 336 | 336 | $user_phone = $_POST['user_phone']; |
| 337 | 337 | $user_twitter = $_POST['user_twitter']; */ |
| 338 | - $user_fname = sanitize_user($_POST['user_fname']); |
|
| 339 | - $user_fname = str_replace(",", "", $user_fname);
|
|
| 340 | - |
|
| 341 | - /** |
|
| 342 | - * Filter the submitted user meta. |
|
| 343 | - * |
|
| 344 | - * @since 1.0.0 |
|
| 345 | - * |
|
| 346 | - * @param int $user_id User ID. |
|
| 347 | - */ |
|
| 348 | - $user_address_info = apply_filters('geodir_manage_user_meta', array(
|
|
| 349 | - "user_add1" => '', |
|
| 350 | - "user_add2" => '', |
|
| 351 | - "user_city" => '', |
|
| 352 | - "user_state" => '', |
|
| 353 | - "user_country" => '', |
|
| 354 | - "user_postalcode" => '', |
|
| 355 | - "user_phone" => '', |
|
| 356 | - "user_twitter" => '', |
|
| 357 | - "first_name" => $user_fname, |
|
| 358 | - "last_name" => '', |
|
| 359 | - ), $user_id); |
|
| 360 | - foreach ($user_address_info as $key => $val) {
|
|
| 361 | - update_user_meta($user_id, $key, $val); // User Address Information Here |
|
| 362 | - } |
|
| 363 | - //update_user_meta($user_id, 'user_address_info', ($user_address_info)); // User Address Information Here |
|
| 364 | - $userName = $user_fname; |
|
| 365 | - update_user_meta($user_id, 'first_name', $userName); // User Address Information Here |
|
| 366 | - //update_user_meta($user_id, 'last_name', $_POST['user_lname']); // User Address Information Here |
|
| 367 | - |
|
| 368 | - // Changed by vikas sharma to enable all type of characters in author permalink... |
|
| 369 | - $user_nicename = sanitize_title($userName); |
|
| 370 | - |
|
| 371 | - $updateUsersql = $wpdb->prepare("update $wpdb->users set user_url=%s, user_nicename=%s, display_name=%s where ID=%d", array($user_web, $user_nicename, $userName, $user_id));
|
|
| 372 | - |
|
| 373 | - $wpdb->query($updateUsersql); |
|
| 374 | - |
|
| 375 | - if (!$user_id) {
|
|
| 376 | - $errors->add('registerfail', sprintf(__('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'geodirectory'), get_option('admin_email')));
|
|
| 377 | - return $errors; |
|
| 378 | - } |
|
| 379 | - global $upload_folder_path; |
|
| 380 | - |
|
| 381 | - if ($user_id) {
|
|
| 382 | - |
|
| 383 | - /** |
|
| 384 | - * Called after registering a user and before the registration email is sent. |
|
| 385 | - * |
|
| 386 | - * @since 1.0.0 |
|
| 387 | - * @param int $user_id The user ID of the registered user. |
|
| 388 | - */ |
|
| 389 | - do_action('geodir_user_register', $user_id);
|
|
| 390 | - ///////REGISTRATION EMAIL START////// |
|
| 391 | - $fromEmail = geodir_get_site_email_id(); |
|
| 392 | - $fromEmailName = get_site_emailName(); |
|
| 393 | - $message = __('<p><b>' . __('Your login Information :', 'geodirectory') . '</b></p>
|
|
| 338 | + $user_fname = sanitize_user($_POST['user_fname']); |
|
| 339 | + $user_fname = str_replace(",", "", $user_fname);
|
|
| 340 | + |
|
| 341 | + /** |
|
| 342 | + * Filter the submitted user meta. |
|
| 343 | + * |
|
| 344 | + * @since 1.0.0 |
|
| 345 | + * |
|
| 346 | + * @param int $user_id User ID. |
|
| 347 | + */ |
|
| 348 | + $user_address_info = apply_filters('geodir_manage_user_meta', array(
|
|
| 349 | + "user_add1" => '', |
|
| 350 | + "user_add2" => '', |
|
| 351 | + "user_city" => '', |
|
| 352 | + "user_state" => '', |
|
| 353 | + "user_country" => '', |
|
| 354 | + "user_postalcode" => '', |
|
| 355 | + "user_phone" => '', |
|
| 356 | + "user_twitter" => '', |
|
| 357 | + "first_name" => $user_fname, |
|
| 358 | + "last_name" => '', |
|
| 359 | + ), $user_id); |
|
| 360 | + foreach ($user_address_info as $key => $val) {
|
|
| 361 | + update_user_meta($user_id, $key, $val); // User Address Information Here |
|
| 362 | + } |
|
| 363 | + //update_user_meta($user_id, 'user_address_info', ($user_address_info)); // User Address Information Here |
|
| 364 | + $userName = $user_fname; |
|
| 365 | + update_user_meta($user_id, 'first_name', $userName); // User Address Information Here |
|
| 366 | + //update_user_meta($user_id, 'last_name', $_POST['user_lname']); // User Address Information Here |
|
| 367 | + |
|
| 368 | + // Changed by vikas sharma to enable all type of characters in author permalink... |
|
| 369 | + $user_nicename = sanitize_title($userName); |
|
| 370 | + |
|
| 371 | + $updateUsersql = $wpdb->prepare("update $wpdb->users set user_url=%s, user_nicename=%s, display_name=%s where ID=%d", array($user_web, $user_nicename, $userName, $user_id));
|
|
| 372 | + |
|
| 373 | + $wpdb->query($updateUsersql); |
|
| 374 | + |
|
| 375 | + if (!$user_id) {
|
|
| 376 | + $errors->add('registerfail', sprintf(__('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'geodirectory'), get_option('admin_email')));
|
|
| 377 | + return $errors; |
|
| 378 | + } |
|
| 379 | + global $upload_folder_path; |
|
| 380 | + |
|
| 381 | + if ($user_id) {
|
|
| 382 | + |
|
| 383 | + /** |
|
| 384 | + * Called after registering a user and before the registration email is sent. |
|
| 385 | + * |
|
| 386 | + * @since 1.0.0 |
|
| 387 | + * @param int $user_id The user ID of the registered user. |
|
| 388 | + */ |
|
| 389 | + do_action('geodir_user_register', $user_id);
|
|
| 390 | + ///////REGISTRATION EMAIL START////// |
|
| 391 | + $fromEmail = geodir_get_site_email_id(); |
|
| 392 | + $fromEmailName = get_site_emailName(); |
|
| 393 | + $message = __('<p><b>' . __('Your login Information :', 'geodirectory') . '</b></p>
|
|
| 394 | 394 | <p>' . __('Username:', 'geodirectory') . ' ' . $user_login . '</p>
|
| 395 | 395 | <p>' . __('Password:', 'geodirectory') . ' ' . $user_pass . '</p>');
|
| 396 | 396 | |
| 397 | - /////////////customer email////////////// |
|
| 398 | - //geodir_sendEmail($fromEmail,$fromEmailName,$user_email,$userName,$subject,$client_message,$extra='');///To client email |
|
| 399 | - geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $userName, '', $message, '', 'registration', '', $user_id);/// registration email |
|
| 400 | - //////REGISTRATION EMAIL END//////// |
|
| 401 | - } |
|
| 397 | + /////////////customer email////////////// |
|
| 398 | + //geodir_sendEmail($fromEmail,$fromEmailName,$user_email,$userName,$subject,$client_message,$extra='');///To client email |
|
| 399 | + geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $userName, '', $message, '', 'registration', '', $user_id);/// registration email |
|
| 400 | + //////REGISTRATION EMAIL END//////// |
|
| 401 | + } |
|
| 402 | 402 | |
| 403 | - if (get_option('ptthemes_auto_login')) {
|
|
| 404 | - $errors->add('auto_login', __('<strong>SUCCESS</strong>: Thank you for registering, please check your email for your login details.', 'geodirectory'));
|
|
| 405 | - return $errors; |
|
| 406 | - } |
|
| 403 | + if (get_option('ptthemes_auto_login')) {
|
|
| 404 | + $errors->add('auto_login', __('<strong>SUCCESS</strong>: Thank you for registering, please check your email for your login details.', 'geodirectory'));
|
|
| 405 | + return $errors; |
|
| 406 | + } |
|
| 407 | 407 | |
| 408 | - return array($user_id, $user_pass); |
|
| 408 | + return array($user_id, $user_pass); |
|
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | /** |
@@ -418,317 +418,317 @@ discard block |
||
| 418 | 418 | */ |
| 419 | 419 | function geodir_user_signup() |
| 420 | 420 | {
|
| 421 | - global $errors; |
|
| 422 | - $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login'; |
|
| 423 | - |
|
| 424 | - $errors = new WP_Error(); |
|
| 425 | - |
|
| 426 | - if (isset($_GET['key'])) |
|
| 427 | - $action = 'resetpass'; |
|
| 428 | - |
|
| 429 | - // validate action so as to default to the login screen |
|
| 430 | - if (!in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login')) && false === has_filter('login_form_' . $action))
|
|
| 431 | - $action = 'login'; |
|
| 432 | - |
|
| 433 | - nocache_headers(); |
|
| 434 | - |
|
| 435 | - if (defined('RELOCATE')) { // Move flag is set
|
|
| 436 | - if (isset($_SERVER['PATH_INFO']) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF'])) |
|
| 437 | - $_SERVER['PHP_SELF'] = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']); |
|
| 438 | - |
|
| 439 | - $schema = (isset($_SERVER['HTTPS']) && geodir_strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; |
|
| 440 | - if (dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != home_url()) |
|
| 441 | - update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']));
|
|
| 442 | - } |
|
| 443 | - |
|
| 444 | - //Set a cookie now to see if they are supported by the browser. |
|
| 445 | - //setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); |
|
| 446 | - if (SITECOOKIEPATH != COOKIEPATH) |
|
| 447 | - setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); |
|
| 448 | - |
|
| 449 | - /** |
|
| 450 | - * Allow plugins to override the default actions, and to add extra actions if they want on the register/signin page. |
|
| 451 | - * |
|
| 452 | - * Used dynamic hook login_form_$action |
|
| 453 | - * |
|
| 454 | - * @since 1.0.0 |
|
| 455 | - */ |
|
| 456 | - do_action('login_form_' . $action);
|
|
| 457 | - |
|
| 458 | - $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
|
| 459 | - |
|
| 460 | - switch ($action): |
|
| 461 | - |
|
| 462 | - case 'logout' : |
|
| 463 | - //check_admin_referer('log-out');
|
|
| 464 | - wp_logout(); |
|
| 465 | - |
|
| 466 | - $redirect_to = $_SERVER['HTTP_REFERER']; |
|
| 467 | - //$redirect_to = home_url().'/?ptype=login&loggedout=true'; |
|
| 468 | - if (isset($_REQUEST['redirect_to'])) |
|
| 469 | - $redirect_to = $_REQUEST['redirect_to']; |
|
| 470 | - $redirect_to = home_url(); |
|
| 471 | - wp_safe_redirect($redirect_to); |
|
| 472 | - exit(); |
|
| 473 | - |
|
| 474 | - break; |
|
| 475 | - |
|
| 476 | - case 'lostpassword' : |
|
| 477 | - case 'retrievepassword' : |
|
| 478 | - if ($http_post) {
|
|
| 479 | - $errors = geodir_retrieve_password(); |
|
| 480 | - $error_message = isset($errors->errors['invalid_email'][0]) ? $errors->errors['invalid_email'][0] : ''; |
|
| 481 | - if (!is_wp_error($errors)) {
|
|
| 482 | - wp_redirect(geodir_login_url(array('checkemail'=>'confirm')));
|
|
| 483 | - gd_die(); |
|
| 484 | - } else {
|
|
| 485 | - wp_redirect(geodir_login_url(array('forgot' => 1, 'emsg'=>'fw')));
|
|
| 486 | - gd_die(); |
|
| 487 | - } |
|
| 488 | - } |
|
| 489 | - if (isset($_GET['error']) && 'invalidkey' == $_GET['error']) $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.', 'geodirectory'));
|
|
| 490 | - /** |
|
| 491 | - * Called in the geodir_user_signup() function during the lostpassword case. |
|
| 492 | - * |
|
| 493 | - * @since 1.0.0 |
|
| 494 | - */ |
|
| 495 | - do_action('lost_password');
|
|
| 496 | - $message = '<div class="sucess_msg">' . ENTER_USER_EMAIL_NEW_PW_MSG . '</div>'; |
|
| 497 | - $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : ''; |
|
| 498 | - |
|
| 499 | - break; |
|
| 500 | - |
|
| 501 | - case 'resetpass' : |
|
| 502 | - case 'rp' : |
|
| 503 | - $errors = reset_password($_GET['key'], $_GET['login']); |
|
| 504 | - |
|
| 505 | - if (!is_wp_error($errors)) {
|
|
| 506 | - wp_redirect(geodir_login_url(array('checkemail'=>'newpass')));
|
|
| 507 | - exit(); |
|
| 508 | - } |
|
| 509 | - |
|
| 510 | - wp_redirect(geodir_login_url(array('error'=>'invalidkey','action'=>'lostpassword')));
|
|
| 511 | - exit(); |
|
| 512 | - |
|
| 513 | - break; |
|
| 514 | - |
|
| 515 | - case 'register' : |
|
| 516 | - ############################### fix by Stiofan - HebTech.co.uk ### SECURITY FIX ############################## |
|
| 517 | - if (!get_option('users_can_register')) {
|
|
| 518 | - wp_redirect(geodir_login_url(array('emsg'=>'regnewusr')));
|
|
| 519 | - exit(); |
|
| 520 | - } |
|
| 521 | - ############################### fix by Stiofan - HebTech.co.uk ### SECURITY FIX ############################## |
|
| 522 | - global $user_email, $user_fname; |
|
| 523 | - $user_login = ''; |
|
| 524 | - $user_email = ''; |
|
| 525 | - if ($http_post) {
|
|
| 526 | - $user_login = $_POST['user_email']; |
|
| 527 | - $user_email = $_POST['user_email']; |
|
| 528 | - $user_fname = $_POST['user_fname']; |
|
| 529 | - |
|
| 530 | - $errors = geodir_register_new_user($user_login, $user_email); |
|
| 531 | - |
|
| 532 | - /* display error in registration form */ |
|
| 533 | - if (is_wp_error($errors)) {
|
|
| 534 | - $error_code = $errors->get_error_code(); |
|
| 535 | - $error_message = $errors->get_error_message($error_code); |
|
| 536 | - if (!isset($_POST['user_login']) && ($error_code == 'empty_username' || $error_code == 'invalid_username' || $error_code == 'username_exists')) {
|
|
| 537 | - if ($error_code == 'empty_username') {
|
|
| 538 | - $error_code = 'empty_email'; |
|
| 539 | - } else if ($error_code == 'invalid_username') {
|
|
| 540 | - $error_code = 'invalid_email'; |
|
| 541 | - } else if ($error_code == 'username_exists') {
|
|
| 542 | - $error_code = 'email_exists'; |
|
| 543 | - } |
|
| 544 | - |
|
| 545 | - $error_message = $errors->get_error_message($error_code); |
|
| 546 | - } |
|
| 547 | - global $geodir_signup_error; |
|
| 548 | - $geodir_signup_error = $error_message; |
|
| 549 | - } |
|
| 550 | - |
|
| 551 | - if (!is_wp_error($errors)) {
|
|
| 552 | - $_POST['log'] = $user_login; |
|
| 553 | - $_POST['pwd'] = $errors[1]; |
|
| 554 | - $_POST['testcookie'] = 1; |
|
| 555 | - |
|
| 556 | - $secure_cookie = ''; |
|
| 557 | - // If the user wants ssl but the session is not ssl, force a secure cookie. |
|
| 558 | - if (!empty($_POST['log'])) {
|
|
| 559 | - $user_name = sanitize_user($_POST['log']); |
|
| 560 | - if ($user = get_user_by('email', $user_name)) {
|
|
| 561 | - if (get_user_option('use_ssl', $user->ID)) {
|
|
| 562 | - $secure_cookie = true; |
|
| 563 | - force_ssl_admin(true); |
|
| 564 | - } |
|
| 565 | - } |
|
| 566 | - } |
|
| 567 | - |
|
| 568 | - $redirect_to = $_REQUEST['redirect_to']; |
|
| 569 | - |
|
| 570 | - if (!isset($_REQUEST['redirect_to']) || $_REQUEST['redirect_to'] == '') {
|
|
| 571 | - if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], home_url())) {
|
|
| 572 | - $redirect_to = $_SERVER['HTTP_REFERER']; |
|
| 573 | - } else {
|
|
| 574 | - $redirect_to = home_url(); |
|
| 575 | - } |
|
| 576 | - |
|
| 577 | - } |
|
| 578 | - |
|
| 579 | - if (isset($_REQUEST['redirect_add_listing']) && $_REQUEST['redirect_add_listing'] != '') {
|
|
| 580 | - |
|
| 581 | - $redirect_to = $_REQUEST['redirect_add_listing']; |
|
| 582 | - } |
|
| 583 | - |
|
| 584 | - |
|
| 585 | - if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) |
|
| 586 | - $secure_cookie = false; |
|
| 587 | - |
|
| 588 | - $user = wp_signon('', $secure_cookie);
|
|
| 589 | - |
|
| 590 | - $requested_redirect_to = isset($_REQUEST['redirect_add_listing']) && $_REQUEST['redirect_add_listing'] != '' ? $_REQUEST['redirect_add_listing'] : (isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : ''); |
|
| 591 | - /** |
|
| 592 | - * Filter the login redirect URL. |
|
| 593 | - * |
|
| 594 | - * @since 1.4.9 |
|
| 595 | - * @param string $redirect_to The redirect destination URL. |
|
| 596 | - * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter. |
|
| 597 | - * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. |
|
| 598 | - */ |
|
| 599 | - $redirect_to = apply_filters('login_redirect', $redirect_to, $requested_redirect_to, $user);
|
|
| 600 | - |
|
| 601 | - |
|
| 602 | - if (!is_wp_error($user)) {
|
|
| 603 | - wp_safe_redirect($redirect_to); |
|
| 604 | - exit(); |
|
| 605 | - } |
|
| 606 | - exit(); |
|
| 607 | - } |
|
| 608 | - } |
|
| 609 | - |
|
| 610 | - break; |
|
| 611 | - |
|
| 612 | - case 'login' : |
|
| 613 | - default: |
|
| 614 | - $secure_cookie = ''; |
|
| 615 | - |
|
| 616 | - if (!empty($_POST['log'])) {
|
|
| 617 | - $user_name = sanitize_user($_POST['log']); |
|
| 618 | - if ($user = get_user_by('login', $user_name)) {
|
|
| 619 | - |
|
| 620 | - if (get_user_option('use_ssl', $user->ID)) {
|
|
| 621 | - $secure_cookie = true; |
|
| 622 | - force_ssl_admin(true); |
|
| 623 | - } |
|
| 624 | - } elseif ($user = get_user_by('email', $user_name)) {
|
|
| 625 | - $_POST['log'] = $user->user_login; // If signing in by email, set the username for normal WP login |
|
| 626 | - if (get_user_option('use_ssl', $user->ID)) {
|
|
| 627 | - $secure_cookie = true; |
|
| 628 | - force_ssl_admin(true); |
|
| 629 | - } |
|
| 630 | - } |
|
| 631 | - } |
|
| 632 | - /////////////////////////// |
|
| 633 | - if (isset($_REQUEST['redirect_add_listing'])) {
|
|
| 634 | - $_REQUEST['redirect_to'] = $_REQUEST['redirect_add_listing']; |
|
| 635 | - } |
|
| 636 | - |
|
| 637 | - |
|
| 638 | - if (!isset($_REQUEST['redirect_to']) || $_REQUEST['redirect_to'] == '') {
|
|
| 639 | - if (is_user_logged_in()) : |
|
| 640 | - $user_ID = isset($user->ID) ? $user->ID : ''; |
|
| 641 | - $author_link = get_author_posts_url($user_ID); |
|
| 642 | - $default_author_link = geodir_getlink($author_link, array('geodir_dashbord' => 'true', 'stype' => 'gd_place'), false);
|
|
| 643 | - |
|
| 644 | - /** |
|
| 645 | - * Filter the author link. |
|
| 646 | - * |
|
| 647 | - * @since 1.0.0 |
|
| 648 | - * |
|
| 649 | - * @param string $default_author_link Default author link. |
|
| 650 | - * @param int $user_ID The user ID. |
|
| 651 | - */ |
|
| 652 | - $default_author_link = apply_filters('geodir_dashboard_author_link', $default_author_link, $user_ID);
|
|
| 653 | - |
|
| 654 | - $_REQUEST['redirect_to'] = $default_author_link; |
|
| 655 | - else: |
|
| 656 | - $_REQUEST['redirect_to'] = home_url(); |
|
| 657 | - endif; |
|
| 658 | - |
|
| 659 | - } |
|
| 660 | - if (isset($_REQUEST['redirect_to'])) {
|
|
| 661 | - $redirect_to = $_REQUEST['redirect_to']; |
|
| 662 | - // Redirect to https if user wants ssl |
|
| 663 | - if ($secure_cookie && false !== strpos($redirect_to, 'wp-admin')) |
|
| 664 | - $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
|
|
| 665 | - } else {
|
|
| 666 | - $redirect_to = admin_url(); |
|
| 667 | - } |
|
| 668 | - |
|
| 669 | - if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) |
|
| 670 | - $secure_cookie = false; |
|
| 671 | - $user = wp_signon('', $secure_cookie);
|
|
| 672 | - |
|
| 673 | - |
|
| 674 | - /** |
|
| 675 | - * Filter the login redirect URL. |
|
| 676 | - * |
|
| 677 | - * @since 1.4.9 |
|
| 678 | - * @param string $redirect_to The redirect destination URL. |
|
| 679 | - * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. |
|
| 680 | - */ |
|
| 681 | - $redirect_to = apply_filters('login_redirect', $redirect_to, isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : '', $user);
|
|
| 682 | - |
|
| 683 | - if (is_wp_error($user)) {
|
|
| 684 | - if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], 'ptype=property_submit') && $_POST['log'] != '' && $_POST['pwd'] != '') {
|
|
| 685 | - wp_redirect($_SERVER['HTTP_REFERER'] . '&emsg=1'); |
|
| 686 | - } |
|
| 687 | - } |
|
| 688 | - if (!is_wp_error($user)) {
|
|
| 689 | - |
|
| 690 | - // Some servers are not logging the user in properly after wp_signon, se we set the user here. |
|
| 691 | - //wp_set_current_user($user->ID); |
|
| 692 | - //echo '###';exit; |
|
| 693 | - |
|
| 694 | - if ($redirect_to) {
|
|
| 695 | - wp_redirect($redirect_to); |
|
| 696 | - } else {
|
|
| 697 | - wp_redirect(home_url()); |
|
| 698 | - } |
|
| 699 | - gd_die(); |
|
| 700 | - } |
|
| 701 | - |
|
| 702 | - $errors = $user; |
|
| 703 | - |
|
| 704 | - // Clear errors if loggedout is set. |
|
| 705 | - if (!empty($_GET['loggedout'])) |
|
| 706 | - $errors = new WP_Error(); |
|
| 707 | - // If cookies are disabled we can't log in even with a valid user+pass |
|
| 708 | - if (isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE])) |
|
| 709 | - $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress.", 'geodirectory'));
|
|
| 710 | - |
|
| 711 | - // Some parts of this script use the main login form to display a message |
|
| 712 | - if (isset($_GET['loggedout']) && TRUE == $_GET['loggedout']) {
|
|
| 713 | - $successmsg = '<div class="sucess_msg">' . YOU_ARE_LOGED_OUT_MSG . '</div>'; |
|
| 714 | - } elseif (isset($_GET['registration']) && 'disabled' == $_GET['registration']) {
|
|
| 715 | - $successmsg = USER_REG_NOT_ALLOW_MSG; |
|
| 716 | - } elseif (isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail']) {
|
|
| 717 | - $successmsg = EMAIL_CONFIRM_LINK_MSG; |
|
| 718 | - } elseif (isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail']) {
|
|
| 719 | - $successmsg = NEW_PW_EMAIL_MSG; |
|
| 720 | - } elseif (isset($_GET['checkemail']) && 'registered' == $_GET['checkemail']) {
|
|
| 721 | - $successmsg = REG_COMPLETE_MSG; |
|
| 722 | - } |
|
| 723 | - |
|
| 724 | - if ((isset($_POST['log']) && $_POST['log'] != '' && $errors) || ((!isset($_POST['log']) || $_POST['log'] == '') && isset($_REQUEST['testcookie']) && $_REQUEST['testcookie'])) {
|
|
| 725 | - if (isset($_REQUEST['pagetype']) && $_REQUEST['pagetype'] != '') {
|
|
| 726 | - wp_redirect($_REQUEST['pagetype'] . '&emsg=1'); |
|
| 727 | - } else {
|
|
| 728 | - wp_redirect(geodir_login_url(array('logemsg'=>'1','redirect_to'=>urlencode($_REQUEST['redirect_to']))));
|
|
| 729 | - } |
|
| 730 | - gd_die(); |
|
| 731 | - } |
|
| 732 | - break; |
|
| 733 | - endswitch; // end action switch |
|
| 421 | + global $errors; |
|
| 422 | + $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login'; |
|
| 423 | + |
|
| 424 | + $errors = new WP_Error(); |
|
| 425 | + |
|
| 426 | + if (isset($_GET['key'])) |
|
| 427 | + $action = 'resetpass'; |
|
| 428 | + |
|
| 429 | + // validate action so as to default to the login screen |
|
| 430 | + if (!in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login')) && false === has_filter('login_form_' . $action))
|
|
| 431 | + $action = 'login'; |
|
| 432 | + |
|
| 433 | + nocache_headers(); |
|
| 434 | + |
|
| 435 | + if (defined('RELOCATE')) { // Move flag is set
|
|
| 436 | + if (isset($_SERVER['PATH_INFO']) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF'])) |
|
| 437 | + $_SERVER['PHP_SELF'] = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']); |
|
| 438 | + |
|
| 439 | + $schema = (isset($_SERVER['HTTPS']) && geodir_strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; |
|
| 440 | + if (dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != home_url()) |
|
| 441 | + update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']));
|
|
| 442 | + } |
|
| 443 | + |
|
| 444 | + //Set a cookie now to see if they are supported by the browser. |
|
| 445 | + //setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); |
|
| 446 | + if (SITECOOKIEPATH != COOKIEPATH) |
|
| 447 | + setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); |
|
| 448 | + |
|
| 449 | + /** |
|
| 450 | + * Allow plugins to override the default actions, and to add extra actions if they want on the register/signin page. |
|
| 451 | + * |
|
| 452 | + * Used dynamic hook login_form_$action |
|
| 453 | + * |
|
| 454 | + * @since 1.0.0 |
|
| 455 | + */ |
|
| 456 | + do_action('login_form_' . $action);
|
|
| 457 | + |
|
| 458 | + $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
|
| 459 | + |
|
| 460 | + switch ($action): |
|
| 461 | + |
|
| 462 | + case 'logout' : |
|
| 463 | + //check_admin_referer('log-out');
|
|
| 464 | + wp_logout(); |
|
| 465 | + |
|
| 466 | + $redirect_to = $_SERVER['HTTP_REFERER']; |
|
| 467 | + //$redirect_to = home_url().'/?ptype=login&loggedout=true'; |
|
| 468 | + if (isset($_REQUEST['redirect_to'])) |
|
| 469 | + $redirect_to = $_REQUEST['redirect_to']; |
|
| 470 | + $redirect_to = home_url(); |
|
| 471 | + wp_safe_redirect($redirect_to); |
|
| 472 | + exit(); |
|
| 473 | + |
|
| 474 | + break; |
|
| 475 | + |
|
| 476 | + case 'lostpassword' : |
|
| 477 | + case 'retrievepassword' : |
|
| 478 | + if ($http_post) {
|
|
| 479 | + $errors = geodir_retrieve_password(); |
|
| 480 | + $error_message = isset($errors->errors['invalid_email'][0]) ? $errors->errors['invalid_email'][0] : ''; |
|
| 481 | + if (!is_wp_error($errors)) {
|
|
| 482 | + wp_redirect(geodir_login_url(array('checkemail'=>'confirm')));
|
|
| 483 | + gd_die(); |
|
| 484 | + } else {
|
|
| 485 | + wp_redirect(geodir_login_url(array('forgot' => 1, 'emsg'=>'fw')));
|
|
| 486 | + gd_die(); |
|
| 487 | + } |
|
| 488 | + } |
|
| 489 | + if (isset($_GET['error']) && 'invalidkey' == $_GET['error']) $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.', 'geodirectory'));
|
|
| 490 | + /** |
|
| 491 | + * Called in the geodir_user_signup() function during the lostpassword case. |
|
| 492 | + * |
|
| 493 | + * @since 1.0.0 |
|
| 494 | + */ |
|
| 495 | + do_action('lost_password');
|
|
| 496 | + $message = '<div class="sucess_msg">' . ENTER_USER_EMAIL_NEW_PW_MSG . '</div>'; |
|
| 497 | + $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : ''; |
|
| 498 | + |
|
| 499 | + break; |
|
| 500 | + |
|
| 501 | + case 'resetpass' : |
|
| 502 | + case 'rp' : |
|
| 503 | + $errors = reset_password($_GET['key'], $_GET['login']); |
|
| 504 | + |
|
| 505 | + if (!is_wp_error($errors)) {
|
|
| 506 | + wp_redirect(geodir_login_url(array('checkemail'=>'newpass')));
|
|
| 507 | + exit(); |
|
| 508 | + } |
|
| 509 | + |
|
| 510 | + wp_redirect(geodir_login_url(array('error'=>'invalidkey','action'=>'lostpassword')));
|
|
| 511 | + exit(); |
|
| 512 | + |
|
| 513 | + break; |
|
| 514 | + |
|
| 515 | + case 'register' : |
|
| 516 | + ############################### fix by Stiofan - HebTech.co.uk ### SECURITY FIX ############################## |
|
| 517 | + if (!get_option('users_can_register')) {
|
|
| 518 | + wp_redirect(geodir_login_url(array('emsg'=>'regnewusr')));
|
|
| 519 | + exit(); |
|
| 520 | + } |
|
| 521 | + ############################### fix by Stiofan - HebTech.co.uk ### SECURITY FIX ############################## |
|
| 522 | + global $user_email, $user_fname; |
|
| 523 | + $user_login = ''; |
|
| 524 | + $user_email = ''; |
|
| 525 | + if ($http_post) {
|
|
| 526 | + $user_login = $_POST['user_email']; |
|
| 527 | + $user_email = $_POST['user_email']; |
|
| 528 | + $user_fname = $_POST['user_fname']; |
|
| 529 | + |
|
| 530 | + $errors = geodir_register_new_user($user_login, $user_email); |
|
| 531 | + |
|
| 532 | + /* display error in registration form */ |
|
| 533 | + if (is_wp_error($errors)) {
|
|
| 534 | + $error_code = $errors->get_error_code(); |
|
| 535 | + $error_message = $errors->get_error_message($error_code); |
|
| 536 | + if (!isset($_POST['user_login']) && ($error_code == 'empty_username' || $error_code == 'invalid_username' || $error_code == 'username_exists')) {
|
|
| 537 | + if ($error_code == 'empty_username') {
|
|
| 538 | + $error_code = 'empty_email'; |
|
| 539 | + } else if ($error_code == 'invalid_username') {
|
|
| 540 | + $error_code = 'invalid_email'; |
|
| 541 | + } else if ($error_code == 'username_exists') {
|
|
| 542 | + $error_code = 'email_exists'; |
|
| 543 | + } |
|
| 544 | + |
|
| 545 | + $error_message = $errors->get_error_message($error_code); |
|
| 546 | + } |
|
| 547 | + global $geodir_signup_error; |
|
| 548 | + $geodir_signup_error = $error_message; |
|
| 549 | + } |
|
| 550 | + |
|
| 551 | + if (!is_wp_error($errors)) {
|
|
| 552 | + $_POST['log'] = $user_login; |
|
| 553 | + $_POST['pwd'] = $errors[1]; |
|
| 554 | + $_POST['testcookie'] = 1; |
|
| 555 | + |
|
| 556 | + $secure_cookie = ''; |
|
| 557 | + // If the user wants ssl but the session is not ssl, force a secure cookie. |
|
| 558 | + if (!empty($_POST['log'])) {
|
|
| 559 | + $user_name = sanitize_user($_POST['log']); |
|
| 560 | + if ($user = get_user_by('email', $user_name)) {
|
|
| 561 | + if (get_user_option('use_ssl', $user->ID)) {
|
|
| 562 | + $secure_cookie = true; |
|
| 563 | + force_ssl_admin(true); |
|
| 564 | + } |
|
| 565 | + } |
|
| 566 | + } |
|
| 567 | + |
|
| 568 | + $redirect_to = $_REQUEST['redirect_to']; |
|
| 569 | + |
|
| 570 | + if (!isset($_REQUEST['redirect_to']) || $_REQUEST['redirect_to'] == '') {
|
|
| 571 | + if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], home_url())) {
|
|
| 572 | + $redirect_to = $_SERVER['HTTP_REFERER']; |
|
| 573 | + } else {
|
|
| 574 | + $redirect_to = home_url(); |
|
| 575 | + } |
|
| 576 | + |
|
| 577 | + } |
|
| 578 | + |
|
| 579 | + if (isset($_REQUEST['redirect_add_listing']) && $_REQUEST['redirect_add_listing'] != '') {
|
|
| 580 | + |
|
| 581 | + $redirect_to = $_REQUEST['redirect_add_listing']; |
|
| 582 | + } |
|
| 583 | + |
|
| 584 | + |
|
| 585 | + if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) |
|
| 586 | + $secure_cookie = false; |
|
| 587 | + |
|
| 588 | + $user = wp_signon('', $secure_cookie);
|
|
| 589 | + |
|
| 590 | + $requested_redirect_to = isset($_REQUEST['redirect_add_listing']) && $_REQUEST['redirect_add_listing'] != '' ? $_REQUEST['redirect_add_listing'] : (isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : ''); |
|
| 591 | + /** |
|
| 592 | + * Filter the login redirect URL. |
|
| 593 | + * |
|
| 594 | + * @since 1.4.9 |
|
| 595 | + * @param string $redirect_to The redirect destination URL. |
|
| 596 | + * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter. |
|
| 597 | + * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. |
|
| 598 | + */ |
|
| 599 | + $redirect_to = apply_filters('login_redirect', $redirect_to, $requested_redirect_to, $user);
|
|
| 600 | + |
|
| 601 | + |
|
| 602 | + if (!is_wp_error($user)) {
|
|
| 603 | + wp_safe_redirect($redirect_to); |
|
| 604 | + exit(); |
|
| 605 | + } |
|
| 606 | + exit(); |
|
| 607 | + } |
|
| 608 | + } |
|
| 609 | + |
|
| 610 | + break; |
|
| 611 | + |
|
| 612 | + case 'login' : |
|
| 613 | + default: |
|
| 614 | + $secure_cookie = ''; |
|
| 615 | + |
|
| 616 | + if (!empty($_POST['log'])) {
|
|
| 617 | + $user_name = sanitize_user($_POST['log']); |
|
| 618 | + if ($user = get_user_by('login', $user_name)) {
|
|
| 619 | + |
|
| 620 | + if (get_user_option('use_ssl', $user->ID)) {
|
|
| 621 | + $secure_cookie = true; |
|
| 622 | + force_ssl_admin(true); |
|
| 623 | + } |
|
| 624 | + } elseif ($user = get_user_by('email', $user_name)) {
|
|
| 625 | + $_POST['log'] = $user->user_login; // If signing in by email, set the username for normal WP login |
|
| 626 | + if (get_user_option('use_ssl', $user->ID)) {
|
|
| 627 | + $secure_cookie = true; |
|
| 628 | + force_ssl_admin(true); |
|
| 629 | + } |
|
| 630 | + } |
|
| 631 | + } |
|
| 632 | + /////////////////////////// |
|
| 633 | + if (isset($_REQUEST['redirect_add_listing'])) {
|
|
| 634 | + $_REQUEST['redirect_to'] = $_REQUEST['redirect_add_listing']; |
|
| 635 | + } |
|
| 636 | + |
|
| 637 | + |
|
| 638 | + if (!isset($_REQUEST['redirect_to']) || $_REQUEST['redirect_to'] == '') {
|
|
| 639 | + if (is_user_logged_in()) : |
|
| 640 | + $user_ID = isset($user->ID) ? $user->ID : ''; |
|
| 641 | + $author_link = get_author_posts_url($user_ID); |
|
| 642 | + $default_author_link = geodir_getlink($author_link, array('geodir_dashbord' => 'true', 'stype' => 'gd_place'), false);
|
|
| 643 | + |
|
| 644 | + /** |
|
| 645 | + * Filter the author link. |
|
| 646 | + * |
|
| 647 | + * @since 1.0.0 |
|
| 648 | + * |
|
| 649 | + * @param string $default_author_link Default author link. |
|
| 650 | + * @param int $user_ID The user ID. |
|
| 651 | + */ |
|
| 652 | + $default_author_link = apply_filters('geodir_dashboard_author_link', $default_author_link, $user_ID);
|
|
| 653 | + |
|
| 654 | + $_REQUEST['redirect_to'] = $default_author_link; |
|
| 655 | + else: |
|
| 656 | + $_REQUEST['redirect_to'] = home_url(); |
|
| 657 | + endif; |
|
| 658 | + |
|
| 659 | + } |
|
| 660 | + if (isset($_REQUEST['redirect_to'])) {
|
|
| 661 | + $redirect_to = $_REQUEST['redirect_to']; |
|
| 662 | + // Redirect to https if user wants ssl |
|
| 663 | + if ($secure_cookie && false !== strpos($redirect_to, 'wp-admin')) |
|
| 664 | + $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
|
|
| 665 | + } else {
|
|
| 666 | + $redirect_to = admin_url(); |
|
| 667 | + } |
|
| 668 | + |
|
| 669 | + if (!$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && (0 !== strpos($redirect_to, 'https')) && (0 === strpos($redirect_to, 'http'))) |
|
| 670 | + $secure_cookie = false; |
|
| 671 | + $user = wp_signon('', $secure_cookie);
|
|
| 672 | + |
|
| 673 | + |
|
| 674 | + /** |
|
| 675 | + * Filter the login redirect URL. |
|
| 676 | + * |
|
| 677 | + * @since 1.4.9 |
|
| 678 | + * @param string $redirect_to The redirect destination URL. |
|
| 679 | + * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. |
|
| 680 | + */ |
|
| 681 | + $redirect_to = apply_filters('login_redirect', $redirect_to, isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : '', $user);
|
|
| 682 | + |
|
| 683 | + if (is_wp_error($user)) {
|
|
| 684 | + if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], 'ptype=property_submit') && $_POST['log'] != '' && $_POST['pwd'] != '') {
|
|
| 685 | + wp_redirect($_SERVER['HTTP_REFERER'] . '&emsg=1'); |
|
| 686 | + } |
|
| 687 | + } |
|
| 688 | + if (!is_wp_error($user)) {
|
|
| 689 | + |
|
| 690 | + // Some servers are not logging the user in properly after wp_signon, se we set the user here. |
|
| 691 | + //wp_set_current_user($user->ID); |
|
| 692 | + //echo '###';exit; |
|
| 693 | + |
|
| 694 | + if ($redirect_to) {
|
|
| 695 | + wp_redirect($redirect_to); |
|
| 696 | + } else {
|
|
| 697 | + wp_redirect(home_url()); |
|
| 698 | + } |
|
| 699 | + gd_die(); |
|
| 700 | + } |
|
| 701 | + |
|
| 702 | + $errors = $user; |
|
| 703 | + |
|
| 704 | + // Clear errors if loggedout is set. |
|
| 705 | + if (!empty($_GET['loggedout'])) |
|
| 706 | + $errors = new WP_Error(); |
|
| 707 | + // If cookies are disabled we can't log in even with a valid user+pass |
|
| 708 | + if (isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE])) |
|
| 709 | + $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress.", 'geodirectory'));
|
|
| 710 | + |
|
| 711 | + // Some parts of this script use the main login form to display a message |
|
| 712 | + if (isset($_GET['loggedout']) && TRUE == $_GET['loggedout']) {
|
|
| 713 | + $successmsg = '<div class="sucess_msg">' . YOU_ARE_LOGED_OUT_MSG . '</div>'; |
|
| 714 | + } elseif (isset($_GET['registration']) && 'disabled' == $_GET['registration']) {
|
|
| 715 | + $successmsg = USER_REG_NOT_ALLOW_MSG; |
|
| 716 | + } elseif (isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail']) {
|
|
| 717 | + $successmsg = EMAIL_CONFIRM_LINK_MSG; |
|
| 718 | + } elseif (isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail']) {
|
|
| 719 | + $successmsg = NEW_PW_EMAIL_MSG; |
|
| 720 | + } elseif (isset($_GET['checkemail']) && 'registered' == $_GET['checkemail']) {
|
|
| 721 | + $successmsg = REG_COMPLETE_MSG; |
|
| 722 | + } |
|
| 723 | + |
|
| 724 | + if ((isset($_POST['log']) && $_POST['log'] != '' && $errors) || ((!isset($_POST['log']) || $_POST['log'] == '') && isset($_REQUEST['testcookie']) && $_REQUEST['testcookie'])) {
|
|
| 725 | + if (isset($_REQUEST['pagetype']) && $_REQUEST['pagetype'] != '') {
|
|
| 726 | + wp_redirect($_REQUEST['pagetype'] . '&emsg=1'); |
|
| 727 | + } else {
|
|
| 728 | + wp_redirect(geodir_login_url(array('logemsg'=>'1','redirect_to'=>urlencode($_REQUEST['redirect_to']))));
|
|
| 729 | + } |
|
| 730 | + gd_die(); |
|
| 731 | + } |
|
| 732 | + break; |
|
| 733 | + endswitch; // end action switch |
|
| 734 | 734 | } |
| 735 | 735 | \ No newline at end of file |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | if ($redirect) {
|
| 23 | 23 | ?> |
| 24 | 24 | <script type="text/javascript"> |
| 25 | - window.location.href = '<?php echo geodir_login_url();?>'; |
|
| 25 | + window.location.href = '<?php echo geodir_login_url(); ?>'; |
|
| 26 | 26 | </script> |
| 27 | 27 | <?php |
| 28 | 28 | } else |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
|
| 48 | 48 | exit(); |
| 49 | 49 | } else {
|
| 50 | - wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
|
| 50 | + wp_redirect('https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
|
| 51 | 51 | exit(); |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @param string $message Login message. |
| 61 | 61 | */ |
| 62 | 62 | $message = apply_filters('login_message', $message);
|
| 63 | - if (!empty($message)) echo $message . "\n"; |
|
| 63 | + if (!empty($message)) echo $message."\n"; |
|
| 64 | 64 | |
| 65 | 65 | } |
| 66 | 66 | |
@@ -208,9 +208,9 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | wp_set_password($new_pass, $user->ID); |
| 210 | 210 | update_user_meta($user->ID, 'default_password_nag', true); //Set up the Password change nag. |
| 211 | - $message = '<p><b>' . __('Your login Information :', 'geodirectory') . '</b></p>';
|
|
| 212 | - $message .= '<p>' . sprintf(__('Username: %s', 'geodirectory'), $user->user_login) . "</p>";
|
|
| 213 | - $message .= '<p>' . sprintf(__('Password: %s', 'geodirectory'), $new_pass) . "</p>";
|
|
| 211 | + $message = '<p><b>'.__('Your login Information :', 'geodirectory').'</b></p>';
|
|
| 212 | + $message .= '<p>'.sprintf(__('Username: %s', 'geodirectory'), $user->user_login)."</p>";
|
|
| 213 | + $message .= '<p>'.sprintf(__('Password: %s', 'geodirectory'), $new_pass)."</p>";
|
|
| 214 | 214 | //$message .= '<p>You can login to : <a href="'.home_url().'/?ptype=login' . "\">Login</a> or the URL is : ".home_url()."/?ptype=login</p>"; |
| 215 | 215 | //$message .= '<p>Thank You,<br> '.get_option('blogname').'</p>';
|
| 216 | 216 | $user_email = $user_data->user_email; |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | $message = apply_filters('password_reset_message', $message, $new_pass);
|
| 238 | 238 | //geodir_sendEmail($fromEmail,$fromEmailName,$user_email,$user_name,$title,$message,$extra='');///forgot password email |
| 239 | - geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $user_name, $title, $message, $extra = '', 'forgot_password', $post_id = '', $user->ID);///forgot password email |
|
| 239 | + geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $user_name, $title, $message, $extra = '', 'forgot_password', $post_id = '', $user->ID); ///forgot password email |
|
| 240 | 240 | |
| 241 | 241 | return true; |
| 242 | 242 | } |
@@ -390,13 +390,13 @@ discard block |
||
| 390 | 390 | ///////REGISTRATION EMAIL START////// |
| 391 | 391 | $fromEmail = geodir_get_site_email_id(); |
| 392 | 392 | $fromEmailName = get_site_emailName(); |
| 393 | - $message = __('<p><b>' . __('Your login Information :', 'geodirectory') . '</b></p>
|
|
| 394 | -<p>' . __('Username:', 'geodirectory') . ' ' . $user_login . '</p>
|
|
| 395 | -<p>' . __('Password:', 'geodirectory') . ' ' . $user_pass . '</p>');
|
|
| 393 | + $message = __('<p><b>'.__('Your login Information :', 'geodirectory').'</b></p>
|
|
| 394 | +<p>' . __('Username:', 'geodirectory').' '.$user_login.'</p>
|
|
| 395 | +<p>' . __('Password:', 'geodirectory').' '.$user_pass.'</p>');
|
|
| 396 | 396 | |
| 397 | 397 | /////////////customer email////////////// |
| 398 | 398 | //geodir_sendEmail($fromEmail,$fromEmailName,$user_email,$userName,$subject,$client_message,$extra='');///To client email |
| 399 | - geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $userName, '', $message, '', 'registration', '', $user_id);/// registration email |
|
| 399 | + geodir_sendEmail($fromEmail, $fromEmailName, $user_email, $userName, '', $message, '', 'registration', '', $user_id); /// registration email |
|
| 400 | 400 | //////REGISTRATION EMAIL END//////// |
| 401 | 401 | } |
| 402 | 402 | |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | $action = 'resetpass'; |
| 428 | 428 | |
| 429 | 429 | // validate action so as to default to the login screen |
| 430 | - if (!in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login')) && false === has_filter('login_form_' . $action))
|
|
| 430 | + if (!in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login')) && false === has_filter('login_form_'.$action))
|
|
| 431 | 431 | $action = 'login'; |
| 432 | 432 | |
| 433 | 433 | nocache_headers(); |
@@ -437,8 +437,8 @@ discard block |
||
| 437 | 437 | $_SERVER['PHP_SELF'] = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']); |
| 438 | 438 | |
| 439 | 439 | $schema = (isset($_SERVER['HTTPS']) && geodir_strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://'; |
| 440 | - if (dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != home_url()) |
|
| 441 | - update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']));
|
|
| 440 | + if (dirname($schema.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']) != home_url()) |
|
| 441 | + update_option('siteurl', dirname($schema.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']));
|
|
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | //Set a cookie now to see if they are supported by the browser. |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | * |
| 454 | 454 | * @since 1.0.0 |
| 455 | 455 | */ |
| 456 | - do_action('login_form_' . $action);
|
|
| 456 | + do_action('login_form_'.$action);
|
|
| 457 | 457 | |
| 458 | 458 | $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
| 459 | 459 | |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | * @since 1.0.0 |
| 494 | 494 | */ |
| 495 | 495 | do_action('lost_password');
|
| 496 | - $message = '<div class="sucess_msg">' . ENTER_USER_EMAIL_NEW_PW_MSG . '</div>'; |
|
| 496 | + $message = '<div class="sucess_msg">'.ENTER_USER_EMAIL_NEW_PW_MSG.'</div>'; |
|
| 497 | 497 | $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : ''; |
| 498 | 498 | |
| 499 | 499 | break; |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | exit(); |
| 508 | 508 | } |
| 509 | 509 | |
| 510 | - wp_redirect(geodir_login_url(array('error'=>'invalidkey','action'=>'lostpassword')));
|
|
| 510 | + wp_redirect(geodir_login_url(array('error'=>'invalidkey', 'action'=>'lostpassword')));
|
|
| 511 | 511 | exit(); |
| 512 | 512 | |
| 513 | 513 | break; |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | |
| 683 | 683 | if (is_wp_error($user)) {
|
| 684 | 684 | if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], 'ptype=property_submit') && $_POST['log'] != '' && $_POST['pwd'] != '') {
|
| 685 | - wp_redirect($_SERVER['HTTP_REFERER'] . '&emsg=1'); |
|
| 685 | + wp_redirect($_SERVER['HTTP_REFERER'].'&emsg=1'); |
|
| 686 | 686 | } |
| 687 | 687 | } |
| 688 | 688 | if (!is_wp_error($user)) {
|
@@ -710,7 +710,7 @@ discard block |
||
| 710 | 710 | |
| 711 | 711 | // Some parts of this script use the main login form to display a message |
| 712 | 712 | if (isset($_GET['loggedout']) && TRUE == $_GET['loggedout']) {
|
| 713 | - $successmsg = '<div class="sucess_msg">' . YOU_ARE_LOGED_OUT_MSG . '</div>'; |
|
| 713 | + $successmsg = '<div class="sucess_msg">'.YOU_ARE_LOGED_OUT_MSG.'</div>'; |
|
| 714 | 714 | } elseif (isset($_GET['registration']) && 'disabled' == $_GET['registration']) {
|
| 715 | 715 | $successmsg = USER_REG_NOT_ALLOW_MSG; |
| 716 | 716 | } elseif (isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail']) {
|
@@ -723,9 +723,9 @@ discard block |
||
| 723 | 723 | |
| 724 | 724 | if ((isset($_POST['log']) && $_POST['log'] != '' && $errors) || ((!isset($_POST['log']) || $_POST['log'] == '') && isset($_REQUEST['testcookie']) && $_REQUEST['testcookie'])) {
|
| 725 | 725 | if (isset($_REQUEST['pagetype']) && $_REQUEST['pagetype'] != '') {
|
| 726 | - wp_redirect($_REQUEST['pagetype'] . '&emsg=1'); |
|
| 726 | + wp_redirect($_REQUEST['pagetype'].'&emsg=1'); |
|
| 727 | 727 | } else {
|
| 728 | - wp_redirect(geodir_login_url(array('logemsg'=>'1','redirect_to'=>urlencode($_REQUEST['redirect_to']))));
|
|
| 728 | + wp_redirect(geodir_login_url(array('logemsg'=>'1', 'redirect_to'=>urlencode($_REQUEST['redirect_to']))));
|
|
| 729 | 729 | } |
| 730 | 730 | gd_die(); |
| 731 | 731 | } |
@@ -393,7 +393,7 @@ |
||
| 393 | 393 | * @global object $post The current post object. |
| 394 | 394 | * @global object $geodirectory Not yet implemented. |
| 395 | 395 | * @param string $slug The template slug. |
| 396 | - * @param null $name The template name. |
|
| 396 | + * @param string $name The template name. |
|
| 397 | 397 | */ |
| 398 | 398 | function geodir_get_template_part($slug = '', $name = NULL) |
| 399 | 399 | {
|
@@ -47,16 +47,19 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | if ($listing_page_id != '' && (is_page($listing_page_id) || ($is_wpml && !empty($wp->query_vars['page_id']))) && isset($_REQUEST['listing_type']) |
| 49 | 49 | && in_array($_REQUEST['listing_type'], geodir_get_posttypes()) |
| 50 | - ) |
|
| 51 | - $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 50 | + ) { |
|
| 51 | + $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 52 | + } |
|
| 52 | 53 | if (empty($post_type) && !isset($_REQUEST['pid'])) {
|
| 53 | 54 | $pagename = $wp->query_vars['pagename']; |
| 54 | 55 | $post_types = geodir_get_posttypes(); |
| 55 | - if (!empty($post_types)) |
|
| 56 | - $post_type = $post_types[0]; |
|
| 56 | + if (!empty($post_types)) { |
|
| 57 | + $post_type = $post_types[0]; |
|
| 58 | + } |
|
| 57 | 59 | |
| 58 | - if($sc_post_type != '' ) |
|
| 59 | - $post_type = $sc_post_type; |
|
| 60 | + if($sc_post_type != '' ) { |
|
| 61 | + $post_type = $sc_post_type; |
|
| 62 | + } |
|
| 60 | 63 | |
| 61 | 64 | if ($is_wpml && !empty($wp->query_vars['page_id'])) {
|
| 62 | 65 | wp_redirect(geodir_getlink(get_permalink($wp->query_vars['page_id']), array('listing_type' => $post_type)));
|
@@ -71,14 +74,16 @@ discard block |
||
| 71 | 74 | $success_page_id = geodir_success_page_id(); |
| 72 | 75 | if ($success_page_id != '' && is_page($success_page_id) && isset($_REQUEST['listing_type']) |
| 73 | 76 | && in_array($_REQUEST['listing_type'], geodir_get_posttypes()) |
| 74 | - ) |
|
| 75 | - $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 77 | + ) { |
|
| 78 | + $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 79 | + } |
|
| 76 | 80 | return $template = locate_template(array("geodirectory/{$post_type}-success.php", "geodirectory/listing-success.php"));
|
| 77 | 81 | break; |
| 78 | 82 | case 'detail': |
| 79 | 83 | case 'preview': |
| 80 | - if (in_array(get_post_type(), geodir_get_posttypes())) |
|
| 81 | - $post_type = get_post_type(); |
|
| 84 | + if (in_array(get_post_type(), geodir_get_posttypes())) { |
|
| 85 | + $post_type = get_post_type(); |
|
| 86 | + } |
|
| 82 | 87 | return $template = locate_template(array("geodirectory/single-{$post_type}.php", "geodirectory/listing-detail.php"));
|
| 83 | 88 | break; |
| 84 | 89 | case 'listing': |
@@ -184,7 +189,9 @@ discard block |
||
| 184 | 189 | |
| 185 | 190 | $template = geodir_locate_template('signup');
|
| 186 | 191 | |
| 187 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-signup.php'; |
|
| 192 | + if (!$template) { |
|
| 193 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-signup.php'; |
|
| 194 | + } |
|
| 188 | 195 | |
| 189 | 196 | /** |
| 190 | 197 | * Filter the signup template path. |
@@ -202,7 +209,9 @@ discard block |
||
| 202 | 209 | |
| 203 | 210 | $template = geodir_locate_template('information');
|
| 204 | 211 | |
| 205 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 212 | + if (!$template) { |
|
| 213 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 214 | + } |
|
| 206 | 215 | /** |
| 207 | 216 | * Filter the information template path. |
| 208 | 217 | * |
@@ -219,7 +228,9 @@ discard block |
||
| 219 | 228 | if (!$is_current_user_owner) {
|
| 220 | 229 | $template = geodir_locate_template('information');
|
| 221 | 230 | |
| 222 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 231 | + if (!$template) { |
|
| 232 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 233 | + } |
|
| 223 | 234 | /** |
| 224 | 235 | * Filter the information template path. |
| 225 | 236 | * |
@@ -241,7 +252,9 @@ discard block |
||
| 241 | 252 | |
| 242 | 253 | $template = geodir_locate_template('add-listing');
|
| 243 | 254 | |
| 244 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/add-listing.php'; |
|
| 255 | + if (!$template) { |
|
| 256 | + $template = geodir_plugin_path() . '/geodirectory-templates/add-listing.php'; |
|
| 257 | + } |
|
| 245 | 258 | /** |
| 246 | 259 | * Filter the add listing template path. |
| 247 | 260 | * |
@@ -258,7 +271,9 @@ discard block |
||
| 258 | 271 | |
| 259 | 272 | $template = geodir_locate_template('preview');
|
| 260 | 273 | |
| 261 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 274 | + if (!$template) { |
|
| 275 | + $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 276 | + } |
|
| 262 | 277 | /** |
| 263 | 278 | * Filter the preview template path. |
| 264 | 279 | * |
@@ -274,7 +289,9 @@ discard block |
||
| 274 | 289 | |
| 275 | 290 | $template = geodir_locate_template('success');
|
| 276 | 291 | |
| 277 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-success.php'; |
|
| 292 | + if (!$template) { |
|
| 293 | + $template = geodir_plugin_path() . '/geodirectory-templates/listing-success.php'; |
|
| 294 | + } |
|
| 278 | 295 | /** |
| 279 | 296 | * Filter the success template path. |
| 280 | 297 | * |
@@ -289,7 +306,9 @@ discard block |
||
| 289 | 306 | |
| 290 | 307 | $template = geodir_locate_template('detail');
|
| 291 | 308 | |
| 292 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 309 | + if (!$template) { |
|
| 310 | + $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 311 | + } |
|
| 293 | 312 | /** |
| 294 | 313 | * Filter the detail template path. |
| 295 | 314 | * |
@@ -304,7 +323,9 @@ discard block |
||
| 304 | 323 | |
| 305 | 324 | $template = geodir_locate_template('listing');
|
| 306 | 325 | |
| 307 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-listing.php'; |
|
| 326 | + if (!$template) { |
|
| 327 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-listing.php'; |
|
| 328 | + } |
|
| 308 | 329 | /** |
| 309 | 330 | * Filter the listing template path. |
| 310 | 331 | * |
@@ -319,7 +340,9 @@ discard block |
||
| 319 | 340 | |
| 320 | 341 | $template = geodir_locate_template('search');
|
| 321 | 342 | |
| 322 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-search.php'; |
|
| 343 | + if (!$template) { |
|
| 344 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-search.php'; |
|
| 345 | + } |
|
| 323 | 346 | /** |
| 324 | 347 | * Filter the search template path. |
| 325 | 348 | * |
@@ -334,7 +357,9 @@ discard block |
||
| 334 | 357 | |
| 335 | 358 | $template = geodir_locate_template('author');
|
| 336 | 359 | |
| 337 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-author.php'; |
|
| 360 | + if (!$template) { |
|
| 361 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-author.php'; |
|
| 362 | + } |
|
| 338 | 363 | /** |
| 339 | 364 | * Filter the author template path. |
| 340 | 365 | * |
@@ -355,7 +380,9 @@ discard block |
||
| 355 | 380 | |
| 356 | 381 | $template = geodir_locate_template('geodir-home');
|
| 357 | 382 | |
| 358 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-home.php'; |
|
| 383 | + if (!$template) { |
|
| 384 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-home.php'; |
|
| 385 | + } |
|
| 359 | 386 | /** |
| 360 | 387 | * Filter the home page template path. |
| 361 | 388 | * |
@@ -368,7 +395,9 @@ discard block |
||
| 368 | 395 | |
| 369 | 396 | $template = geodir_locate_template('location');
|
| 370 | 397 | |
| 371 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-location.php'; |
|
| 398 | + if (!$template) { |
|
| 399 | + $template = geodir_plugin_path() . '/geodirectory-templates/geodir-location.php'; |
|
| 400 | + } |
|
| 372 | 401 | /** |
| 373 | 402 | * Filter the location template path. |
| 374 | 403 | * |
@@ -377,8 +406,9 @@ discard block |
||
| 377 | 406 | */ |
| 378 | 407 | return $template = apply_filters('geodir_template_location', $template);
|
| 379 | 408 | |
| 380 | - } else |
|
| 381 | - return $template; |
|
| 409 | + } else { |
|
| 410 | + return $template; |
|
| 411 | + } |
|
| 382 | 412 | |
| 383 | 413 | } |
| 384 | 414 | |
@@ -432,8 +462,10 @@ discard block |
||
| 432 | 462 | * @since 1.0.0 |
| 433 | 463 | */ |
| 434 | 464 | include($template); |
| 435 | - else: |
|
| 436 | - locate_template(array("geodirectory/" . $template_name), true, false);
|
|
| 465 | + else { |
|
| 466 | + : |
|
| 467 | + locate_template(array("geodirectory/" . $template_name), true, false); |
|
| 468 | + } |
|
| 437 | 469 | endif; |
| 438 | 470 | |
| 439 | 471 | } |
@@ -19,18 +19,18 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | function geodir_locate_template($template = '') |
| 21 | 21 | {
|
| 22 | - global $post_type, $wp, $post; |
|
| 23 | - $fields = array(); |
|
| 22 | + global $post_type, $wp, $post; |
|
| 23 | + $fields = array(); |
|
| 24 | 24 | |
| 25 | - switch ($template): |
|
| 26 | - case 'signup': |
|
| 27 | - return $template = locate_template(array("geodirectory/geodir-signup.php"));
|
|
| 28 | - break; |
|
| 29 | - case 'add-listing': |
|
| 25 | + switch ($template): |
|
| 26 | + case 'signup': |
|
| 27 | + return $template = locate_template(array("geodirectory/geodir-signup.php"));
|
|
| 28 | + break; |
|
| 29 | + case 'add-listing': |
|
| 30 | 30 | |
| 31 | - $sc_post_type = ''; |
|
| 31 | + $sc_post_type = ''; |
|
| 32 | 32 | if (is_page() && isset($post->post_content) && has_shortcode($post->post_content, 'gd_add_listing')) {
|
| 33 | - $listing_page_id = $post->ID; |
|
| 33 | + $listing_page_id = $post->ID; |
|
| 34 | 34 | |
| 35 | 35 | $regex_pattern = get_shortcode_regex(); |
| 36 | 36 | preg_match('/'.$regex_pattern.'/s', $post->post_content, $regex_matches);
|
@@ -39,100 +39,100 @@ discard block |
||
| 39 | 39 | $shortcode_atts = shortcode_parse_atts($regex_matches[3]); |
| 40 | 40 | $sc_post_type = !empty($shortcode_atts) && isset($shortcode_atts['listing_type']) && !empty($shortcode_atts['listing_type']) ? $shortcode_atts['listing_type'] : ''; |
| 41 | 41 | } |
| 42 | - } else {
|
|
| 43 | - $listing_page_id = geodir_add_listing_page_id(); |
|
| 44 | - } |
|
| 42 | + } else {
|
|
| 43 | + $listing_page_id = geodir_add_listing_page_id(); |
|
| 44 | + } |
|
| 45 | 45 | |
| 46 | 46 | $is_wpml = function_exists('icl_object_id') ? true : false;
|
| 47 | 47 | |
| 48 | - if ($listing_page_id != '' && (is_page($listing_page_id) || ($is_wpml && !empty($wp->query_vars['page_id']))) && isset($_REQUEST['listing_type']) |
|
| 49 | - && in_array($_REQUEST['listing_type'], geodir_get_posttypes()) |
|
| 50 | - ) |
|
| 51 | - $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 52 | - if (empty($post_type) && !isset($_REQUEST['pid'])) {
|
|
| 53 | - $pagename = $wp->query_vars['pagename']; |
|
| 54 | - $post_types = geodir_get_posttypes(); |
|
| 55 | - if (!empty($post_types)) |
|
| 56 | - $post_type = $post_types[0]; |
|
| 48 | + if ($listing_page_id != '' && (is_page($listing_page_id) || ($is_wpml && !empty($wp->query_vars['page_id']))) && isset($_REQUEST['listing_type']) |
|
| 49 | + && in_array($_REQUEST['listing_type'], geodir_get_posttypes()) |
|
| 50 | + ) |
|
| 51 | + $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 52 | + if (empty($post_type) && !isset($_REQUEST['pid'])) {
|
|
| 53 | + $pagename = $wp->query_vars['pagename']; |
|
| 54 | + $post_types = geodir_get_posttypes(); |
|
| 55 | + if (!empty($post_types)) |
|
| 56 | + $post_type = $post_types[0]; |
|
| 57 | 57 | |
| 58 | 58 | if($sc_post_type != '' ) |
| 59 | 59 | $post_type = $sc_post_type; |
| 60 | 60 | |
| 61 | - if ($is_wpml && !empty($wp->query_vars['page_id'])) {
|
|
| 61 | + if ($is_wpml && !empty($wp->query_vars['page_id'])) {
|
|
| 62 | 62 | wp_redirect(geodir_getlink(get_permalink($wp->query_vars['page_id']), array('listing_type' => $post_type)));
|
| 63 | 63 | } else {
|
| 64 | 64 | wp_redirect(trailingslashit(get_site_url()) . $pagename . '/?listing_type=' . $post_type); |
| 65 | 65 | } |
| 66 | - exit(); |
|
| 67 | - } |
|
| 68 | - return $template = locate_template(array("geodirectory/add-{$post_type}.php", "geodirectory/add-listing.php"));
|
|
| 69 | - break; |
|
| 70 | - case 'success': |
|
| 71 | - $success_page_id = geodir_success_page_id(); |
|
| 72 | - if ($success_page_id != '' && is_page($success_page_id) && isset($_REQUEST['listing_type']) |
|
| 73 | - && in_array($_REQUEST['listing_type'], geodir_get_posttypes()) |
|
| 74 | - ) |
|
| 75 | - $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 76 | - return $template = locate_template(array("geodirectory/{$post_type}-success.php", "geodirectory/listing-success.php"));
|
|
| 77 | - break; |
|
| 78 | - case 'detail': |
|
| 79 | - case 'preview': |
|
| 80 | - if (in_array(get_post_type(), geodir_get_posttypes())) |
|
| 81 | - $post_type = get_post_type(); |
|
| 82 | - return $template = locate_template(array("geodirectory/single-{$post_type}.php", "geodirectory/listing-detail.php"));
|
|
| 83 | - break; |
|
| 84 | - case 'listing': |
|
| 85 | - $templates = array(); |
|
| 86 | - if (is_post_type_archive() && in_array(get_post_type(), geodir_get_posttypes())) {
|
|
| 87 | - $post_type = get_post_type(); |
|
| 88 | - $templates[] = "geodirectory/archive-$post_type.php"; |
|
| 89 | - } |
|
| 90 | - |
|
| 91 | - |
|
| 92 | - if (is_tax() && geodir_get_taxonomy_posttype()) {
|
|
| 93 | - $query_obj = get_queried_object(); |
|
| 94 | - $curr_taxonomy = isset($query_obj->taxonomy) ? $query_obj->taxonomy : ''; |
|
| 95 | - $curr_term = isset($query_obj->slug) ? $query_obj->slug : ''; |
|
| 96 | - $templates[] = "geodirectory/taxonomy-$curr_taxonomy-$curr_term.php"; |
|
| 97 | - $templates[] = "geodirectory/taxonomy-$curr_taxonomy.php"; |
|
| 98 | - } |
|
| 99 | - |
|
| 100 | - $templates[] = "geodirectory/geodir-listing.php"; |
|
| 101 | - |
|
| 102 | - return $template = locate_template($templates); |
|
| 103 | - break; |
|
| 104 | - case 'information': |
|
| 105 | - return $template = locate_template(array("geodirectory/geodir-information.php"));
|
|
| 106 | - break; |
|
| 107 | - case 'author': |
|
| 108 | - return $template = locate_template(array("geodirectory/geodir-author.php"));
|
|
| 109 | - break; |
|
| 110 | - case 'search': |
|
| 111 | - return $template = locate_template(array("geodirectory/geodir-search.php"));
|
|
| 112 | - break; |
|
| 113 | - case 'location': |
|
| 114 | - return $template = locate_template(array("geodirectory/geodir-location.php"));
|
|
| 115 | - break; |
|
| 116 | - case 'geodir-home': |
|
| 117 | - return $template = locate_template(array("geodirectory/geodir-home.php"));
|
|
| 118 | - break; |
|
| 119 | - case 'listing-listview': |
|
| 120 | - $template = locate_template(array("geodirectory/listing-listview.php"));
|
|
| 121 | - if (!$template) {
|
|
| 122 | - $template = geodir_plugin_path() . '/geodirectory-templates/listing-listview.php'; |
|
| 123 | - } |
|
| 124 | - return $template; |
|
| 125 | - break; |
|
| 126 | - case 'widget-listing-listview': |
|
| 127 | - $template = locate_template(array("geodirectory/widget-listing-listview.php"));
|
|
| 128 | - if (!$template) {
|
|
| 129 | - $template = geodir_plugin_path() . '/geodirectory-templates/widget-listing-listview.php'; |
|
| 130 | - } |
|
| 131 | - return $template; |
|
| 132 | - break; |
|
| 133 | - endswitch; |
|
| 134 | - |
|
| 135 | - return false; |
|
| 66 | + exit(); |
|
| 67 | + } |
|
| 68 | + return $template = locate_template(array("geodirectory/add-{$post_type}.php", "geodirectory/add-listing.php"));
|
|
| 69 | + break; |
|
| 70 | + case 'success': |
|
| 71 | + $success_page_id = geodir_success_page_id(); |
|
| 72 | + if ($success_page_id != '' && is_page($success_page_id) && isset($_REQUEST['listing_type']) |
|
| 73 | + && in_array($_REQUEST['listing_type'], geodir_get_posttypes()) |
|
| 74 | + ) |
|
| 75 | + $post_type = sanitize_text_field($_REQUEST['listing_type']); |
|
| 76 | + return $template = locate_template(array("geodirectory/{$post_type}-success.php", "geodirectory/listing-success.php"));
|
|
| 77 | + break; |
|
| 78 | + case 'detail': |
|
| 79 | + case 'preview': |
|
| 80 | + if (in_array(get_post_type(), geodir_get_posttypes())) |
|
| 81 | + $post_type = get_post_type(); |
|
| 82 | + return $template = locate_template(array("geodirectory/single-{$post_type}.php", "geodirectory/listing-detail.php"));
|
|
| 83 | + break; |
|
| 84 | + case 'listing': |
|
| 85 | + $templates = array(); |
|
| 86 | + if (is_post_type_archive() && in_array(get_post_type(), geodir_get_posttypes())) {
|
|
| 87 | + $post_type = get_post_type(); |
|
| 88 | + $templates[] = "geodirectory/archive-$post_type.php"; |
|
| 89 | + } |
|
| 90 | + |
|
| 91 | + |
|
| 92 | + if (is_tax() && geodir_get_taxonomy_posttype()) {
|
|
| 93 | + $query_obj = get_queried_object(); |
|
| 94 | + $curr_taxonomy = isset($query_obj->taxonomy) ? $query_obj->taxonomy : ''; |
|
| 95 | + $curr_term = isset($query_obj->slug) ? $query_obj->slug : ''; |
|
| 96 | + $templates[] = "geodirectory/taxonomy-$curr_taxonomy-$curr_term.php"; |
|
| 97 | + $templates[] = "geodirectory/taxonomy-$curr_taxonomy.php"; |
|
| 98 | + } |
|
| 99 | + |
|
| 100 | + $templates[] = "geodirectory/geodir-listing.php"; |
|
| 101 | + |
|
| 102 | + return $template = locate_template($templates); |
|
| 103 | + break; |
|
| 104 | + case 'information': |
|
| 105 | + return $template = locate_template(array("geodirectory/geodir-information.php"));
|
|
| 106 | + break; |
|
| 107 | + case 'author': |
|
| 108 | + return $template = locate_template(array("geodirectory/geodir-author.php"));
|
|
| 109 | + break; |
|
| 110 | + case 'search': |
|
| 111 | + return $template = locate_template(array("geodirectory/geodir-search.php"));
|
|
| 112 | + break; |
|
| 113 | + case 'location': |
|
| 114 | + return $template = locate_template(array("geodirectory/geodir-location.php"));
|
|
| 115 | + break; |
|
| 116 | + case 'geodir-home': |
|
| 117 | + return $template = locate_template(array("geodirectory/geodir-home.php"));
|
|
| 118 | + break; |
|
| 119 | + case 'listing-listview': |
|
| 120 | + $template = locate_template(array("geodirectory/listing-listview.php"));
|
|
| 121 | + if (!$template) {
|
|
| 122 | + $template = geodir_plugin_path() . '/geodirectory-templates/listing-listview.php'; |
|
| 123 | + } |
|
| 124 | + return $template; |
|
| 125 | + break; |
|
| 126 | + case 'widget-listing-listview': |
|
| 127 | + $template = locate_template(array("geodirectory/widget-listing-listview.php"));
|
|
| 128 | + if (!$template) {
|
|
| 129 | + $template = geodir_plugin_path() . '/geodirectory-templates/widget-listing-listview.php'; |
|
| 130 | + } |
|
| 131 | + return $template; |
|
| 132 | + break; |
|
| 133 | + endswitch; |
|
| 134 | + |
|
| 135 | + return false; |
|
| 136 | 136 | |
| 137 | 137 | } |
| 138 | 138 | |
@@ -151,238 +151,238 @@ discard block |
||
| 151 | 151 | function geodir_template_loader($template) |
| 152 | 152 | {
|
| 153 | 153 | |
| 154 | - global $wp_query; |
|
| 155 | - |
|
| 156 | - /** |
|
| 157 | - * Filter the custom page list. |
|
| 158 | - * |
|
| 159 | - * @since 1.0.0 |
|
| 160 | - */ |
|
| 161 | - $geodir_custom_page_list = apply_filters('geodir_set_custom_pages', array(
|
|
| 162 | - 'geodir_signup_page' => |
|
| 163 | - apply_filters('geodir_set_custom_signup_page', false),
|
|
| 164 | - 'geodir_add_listing_page' => |
|
| 165 | - apply_filters('geodir_set_custom_add_listing_page', false),
|
|
| 166 | - 'geodir_preview_page' => |
|
| 167 | - apply_filters('geodir_set_custom_preview_page', false),
|
|
| 168 | - 'geodir_listing_success_page' => |
|
| 169 | - apply_filters('geodir_set_custom_listing_success_page', false),
|
|
| 170 | - 'geodir_listing_detail_page' => |
|
| 171 | - apply_filters('geodir_set_custom_listing_detail_page', false),
|
|
| 172 | - 'geodir_listing_page' => |
|
| 173 | - apply_filters('geodir_set_custom_listing_page', false),
|
|
| 174 | - 'geodir_search_page' => |
|
| 175 | - apply_filters('geodir_set_custom_search_page', false),
|
|
| 176 | - 'geodir_author_page' => |
|
| 177 | - apply_filters('geodir_set_custom_author_page', false),
|
|
| 178 | - 'geodir_home_map_page' => |
|
| 179 | - apply_filters('geodir_set_custom_home_map_page', false)
|
|
| 180 | - )); |
|
| 181 | - |
|
| 182 | - |
|
| 183 | - if (geodir_is_page('login') || $geodir_custom_page_list['geodir_signup_page']) {
|
|
| 184 | - |
|
| 185 | - $template = geodir_locate_template('signup');
|
|
| 186 | - |
|
| 187 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-signup.php'; |
|
| 188 | - |
|
| 189 | - /** |
|
| 190 | - * Filter the signup template path. |
|
| 191 | - * |
|
| 192 | - * @since 1.0.0 |
|
| 193 | - * @param string $template The template path. |
|
| 194 | - */ |
|
| 195 | - return $template = apply_filters('geodir_template_signup', $template);
|
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - if (geodir_is_page('add-listing') || $geodir_custom_page_list['geodir_add_listing_page']) {
|
|
| 199 | - if (!geodir_is_default_location_set()) {
|
|
| 200 | - global $information; |
|
| 201 | - $information = sprintf(__('Please %sclick here%s to set a default location, this will make the plugin work properly.', 'geodirectory'), '<a href=\'' . admin_url('admin.php?page=geodirectory&tab=default_location_settings') . '\'>', '</a>');
|
|
| 202 | - |
|
| 203 | - $template = geodir_locate_template('information');
|
|
| 204 | - |
|
| 205 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 206 | - /** |
|
| 207 | - * Filter the information template path. |
|
| 208 | - * |
|
| 209 | - * @since 1.0.0 |
|
| 210 | - * @param string $template The template path. |
|
| 211 | - */ |
|
| 212 | - return $template = apply_filters('geodir_template_information', $template);
|
|
| 213 | - } |
|
| 214 | - // check if pid exists in the record if yes then check if this post belongs to the user who is logged in. |
|
| 215 | - if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 216 | - global $information; |
|
| 217 | - $information = __('This listing does not belong to your account, please check the listing id carefully.', 'geodirectory');
|
|
| 218 | - $is_current_user_owner = geodir_listing_belong_to_current_user(); |
|
| 219 | - if (!$is_current_user_owner) {
|
|
| 220 | - $template = geodir_locate_template('information');
|
|
| 221 | - |
|
| 222 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 223 | - /** |
|
| 224 | - * Filter the information template path. |
|
| 225 | - * |
|
| 226 | - * @since 1.0.0 |
|
| 227 | - * @param string $template The template path. |
|
| 228 | - */ |
|
| 229 | - return $template = apply_filters('geodir_template_information', $template);
|
|
| 230 | - } |
|
| 231 | - |
|
| 232 | - |
|
| 233 | - } |
|
| 234 | - |
|
| 235 | - //geodir_is_login(true); |
|
| 236 | - global $current_user; |
|
| 237 | - if (!$current_user->ID) {
|
|
| 238 | - wp_redirect(geodir_login_url(array('redirect_add_listing'=>urlencode(geodir_curPageURL()))), 302);
|
|
| 239 | - exit; |
|
| 240 | - } |
|
| 241 | - |
|
| 242 | - $template = geodir_locate_template('add-listing');
|
|
| 243 | - |
|
| 244 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/add-listing.php'; |
|
| 245 | - /** |
|
| 246 | - * Filter the add listing template path. |
|
| 247 | - * |
|
| 248 | - * @since 1.0.0 |
|
| 249 | - * @param string $template The template path. |
|
| 250 | - */ |
|
| 251 | - return $template = apply_filters('geodir_template_add_listing', $template);
|
|
| 252 | - } |
|
| 253 | - |
|
| 254 | - |
|
| 255 | - if (geodir_is_page('preview') || $geodir_custom_page_list['geodir_preview_page']) {
|
|
| 256 | - global $preview; |
|
| 257 | - $preview = true; |
|
| 258 | - |
|
| 259 | - $template = geodir_locate_template('preview');
|
|
| 260 | - |
|
| 261 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 262 | - /** |
|
| 263 | - * Filter the preview template path. |
|
| 264 | - * |
|
| 265 | - * @since 1.0.0 |
|
| 266 | - * @param string $template The template path. |
|
| 267 | - */ |
|
| 268 | - return $template = apply_filters('geodir_template_preview', $template);
|
|
| 269 | - |
|
| 270 | - } |
|
| 271 | - |
|
| 272 | - |
|
| 273 | - if (geodir_is_page('listing-success') || $geodir_custom_page_list['geodir_listing_success_page']) {
|
|
| 274 | - |
|
| 275 | - $template = geodir_locate_template('success');
|
|
| 276 | - |
|
| 277 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-success.php'; |
|
| 278 | - /** |
|
| 279 | - * Filter the success template path. |
|
| 280 | - * |
|
| 281 | - * @since 1.0.0 |
|
| 282 | - * @param string $template The template path. |
|
| 283 | - */ |
|
| 284 | - return $template = apply_filters('geodir_template_success', $template);
|
|
| 285 | - |
|
| 286 | - } |
|
| 287 | - |
|
| 288 | - if (geodir_is_page('detail') || $geodir_custom_page_list['geodir_listing_detail_page']) {
|
|
| 289 | - |
|
| 290 | - $template = geodir_locate_template('detail');
|
|
| 291 | - |
|
| 292 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 293 | - /** |
|
| 294 | - * Filter the detail template path. |
|
| 295 | - * |
|
| 296 | - * @since 1.0.0 |
|
| 297 | - * @param string $template The template path. |
|
| 298 | - */ |
|
| 299 | - return $template = apply_filters('geodir_template_detail', $template);
|
|
| 300 | - |
|
| 301 | - } |
|
| 302 | - |
|
| 303 | - if (geodir_is_page('listing') || $geodir_custom_page_list['geodir_listing_page']) {
|
|
| 304 | - |
|
| 305 | - $template = geodir_locate_template('listing');
|
|
| 306 | - |
|
| 307 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-listing.php'; |
|
| 308 | - /** |
|
| 309 | - * Filter the listing template path. |
|
| 310 | - * |
|
| 311 | - * @since 1.0.0 |
|
| 312 | - * @param string $template The template path. |
|
| 313 | - */ |
|
| 314 | - return $template = apply_filters('geodir_template_listing', $template);
|
|
| 154 | + global $wp_query; |
|
| 315 | 155 | |
| 316 | - } |
|
| 156 | + /** |
|
| 157 | + * Filter the custom page list. |
|
| 158 | + * |
|
| 159 | + * @since 1.0.0 |
|
| 160 | + */ |
|
| 161 | + $geodir_custom_page_list = apply_filters('geodir_set_custom_pages', array(
|
|
| 162 | + 'geodir_signup_page' => |
|
| 163 | + apply_filters('geodir_set_custom_signup_page', false),
|
|
| 164 | + 'geodir_add_listing_page' => |
|
| 165 | + apply_filters('geodir_set_custom_add_listing_page', false),
|
|
| 166 | + 'geodir_preview_page' => |
|
| 167 | + apply_filters('geodir_set_custom_preview_page', false),
|
|
| 168 | + 'geodir_listing_success_page' => |
|
| 169 | + apply_filters('geodir_set_custom_listing_success_page', false),
|
|
| 170 | + 'geodir_listing_detail_page' => |
|
| 171 | + apply_filters('geodir_set_custom_listing_detail_page', false),
|
|
| 172 | + 'geodir_listing_page' => |
|
| 173 | + apply_filters('geodir_set_custom_listing_page', false),
|
|
| 174 | + 'geodir_search_page' => |
|
| 175 | + apply_filters('geodir_set_custom_search_page', false),
|
|
| 176 | + 'geodir_author_page' => |
|
| 177 | + apply_filters('geodir_set_custom_author_page', false),
|
|
| 178 | + 'geodir_home_map_page' => |
|
| 179 | + apply_filters('geodir_set_custom_home_map_page', false)
|
|
| 180 | + )); |
|
| 181 | + |
|
| 182 | + |
|
| 183 | + if (geodir_is_page('login') || $geodir_custom_page_list['geodir_signup_page']) {
|
|
| 184 | + |
|
| 185 | + $template = geodir_locate_template('signup');
|
|
| 186 | + |
|
| 187 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-signup.php'; |
|
| 188 | + |
|
| 189 | + /** |
|
| 190 | + * Filter the signup template path. |
|
| 191 | + * |
|
| 192 | + * @since 1.0.0 |
|
| 193 | + * @param string $template The template path. |
|
| 194 | + */ |
|
| 195 | + return $template = apply_filters('geodir_template_signup', $template);
|
|
| 196 | + } |
|
| 317 | 197 | |
| 318 | - if (geodir_is_page('search') || $geodir_custom_page_list['geodir_search_page']) {
|
|
| 198 | + if (geodir_is_page('add-listing') || $geodir_custom_page_list['geodir_add_listing_page']) {
|
|
| 199 | + if (!geodir_is_default_location_set()) {
|
|
| 200 | + global $information; |
|
| 201 | + $information = sprintf(__('Please %sclick here%s to set a default location, this will make the plugin work properly.', 'geodirectory'), '<a href=\'' . admin_url('admin.php?page=geodirectory&tab=default_location_settings') . '\'>', '</a>');
|
|
| 202 | + |
|
| 203 | + $template = geodir_locate_template('information');
|
|
| 204 | + |
|
| 205 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 206 | + /** |
|
| 207 | + * Filter the information template path. |
|
| 208 | + * |
|
| 209 | + * @since 1.0.0 |
|
| 210 | + * @param string $template The template path. |
|
| 211 | + */ |
|
| 212 | + return $template = apply_filters('geodir_template_information', $template);
|
|
| 213 | + } |
|
| 214 | + // check if pid exists in the record if yes then check if this post belongs to the user who is logged in. |
|
| 215 | + if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 216 | + global $information; |
|
| 217 | + $information = __('This listing does not belong to your account, please check the listing id carefully.', 'geodirectory');
|
|
| 218 | + $is_current_user_owner = geodir_listing_belong_to_current_user(); |
|
| 219 | + if (!$is_current_user_owner) {
|
|
| 220 | + $template = geodir_locate_template('information');
|
|
| 221 | + |
|
| 222 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 223 | + /** |
|
| 224 | + * Filter the information template path. |
|
| 225 | + * |
|
| 226 | + * @since 1.0.0 |
|
| 227 | + * @param string $template The template path. |
|
| 228 | + */ |
|
| 229 | + return $template = apply_filters('geodir_template_information', $template);
|
|
| 230 | + } |
|
| 319 | 231 | |
| 320 | - $template = geodir_locate_template('search');
|
|
| 321 | 232 | |
| 322 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-search.php'; |
|
| 323 | - /** |
|
| 324 | - * Filter the search template path. |
|
| 325 | - * |
|
| 326 | - * @since 1.0.0 |
|
| 327 | - * @param string $template The template path. |
|
| 328 | - */ |
|
| 329 | - return $template = apply_filters('geodir_template_search', $template);
|
|
| 233 | + } |
|
| 234 | + |
|
| 235 | + //geodir_is_login(true); |
|
| 236 | + global $current_user; |
|
| 237 | + if (!$current_user->ID) {
|
|
| 238 | + wp_redirect(geodir_login_url(array('redirect_add_listing'=>urlencode(geodir_curPageURL()))), 302);
|
|
| 239 | + exit; |
|
| 240 | + } |
|
| 241 | + |
|
| 242 | + $template = geodir_locate_template('add-listing');
|
|
| 243 | + |
|
| 244 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/add-listing.php'; |
|
| 245 | + /** |
|
| 246 | + * Filter the add listing template path. |
|
| 247 | + * |
|
| 248 | + * @since 1.0.0 |
|
| 249 | + * @param string $template The template path. |
|
| 250 | + */ |
|
| 251 | + return $template = apply_filters('geodir_template_add_listing', $template);
|
|
| 252 | + } |
|
| 330 | 253 | |
| 331 | - } |
|
| 332 | 254 | |
| 333 | - if (geodir_is_page('author') || $geodir_custom_page_list['geodir_author_page']) {
|
|
| 255 | + if (geodir_is_page('preview') || $geodir_custom_page_list['geodir_preview_page']) {
|
|
| 256 | + global $preview; |
|
| 257 | + $preview = true; |
|
| 334 | 258 | |
| 335 | - $template = geodir_locate_template('author');
|
|
| 259 | + $template = geodir_locate_template('preview');
|
|
| 336 | 260 | |
| 337 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-author.php'; |
|
| 338 | - /** |
|
| 339 | - * Filter the author template path. |
|
| 340 | - * |
|
| 341 | - * @since 1.0.0 |
|
| 342 | - * @param string $template The template path. |
|
| 343 | - */ |
|
| 344 | - return $template = apply_filters('geodir_template_author', $template);
|
|
| 261 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 262 | + /** |
|
| 263 | + * Filter the preview template path. |
|
| 264 | + * |
|
| 265 | + * @since 1.0.0 |
|
| 266 | + * @param string $template The template path. |
|
| 267 | + */ |
|
| 268 | + return $template = apply_filters('geodir_template_preview', $template);
|
|
| 345 | 269 | |
| 346 | - } |
|
| 270 | + } |
|
| 347 | 271 | |
| 348 | - if (get_option('geodir_set_as_home') || geodir_is_page('home') || geodir_is_page('location')) {
|
|
| 349 | 272 | |
| 350 | - global $post, $wp_query; |
|
| 273 | + if (geodir_is_page('listing-success') || $geodir_custom_page_list['geodir_listing_success_page']) {
|
|
| 351 | 274 | |
| 352 | - if (geodir_is_page('home') || ('page' == get_option('show_on_front') && isset($post->ID) && $post->ID == get_option('page_on_front'))
|
|
| 353 | - || (is_home() && !$wp_query->is_posts_page) |
|
| 354 | - ) {
|
|
| 275 | + $template = geodir_locate_template('success');
|
|
| 355 | 276 | |
| 356 | - $template = geodir_locate_template('geodir-home');
|
|
| 277 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-success.php'; |
|
| 278 | + /** |
|
| 279 | + * Filter the success template path. |
|
| 280 | + * |
|
| 281 | + * @since 1.0.0 |
|
| 282 | + * @param string $template The template path. |
|
| 283 | + */ |
|
| 284 | + return $template = apply_filters('geodir_template_success', $template);
|
|
| 357 | 285 | |
| 358 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-home.php'; |
|
| 359 | - /** |
|
| 360 | - * Filter the home page template path. |
|
| 361 | - * |
|
| 362 | - * @since 1.0.0 |
|
| 363 | - * @param string $template The template path. |
|
| 364 | - */ |
|
| 365 | - return $template = apply_filters('geodir_template_homepage', $template);
|
|
| 286 | + } |
|
| 366 | 287 | |
| 367 | - } elseif (geodir_is_page('location')) {
|
|
| 288 | + if (geodir_is_page('detail') || $geodir_custom_page_list['geodir_listing_detail_page']) {
|
|
| 368 | 289 | |
| 369 | - $template = geodir_locate_template('location');
|
|
| 290 | + $template = geodir_locate_template('detail');
|
|
| 370 | 291 | |
| 371 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-location.php'; |
|
| 372 | - /** |
|
| 373 | - * Filter the location template path. |
|
| 374 | - * |
|
| 375 | - * @since 1.0.0 |
|
| 376 | - * @param string $template The template path. |
|
| 377 | - */ |
|
| 378 | - return $template = apply_filters('geodir_template_location', $template);
|
|
| 292 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 293 | + /** |
|
| 294 | + * Filter the detail template path. |
|
| 295 | + * |
|
| 296 | + * @since 1.0.0 |
|
| 297 | + * @param string $template The template path. |
|
| 298 | + */ |
|
| 299 | + return $template = apply_filters('geodir_template_detail', $template);
|
|
| 300 | + |
|
| 301 | + } |
|
| 302 | + |
|
| 303 | + if (geodir_is_page('listing') || $geodir_custom_page_list['geodir_listing_page']) {
|
|
| 304 | + |
|
| 305 | + $template = geodir_locate_template('listing');
|
|
| 306 | + |
|
| 307 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-listing.php'; |
|
| 308 | + /** |
|
| 309 | + * Filter the listing template path. |
|
| 310 | + * |
|
| 311 | + * @since 1.0.0 |
|
| 312 | + * @param string $template The template path. |
|
| 313 | + */ |
|
| 314 | + return $template = apply_filters('geodir_template_listing', $template);
|
|
| 315 | + |
|
| 316 | + } |
|
| 379 | 317 | |
| 380 | - } else |
|
| 381 | - return $template; |
|
| 318 | + if (geodir_is_page('search') || $geodir_custom_page_list['geodir_search_page']) {
|
|
| 382 | 319 | |
| 383 | - } |
|
| 320 | + $template = geodir_locate_template('search');
|
|
| 384 | 321 | |
| 385 | - return $template; |
|
| 322 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-search.php'; |
|
| 323 | + /** |
|
| 324 | + * Filter the search template path. |
|
| 325 | + * |
|
| 326 | + * @since 1.0.0 |
|
| 327 | + * @param string $template The template path. |
|
| 328 | + */ |
|
| 329 | + return $template = apply_filters('geodir_template_search', $template);
|
|
| 330 | + |
|
| 331 | + } |
|
| 332 | + |
|
| 333 | + if (geodir_is_page('author') || $geodir_custom_page_list['geodir_author_page']) {
|
|
| 334 | + |
|
| 335 | + $template = geodir_locate_template('author');
|
|
| 336 | + |
|
| 337 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-author.php'; |
|
| 338 | + /** |
|
| 339 | + * Filter the author template path. |
|
| 340 | + * |
|
| 341 | + * @since 1.0.0 |
|
| 342 | + * @param string $template The template path. |
|
| 343 | + */ |
|
| 344 | + return $template = apply_filters('geodir_template_author', $template);
|
|
| 345 | + |
|
| 346 | + } |
|
| 347 | + |
|
| 348 | + if (get_option('geodir_set_as_home') || geodir_is_page('home') || geodir_is_page('location')) {
|
|
| 349 | + |
|
| 350 | + global $post, $wp_query; |
|
| 351 | + |
|
| 352 | + if (geodir_is_page('home') || ('page' == get_option('show_on_front') && isset($post->ID) && $post->ID == get_option('page_on_front'))
|
|
| 353 | + || (is_home() && !$wp_query->is_posts_page) |
|
| 354 | + ) {
|
|
| 355 | + |
|
| 356 | + $template = geodir_locate_template('geodir-home');
|
|
| 357 | + |
|
| 358 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-home.php'; |
|
| 359 | + /** |
|
| 360 | + * Filter the home page template path. |
|
| 361 | + * |
|
| 362 | + * @since 1.0.0 |
|
| 363 | + * @param string $template The template path. |
|
| 364 | + */ |
|
| 365 | + return $template = apply_filters('geodir_template_homepage', $template);
|
|
| 366 | + |
|
| 367 | + } elseif (geodir_is_page('location')) {
|
|
| 368 | + |
|
| 369 | + $template = geodir_locate_template('location');
|
|
| 370 | + |
|
| 371 | + if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-location.php'; |
|
| 372 | + /** |
|
| 373 | + * Filter the location template path. |
|
| 374 | + * |
|
| 375 | + * @since 1.0.0 |
|
| 376 | + * @param string $template The template path. |
|
| 377 | + */ |
|
| 378 | + return $template = apply_filters('geodir_template_location', $template);
|
|
| 379 | + |
|
| 380 | + } else |
|
| 381 | + return $template; |
|
| 382 | + |
|
| 383 | + } |
|
| 384 | + |
|
| 385 | + return $template; |
|
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | /** |
@@ -397,44 +397,44 @@ discard block |
||
| 397 | 397 | */ |
| 398 | 398 | function geodir_get_template_part($slug = '', $name = NULL) |
| 399 | 399 | {
|
| 400 | - global $geodirectory, $post; |
|
| 401 | - /** |
|
| 402 | - * Called at the start for the geodir_get_template_part() function. |
|
| 403 | - * |
|
| 404 | - * Used dynamic hook name: geodir_get_template_part_{$slug}
|
|
| 405 | - * |
|
| 406 | - * @since 1.0.0 |
|
| 407 | - * @package GeoDirectory |
|
| 408 | - * @param string $slug The template slug. |
|
| 409 | - * @param string $name The template name. |
|
| 410 | - */ |
|
| 411 | - do_action("geodir_get_template_part_{$slug}", $slug, $name);
|
|
| 412 | - $templates = array(); |
|
| 413 | - $name = (string)$name; |
|
| 414 | - if ('' !== $name) {
|
|
| 415 | - $template_name = "{$slug}-{$name}.php";
|
|
| 416 | - |
|
| 417 | - } else {
|
|
| 418 | - $template_name = "{$slug}.php";
|
|
| 419 | - } |
|
| 420 | - |
|
| 421 | - if (!locate_template(array("geodirectory/" . $template_name))) :
|
|
| 422 | - /** |
|
| 423 | - * Filter the template part with slug and name. |
|
| 424 | - * |
|
| 425 | - * @since 1.0.0 |
|
| 426 | - * @param string $template_name The template name. |
|
| 427 | - */ |
|
| 428 | - $template = apply_filters("geodir_template_part-{$slug}-{$name}", geodir_plugin_path() . '/geodirectory-templates/' . $template_name);
|
|
| 429 | - /** |
|
| 430 | - * Includes the template part with slug and name. |
|
| 431 | - * |
|
| 432 | - * @since 1.0.0 |
|
| 433 | - */ |
|
| 434 | - include($template); |
|
| 435 | - else: |
|
| 436 | - locate_template(array("geodirectory/" . $template_name), true, false);
|
|
| 437 | - endif; |
|
| 400 | + global $geodirectory, $post; |
|
| 401 | + /** |
|
| 402 | + * Called at the start for the geodir_get_template_part() function. |
|
| 403 | + * |
|
| 404 | + * Used dynamic hook name: geodir_get_template_part_{$slug}
|
|
| 405 | + * |
|
| 406 | + * @since 1.0.0 |
|
| 407 | + * @package GeoDirectory |
|
| 408 | + * @param string $slug The template slug. |
|
| 409 | + * @param string $name The template name. |
|
| 410 | + */ |
|
| 411 | + do_action("geodir_get_template_part_{$slug}", $slug, $name);
|
|
| 412 | + $templates = array(); |
|
| 413 | + $name = (string)$name; |
|
| 414 | + if ('' !== $name) {
|
|
| 415 | + $template_name = "{$slug}-{$name}.php";
|
|
| 416 | + |
|
| 417 | + } else {
|
|
| 418 | + $template_name = "{$slug}.php";
|
|
| 419 | + } |
|
| 420 | + |
|
| 421 | + if (!locate_template(array("geodirectory/" . $template_name))) :
|
|
| 422 | + /** |
|
| 423 | + * Filter the template part with slug and name. |
|
| 424 | + * |
|
| 425 | + * @since 1.0.0 |
|
| 426 | + * @param string $template_name The template name. |
|
| 427 | + */ |
|
| 428 | + $template = apply_filters("geodir_template_part-{$slug}-{$name}", geodir_plugin_path() . '/geodirectory-templates/' . $template_name);
|
|
| 429 | + /** |
|
| 430 | + * Includes the template part with slug and name. |
|
| 431 | + * |
|
| 432 | + * @since 1.0.0 |
|
| 433 | + */ |
|
| 434 | + include($template); |
|
| 435 | + else: |
|
| 436 | + locate_template(array("geodirectory/" . $template_name), true, false);
|
|
| 437 | + endif; |
|
| 438 | 438 | |
| 439 | 439 | } |
| 440 | 440 | |
@@ -450,23 +450,23 @@ discard block |
||
| 450 | 450 | */ |
| 451 | 451 | function geodir_core_post_view_extra_class($class, $all_postypes = '') |
| 452 | 452 | {
|
| 453 | - global $post; |
|
| 453 | + global $post; |
|
| 454 | 454 | |
| 455 | - if (!$all_postypes) {
|
|
| 456 | - $all_postypes = geodir_get_posttypes(); |
|
| 457 | - } |
|
| 455 | + if (!$all_postypes) {
|
|
| 456 | + $all_postypes = geodir_get_posttypes(); |
|
| 457 | + } |
|
| 458 | 458 | |
| 459 | - $gdp_post_id = !empty($post) && isset($post->ID) ? $post->ID : NULL; |
|
| 460 | - $gdp_post_type = $gdp_post_id > 0 && isset($post->post_type) ? $post->post_type : NULL; |
|
| 461 | - $gdp_post_type = $gdp_post_type != '' && !empty($all_postypes) && in_array($gdp_post_type, $all_postypes) ? $gdp_post_type : NULL; |
|
| 459 | + $gdp_post_id = !empty($post) && isset($post->ID) ? $post->ID : NULL; |
|
| 460 | + $gdp_post_type = $gdp_post_id > 0 && isset($post->post_type) ? $post->post_type : NULL; |
|
| 461 | + $gdp_post_type = $gdp_post_type != '' && !empty($all_postypes) && in_array($gdp_post_type, $all_postypes) ? $gdp_post_type : NULL; |
|
| 462 | 462 | |
| 463 | - if ($gdp_post_id && $gdp_post_type) {
|
|
| 464 | - $append_class = 'gd-post-' . $gdp_post_type; |
|
| 465 | - $append_class .= isset($post->is_featured) && $post->is_featured > 0 ? ' gd-post-featured' : ''; |
|
| 466 | - $class = $class != '' ? $class . ' ' . $append_class : $append_class; |
|
| 467 | - } |
|
| 463 | + if ($gdp_post_id && $gdp_post_type) {
|
|
| 464 | + $append_class = 'gd-post-' . $gdp_post_type; |
|
| 465 | + $append_class .= isset($post->is_featured) && $post->is_featured > 0 ? ' gd-post-featured' : ''; |
|
| 466 | + $class = $class != '' ? $class . ' ' . $append_class : $append_class; |
|
| 467 | + } |
|
| 468 | 468 | |
| 469 | - return $class; |
|
| 469 | + return $class; |
|
| 470 | 470 | } |
| 471 | 471 | |
| 472 | 472 | /** |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | * @param bool $favorite Listing Optional. Are favorite listings results? Default: false. |
| 481 | 481 | */ |
| 482 | 482 | function geodir_display_message_not_found_on_listing($template_listview = 'listing-listview', $favorite = false) {
|
| 483 | - if ($favorite) {
|
|
| 483 | + if ($favorite) {
|
|
| 484 | 484 | $message = __('No favorite listings found which match your selection.', 'geodirectory');
|
| 485 | 485 | } else {
|
| 486 | 486 | $message = __('No listings found which match your selection.', 'geodirectory');
|
@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | if (!empty($post_types)) |
| 56 | 56 | $post_type = $post_types[0]; |
| 57 | 57 | |
| 58 | - if($sc_post_type != '' ) |
|
| 58 | + if ($sc_post_type != '') |
|
| 59 | 59 | $post_type = $sc_post_type; |
| 60 | 60 | |
| 61 | 61 | if ($is_wpml && !empty($wp->query_vars['page_id'])) {
|
| 62 | 62 | wp_redirect(geodir_getlink(get_permalink($wp->query_vars['page_id']), array('listing_type' => $post_type)));
|
| 63 | 63 | } else {
|
| 64 | - wp_redirect(trailingslashit(get_site_url()) . $pagename . '/?listing_type=' . $post_type); |
|
| 64 | + wp_redirect(trailingslashit(get_site_url()).$pagename.'/?listing_type='.$post_type); |
|
| 65 | 65 | } |
| 66 | 66 | exit(); |
| 67 | 67 | } |
@@ -119,14 +119,14 @@ discard block |
||
| 119 | 119 | case 'listing-listview': |
| 120 | 120 | $template = locate_template(array("geodirectory/listing-listview.php"));
|
| 121 | 121 | if (!$template) {
|
| 122 | - $template = geodir_plugin_path() . '/geodirectory-templates/listing-listview.php'; |
|
| 122 | + $template = geodir_plugin_path().'/geodirectory-templates/listing-listview.php'; |
|
| 123 | 123 | } |
| 124 | 124 | return $template; |
| 125 | 125 | break; |
| 126 | 126 | case 'widget-listing-listview': |
| 127 | 127 | $template = locate_template(array("geodirectory/widget-listing-listview.php"));
|
| 128 | 128 | if (!$template) {
|
| 129 | - $template = geodir_plugin_path() . '/geodirectory-templates/widget-listing-listview.php'; |
|
| 129 | + $template = geodir_plugin_path().'/geodirectory-templates/widget-listing-listview.php'; |
|
| 130 | 130 | } |
| 131 | 131 | return $template; |
| 132 | 132 | break; |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | $template = geodir_locate_template('signup');
|
| 186 | 186 | |
| 187 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-signup.php'; |
|
| 187 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-signup.php'; |
|
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | 190 | * Filter the signup template path. |
@@ -198,11 +198,11 @@ discard block |
||
| 198 | 198 | if (geodir_is_page('add-listing') || $geodir_custom_page_list['geodir_add_listing_page']) {
|
| 199 | 199 | if (!geodir_is_default_location_set()) {
|
| 200 | 200 | global $information; |
| 201 | - $information = sprintf(__('Please %sclick here%s to set a default location, this will make the plugin work properly.', 'geodirectory'), '<a href=\'' . admin_url('admin.php?page=geodirectory&tab=default_location_settings') . '\'>', '</a>');
|
|
| 201 | + $information = sprintf(__('Please %sclick here%s to set a default location, this will make the plugin work properly.', 'geodirectory'), '<a href=\''.admin_url('admin.php?page=geodirectory&tab=default_location_settings').'\'>', '</a>');
|
|
| 202 | 202 | |
| 203 | 203 | $template = geodir_locate_template('information');
|
| 204 | 204 | |
| 205 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 205 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-information.php'; |
|
| 206 | 206 | /** |
| 207 | 207 | * Filter the information template path. |
| 208 | 208 | * |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | if (!$is_current_user_owner) {
|
| 220 | 220 | $template = geodir_locate_template('information');
|
| 221 | 221 | |
| 222 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-information.php'; |
|
| 222 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-information.php'; |
|
| 223 | 223 | /** |
| 224 | 224 | * Filter the information template path. |
| 225 | 225 | * |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | $template = geodir_locate_template('add-listing');
|
| 243 | 243 | |
| 244 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/add-listing.php'; |
|
| 244 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/add-listing.php'; |
|
| 245 | 245 | /** |
| 246 | 246 | * Filter the add listing template path. |
| 247 | 247 | * |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | |
| 259 | 259 | $template = geodir_locate_template('preview');
|
| 260 | 260 | |
| 261 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 261 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/listing-detail.php'; |
|
| 262 | 262 | /** |
| 263 | 263 | * Filter the preview template path. |
| 264 | 264 | * |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | $template = geodir_locate_template('success');
|
| 276 | 276 | |
| 277 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-success.php'; |
|
| 277 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/listing-success.php'; |
|
| 278 | 278 | /** |
| 279 | 279 | * Filter the success template path. |
| 280 | 280 | * |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | |
| 290 | 290 | $template = geodir_locate_template('detail');
|
| 291 | 291 | |
| 292 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/listing-detail.php'; |
|
| 292 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/listing-detail.php'; |
|
| 293 | 293 | /** |
| 294 | 294 | * Filter the detail template path. |
| 295 | 295 | * |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | |
| 305 | 305 | $template = geodir_locate_template('listing');
|
| 306 | 306 | |
| 307 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-listing.php'; |
|
| 307 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-listing.php'; |
|
| 308 | 308 | /** |
| 309 | 309 | * Filter the listing template path. |
| 310 | 310 | * |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | |
| 320 | 320 | $template = geodir_locate_template('search');
|
| 321 | 321 | |
| 322 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-search.php'; |
|
| 322 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-search.php'; |
|
| 323 | 323 | /** |
| 324 | 324 | * Filter the search template path. |
| 325 | 325 | * |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | |
| 335 | 335 | $template = geodir_locate_template('author');
|
| 336 | 336 | |
| 337 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-author.php'; |
|
| 337 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-author.php'; |
|
| 338 | 338 | /** |
| 339 | 339 | * Filter the author template path. |
| 340 | 340 | * |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | |
| 356 | 356 | $template = geodir_locate_template('geodir-home');
|
| 357 | 357 | |
| 358 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-home.php'; |
|
| 358 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-home.php'; |
|
| 359 | 359 | /** |
| 360 | 360 | * Filter the home page template path. |
| 361 | 361 | * |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | |
| 369 | 369 | $template = geodir_locate_template('location');
|
| 370 | 370 | |
| 371 | - if (!$template) $template = geodir_plugin_path() . '/geodirectory-templates/geodir-location.php'; |
|
| 371 | + if (!$template) $template = geodir_plugin_path().'/geodirectory-templates/geodir-location.php'; |
|
| 372 | 372 | /** |
| 373 | 373 | * Filter the location template path. |
| 374 | 374 | * |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | */ |
| 411 | 411 | do_action("geodir_get_template_part_{$slug}", $slug, $name);
|
| 412 | 412 | $templates = array(); |
| 413 | - $name = (string)$name; |
|
| 413 | + $name = (string) $name; |
|
| 414 | 414 | if ('' !== $name) {
|
| 415 | 415 | $template_name = "{$slug}-{$name}.php";
|
| 416 | 416 | |
@@ -418,14 +418,14 @@ discard block |
||
| 418 | 418 | $template_name = "{$slug}.php";
|
| 419 | 419 | } |
| 420 | 420 | |
| 421 | - if (!locate_template(array("geodirectory/" . $template_name))) :
|
|
| 421 | + if (!locate_template(array("geodirectory/".$template_name))) :
|
|
| 422 | 422 | /** |
| 423 | 423 | * Filter the template part with slug and name. |
| 424 | 424 | * |
| 425 | 425 | * @since 1.0.0 |
| 426 | 426 | * @param string $template_name The template name. |
| 427 | 427 | */ |
| 428 | - $template = apply_filters("geodir_template_part-{$slug}-{$name}", geodir_plugin_path() . '/geodirectory-templates/' . $template_name);
|
|
| 428 | + $template = apply_filters("geodir_template_part-{$slug}-{$name}", geodir_plugin_path().'/geodirectory-templates/'.$template_name);
|
|
| 429 | 429 | /** |
| 430 | 430 | * Includes the template part with slug and name. |
| 431 | 431 | * |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | */ |
| 434 | 434 | include($template); |
| 435 | 435 | else: |
| 436 | - locate_template(array("geodirectory/" . $template_name), true, false);
|
|
| 436 | + locate_template(array("geodirectory/".$template_name), true, false);
|
|
| 437 | 437 | endif; |
| 438 | 438 | |
| 439 | 439 | } |
@@ -461,9 +461,9 @@ discard block |
||
| 461 | 461 | $gdp_post_type = $gdp_post_type != '' && !empty($all_postypes) && in_array($gdp_post_type, $all_postypes) ? $gdp_post_type : NULL; |
| 462 | 462 | |
| 463 | 463 | if ($gdp_post_id && $gdp_post_type) {
|
| 464 | - $append_class = 'gd-post-' . $gdp_post_type; |
|
| 464 | + $append_class = 'gd-post-'.$gdp_post_type; |
|
| 465 | 465 | $append_class .= isset($post->is_featured) && $post->is_featured > 0 ? ' gd-post-featured' : ''; |
| 466 | - $class = $class != '' ? $class . ' ' . $append_class : $append_class; |
|
| 466 | + $class = $class != '' ? $class.' '.$append_class : $append_class; |
|
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | return $class; |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | */ |
| 496 | 496 | $message = apply_filters('geodir_message_listing_not_found', $message, $template_listview, $favorite);
|
| 497 | 497 | |
| 498 | - echo '<li class="no-listing">' . $message . '</li>'; |
|
| 498 | + echo '<li class="no-listing">'.$message.'</li>'; |
|
| 499 | 499 | } |
| 500 | 500 | |
| 501 | 501 | /** |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | function geodir_convert_listing_view_class($columns = '') {
|
| 525 | 525 | $class = ''; |
| 526 | 526 | |
| 527 | - switch ((int)$columns) {
|
|
| 527 | + switch ((int) $columns) {
|
|
| 528 | 528 | case 1: |
| 529 | 529 | $class = ''; |
| 530 | 530 | break; |
@@ -589,7 +589,7 @@ discard block |
||
| 589 | 589 | $html .= '<option value=""></option>'; |
| 590 | 590 | if (!empty($star_texts) && is_array($star_texts)) {
|
| 591 | 591 | foreach ($star_texts as $i => $text) {
|
| 592 | - $html .= '<option ' . selected((int)($i + 1), (int)$default, false) . ' value="' . (int)($i + 1) . '">' . $text . '</option>'; |
|
| 592 | + $html .= '<option '.selected((int) ($i + 1), (int) $default, false).' value="'.(int) ($i + 1).'">'.$text.'</option>'; |
|
| 593 | 593 | } |
| 594 | 594 | } else {
|
| 595 | 595 | $html .= '<option value="1">1</option>'; |
@@ -618,14 +618,14 @@ discard block |
||
| 618 | 618 | function geodir_font_awesome_rating_stars_html($html, $rating, $star_count = 5) {
|
| 619 | 619 | if (get_option('geodir_reviewrating_enable_font_awesome') == '1') {
|
| 620 | 620 | $rating = min($rating, $star_count); |
| 621 | - $full_stars = floor( $rating ); |
|
| 622 | - $half_stars = ceil( $rating - $full_stars ); |
|
| 621 | + $full_stars = floor($rating); |
|
| 622 | + $half_stars = ceil($rating - $full_stars); |
|
| 623 | 623 | $empty_stars = $star_count - $full_stars - $half_stars; |
| 624 | 624 | |
| 625 | 625 | $html = '<div class="gd-star-rating gd-fa-star-rating">'; |
| 626 | - $html .= str_repeat( '<i class="fa fa-star gd-full-star"></i>', $full_stars ); |
|
| 627 | - $html .= str_repeat( '<i class="fa fa-star-o fa-star-half-full gd-half-star"></i>', $half_stars ); |
|
| 628 | - $html .= str_repeat( '<i class="fa fa-star-o gd-empty-star"></i>', $empty_stars); |
|
| 626 | + $html .= str_repeat('<i class="fa fa-star gd-full-star"></i>', $full_stars);
|
|
| 627 | + $html .= str_repeat('<i class="fa fa-star-o fa-star-half-full gd-half-star"></i>', $half_stars);
|
|
| 628 | + $html .= str_repeat('<i class="fa fa-star-o gd-empty-star"></i>', $empty_stars);
|
|
| 629 | 629 | $html .= '</div>'; |
| 630 | 630 | } |
| 631 | 631 | |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | $full_color = get_option('geodir_reviewrating_fa_full_rating_color', '#757575');
|
| 645 | 645 | if ($full_color != '#757575') {
|
| 646 | 646 | echo '<style type="text/css">.br-theme-fontawesome-stars .br-widget a.br-active:after,.br-theme-fontawesome-stars .br-widget a.br-selected:after, |
| 647 | - .gd-star-rating i.fa {color:' . stripslashes($full_color) . '!important;}</style>';
|
|
| 647 | + .gd-star-rating i.fa {color:' . stripslashes($full_color).'!important;}</style>';
|
|
| 648 | 648 | } |
| 649 | 649 | } |
| 650 | 650 | } |
| 651 | 651 | \ No newline at end of file |
@@ -107,7 +107,6 @@ |
||
| 107 | 107 | * @link http://php.net/manual/en/arrayaccess.offsetset.php |
| 108 | 108 | * |
| 109 | 109 | * @param mixed $offset The offset to assign the value to. |
| 110 | - * @param mixed $value The value to set. |
|
| 111 | 110 | * |
| 112 | 111 | * @return void |
| 113 | 112 | */ |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // Exit if accessed directly |
| 14 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 14 | +if (!defined('ABSPATH')) exit; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Recursive array class to allow multidimensional array access. |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @param array $data |
| 41 | 41 | */ |
| 42 | - protected function __construct( $data = array() ) { |
|
| 43 | - foreach ( $data as $key => $value ) { |
|
| 44 | - $this[ $key ] = $value; |
|
| 42 | + protected function __construct($data = array()) { |
|
| 43 | + foreach ($data as $key => $value) { |
|
| 44 | + $this[$key] = $value; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | * Allow deep copies of objects |
| 50 | 50 | */ |
| 51 | 51 | public function __clone() { |
| 52 | - foreach ( $this->container as $key => $value ) { |
|
| 53 | - if ( $value instanceof self ) { |
|
| 54 | - $this[ $key ] = clone $value; |
|
| 52 | + foreach ($this->container as $key => $value) { |
|
| 53 | + if ($value instanceof self) { |
|
| 54 | + $this[$key] = clone $value; |
|
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | } |
@@ -63,9 +63,9 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function toArray() { |
| 65 | 65 | $data = $this->container; |
| 66 | - foreach ( $data as $key => $value ) { |
|
| 67 | - if ( $value instanceof self ) { |
|
| 68 | - $data[ $key ] = $value->toArray(); |
|
| 66 | + foreach ($data as $key => $value) { |
|
| 67 | + if ($value instanceof self) { |
|
| 68 | + $data[$key] = $value->toArray(); |
|
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | return $data; |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | * |
| 85 | 85 | * @return boolean true on success or false on failure. |
| 86 | 86 | */ |
| 87 | - public function offsetExists( $offset ) { |
|
| 88 | - return isset( $this->container[ $offset ]) ; |
|
| 87 | + public function offsetExists($offset) { |
|
| 88 | + return isset($this->container[$offset]); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @return mixed Can return all value types. |
| 99 | 99 | */ |
| 100 | - public function offsetGet( $offset ) { |
|
| 101 | - return isset( $this->container[ $offset ] ) ? $this->container[ $offset ] : null; |
|
| 100 | + public function offsetGet($offset) { |
|
| 101 | + return isset($this->container[$offset]) ? $this->container[$offset] : null; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -111,14 +111,14 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @return void |
| 113 | 113 | */ |
| 114 | - public function offsetSet( $offset, $data ) { |
|
| 115 | - if ( is_array( $data ) ) { |
|
| 116 | - $data = new self( $data ); |
|
| 114 | + public function offsetSet($offset, $data) { |
|
| 115 | + if (is_array($data)) { |
|
| 116 | + $data = new self($data); |
|
| 117 | 117 | } |
| 118 | - if ( $offset === null ) { // don't forget this! |
|
| 118 | + if ($offset === null) { // don't forget this! |
|
| 119 | 119 | $this->container[] = $data; |
| 120 | 120 | } else { |
| 121 | - $this->container[ $offset ] = $data; |
|
| 121 | + $this->container[$offset] = $data; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | $this->dirty = true; |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * |
| 134 | 134 | * @return void |
| 135 | 135 | */ |
| 136 | - public function offsetUnset( $offset ) { |
|
| 137 | - unset( $this->container[ $offset ] ); |
|
| 136 | + public function offsetUnset($offset) { |
|
| 137 | + unset($this->container[$offset]); |
|
| 138 | 138 | } |
| 139 | 139 | } |
@@ -11,7 +11,9 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // Exit if accessed directly |
| 14 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 14 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 15 | + exit; |
|
| 16 | +} |
|
| 15 | 17 | |
| 16 | 18 | /** |
| 17 | 19 | * Return the current cache expire setting. |
@@ -72,8 +72,8 @@ |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * ArrayAccess Implementation |
|
| 76 | - **/ |
|
| 75 | + * ArrayAccess Implementation |
|
| 76 | + **/ |
|
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * Whether a offset exists |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Retrieve the current session instance. |
| 53 | 53 | * |
| 54 | - * @param bool $session_id Session ID from which to populate data. |
|
| 55 | 54 | * |
| 56 | 55 | * @return bool|WP_Session |
| 57 | 56 | */ |
@@ -11,7 +11,9 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // Exit if accessed directly |
| 14 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 14 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 15 | + exit; |
|
| 16 | +} |
|
| 15 | 17 | |
| 16 | 18 | /** |
| 17 | 19 | * Return the current cache expire setting. |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // Exit if accessed directly |
| 14 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 14 | +if (!defined('ABSPATH')) exit; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * WordPress Session class for managing user session data. |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @return bool|WP_Session |
| 57 | 57 | */ |
| 58 | 58 | public static function get_instance() { |
| 59 | - if ( ! self::$instance ) { |
|
| 59 | + if (!self::$instance) { |
|
| 60 | 60 | self::$instance = new self(); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -72,17 +72,17 @@ discard block |
||
| 72 | 72 | * @uses apply_filters Calls `wp_session_expiration` to determine how long until sessions expire. |
| 73 | 73 | */ |
| 74 | 74 | protected function __construct() { |
| 75 | - if ( isset( $_COOKIE[WP_SESSION_COOKIE] ) ) { |
|
| 76 | - $cookie = stripslashes( $_COOKIE[WP_SESSION_COOKIE] ); |
|
| 77 | - $cookie_crumbs = explode( '||', $cookie ); |
|
| 75 | + if (isset($_COOKIE[WP_SESSION_COOKIE])) { |
|
| 76 | + $cookie = stripslashes($_COOKIE[WP_SESSION_COOKIE]); |
|
| 77 | + $cookie_crumbs = explode('||', $cookie); |
|
| 78 | 78 | |
| 79 | - if( $this->is_valid_md5( $cookie_crumbs[0] ) ) { |
|
| 79 | + if ($this->is_valid_md5($cookie_crumbs[0])) { |
|
| 80 | 80 | |
| 81 | 81 | $this->session_id = $cookie_crumbs[0]; |
| 82 | 82 | |
| 83 | 83 | } else { |
| 84 | 84 | |
| 85 | - $this->regenerate_id( true ); |
|
| 85 | + $this->regenerate_id(true); |
|
| 86 | 86 | |
| 87 | 87 | } |
| 88 | 88 | |
@@ -90,10 +90,10 @@ discard block |
||
| 90 | 90 | $this->exp_variant = $cookie_crumbs[2]; |
| 91 | 91 | |
| 92 | 92 | // Update the session expiration if we're past the variant time |
| 93 | - if ( time() > $this->exp_variant ) { |
|
| 93 | + if (time() > $this->exp_variant) { |
|
| 94 | 94 | $this->set_expiration(); |
| 95 | - delete_option( "_wp_session_expires_{$this->session_id}" ); |
|
| 96 | - add_option( "_wp_session_expires_{$this->session_id}", $this->expires, '', 'no' ); |
|
| 95 | + delete_option("_wp_session_expires_{$this->session_id}"); |
|
| 96 | + add_option("_wp_session_expires_{$this->session_id}", $this->expires, '', 'no'); |
|
| 97 | 97 | } |
| 98 | 98 | } else { |
| 99 | 99 | $this->session_id = $this->generate_id(); |
@@ -125,19 +125,19 @@ discard block |
||
| 125 | 125 | * @uses apply_filters Calls `wp_session_expiration` to get the standard expiration time for sessions. |
| 126 | 126 | */ |
| 127 | 127 | protected function set_expiration() { |
| 128 | - $this->exp_variant = time() + (int) apply_filters( 'wp_session_expiration_variant', 24 * 60 ); |
|
| 129 | - $this->expires = time() + (int) apply_filters( 'wp_session_expiration', 30 * 60 ); |
|
| 128 | + $this->exp_variant = time() + (int) apply_filters('wp_session_expiration_variant', 24 * 60); |
|
| 129 | + $this->expires = time() + (int) apply_filters('wp_session_expiration', 30 * 60); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * Set the session cookie |
| 134 | 134 | */ |
| 135 | 135 | protected function set_cookie() { |
| 136 | - if (! defined( 'GD_TESTING_MODE' )) { |
|
| 136 | + if (!defined('GD_TESTING_MODE')) { |
|
| 137 | 137 | try { |
| 138 | - setcookie( WP_SESSION_COOKIE, $this->session_id . '||' . $this->expires . '||' . $this->exp_variant , $this->expires, COOKIEPATH, COOKIE_DOMAIN ); |
|
| 139 | - } catch(Exception $e) { |
|
| 140 | - error_log( 'Set Cookie Error: ' . $e->getMessage() ); |
|
| 138 | + setcookie(WP_SESSION_COOKIE, $this->session_id.'||'.$this->expires.'||'.$this->exp_variant, $this->expires, COOKIEPATH, COOKIE_DOMAIN); |
|
| 139 | + } catch (Exception $e) { |
|
| 140 | + error_log('Set Cookie Error: '.$e->getMessage()); |
|
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -148,10 +148,10 @@ discard block |
||
| 148 | 148 | * @return string |
| 149 | 149 | */ |
| 150 | 150 | protected function generate_id() { |
| 151 | - require_once( ABSPATH . 'wp-includes/class-phpass.php'); |
|
| 152 | - $hasher = new PasswordHash( 8, false ); |
|
| 151 | + require_once(ABSPATH.'wp-includes/class-phpass.php'); |
|
| 152 | + $hasher = new PasswordHash(8, false); |
|
| 153 | 153 | |
| 154 | - return md5( $hasher->get_random_bytes( 32 ) ); |
|
| 154 | + return md5($hasher->get_random_bytes(32)); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -160,8 +160,8 @@ discard block |
||
| 160 | 160 | * @param string $md5 |
| 161 | 161 | * @return int |
| 162 | 162 | */ |
| 163 | - protected function is_valid_md5( $md5 = '' ){ |
|
| 164 | - return preg_match( '/^[a-f0-9]{32}$/', $md5 ); |
|
| 163 | + protected function is_valid_md5($md5 = '') { |
|
| 164 | + return preg_match('/^[a-f0-9]{32}$/', $md5); |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * @return array |
| 173 | 173 | */ |
| 174 | 174 | protected function read_data() { |
| 175 | - $this->container = get_option( "_wp_session_{$this->session_id}", array() ); |
|
| 175 | + $this->container = get_option("_wp_session_{$this->session_id}", array()); |
|
| 176 | 176 | |
| 177 | 177 | return $this->container; |
| 178 | 178 | } |
@@ -184,13 +184,13 @@ discard block |
||
| 184 | 184 | $option_key = "_wp_session_{$this->session_id}"; |
| 185 | 185 | |
| 186 | 186 | // Only write the collection to the DB if it's changed. |
| 187 | - if ( $this->dirty ) { |
|
| 188 | - if ( false === get_option( $option_key ) ) { |
|
| 189 | - add_option( "_wp_session_{$this->session_id}", $this->container, '', 'no' ); |
|
| 190 | - add_option( "_wp_session_expires_{$this->session_id}", $this->expires, '', 'no' ); |
|
| 187 | + if ($this->dirty) { |
|
| 188 | + if (false === get_option($option_key)) { |
|
| 189 | + add_option("_wp_session_{$this->session_id}", $this->container, '', 'no'); |
|
| 190 | + add_option("_wp_session_expires_{$this->session_id}", $this->expires, '', 'no'); |
|
| 191 | 191 | } else { |
| 192 | - delete_option( "_wp_session_{$this->session_id}" ); |
|
| 193 | - add_option( "_wp_session_{$this->session_id}", $this->container, '', 'no' ); |
|
| 192 | + delete_option("_wp_session_{$this->session_id}"); |
|
| 193 | + add_option("_wp_session_{$this->session_id}", $this->container, '', 'no'); |
|
| 194 | 194 | } |
| 195 | 195 | } |
| 196 | 196 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @return string |
| 202 | 202 | */ |
| 203 | 203 | public function json_out() { |
| 204 | - return json_encode( $this->container ); |
|
| 204 | + return json_encode($this->container); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
@@ -211,10 +211,10 @@ discard block |
||
| 211 | 211 | * |
| 212 | 212 | * @return bool |
| 213 | 213 | */ |
| 214 | - public function json_in( $data ) { |
|
| 215 | - $array = json_decode( $data ); |
|
| 214 | + public function json_in($data) { |
|
| 215 | + $array = json_decode($data); |
|
| 216 | 216 | |
| 217 | - if ( is_array( $array ) ) { |
|
| 217 | + if (is_array($array)) { |
|
| 218 | 218 | $this->container = $array; |
| 219 | 219 | return true; |
| 220 | 220 | } |
@@ -227,9 +227,9 @@ discard block |
||
| 227 | 227 | * |
| 228 | 228 | * @param bool $delete_old Flag whether or not to delete the old session data from the server. |
| 229 | 229 | */ |
| 230 | - public function regenerate_id( $delete_old = false ) { |
|
| 231 | - if ( $delete_old ) { |
|
| 232 | - delete_option( "_wp_session_{$this->session_id}" ); |
|
| 230 | + public function regenerate_id($delete_old = false) { |
|
| 231 | + if ($delete_old) { |
|
| 232 | + delete_option("_wp_session_{$this->session_id}"); |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | $this->session_id = $this->generate_id(); |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * @return mixed |
| 275 | 275 | */ |
| 276 | 276 | public function current() { |
| 277 | - return current( $this->container ); |
|
| 277 | + return current($this->container); |
|
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * @return mixed |
| 286 | 286 | */ |
| 287 | 287 | public function key() { |
| 288 | - return key( $this->container ); |
|
| 288 | + return key($this->container); |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * @return void |
| 297 | 297 | */ |
| 298 | 298 | public function next() { |
| 299 | - next( $this->container ); |
|
| 299 | + next($this->container); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | * @return void |
| 308 | 308 | */ |
| 309 | 309 | public function rewind() { |
| 310 | - reset( $this->container ); |
|
| 310 | + reset($this->container); |
|
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | /** |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | * @return bool |
| 319 | 319 | */ |
| 320 | 320 | public function valid() { |
| 321 | - return $this->offsetExists( $this->key() ); |
|
| 321 | + return $this->offsetExists($this->key()); |
|
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | /*****************************************************************/ |
@@ -333,6 +333,6 @@ discard block |
||
| 333 | 333 | * @return int |
| 334 | 334 | */ |
| 335 | 335 | public function count() { |
| 336 | - return count( $this->container ); |
|
| 336 | + return count($this->container); |
|
| 337 | 337 | } |
| 338 | 338 | } |
@@ -40,8 +40,9 @@ |
||
| 40 | 40 | $geodir_active_nav_locations = get_nav_menu_locations(); |
| 41 | 41 | if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
|
| 42 | 42 | foreach ($geodir_active_nav_locations as $key => $theme_location) {
|
| 43 | - if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations)) |
|
| 44 | - $post_type_arr[$key] = $geodir_all_nav_locations[$key]; |
|
| 43 | + if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations)) { |
|
| 44 | + $post_type_arr[$key] = $geodir_all_nav_locations[$key]; |
|
| 45 | + } |
|
| 45 | 46 | } |
| 46 | 47 | } |
| 47 | 48 | |
@@ -17,14 +17,14 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | function geodir_post_type_setting_fun() |
| 19 | 19 | {
|
| 20 | - $post_type_arr = array(); |
|
| 20 | + $post_type_arr = array(); |
|
| 21 | 21 | |
| 22 | - $post_types = geodir_get_posttypes('object');
|
|
| 22 | + $post_types = geodir_get_posttypes('object');
|
|
| 23 | 23 | |
| 24 | - foreach ($post_types as $key => $post_types_obj) {
|
|
| 25 | - $post_type_arr[$key] = $post_types_obj->labels->singular_name; |
|
| 26 | - } |
|
| 27 | - return $post_type_arr; |
|
| 24 | + foreach ($post_types as $key => $post_types_obj) {
|
|
| 25 | + $post_type_arr[$key] = $post_types_obj->labels->singular_name; |
|
| 26 | + } |
|
| 27 | + return $post_type_arr; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -35,17 +35,17 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | function geodir_theme_location_setting_fun() |
| 37 | 37 | {
|
| 38 | - $post_type_arr = array(); |
|
| 39 | - $geodir_all_nav_locations = get_registered_nav_menus(); |
|
| 40 | - $geodir_active_nav_locations = get_nav_menu_locations(); |
|
| 41 | - if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
|
|
| 42 | - foreach ($geodir_active_nav_locations as $key => $theme_location) {
|
|
| 43 | - if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations)) |
|
| 44 | - $post_type_arr[$key] = $geodir_all_nav_locations[$key]; |
|
| 45 | - } |
|
| 46 | - } |
|
| 47 | - |
|
| 48 | - return $post_type_arr; |
|
| 38 | + $post_type_arr = array(); |
|
| 39 | + $geodir_all_nav_locations = get_registered_nav_menus(); |
|
| 40 | + $geodir_active_nav_locations = get_nav_menu_locations(); |
|
| 41 | + if (!empty($geodir_active_nav_locations) && is_array($geodir_active_nav_locations)) {
|
|
| 42 | + foreach ($geodir_active_nav_locations as $key => $theme_location) {
|
|
| 43 | + if (!empty($geodir_all_nav_locations) && is_array($geodir_all_nav_locations) && array_key_exists($key, $geodir_all_nav_locations)) |
|
| 44 | + $post_type_arr[$key] = $geodir_all_nav_locations[$key]; |
|
| 45 | + } |
|
| 46 | + } |
|
| 47 | + |
|
| 48 | + return $post_type_arr; |
|
| 49 | 49 | } |
| 50 | 50 | /** |
| 51 | 51 | * Filter GD design settings array. |
@@ -55,536 +55,536 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | $geodir_settings['design_settings'] = apply_filters('geodir_design_settings', array(
|
| 57 | 57 | |
| 58 | - /* Home Layout Settings start */ |
|
| 59 | - array('name' => __('Home', 'geodirectory'), 'type' => 'title', 'desc' => 'Setting to set home page layout', 'id' => 'home_page_settings '),
|
|
| 58 | + /* Home Layout Settings start */ |
|
| 59 | + array('name' => __('Home', 'geodirectory'), 'type' => 'title', 'desc' => 'Setting to set home page layout', 'id' => 'home_page_settings '),
|
|
| 60 | 60 | |
| 61 | 61 | |
| 62 | - array('name' => __('Home Top Section Settings', 'geodirectory'),
|
|
| 63 | - 'type' => 'sectionstart', |
|
| 64 | - 'desc' => '', |
|
| 65 | - 'id' => 'geodir_home_top_section'), |
|
| 62 | + array('name' => __('Home Top Section Settings', 'geodirectory'),
|
|
| 63 | + 'type' => 'sectionstart', |
|
| 64 | + 'desc' => '', |
|
| 65 | + 'id' => 'geodir_home_top_section'), |
|
| 66 | 66 | |
| 67 | - array( |
|
| 68 | - 'name' => __('Geodirectory home page', 'geodirectory'),
|
|
| 69 | - 'desc' => __('Set geodirectory home page as your home. <b style="color:red;">This setting has been depreciated and will be removed in the next version, instead please set the GD home page in GD>Permalinks and then set this page to the front page under Settings>Reading>Front Page</b>', 'geodirectory'),
|
|
| 70 | - 'id' => 'geodir_set_as_home', |
|
| 71 | - 'type' => 'checkbox', |
|
| 72 | - 'std' => '0' // Default value to show home top section |
|
| 73 | - ), |
|
| 67 | + array( |
|
| 68 | + 'name' => __('Geodirectory home page', 'geodirectory'),
|
|
| 69 | + 'desc' => __('Set geodirectory home page as your home. <b style="color:red;">This setting has been depreciated and will be removed in the next version, instead please set the GD home page in GD>Permalinks and then set this page to the front page under Settings>Reading>Front Page</b>', 'geodirectory'),
|
|
| 70 | + 'id' => 'geodir_set_as_home', |
|
| 71 | + 'type' => 'checkbox', |
|
| 72 | + 'std' => '0' // Default value to show home top section |
|
| 73 | + ), |
|
| 74 | 74 | |
| 75 | - array( |
|
| 76 | - 'name' => __('Home top section', 'geodirectory'),
|
|
| 77 | - 'desc' => __('Show the top section of home page', 'geodirectory'),
|
|
| 78 | - 'id' => 'geodir_show_home_top_section', |
|
| 79 | - 'type' => 'checkbox', |
|
| 80 | - 'std' => '1' // Default value to show home top section |
|
| 81 | - ), |
|
| 75 | + array( |
|
| 76 | + 'name' => __('Home top section', 'geodirectory'),
|
|
| 77 | + 'desc' => __('Show the top section of home page', 'geodirectory'),
|
|
| 78 | + 'id' => 'geodir_show_home_top_section', |
|
| 79 | + 'type' => 'checkbox', |
|
| 80 | + 'std' => '1' // Default value to show home top section |
|
| 81 | + ), |
|
| 82 | 82 | |
| 83 | 83 | |
| 84 | - array('type' => 'sectionend', 'id' => 'geodir_home_top_section'),
|
|
| 84 | + array('type' => 'sectionend', 'id' => 'geodir_home_top_section'),
|
|
| 85 | 85 | |
| 86 | 86 | |
| 87 | - array('name' => __('Home Page Layout Settings', 'geodirectory'),
|
|
| 88 | - 'type' => 'sectionstart', |
|
| 89 | - 'desc' => '', |
|
| 90 | - 'id' => 'geodir_home_layout'), |
|
| 87 | + array('name' => __('Home Page Layout Settings', 'geodirectory'),
|
|
| 88 | + 'type' => 'sectionstart', |
|
| 89 | + 'desc' => '', |
|
| 90 | + 'id' => 'geodir_home_layout'), |
|
| 91 | 91 | |
| 92 | - array( |
|
| 93 | - 'name' => __('Home right section', 'geodirectory'),
|
|
| 94 | - 'desc' => __('Show the right section of home page', 'geodirectory'),
|
|
| 95 | - 'id' => 'geodir_show_home_right_section', |
|
| 96 | - 'type' => 'checkbox', |
|
| 97 | - 'std' => '1' // Default value to show home top section |
|
| 98 | - ), |
|
| 92 | + array( |
|
| 93 | + 'name' => __('Home right section', 'geodirectory'),
|
|
| 94 | + 'desc' => __('Show the right section of home page', 'geodirectory'),
|
|
| 95 | + 'id' => 'geodir_show_home_right_section', |
|
| 96 | + 'type' => 'checkbox', |
|
| 97 | + 'std' => '1' // Default value to show home top section |
|
| 98 | + ), |
|
| 99 | 99 | |
| 100 | - array( |
|
| 101 | - 'name' => __('Width of home right section', 'geodirectory'),
|
|
| 102 | - 'desc' => __('Enter the width of right section of home page in %', 'geodirectory'),
|
|
| 103 | - 'id' => 'geodir_width_home_right_section', |
|
| 104 | - 'type' => 'text', |
|
| 105 | - 'css' => 'min-width:300px;', |
|
| 106 | - 'std' => '30' // Default value to show home top section |
|
| 107 | - ), |
|
| 100 | + array( |
|
| 101 | + 'name' => __('Width of home right section', 'geodirectory'),
|
|
| 102 | + 'desc' => __('Enter the width of right section of home page in %', 'geodirectory'),
|
|
| 103 | + 'id' => 'geodir_width_home_right_section', |
|
| 104 | + 'type' => 'text', |
|
| 105 | + 'css' => 'min-width:300px;', |
|
| 106 | + 'std' => '30' // Default value to show home top section |
|
| 107 | + ), |
|
| 108 | 108 | |
| 109 | - array( |
|
| 110 | - 'name' => __('Home content section', 'geodirectory'),
|
|
| 111 | - 'desc' => __('Show the content section of home page', 'geodirectory'),
|
|
| 112 | - 'id' => 'geodir_show_home_contant_section', |
|
| 113 | - 'type' => 'checkbox', |
|
| 114 | - 'std' => '1' // Default value to show home top section |
|
| 115 | - ), |
|
| 109 | + array( |
|
| 110 | + 'name' => __('Home content section', 'geodirectory'),
|
|
| 111 | + 'desc' => __('Show the content section of home page', 'geodirectory'),
|
|
| 112 | + 'id' => 'geodir_show_home_contant_section', |
|
| 113 | + 'type' => 'checkbox', |
|
| 114 | + 'std' => '1' // Default value to show home top section |
|
| 115 | + ), |
|
| 116 | 116 | |
| 117 | - array( |
|
| 118 | - 'name' => __('Width of home content section', 'geodirectory'),
|
|
| 119 | - 'desc' => __('Enter the width of content section of home page in %', 'geodirectory'),
|
|
| 120 | - 'id' => 'geodir_width_home_contant_section', |
|
| 121 | - 'type' => 'text', |
|
| 122 | - 'css' => 'min-width:300px;', |
|
| 123 | - 'std' => '63' // Default value to show home top section |
|
| 124 | - ), |
|
| 117 | + array( |
|
| 118 | + 'name' => __('Width of home content section', 'geodirectory'),
|
|
| 119 | + 'desc' => __('Enter the width of content section of home page in %', 'geodirectory'),
|
|
| 120 | + 'id' => 'geodir_width_home_contant_section', |
|
| 121 | + 'type' => 'text', |
|
| 122 | + 'css' => 'min-width:300px;', |
|
| 123 | + 'std' => '63' // Default value to show home top section |
|
| 124 | + ), |
|
| 125 | 125 | |
| 126 | - array( |
|
| 127 | - 'name' => __('Home left section', 'geodirectory'),
|
|
| 128 | - 'desc' => __('Show the left section of home page', 'geodirectory'),
|
|
| 129 | - 'id' => 'geodir_show_home_left_section', |
|
| 130 | - 'type' => 'checkbox', |
|
| 131 | - 'std' => '0' // Default value to show home top section |
|
| 132 | - ), |
|
| 126 | + array( |
|
| 127 | + 'name' => __('Home left section', 'geodirectory'),
|
|
| 128 | + 'desc' => __('Show the left section of home page', 'geodirectory'),
|
|
| 129 | + 'id' => 'geodir_show_home_left_section', |
|
| 130 | + 'type' => 'checkbox', |
|
| 131 | + 'std' => '0' // Default value to show home top section |
|
| 132 | + ), |
|
| 133 | 133 | |
| 134 | - array( |
|
| 135 | - 'name' => __('Width of home left section', 'geodirectory'),
|
|
| 136 | - 'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
|
|
| 137 | - 'id' => 'geodir_width_home_left_section', |
|
| 138 | - 'type' => 'text', |
|
| 139 | - 'css' => 'min-width:300px;', |
|
| 140 | - 'std' => '30' // Default value to show home top section |
|
| 141 | - ), |
|
| 134 | + array( |
|
| 135 | + 'name' => __('Width of home left section', 'geodirectory'),
|
|
| 136 | + 'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
|
|
| 137 | + 'id' => 'geodir_width_home_left_section', |
|
| 138 | + 'type' => 'text', |
|
| 139 | + 'css' => 'min-width:300px;', |
|
| 140 | + 'std' => '30' // Default value to show home top section |
|
| 141 | + ), |
|
| 142 | 142 | |
| 143 | - array( |
|
| 144 | - 'name' => __('Home bottom section', 'geodirectory'),
|
|
| 145 | - 'desc' => __('Show the bottom section of home page', 'geodirectory'),
|
|
| 146 | - 'id' => 'geodir_show_home_bottom_section', |
|
| 147 | - 'type' => 'checkbox', |
|
| 148 | - 'std' => '0' // Default value to show home top section |
|
| 149 | - ), |
|
| 150 | - array( |
|
| 151 | - 'name' => __('Resize image large size', 'geodirectory'),
|
|
| 152 | - 'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
|
|
| 153 | - 'id' => 'geodir_use_wp_media_large_size', |
|
| 154 | - 'type' => 'checkbox', |
|
| 155 | - 'std' => '0' |
|
| 156 | - ), |
|
| 143 | + array( |
|
| 144 | + 'name' => __('Home bottom section', 'geodirectory'),
|
|
| 145 | + 'desc' => __('Show the bottom section of home page', 'geodirectory'),
|
|
| 146 | + 'id' => 'geodir_show_home_bottom_section', |
|
| 147 | + 'type' => 'checkbox', |
|
| 148 | + 'std' => '0' // Default value to show home top section |
|
| 149 | + ), |
|
| 150 | + array( |
|
| 151 | + 'name' => __('Resize image large size', 'geodirectory'),
|
|
| 152 | + 'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
|
|
| 153 | + 'id' => 'geodir_use_wp_media_large_size', |
|
| 154 | + 'type' => 'checkbox', |
|
| 155 | + 'std' => '0' |
|
| 156 | + ), |
|
| 157 | 157 | |
| 158 | - array('type' => 'sectionend', 'id' => 'geodir_home_layout'),
|
|
| 158 | + array('type' => 'sectionend', 'id' => 'geodir_home_layout'),
|
|
| 159 | 159 | |
| 160 | 160 | |
| 161 | - /* Home Layout Settings end */ |
|
| 161 | + /* Home Layout Settings end */ |
|
| 162 | 162 | |
| 163 | 163 | |
| 164 | - /* Listing Layout Settings end */ |
|
| 164 | + /* Listing Layout Settings end */ |
|
| 165 | 165 | |
| 166 | - array('name' => __('Listings', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_listing_settings '),
|
|
| 166 | + array('name' => __('Listings', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_listing_settings '),
|
|
| 167 | 167 | |
| 168 | 168 | |
| 169 | - array('name' => __('Listing Page Layout Settings', 'geodirectory'),
|
|
| 170 | - 'type' => 'sectionstart', |
|
| 171 | - 'desc' => '', |
|
| 172 | - 'id' => 'geodir_listing_layout'), |
|
| 169 | + array('name' => __('Listing Page Layout Settings', 'geodirectory'),
|
|
| 170 | + 'type' => 'sectionstart', |
|
| 171 | + 'desc' => '', |
|
| 172 | + 'id' => 'geodir_listing_layout'), |
|
| 173 | 173 | |
| 174 | - array( |
|
| 175 | - 'name' => __('Listing top section', 'geodirectory'),
|
|
| 176 | - 'desc' => __('Show the top section of listing page', 'geodirectory'),
|
|
| 177 | - 'id' => 'geodir_show_listing_top_section', |
|
| 178 | - 'type' => 'checkbox', |
|
| 179 | - 'std' => '1' // Default value to show home top section |
|
| 180 | - ), |
|
| 174 | + array( |
|
| 175 | + 'name' => __('Listing top section', 'geodirectory'),
|
|
| 176 | + 'desc' => __('Show the top section of listing page', 'geodirectory'),
|
|
| 177 | + 'id' => 'geodir_show_listing_top_section', |
|
| 178 | + 'type' => 'checkbox', |
|
| 179 | + 'std' => '1' // Default value to show home top section |
|
| 180 | + ), |
|
| 181 | 181 | |
| 182 | - array( |
|
| 183 | - 'name' => __('Listing right section', 'geodirectory'),
|
|
| 184 | - 'desc' => __('Show the right section of listing page', 'geodirectory'),
|
|
| 185 | - 'id' => 'geodir_show_listing_right_section', |
|
| 186 | - 'type' => 'checkbox', |
|
| 187 | - 'std' => '1' // Default value to show home top section |
|
| 188 | - ), |
|
| 182 | + array( |
|
| 183 | + 'name' => __('Listing right section', 'geodirectory'),
|
|
| 184 | + 'desc' => __('Show the right section of listing page', 'geodirectory'),
|
|
| 185 | + 'id' => 'geodir_show_listing_right_section', |
|
| 186 | + 'type' => 'checkbox', |
|
| 187 | + 'std' => '1' // Default value to show home top section |
|
| 188 | + ), |
|
| 189 | 189 | |
| 190 | - array( |
|
| 191 | - 'name' => __('Width of listing right section', 'geodirectory'),
|
|
| 192 | - 'desc' => __('Enter the width of right section of listing page in %', 'geodirectory'),
|
|
| 193 | - 'id' => 'geodir_width_listing_right_section', |
|
| 194 | - 'type' => 'text', |
|
| 195 | - 'css' => 'min-width:300px;', |
|
| 196 | - 'std' => '30' // Default value to show home top section |
|
| 197 | - ), |
|
| 190 | + array( |
|
| 191 | + 'name' => __('Width of listing right section', 'geodirectory'),
|
|
| 192 | + 'desc' => __('Enter the width of right section of listing page in %', 'geodirectory'),
|
|
| 193 | + 'id' => 'geodir_width_listing_right_section', |
|
| 194 | + 'type' => 'text', |
|
| 195 | + 'css' => 'min-width:300px;', |
|
| 196 | + 'std' => '30' // Default value to show home top section |
|
| 197 | + ), |
|
| 198 | 198 | |
| 199 | 199 | |
| 200 | - array( |
|
| 201 | - 'name' => __('Listing content section view', 'geodirectory'),
|
|
| 202 | - 'desc' => __('Set the listing view of listing page', 'geodirectory'),
|
|
| 203 | - 'id' => 'geodir_listing_view', |
|
| 204 | - 'css' => 'min-width:300px;', |
|
| 205 | - 'std' => 'gridview_onehalf', |
|
| 206 | - 'type' => 'select', |
|
| 207 | - 'class' => 'chosen_select', |
|
| 208 | - 'options' => array_unique(array( |
|
| 209 | - 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 210 | - 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 211 | - 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 212 | - 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 213 | - 'listview' => __('List view', 'geodirectory'),
|
|
| 214 | - )) |
|
| 215 | - ), |
|
| 200 | + array( |
|
| 201 | + 'name' => __('Listing content section view', 'geodirectory'),
|
|
| 202 | + 'desc' => __('Set the listing view of listing page', 'geodirectory'),
|
|
| 203 | + 'id' => 'geodir_listing_view', |
|
| 204 | + 'css' => 'min-width:300px;', |
|
| 205 | + 'std' => 'gridview_onehalf', |
|
| 206 | + 'type' => 'select', |
|
| 207 | + 'class' => 'chosen_select', |
|
| 208 | + 'options' => array_unique(array( |
|
| 209 | + 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 210 | + 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 211 | + 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 212 | + 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 213 | + 'listview' => __('List view', 'geodirectory'),
|
|
| 214 | + )) |
|
| 215 | + ), |
|
| 216 | 216 | |
| 217 | - array( |
|
| 218 | - 'name' => __('Width of listing content section', 'geodirectory'),
|
|
| 219 | - 'desc' => __('Enter the width of content section of listing page in %', 'geodirectory'),
|
|
| 220 | - 'id' => 'geodir_width_listing_contant_section', |
|
| 221 | - 'type' => 'text', |
|
| 222 | - 'css' => 'min-width:300px;', |
|
| 223 | - 'std' => '63' // Default value to show home top section |
|
| 224 | - ), |
|
| 217 | + array( |
|
| 218 | + 'name' => __('Width of listing content section', 'geodirectory'),
|
|
| 219 | + 'desc' => __('Enter the width of content section of listing page in %', 'geodirectory'),
|
|
| 220 | + 'id' => 'geodir_width_listing_contant_section', |
|
| 221 | + 'type' => 'text', |
|
| 222 | + 'css' => 'min-width:300px;', |
|
| 223 | + 'std' => '63' // Default value to show home top section |
|
| 224 | + ), |
|
| 225 | 225 | |
| 226 | - array( |
|
| 227 | - 'name' => __('Listing left section', 'geodirectory'),
|
|
| 228 | - 'desc' => __('Show the left section of listing page', 'geodirectory'),
|
|
| 229 | - 'id' => 'geodir_show_listing_left_section', |
|
| 230 | - 'type' => 'checkbox', |
|
| 231 | - 'std' => '0' // Default value to show home top section |
|
| 232 | - ), |
|
| 226 | + array( |
|
| 227 | + 'name' => __('Listing left section', 'geodirectory'),
|
|
| 228 | + 'desc' => __('Show the left section of listing page', 'geodirectory'),
|
|
| 229 | + 'id' => 'geodir_show_listing_left_section', |
|
| 230 | + 'type' => 'checkbox', |
|
| 231 | + 'std' => '0' // Default value to show home top section |
|
| 232 | + ), |
|
| 233 | 233 | |
| 234 | - array( |
|
| 235 | - 'name' => __('Width of listing left section', 'geodirectory'),
|
|
| 236 | - 'desc' => __('Enter the width of left section of listing in %', 'geodirectory'),
|
|
| 237 | - 'id' => 'geodir_width_listing_left_section', |
|
| 238 | - 'type' => 'text', |
|
| 239 | - 'css' => 'min-width:300px;', |
|
| 240 | - 'std' => '30' // Default value to show home top section |
|
| 241 | - ), |
|
| 234 | + array( |
|
| 235 | + 'name' => __('Width of listing left section', 'geodirectory'),
|
|
| 236 | + 'desc' => __('Enter the width of left section of listing in %', 'geodirectory'),
|
|
| 237 | + 'id' => 'geodir_width_listing_left_section', |
|
| 238 | + 'type' => 'text', |
|
| 239 | + 'css' => 'min-width:300px;', |
|
| 240 | + 'std' => '30' // Default value to show home top section |
|
| 241 | + ), |
|
| 242 | 242 | |
| 243 | - array( |
|
| 244 | - 'name' => __('Listing bottom section', 'geodirectory'),
|
|
| 245 | - 'desc' => __('Show the bottom section of listing page', 'geodirectory'),
|
|
| 246 | - 'id' => 'geodir_show_listing_bottom_section', |
|
| 247 | - 'type' => 'checkbox', |
|
| 248 | - 'std' => '0' // Default value to show home top section |
|
| 249 | - ), |
|
| 243 | + array( |
|
| 244 | + 'name' => __('Listing bottom section', 'geodirectory'),
|
|
| 245 | + 'desc' => __('Show the bottom section of listing page', 'geodirectory'),
|
|
| 246 | + 'id' => 'geodir_show_listing_bottom_section', |
|
| 247 | + 'type' => 'checkbox', |
|
| 248 | + 'std' => '0' // Default value to show home top section |
|
| 249 | + ), |
|
| 250 | 250 | |
| 251 | - array( |
|
| 252 | - 'name' => __('Upload listing no image', 'geodirectory'),
|
|
| 253 | - 'desc' => '', |
|
| 254 | - 'id' => 'geodir_listing_no_img', |
|
| 255 | - 'type' => 'file', |
|
| 256 | - 'std' => '0' // Default value to show home top section |
|
| 257 | - ), |
|
| 251 | + array( |
|
| 252 | + 'name' => __('Upload listing no image', 'geodirectory'),
|
|
| 253 | + 'desc' => '', |
|
| 254 | + 'id' => 'geodir_listing_no_img', |
|
| 255 | + 'type' => 'file', |
|
| 256 | + 'std' => '0' // Default value to show home top section |
|
| 257 | + ), |
|
| 258 | 258 | |
| 259 | - array( |
|
| 260 | - 'name' => __('Description word limit', 'geodirectory'),
|
|
| 261 | - 'desc' => '', |
|
| 262 | - 'id' => 'geodir_desc_word_limit', |
|
| 263 | - 'type' => 'text', |
|
| 264 | - 'css' => 'min-width:300px;', |
|
| 265 | - 'std' => '50' // Default value to show home top section |
|
| 266 | - ), |
|
| 259 | + array( |
|
| 260 | + 'name' => __('Description word limit', 'geodirectory'),
|
|
| 261 | + 'desc' => '', |
|
| 262 | + 'id' => 'geodir_desc_word_limit', |
|
| 263 | + 'type' => 'text', |
|
| 264 | + 'css' => 'min-width:300px;', |
|
| 265 | + 'std' => '50' // Default value to show home top section |
|
| 266 | + ), |
|
| 267 | 267 | |
| 268 | - array( |
|
| 269 | - 'name' => __('Hover listing map animaton', 'geodirectory'),
|
|
| 270 | - 'desc' => __('Bounce map pin if listing hovered', 'geodirectory'),
|
|
| 271 | - 'id' => 'geodir_listing_hover_bounce_map_pin', |
|
| 272 | - 'type' => 'checkbox', |
|
| 273 | - 'std' => '1' // Default value to show home top section |
|
| 274 | - ), |
|
| 268 | + array( |
|
| 269 | + 'name' => __('Hover listing map animaton', 'geodirectory'),
|
|
| 270 | + 'desc' => __('Bounce map pin if listing hovered', 'geodirectory'),
|
|
| 271 | + 'id' => 'geodir_listing_hover_bounce_map_pin', |
|
| 272 | + 'type' => 'checkbox', |
|
| 273 | + 'std' => '1' // Default value to show home top section |
|
| 274 | + ), |
|
| 275 | 275 | |
| 276 | - array('type' => 'sectionend', 'id' => 'geodir_listing_layout'),
|
|
| 276 | + array('type' => 'sectionend', 'id' => 'geodir_listing_layout'),
|
|
| 277 | 277 | |
| 278 | 278 | |
| 279 | - array('name' => __('Listing General Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_listing_gen_settings '),
|
|
| 279 | + array('name' => __('Listing General Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_listing_gen_settings '),
|
|
| 280 | 280 | |
| 281 | - array( |
|
| 282 | - 'name' => __('New listing default status', 'geodirectory'),
|
|
| 283 | - 'desc' => __('Select new listing default status.', 'geodirectory'),
|
|
| 284 | - 'tip' => '', |
|
| 285 | - 'id' => 'geodir_new_post_default_status', |
|
| 286 | - 'css' => 'min-width:300px;', |
|
| 287 | - 'std' => 'publish', |
|
| 288 | - 'type' => 'select', |
|
| 289 | - 'class' => 'chosen_select', |
|
| 290 | - 'options' => array_unique(array( |
|
| 291 | - 'publish' => __('publish', 'geodirectory'),
|
|
| 292 | - 'draft' => __('draft', 'geodirectory'),
|
|
| 293 | - )) |
|
| 294 | - ), |
|
| 281 | + array( |
|
| 282 | + 'name' => __('New listing default status', 'geodirectory'),
|
|
| 283 | + 'desc' => __('Select new listing default status.', 'geodirectory'),
|
|
| 284 | + 'tip' => '', |
|
| 285 | + 'id' => 'geodir_new_post_default_status', |
|
| 286 | + 'css' => 'min-width:300px;', |
|
| 287 | + 'std' => 'publish', |
|
| 288 | + 'type' => 'select', |
|
| 289 | + 'class' => 'chosen_select', |
|
| 290 | + 'options' => array_unique(array( |
|
| 291 | + 'publish' => __('publish', 'geodirectory'),
|
|
| 292 | + 'draft' => __('draft', 'geodirectory'),
|
|
| 293 | + )) |
|
| 294 | + ), |
|
| 295 | 295 | |
| 296 | - array( |
|
| 297 | - 'name' => __('New listings settings', 'geodirectory'),
|
|
| 298 | - 'desc' => __('Enter number of days a listing will appear new.(enter 0 to disable feature)', 'geodirectory'),
|
|
| 299 | - 'id' => 'geodir_listing_new_days', |
|
| 300 | - 'type' => 'text', |
|
| 301 | - 'css' => 'min-width:300px;', |
|
| 302 | - 'std' => '30' // Default value for the page title - changed in settings |
|
| 303 | - ), |
|
| 296 | + array( |
|
| 297 | + 'name' => __('New listings settings', 'geodirectory'),
|
|
| 298 | + 'desc' => __('Enter number of days a listing will appear new.(enter 0 to disable feature)', 'geodirectory'),
|
|
| 299 | + 'id' => 'geodir_listing_new_days', |
|
| 300 | + 'type' => 'text', |
|
| 301 | + 'css' => 'min-width:300px;', |
|
| 302 | + 'std' => '30' // Default value for the page title - changed in settings |
|
| 303 | + ), |
|
| 304 | 304 | |
| 305 | - array('type' => 'sectionend', 'id' => 'geodir_listing_gen_settings'),
|
|
| 305 | + array('type' => 'sectionend', 'id' => 'geodir_listing_gen_settings'),
|
|
| 306 | 306 | |
| 307 | 307 | |
| 308 | - array('name' => __('Add Listing Form Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_add_listing_gen_settings'),
|
|
| 308 | + array('name' => __('Add Listing Form Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_add_listing_gen_settings'),
|
|
| 309 | 309 | |
| 310 | - array( |
|
| 311 | - 'name' => __('Enable "Accept Terms and Conditions"', 'geodirectory'),
|
|
| 312 | - 'desc' => __('Show the "Accept Terms and Conditions" field on add listing.', 'geodirectory'),
|
|
| 313 | - 'id' => 'geodir_accept_term_condition', |
|
| 314 | - 'type' => 'checkbox', |
|
| 315 | - 'std' => '1' // Default value to show home top section |
|
| 316 | - ), |
|
| 310 | + array( |
|
| 311 | + 'name' => __('Enable "Accept Terms and Conditions"', 'geodirectory'),
|
|
| 312 | + 'desc' => __('Show the "Accept Terms and Conditions" field on add listing.', 'geodirectory'),
|
|
| 313 | + 'id' => 'geodir_accept_term_condition', |
|
| 314 | + 'type' => 'checkbox', |
|
| 315 | + 'std' => '1' // Default value to show home top section |
|
| 316 | + ), |
|
| 317 | 317 | |
| 318 | 318 | |
| 319 | - array( |
|
| 320 | - 'name' => __('Show description field as editor', 'geodirectory'),
|
|
| 321 | - 'desc' => __('Select post types to show advanced editor on add listing page.', 'geodirectory'),
|
|
| 322 | - 'tip' => '', |
|
| 323 | - 'id' => 'geodir_tiny_editor_on_add_listing', |
|
| 324 | - 'css' => 'min-width:300px;', |
|
| 325 | - 'std' => array(), |
|
| 326 | - 'type' => 'multiselect', |
|
| 327 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 328 | - 'class' => 'chosen_select', |
|
| 329 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 330 | - ), |
|
| 319 | + array( |
|
| 320 | + 'name' => __('Show description field as editor', 'geodirectory'),
|
|
| 321 | + 'desc' => __('Select post types to show advanced editor on add listing page.', 'geodirectory'),
|
|
| 322 | + 'tip' => '', |
|
| 323 | + 'id' => 'geodir_tiny_editor_on_add_listing', |
|
| 324 | + 'css' => 'min-width:300px;', |
|
| 325 | + 'std' => array(), |
|
| 326 | + 'type' => 'multiselect', |
|
| 327 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 328 | + 'class' => 'chosen_select', |
|
| 329 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 330 | + ), |
|
| 331 | 331 | |
| 332 | - array('type' => 'sectionend', 'id' => 'geodir_add_listing_gen_settings'),
|
|
| 333 | - /* Listing Layout Settings end */ |
|
| 332 | + array('type' => 'sectionend', 'id' => 'geodir_add_listing_gen_settings'),
|
|
| 333 | + /* Listing Layout Settings end */ |
|
| 334 | 334 | |
| 335 | 335 | |
| 336 | - /* Search Layout Settings end */ |
|
| 336 | + /* Search Layout Settings end */ |
|
| 337 | 337 | |
| 338 | - array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_search_settings '),
|
|
| 338 | + array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_search_settings '),
|
|
| 339 | 339 | |
| 340 | 340 | |
| 341 | - array('name' => __('Search Page Layout Settings', 'geodirectory'),
|
|
| 342 | - 'type' => 'sectionstart', |
|
| 343 | - 'desc' => '', |
|
| 344 | - 'id' => 'geodir_search_layout'), |
|
| 341 | + array('name' => __('Search Page Layout Settings', 'geodirectory'),
|
|
| 342 | + 'type' => 'sectionstart', |
|
| 343 | + 'desc' => '', |
|
| 344 | + 'id' => 'geodir_search_layout'), |
|
| 345 | 345 | |
| 346 | - array( |
|
| 347 | - 'name' => __('Search top section', 'geodirectory'),
|
|
| 348 | - 'desc' => __('Show the top section of search page', 'geodirectory'),
|
|
| 349 | - 'id' => 'geodir_show_search_top_section', |
|
| 350 | - 'type' => 'checkbox', |
|
| 351 | - 'std' => '1' // Default value to show home top section |
|
| 352 | - ), |
|
| 346 | + array( |
|
| 347 | + 'name' => __('Search top section', 'geodirectory'),
|
|
| 348 | + 'desc' => __('Show the top section of search page', 'geodirectory'),
|
|
| 349 | + 'id' => 'geodir_show_search_top_section', |
|
| 350 | + 'type' => 'checkbox', |
|
| 351 | + 'std' => '1' // Default value to show home top section |
|
| 352 | + ), |
|
| 353 | 353 | |
| 354 | - array( |
|
| 355 | - 'name' => __('Search right section', 'geodirectory'),
|
|
| 356 | - 'desc' => __('Show the right section of search page', 'geodirectory'),
|
|
| 357 | - 'id' => 'geodir_show_search_right_section', |
|
| 358 | - 'type' => 'checkbox', |
|
| 359 | - 'std' => '1' // Default value to show home top section |
|
| 360 | - ), |
|
| 354 | + array( |
|
| 355 | + 'name' => __('Search right section', 'geodirectory'),
|
|
| 356 | + 'desc' => __('Show the right section of search page', 'geodirectory'),
|
|
| 357 | + 'id' => 'geodir_show_search_right_section', |
|
| 358 | + 'type' => 'checkbox', |
|
| 359 | + 'std' => '1' // Default value to show home top section |
|
| 360 | + ), |
|
| 361 | 361 | |
| 362 | - array( |
|
| 363 | - 'name' => __('Width of search right section', 'geodirectory'),
|
|
| 364 | - 'desc' => __('Enter the width of right section of search page in %', 'geodirectory'),
|
|
| 365 | - 'id' => 'geodir_width_search_right_section', |
|
| 366 | - 'type' => 'text', |
|
| 367 | - 'css' => 'min-width:300px;', |
|
| 368 | - 'std' => '30' // Default value to show home top section |
|
| 369 | - ), |
|
| 362 | + array( |
|
| 363 | + 'name' => __('Width of search right section', 'geodirectory'),
|
|
| 364 | + 'desc' => __('Enter the width of right section of search page in %', 'geodirectory'),
|
|
| 365 | + 'id' => 'geodir_width_search_right_section', |
|
| 366 | + 'type' => 'text', |
|
| 367 | + 'css' => 'min-width:300px;', |
|
| 368 | + 'std' => '30' // Default value to show home top section |
|
| 369 | + ), |
|
| 370 | 370 | |
| 371 | 371 | |
| 372 | - array( |
|
| 373 | - 'name' => __('Search content section view', 'geodirectory'),
|
|
| 374 | - 'desc' => __('Set the listing view of search page', 'geodirectory'),
|
|
| 375 | - 'id' => 'geodir_search_view', |
|
| 376 | - 'css' => 'min-width:300px;', |
|
| 377 | - 'std' => 'gridview_onehalf', |
|
| 378 | - 'type' => 'select', |
|
| 379 | - 'class' => 'chosen_select', |
|
| 380 | - 'options' => array_unique(array( |
|
| 381 | - 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 382 | - 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 383 | - 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 384 | - 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 385 | - 'listview' => __('List view', 'geodirectory'),
|
|
| 386 | - )) |
|
| 387 | - ), |
|
| 372 | + array( |
|
| 373 | + 'name' => __('Search content section view', 'geodirectory'),
|
|
| 374 | + 'desc' => __('Set the listing view of search page', 'geodirectory'),
|
|
| 375 | + 'id' => 'geodir_search_view', |
|
| 376 | + 'css' => 'min-width:300px;', |
|
| 377 | + 'std' => 'gridview_onehalf', |
|
| 378 | + 'type' => 'select', |
|
| 379 | + 'class' => 'chosen_select', |
|
| 380 | + 'options' => array_unique(array( |
|
| 381 | + 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 382 | + 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 383 | + 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 384 | + 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 385 | + 'listview' => __('List view', 'geodirectory'),
|
|
| 386 | + )) |
|
| 387 | + ), |
|
| 388 | 388 | |
| 389 | - array( |
|
| 390 | - 'name' => __('Width of search content section', 'geodirectory'),
|
|
| 391 | - 'desc' => __('Enter the width of content section of search page in %', 'geodirectory'),
|
|
| 392 | - 'id' => 'geodir_width_search_contant_section', |
|
| 393 | - 'type' => 'text', |
|
| 394 | - 'css' => 'min-width:300px;', |
|
| 395 | - 'std' => '63' // Default value to show home top section |
|
| 396 | - ), |
|
| 389 | + array( |
|
| 390 | + 'name' => __('Width of search content section', 'geodirectory'),
|
|
| 391 | + 'desc' => __('Enter the width of content section of search page in %', 'geodirectory'),
|
|
| 392 | + 'id' => 'geodir_width_search_contant_section', |
|
| 393 | + 'type' => 'text', |
|
| 394 | + 'css' => 'min-width:300px;', |
|
| 395 | + 'std' => '63' // Default value to show home top section |
|
| 396 | + ), |
|
| 397 | 397 | |
| 398 | - array( |
|
| 399 | - 'name' => __('Search left section', 'geodirectory'),
|
|
| 400 | - 'desc' => __('Show the left section of search page', 'geodirectory'),
|
|
| 401 | - 'id' => 'geodir_show_search_left_section', |
|
| 402 | - 'type' => 'checkbox', |
|
| 403 | - 'std' => '0' // Default value to show home top section |
|
| 404 | - ), |
|
| 398 | + array( |
|
| 399 | + 'name' => __('Search left section', 'geodirectory'),
|
|
| 400 | + 'desc' => __('Show the left section of search page', 'geodirectory'),
|
|
| 401 | + 'id' => 'geodir_show_search_left_section', |
|
| 402 | + 'type' => 'checkbox', |
|
| 403 | + 'std' => '0' // Default value to show home top section |
|
| 404 | + ), |
|
| 405 | 405 | |
| 406 | - array( |
|
| 407 | - 'name' => __('Width of search left section', 'geodirectory'),
|
|
| 408 | - 'desc' => __('Enter the width of left section of search in %', 'geodirectory'),
|
|
| 409 | - 'id' => 'geodir_width_search_left_section', |
|
| 410 | - 'type' => 'text', |
|
| 411 | - 'css' => 'min-width:300px;', |
|
| 412 | - 'std' => '30' // Default value to show home top section |
|
| 413 | - ), |
|
| 406 | + array( |
|
| 407 | + 'name' => __('Width of search left section', 'geodirectory'),
|
|
| 408 | + 'desc' => __('Enter the width of left section of search in %', 'geodirectory'),
|
|
| 409 | + 'id' => 'geodir_width_search_left_section', |
|
| 410 | + 'type' => 'text', |
|
| 411 | + 'css' => 'min-width:300px;', |
|
| 412 | + 'std' => '30' // Default value to show home top section |
|
| 413 | + ), |
|
| 414 | 414 | |
| 415 | - array( |
|
| 416 | - 'name' => __('Search bottom section', 'geodirectory'),
|
|
| 417 | - 'desc' => __('Show the bottom section of search page', 'geodirectory'),
|
|
| 418 | - 'id' => 'geodir_show_search_bottom_section', |
|
| 419 | - 'type' => 'checkbox', |
|
| 420 | - 'std' => '0' // Default value to show home top section |
|
| 421 | - ), |
|
| 415 | + array( |
|
| 416 | + 'name' => __('Search bottom section', 'geodirectory'),
|
|
| 417 | + 'desc' => __('Show the bottom section of search page', 'geodirectory'),
|
|
| 418 | + 'id' => 'geodir_show_search_bottom_section', |
|
| 419 | + 'type' => 'checkbox', |
|
| 420 | + 'std' => '0' // Default value to show home top section |
|
| 421 | + ), |
|
| 422 | 422 | |
| 423 | 423 | array( |
| 424 | - 'name' => __('Show advanced pagination details', 'geodirectory'),
|
|
| 425 | - 'desc' => __('This will add extra pagination info like "Showing listings x-y of z" aftre/before pagination.', 'geodirectory'),
|
|
| 426 | - 'id' => 'geodir_pagination_advance_info', |
|
| 427 | - 'css' => 'min-width:300px;', |
|
| 428 | - 'std' => '', |
|
| 429 | - 'type' => 'select', |
|
| 430 | - 'class' => 'chosen_select', |
|
| 431 | - 'options' => array( |
|
| 424 | + 'name' => __('Show advanced pagination details', 'geodirectory'),
|
|
| 425 | + 'desc' => __('This will add extra pagination info like "Showing listings x-y of z" aftre/before pagination.', 'geodirectory'),
|
|
| 426 | + 'id' => 'geodir_pagination_advance_info', |
|
| 427 | + 'css' => 'min-width:300px;', |
|
| 428 | + 'std' => '', |
|
| 429 | + 'type' => 'select', |
|
| 430 | + 'class' => 'chosen_select', |
|
| 431 | + 'options' => array( |
|
| 432 | 432 | '' => __('Never Display', 'geodirectory'),
|
| 433 | 433 | 'after' => __('After Pagination', 'geodirectory'),
|
| 434 | 434 | 'before' => __('Before Pagination', 'geodirectory')
|
| 435 | 435 | ) |
| 436 | - ), |
|
| 436 | + ), |
|
| 437 | 437 | |
| 438 | - array('type' => 'sectionend', 'id' => 'geodir_search_layout'),
|
|
| 438 | + array('type' => 'sectionend', 'id' => 'geodir_search_layout'),
|
|
| 439 | 439 | |
| 440 | 440 | |
| 441 | - array('name' => __('Search form default text settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_search_form_default_text_settings'),
|
|
| 441 | + array('name' => __('Search form default text settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_search_form_default_text_settings'),
|
|
| 442 | 442 | |
| 443 | - array( |
|
| 444 | - 'name' => __('Search field default value', 'geodirectory'),
|
|
| 445 | - 'desc' => __('Show the search text box \'placeholder\' value on search form.', 'geodirectory'),
|
|
| 446 | - 'id' => 'geodir_search_field_default_text', |
|
| 447 | - 'type' => 'text', |
|
| 448 | - 'css' => 'min-width:300px;', |
|
| 449 | - 'std' => 'Search for' // show on the listing page. |
|
| 450 | - ), |
|
| 443 | + array( |
|
| 444 | + 'name' => __('Search field default value', 'geodirectory'),
|
|
| 445 | + 'desc' => __('Show the search text box \'placeholder\' value on search form.', 'geodirectory'),
|
|
| 446 | + 'id' => 'geodir_search_field_default_text', |
|
| 447 | + 'type' => 'text', |
|
| 448 | + 'css' => 'min-width:300px;', |
|
| 449 | + 'std' => 'Search for' // show on the listing page. |
|
| 450 | + ), |
|
| 451 | 451 | |
| 452 | - array( |
|
| 453 | - 'name' => __('Near field default value', 'geodirectory'),
|
|
| 454 | - 'desc' => __('Show the near text box \'placeholder\' value on search form.', 'geodirectory'),
|
|
| 455 | - 'id' => 'geodir_near_field_default_text', |
|
| 456 | - 'type' => 'text', |
|
| 457 | - 'css' => 'min-width:300px;', |
|
| 458 | - 'std' => 'Near' // show on the listing page. |
|
| 459 | - ), |
|
| 452 | + array( |
|
| 453 | + 'name' => __('Near field default value', 'geodirectory'),
|
|
| 454 | + 'desc' => __('Show the near text box \'placeholder\' value on search form.', 'geodirectory'),
|
|
| 455 | + 'id' => 'geodir_near_field_default_text', |
|
| 456 | + 'type' => 'text', |
|
| 457 | + 'css' => 'min-width:300px;', |
|
| 458 | + 'std' => 'Near' // show on the listing page. |
|
| 459 | + ), |
|
| 460 | 460 | |
| 461 | - array( |
|
| 462 | - 'name' => __('Search button label', 'geodirectory'),
|
|
| 463 | - 'desc' => __('Show the search button label on search form.', 'geodirectory'),
|
|
| 464 | - 'id' => 'geodir_search_button_label', |
|
| 465 | - 'type' => 'text', |
|
| 466 | - 'css' => 'min-width:300px;', |
|
| 467 | - 'std' => 'Search' // show on the listing page. |
|
| 468 | - ), |
|
| 461 | + array( |
|
| 462 | + 'name' => __('Search button label', 'geodirectory'),
|
|
| 463 | + 'desc' => __('Show the search button label on search form.', 'geodirectory'),
|
|
| 464 | + 'id' => 'geodir_search_button_label', |
|
| 465 | + 'type' => 'text', |
|
| 466 | + 'css' => 'min-width:300px;', |
|
| 467 | + 'std' => 'Search' // show on the listing page. |
|
| 468 | + ), |
|
| 469 | 469 | |
| 470 | - array('type' => 'sectionend', 'id' => 'geodir_search_form_default_text_settings'),
|
|
| 470 | + array('type' => 'sectionend', 'id' => 'geodir_search_form_default_text_settings'),
|
|
| 471 | 471 | |
| 472 | - /* Listing Layout Settings end */ |
|
| 472 | + /* Listing Layout Settings end */ |
|
| 473 | 473 | |
| 474 | 474 | |
| 475 | - /* Detail Layout Settings end */ |
|
| 475 | + /* Detail Layout Settings end */ |
|
| 476 | 476 | |
| 477 | - array('name' => __('Detail', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_detail_settings '),
|
|
| 477 | + array('name' => __('Detail', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_detail_settings '),
|
|
| 478 | 478 | |
| 479 | - array('name' => __('Detail/Single Page Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_settings '),
|
|
| 479 | + array('name' => __('Detail/Single Page Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_settings '),
|
|
| 480 | 480 | |
| 481 | - array( |
|
| 482 | - 'name' => __('Detail top section', 'geodirectory'),
|
|
| 483 | - 'desc' => __('Show the top section of listing page', 'geodirectory'),
|
|
| 484 | - 'id' => 'geodir_show_detail_top_section', |
|
| 485 | - 'type' => 'checkbox', |
|
| 486 | - 'std' => '1' // Default value to show home top section |
|
| 487 | - ), |
|
| 481 | + array( |
|
| 482 | + 'name' => __('Detail top section', 'geodirectory'),
|
|
| 483 | + 'desc' => __('Show the top section of listing page', 'geodirectory'),
|
|
| 484 | + 'id' => 'geodir_show_detail_top_section', |
|
| 485 | + 'type' => 'checkbox', |
|
| 486 | + 'std' => '1' // Default value to show home top section |
|
| 487 | + ), |
|
| 488 | 488 | |
| 489 | - array( |
|
| 490 | - 'name' => __('Detail bottom section', 'geodirectory'),
|
|
| 491 | - 'desc' => __('Show the bottom section of listing page', 'geodirectory'),
|
|
| 492 | - 'id' => 'geodir_show_detail_bottom_section', |
|
| 493 | - 'type' => 'checkbox', |
|
| 494 | - 'std' => '1' // Default value to show home top section |
|
| 495 | - ), |
|
| 496 | - array( |
|
| 497 | - 'name' => __('Detail sidebar section on left side', 'geodirectory'),
|
|
| 498 | - 'desc' => __('Display detail sidebar section on left side of the detail page', 'geodirectory'),
|
|
| 499 | - 'id' => 'geodir_detail_sidebar_left_section', |
|
| 500 | - 'type' => 'checkbox', |
|
| 501 | - 'std' => '0' |
|
| 502 | - ), |
|
| 503 | - array( |
|
| 504 | - 'name' => __('Disable GD modal', 'geodirectory'),
|
|
| 505 | - 'desc' => __('Disable GD modal that displays slideshow images in popup', 'geodirectory'),
|
|
| 506 | - 'id' => 'geodir_disable_gb_modal', |
|
| 507 | - 'type' => 'checkbox', |
|
| 508 | - 'std' => '0' |
|
| 509 | - ), |
|
| 510 | - array( |
|
| 511 | - 'name' => __('Disable Tweet, Fb Like, Google+ buttons section', 'geodirectory'),
|
|
| 512 | - 'desc' => __('Disable Tweet, Fb Like, Google+ buttons section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 513 | - 'id' => 'geodir_disable_tfg_buttons_section', |
|
| 514 | - 'type' => 'checkbox', |
|
| 515 | - 'std' => '0' |
|
| 516 | - ), |
|
| 517 | - array( |
|
| 518 | - 'name' => __('Disable share this button section', 'geodirectory'),
|
|
| 519 | - 'desc' => __('Disable share this button section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 520 | - 'id' => 'geodir_disable_sharethis_button_section', |
|
| 521 | - 'type' => 'checkbox', |
|
| 522 | - 'std' => '0' |
|
| 523 | - ), |
|
| 524 | - array( |
|
| 525 | - 'name' => __('Disable Google Analytics section', 'geodirectory'),
|
|
| 526 | - 'desc' => __('Disable Google Analytics section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 527 | - 'id' => 'geodir_disable_google_analytics_section', |
|
| 528 | - 'type' => 'checkbox', |
|
| 529 | - 'std' => '0' |
|
| 530 | - ), |
|
| 531 | - array( |
|
| 532 | - 'name' => __('Disable User Links section', 'geodirectory'),
|
|
| 533 | - 'desc' => __('Disable User Links section (Edit post, Favorite etc..) that displays on Detail page sidebar', 'geodirectory'),
|
|
| 534 | - 'id' => 'geodir_disable_user_links_section', |
|
| 535 | - 'type' => 'checkbox', |
|
| 536 | - 'std' => '0' |
|
| 537 | - ), |
|
| 538 | - array( |
|
| 539 | - 'name' => __('Disable Rating Info section', 'geodirectory'),
|
|
| 540 | - 'desc' => __('Disable Rating Info section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 541 | - 'id' => 'geodir_disable_rating_info_section', |
|
| 542 | - 'type' => 'checkbox', |
|
| 543 | - 'std' => '0' |
|
| 544 | - ), |
|
| 545 | - array( |
|
| 546 | - 'name' => __('Disable Listing Info section', 'geodirectory'),
|
|
| 547 | - 'desc' => __('Disable Listing Info section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 548 | - 'id' => 'geodir_disable_listing_info_section', |
|
| 549 | - 'type' => 'checkbox', |
|
| 550 | - 'std' => '0' |
|
| 551 | - ), |
|
| 489 | + array( |
|
| 490 | + 'name' => __('Detail bottom section', 'geodirectory'),
|
|
| 491 | + 'desc' => __('Show the bottom section of listing page', 'geodirectory'),
|
|
| 492 | + 'id' => 'geodir_show_detail_bottom_section', |
|
| 493 | + 'type' => 'checkbox', |
|
| 494 | + 'std' => '1' // Default value to show home top section |
|
| 495 | + ), |
|
| 496 | + array( |
|
| 497 | + 'name' => __('Detail sidebar section on left side', 'geodirectory'),
|
|
| 498 | + 'desc' => __('Display detail sidebar section on left side of the detail page', 'geodirectory'),
|
|
| 499 | + 'id' => 'geodir_detail_sidebar_left_section', |
|
| 500 | + 'type' => 'checkbox', |
|
| 501 | + 'std' => '0' |
|
| 502 | + ), |
|
| 503 | + array( |
|
| 504 | + 'name' => __('Disable GD modal', 'geodirectory'),
|
|
| 505 | + 'desc' => __('Disable GD modal that displays slideshow images in popup', 'geodirectory'),
|
|
| 506 | + 'id' => 'geodir_disable_gb_modal', |
|
| 507 | + 'type' => 'checkbox', |
|
| 508 | + 'std' => '0' |
|
| 509 | + ), |
|
| 510 | + array( |
|
| 511 | + 'name' => __('Disable Tweet, Fb Like, Google+ buttons section', 'geodirectory'),
|
|
| 512 | + 'desc' => __('Disable Tweet, Fb Like, Google+ buttons section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 513 | + 'id' => 'geodir_disable_tfg_buttons_section', |
|
| 514 | + 'type' => 'checkbox', |
|
| 515 | + 'std' => '0' |
|
| 516 | + ), |
|
| 517 | + array( |
|
| 518 | + 'name' => __('Disable share this button section', 'geodirectory'),
|
|
| 519 | + 'desc' => __('Disable share this button section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 520 | + 'id' => 'geodir_disable_sharethis_button_section', |
|
| 521 | + 'type' => 'checkbox', |
|
| 522 | + 'std' => '0' |
|
| 523 | + ), |
|
| 524 | + array( |
|
| 525 | + 'name' => __('Disable Google Analytics section', 'geodirectory'),
|
|
| 526 | + 'desc' => __('Disable Google Analytics section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 527 | + 'id' => 'geodir_disable_google_analytics_section', |
|
| 528 | + 'type' => 'checkbox', |
|
| 529 | + 'std' => '0' |
|
| 530 | + ), |
|
| 531 | + array( |
|
| 532 | + 'name' => __('Disable User Links section', 'geodirectory'),
|
|
| 533 | + 'desc' => __('Disable User Links section (Edit post, Favorite etc..) that displays on Detail page sidebar', 'geodirectory'),
|
|
| 534 | + 'id' => 'geodir_disable_user_links_section', |
|
| 535 | + 'type' => 'checkbox', |
|
| 536 | + 'std' => '0' |
|
| 537 | + ), |
|
| 538 | + array( |
|
| 539 | + 'name' => __('Disable Rating Info section', 'geodirectory'),
|
|
| 540 | + 'desc' => __('Disable Rating Info section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 541 | + 'id' => 'geodir_disable_rating_info_section', |
|
| 542 | + 'type' => 'checkbox', |
|
| 543 | + 'std' => '0' |
|
| 544 | + ), |
|
| 545 | + array( |
|
| 546 | + 'name' => __('Disable Listing Info section', 'geodirectory'),
|
|
| 547 | + 'desc' => __('Disable Listing Info section that displays on Detail page sidebar', 'geodirectory'),
|
|
| 548 | + 'id' => 'geodir_disable_listing_info_section', |
|
| 549 | + 'type' => 'checkbox', |
|
| 550 | + 'std' => '0' |
|
| 551 | + ), |
|
| 552 | 552 | |
| 553 | - array('type' => 'sectionend', 'id' => 'detail_page_settings'),
|
|
| 553 | + array('type' => 'sectionend', 'id' => 'detail_page_settings'),
|
|
| 554 | 554 | |
| 555 | 555 | |
| 556 | - /* ---------- DETAIL PAGE TAB SETTING START*/ |
|
| 556 | + /* ---------- DETAIL PAGE TAB SETTING START*/ |
|
| 557 | 557 | |
| 558 | - array('name' => __('Detail Page Tab Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_detail_page_tab_settings '),
|
|
| 558 | + array('name' => __('Detail Page Tab Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_detail_page_tab_settings '),
|
|
| 559 | 559 | |
| 560 | - array( |
|
| 561 | - 'name' => __('Exclude selected tabs from detail page', 'geodirectory'),
|
|
| 562 | - 'desc' => __('Select tabs to exclude from the list of all appearing tabs on detail page.', 'geodirectory'),
|
|
| 563 | - 'tip' => '', |
|
| 564 | - 'id' => 'geodir_detail_page_tabs_excluded', |
|
| 565 | - 'css' => 'min-width:300px;', |
|
| 566 | - 'std' => geodir_get_posttypes(), |
|
| 567 | - 'type' => 'multiselect', |
|
| 568 | - 'placeholder_text' => __('Select tabs', 'geodirectory'),
|
|
| 569 | - 'class' => 'chosen_select', |
|
| 570 | - 'options' => array_unique(geodir_detail_page_tabs_key_value_array()) |
|
| 571 | - ), |
|
| 560 | + array( |
|
| 561 | + 'name' => __('Exclude selected tabs from detail page', 'geodirectory'),
|
|
| 562 | + 'desc' => __('Select tabs to exclude from the list of all appearing tabs on detail page.', 'geodirectory'),
|
|
| 563 | + 'tip' => '', |
|
| 564 | + 'id' => 'geodir_detail_page_tabs_excluded', |
|
| 565 | + 'css' => 'min-width:300px;', |
|
| 566 | + 'std' => geodir_get_posttypes(), |
|
| 567 | + 'type' => 'multiselect', |
|
| 568 | + 'placeholder_text' => __('Select tabs', 'geodirectory'),
|
|
| 569 | + 'class' => 'chosen_select', |
|
| 570 | + 'options' => array_unique(geodir_detail_page_tabs_key_value_array()) |
|
| 571 | + ), |
|
| 572 | 572 | |
| 573 | 573 | |
| 574 | - array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
|
|
| 575 | - /* ---------- DETAIL PAGE TAB SETTING END*/ |
|
| 574 | + array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
|
|
| 575 | + /* ---------- DETAIL PAGE TAB SETTING END*/ |
|
| 576 | 576 | |
| 577 | - /* START DEFAULT STAR IMAGE*/ |
|
| 578 | - array('name' => __('Default Rating Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_rating_settings '),
|
|
| 577 | + /* START DEFAULT STAR IMAGE*/ |
|
| 578 | + array('name' => __('Default Rating Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_rating_settings '),
|
|
| 579 | 579 | |
| 580 | - array( |
|
| 581 | - 'name' => __('Upload default rating star icon', 'geodirectory'),
|
|
| 582 | - 'desc' => '', |
|
| 583 | - 'id' => 'geodir_default_rating_star_icon', |
|
| 584 | - 'type' => 'file', |
|
| 585 | - 'std' => '0', |
|
| 586 | - 'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section |
|
| 587 | - ), |
|
| 580 | + array( |
|
| 581 | + 'name' => __('Upload default rating star icon', 'geodirectory'),
|
|
| 582 | + 'desc' => '', |
|
| 583 | + 'id' => 'geodir_default_rating_star_icon', |
|
| 584 | + 'type' => 'file', |
|
| 585 | + 'std' => '0', |
|
| 586 | + 'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section |
|
| 587 | + ), |
|
| 588 | 588 | array( |
| 589 | 589 | 'name' => __('Enable Font Awesome', 'geodirectory'),
|
| 590 | 590 | 'desc' => __('When enabled all rating images will be using font awesome rating icons as images.', 'geodirectory' ),
|
@@ -600,368 +600,368 @@ discard block |
||
| 600 | 600 | 'std' => '#757575' |
| 601 | 601 | ), |
| 602 | 602 | |
| 603 | - array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
|
|
| 603 | + array('type' => 'sectionend', 'id' => 'geodir_detail_page_tab_settings'),
|
|
| 604 | 604 | |
| 605 | - /* END DEFAULT STAR IMAGE*/ |
|
| 605 | + /* END DEFAULT STAR IMAGE*/ |
|
| 606 | 606 | |
| 607 | - /* Detail related post settings start */ |
|
| 607 | + /* Detail related post settings start */ |
|
| 608 | 608 | |
| 609 | - array('name' => __('Related Post Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_related_post_settings '),
|
|
| 609 | + array('name' => __('Related Post Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'detail_page_related_post_settings '),
|
|
| 610 | 610 | |
| 611 | - array( |
|
| 612 | - 'name' => __('Show related post listing on', 'geodirectory'),
|
|
| 613 | - 'desc' => __('Select the post types to display related listing on detail page.', 'geodirectory'),
|
|
| 614 | - 'tip' => '', |
|
| 615 | - 'id' => 'geodir_add_related_listing_posttypes', |
|
| 616 | - 'css' => 'min-width:300px;', |
|
| 617 | - 'std' => geodir_get_posttypes(), |
|
| 618 | - 'type' => 'multiselect', |
|
| 619 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 620 | - 'class' => 'chosen_select', |
|
| 621 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 622 | - ), |
|
| 611 | + array( |
|
| 612 | + 'name' => __('Show related post listing on', 'geodirectory'),
|
|
| 613 | + 'desc' => __('Select the post types to display related listing on detail page.', 'geodirectory'),
|
|
| 614 | + 'tip' => '', |
|
| 615 | + 'id' => 'geodir_add_related_listing_posttypes', |
|
| 616 | + 'css' => 'min-width:300px;', |
|
| 617 | + 'std' => geodir_get_posttypes(), |
|
| 618 | + 'type' => 'multiselect', |
|
| 619 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 620 | + 'class' => 'chosen_select', |
|
| 621 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 622 | + ), |
|
| 623 | 623 | |
| 624 | - array( |
|
| 625 | - 'name' => __('Relate to', 'geodirectory'),
|
|
| 626 | - 'desc' => __('Set the relation between current post to related posts.', 'geodirectory'),
|
|
| 627 | - 'id' => 'geodir_related_post_relate_to', |
|
| 628 | - 'css' => 'min-width:300px;', |
|
| 629 | - 'std' => 'category', |
|
| 630 | - 'type' => 'select', |
|
| 631 | - 'class' => 'chosen_select', |
|
| 632 | - 'options' => array_unique(array( |
|
| 633 | - 'category' => __('Categories', 'geodirectory'),
|
|
| 634 | - 'tags' => __('Tags', 'geodirectory'),
|
|
| 635 | - )) |
|
| 636 | - ), |
|
| 624 | + array( |
|
| 625 | + 'name' => __('Relate to', 'geodirectory'),
|
|
| 626 | + 'desc' => __('Set the relation between current post to related posts.', 'geodirectory'),
|
|
| 627 | + 'id' => 'geodir_related_post_relate_to', |
|
| 628 | + 'css' => 'min-width:300px;', |
|
| 629 | + 'std' => 'category', |
|
| 630 | + 'type' => 'select', |
|
| 631 | + 'class' => 'chosen_select', |
|
| 632 | + 'options' => array_unique(array( |
|
| 633 | + 'category' => __('Categories', 'geodirectory'),
|
|
| 634 | + 'tags' => __('Tags', 'geodirectory'),
|
|
| 635 | + )) |
|
| 636 | + ), |
|
| 637 | 637 | |
| 638 | - array( |
|
| 639 | - 'name' => __('Layout', 'geodirectory'),
|
|
| 640 | - 'desc' => __('Set the listing view of relate post on detail page', 'geodirectory'),
|
|
| 641 | - 'id' => 'geodir_related_post_listing_view', |
|
| 642 | - 'css' => 'min-width:300px;', |
|
| 643 | - 'std' => 'gridview_onehalf', |
|
| 644 | - 'type' => 'select', |
|
| 645 | - 'class' => 'chosen_select', |
|
| 646 | - 'options' => array_unique(array( |
|
| 647 | - 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 648 | - 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 649 | - 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 650 | - 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 651 | - 'listview' => __('List view', 'geodirectory'),
|
|
| 652 | - )) |
|
| 653 | - ), |
|
| 638 | + array( |
|
| 639 | + 'name' => __('Layout', 'geodirectory'),
|
|
| 640 | + 'desc' => __('Set the listing view of relate post on detail page', 'geodirectory'),
|
|
| 641 | + 'id' => 'geodir_related_post_listing_view', |
|
| 642 | + 'css' => 'min-width:300px;', |
|
| 643 | + 'std' => 'gridview_onehalf', |
|
| 644 | + 'type' => 'select', |
|
| 645 | + 'class' => 'chosen_select', |
|
| 646 | + 'options' => array_unique(array( |
|
| 647 | + 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 648 | + 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 649 | + 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 650 | + 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 651 | + 'listview' => __('List view', 'geodirectory'),
|
|
| 652 | + )) |
|
| 653 | + ), |
|
| 654 | 654 | |
| 655 | - array( |
|
| 656 | - 'name' => __('Sort by', 'geodirectory'),
|
|
| 657 | - 'desc' => __('Set the related post listing sort by view', 'geodirectory'),
|
|
| 658 | - 'id' => 'geodir_related_post_sortby', |
|
| 659 | - 'css' => 'min-width:300px;', |
|
| 660 | - 'std' => 'latest', |
|
| 661 | - 'type' => 'select', |
|
| 662 | - 'class' => 'chosen_select', |
|
| 663 | - 'options' => array_unique(array( |
|
| 664 | - 'latest' => __('Latest', 'geodirectory'),
|
|
| 665 | - 'featured' => __('Featured', 'geodirectory'),
|
|
| 666 | - 'high_review' => __('Review', 'geodirectory'),
|
|
| 667 | - 'high_rating' => __('Rating', 'geodirectory'),
|
|
| 668 | - 'random' => __('Random', 'geodirectory'),
|
|
| 669 | - )) |
|
| 670 | - ), |
|
| 655 | + array( |
|
| 656 | + 'name' => __('Sort by', 'geodirectory'),
|
|
| 657 | + 'desc' => __('Set the related post listing sort by view', 'geodirectory'),
|
|
| 658 | + 'id' => 'geodir_related_post_sortby', |
|
| 659 | + 'css' => 'min-width:300px;', |
|
| 660 | + 'std' => 'latest', |
|
| 661 | + 'type' => 'select', |
|
| 662 | + 'class' => 'chosen_select', |
|
| 663 | + 'options' => array_unique(array( |
|
| 664 | + 'latest' => __('Latest', 'geodirectory'),
|
|
| 665 | + 'featured' => __('Featured', 'geodirectory'),
|
|
| 666 | + 'high_review' => __('Review', 'geodirectory'),
|
|
| 667 | + 'high_rating' => __('Rating', 'geodirectory'),
|
|
| 668 | + 'random' => __('Random', 'geodirectory'),
|
|
| 669 | + )) |
|
| 670 | + ), |
|
| 671 | 671 | |
| 672 | - array( |
|
| 673 | - 'name' => __('Number of posts:', 'geodirectory'),
|
|
| 674 | - 'desc' => __('Enter number of posts to display on related posts listing', 'geodirectory'),
|
|
| 675 | - 'id' => 'geodir_related_post_count', |
|
| 676 | - 'type' => 'text', |
|
| 677 | - 'css' => 'min-width:300px;', |
|
| 678 | - 'std' => '5' // Default value to show home top section |
|
| 679 | - ), |
|
| 672 | + array( |
|
| 673 | + 'name' => __('Number of posts:', 'geodirectory'),
|
|
| 674 | + 'desc' => __('Enter number of posts to display on related posts listing', 'geodirectory'),
|
|
| 675 | + 'id' => 'geodir_related_post_count', |
|
| 676 | + 'type' => 'text', |
|
| 677 | + 'css' => 'min-width:300px;', |
|
| 678 | + 'std' => '5' // Default value to show home top section |
|
| 679 | + ), |
|
| 680 | 680 | |
| 681 | - array( |
|
| 682 | - 'name' => __('Post excerpt', 'geodirectory'),
|
|
| 683 | - 'desc' => __('Post content excerpt character count', 'geodirectory'),
|
|
| 684 | - 'id' => 'geodir_related_post_excerpt', |
|
| 685 | - 'type' => 'text', |
|
| 686 | - 'css' => 'min-width:300px;', |
|
| 687 | - 'std' => '20' // Default value to show home top section |
|
| 688 | - ), |
|
| 681 | + array( |
|
| 682 | + 'name' => __('Post excerpt', 'geodirectory'),
|
|
| 683 | + 'desc' => __('Post content excerpt character count', 'geodirectory'),
|
|
| 684 | + 'id' => 'geodir_related_post_excerpt', |
|
| 685 | + 'type' => 'text', |
|
| 686 | + 'css' => 'min-width:300px;', |
|
| 687 | + 'std' => '20' // Default value to show home top section |
|
| 688 | + ), |
|
| 689 | 689 | |
| 690 | 690 | |
| 691 | - array('type' => 'sectionend', 'id' => 'detail_page_related_post_settings'),
|
|
| 692 | - /* Detail Layout Settings end */ |
|
| 691 | + array('type' => 'sectionend', 'id' => 'detail_page_related_post_settings'),
|
|
| 692 | + /* Detail Layout Settings end */ |
|
| 693 | 693 | |
| 694 | - /* Author Layout Settings Start */ |
|
| 694 | + /* Author Layout Settings Start */ |
|
| 695 | 695 | |
| 696 | - array('name' => __('Author', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_author_settings '),
|
|
| 696 | + array('name' => __('Author', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_author_settings '),
|
|
| 697 | 697 | |
| 698 | 698 | |
| 699 | - array('name' => __('Author Page Layout Settings', 'geodirectory'),
|
|
| 700 | - 'type' => 'sectionstart', |
|
| 701 | - 'desc' => '', |
|
| 702 | - 'id' => 'geodir_author_layout'), |
|
| 699 | + array('name' => __('Author Page Layout Settings', 'geodirectory'),
|
|
| 700 | + 'type' => 'sectionstart', |
|
| 701 | + 'desc' => '', |
|
| 702 | + 'id' => 'geodir_author_layout'), |
|
| 703 | 703 | |
| 704 | - array( |
|
| 705 | - 'name' => __('Author top section', 'geodirectory'),
|
|
| 706 | - 'desc' => __('Show the top section of author page', 'geodirectory'),
|
|
| 707 | - 'id' => 'geodir_show_author_top_section', |
|
| 708 | - 'type' => 'checkbox', |
|
| 709 | - 'std' => '1' // Default value to show home top section |
|
| 710 | - ), |
|
| 704 | + array( |
|
| 705 | + 'name' => __('Author top section', 'geodirectory'),
|
|
| 706 | + 'desc' => __('Show the top section of author page', 'geodirectory'),
|
|
| 707 | + 'id' => 'geodir_show_author_top_section', |
|
| 708 | + 'type' => 'checkbox', |
|
| 709 | + 'std' => '1' // Default value to show home top section |
|
| 710 | + ), |
|
| 711 | 711 | |
| 712 | - array( |
|
| 713 | - 'name' => __('Author right section', 'geodirectory'),
|
|
| 714 | - 'desc' => __('Show the right section of author page', 'geodirectory'),
|
|
| 715 | - 'id' => 'geodir_show_author_right_section', |
|
| 716 | - 'type' => 'checkbox', |
|
| 717 | - 'std' => '1' // Default value to show home top section |
|
| 718 | - ), |
|
| 712 | + array( |
|
| 713 | + 'name' => __('Author right section', 'geodirectory'),
|
|
| 714 | + 'desc' => __('Show the right section of author page', 'geodirectory'),
|
|
| 715 | + 'id' => 'geodir_show_author_right_section', |
|
| 716 | + 'type' => 'checkbox', |
|
| 717 | + 'std' => '1' // Default value to show home top section |
|
| 718 | + ), |
|
| 719 | 719 | |
| 720 | - array( |
|
| 721 | - 'name' => __('Width of author right section', 'geodirectory'),
|
|
| 722 | - 'desc' => __('Enter the width of right section of author page in %', 'geodirectory'),
|
|
| 723 | - 'id' => 'geodir_width_author_right_section', |
|
| 724 | - 'type' => 'text', |
|
| 725 | - 'css' => 'min-width:300px;', |
|
| 726 | - 'std' => '30' // Default value to show home top section |
|
| 727 | - ), |
|
| 720 | + array( |
|
| 721 | + 'name' => __('Width of author right section', 'geodirectory'),
|
|
| 722 | + 'desc' => __('Enter the width of right section of author page in %', 'geodirectory'),
|
|
| 723 | + 'id' => 'geodir_width_author_right_section', |
|
| 724 | + 'type' => 'text', |
|
| 725 | + 'css' => 'min-width:300px;', |
|
| 726 | + 'std' => '30' // Default value to show home top section |
|
| 727 | + ), |
|
| 728 | 728 | |
| 729 | - array( |
|
| 730 | - 'name' => __('Author content section view', 'geodirectory'),
|
|
| 731 | - 'desc' => __('Set the listing view of author page', 'geodirectory'),
|
|
| 732 | - 'id' => 'geodir_author_view', |
|
| 733 | - 'css' => 'min-width:300px;', |
|
| 734 | - 'std' => 'gridview_onehalf', |
|
| 735 | - 'type' => 'select', |
|
| 736 | - 'class' => 'chosen_select', |
|
| 737 | - 'options' => array_unique(array( |
|
| 738 | - 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 739 | - 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 740 | - 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 741 | - 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 742 | - 'listview' => __('List view', 'geodirectory'),
|
|
| 743 | - )) |
|
| 744 | - ), |
|
| 729 | + array( |
|
| 730 | + 'name' => __('Author content section view', 'geodirectory'),
|
|
| 731 | + 'desc' => __('Set the listing view of author page', 'geodirectory'),
|
|
| 732 | + 'id' => 'geodir_author_view', |
|
| 733 | + 'css' => 'min-width:300px;', |
|
| 734 | + 'std' => 'gridview_onehalf', |
|
| 735 | + 'type' => 'select', |
|
| 736 | + 'class' => 'chosen_select', |
|
| 737 | + 'options' => array_unique(array( |
|
| 738 | + 'gridview_onehalf' => __('Grid View (Two Columns)', 'geodirectory'),
|
|
| 739 | + 'gridview_onethird' => __('Grid View (Three Columns)', 'geodirectory'),
|
|
| 740 | + 'gridview_onefourth' => __('Grid View (Four Columns)', 'geodirectory'),
|
|
| 741 | + 'gridview_onefifth' => __('Grid View (Five Columns)', 'geodirectory'),
|
|
| 742 | + 'listview' => __('List view', 'geodirectory'),
|
|
| 743 | + )) |
|
| 744 | + ), |
|
| 745 | 745 | |
| 746 | - array( |
|
| 747 | - 'name' => __('Width of author content section', 'geodirectory'),
|
|
| 748 | - 'desc' => __('Enter the width of content section of author page in %', 'geodirectory'),
|
|
| 749 | - 'id' => 'geodir_width_author_contant_section', |
|
| 750 | - 'type' => 'text', |
|
| 751 | - 'css' => 'min-width:300px;', |
|
| 752 | - 'std' => '63' // Default value to show home top section |
|
| 753 | - ), |
|
| 746 | + array( |
|
| 747 | + 'name' => __('Width of author content section', 'geodirectory'),
|
|
| 748 | + 'desc' => __('Enter the width of content section of author page in %', 'geodirectory'),
|
|
| 749 | + 'id' => 'geodir_width_author_contant_section', |
|
| 750 | + 'type' => 'text', |
|
| 751 | + 'css' => 'min-width:300px;', |
|
| 752 | + 'std' => '63' // Default value to show home top section |
|
| 753 | + ), |
|
| 754 | 754 | |
| 755 | - array( |
|
| 756 | - 'name' => __('Author left section', 'geodirectory'),
|
|
| 757 | - 'desc' => __('Show the left section of author page', 'geodirectory'),
|
|
| 758 | - 'id' => 'geodir_show_author_left_section', |
|
| 759 | - 'type' => 'checkbox', |
|
| 760 | - 'std' => '0' // Default value to show home top section |
|
| 761 | - ), |
|
| 755 | + array( |
|
| 756 | + 'name' => __('Author left section', 'geodirectory'),
|
|
| 757 | + 'desc' => __('Show the left section of author page', 'geodirectory'),
|
|
| 758 | + 'id' => 'geodir_show_author_left_section', |
|
| 759 | + 'type' => 'checkbox', |
|
| 760 | + 'std' => '0' // Default value to show home top section |
|
| 761 | + ), |
|
| 762 | 762 | |
| 763 | - array( |
|
| 764 | - 'name' => __('Width of author left section', 'geodirectory'),
|
|
| 765 | - 'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
|
|
| 766 | - 'id' => 'geodir_width_author_left_section', |
|
| 767 | - 'type' => 'text', |
|
| 768 | - 'css' => 'min-width:300px;', |
|
| 769 | - 'std' => '30' // Default value to show home top section |
|
| 770 | - ), |
|
| 763 | + array( |
|
| 764 | + 'name' => __('Width of author left section', 'geodirectory'),
|
|
| 765 | + 'desc' => __('Enter the width of left section of home page in %', 'geodirectory'),
|
|
| 766 | + 'id' => 'geodir_width_author_left_section', |
|
| 767 | + 'type' => 'text', |
|
| 768 | + 'css' => 'min-width:300px;', |
|
| 769 | + 'std' => '30' // Default value to show home top section |
|
| 770 | + ), |
|
| 771 | 771 | |
| 772 | - array( |
|
| 773 | - 'name' => __('Author bottom section', 'geodirectory'),
|
|
| 774 | - 'desc' => __('Show the bottom section of author page', 'geodirectory'),
|
|
| 775 | - 'id' => 'geodir_show_author_bottom_section', |
|
| 776 | - 'type' => 'checkbox', |
|
| 777 | - 'std' => '0' // Default value to show home top section |
|
| 778 | - ), |
|
| 772 | + array( |
|
| 773 | + 'name' => __('Author bottom section', 'geodirectory'),
|
|
| 774 | + 'desc' => __('Show the bottom section of author page', 'geodirectory'),
|
|
| 775 | + 'id' => 'geodir_show_author_bottom_section', |
|
| 776 | + 'type' => 'checkbox', |
|
| 777 | + 'std' => '0' // Default value to show home top section |
|
| 778 | + ), |
|
| 779 | 779 | |
| 780 | 780 | |
| 781 | - array( |
|
| 782 | - 'name' => __('Description word limit', 'geodirectory'),
|
|
| 783 | - 'desc' => '', |
|
| 784 | - 'id' => 'geodir_author_desc_word_limit', |
|
| 785 | - 'type' => 'text', |
|
| 786 | - 'css' => 'min-width:300px;', |
|
| 787 | - 'std' => '50' // Default value to show home top section |
|
| 788 | - ), |
|
| 781 | + array( |
|
| 782 | + 'name' => __('Description word limit', 'geodirectory'),
|
|
| 783 | + 'desc' => '', |
|
| 784 | + 'id' => 'geodir_author_desc_word_limit', |
|
| 785 | + 'type' => 'text', |
|
| 786 | + 'css' => 'min-width:300px;', |
|
| 787 | + 'std' => '50' // Default value to show home top section |
|
| 788 | + ), |
|
| 789 | 789 | |
| 790 | - array('type' => 'sectionend', 'id' => 'geodir_author_layout'),
|
|
| 791 | - /* Author Layout Settings end */ |
|
| 790 | + array('type' => 'sectionend', 'id' => 'geodir_author_layout'),
|
|
| 791 | + /* Author Layout Settings end */ |
|
| 792 | 792 | |
| 793 | 793 | |
| 794 | - /* Post Type Navigation Settings Start */ |
|
| 795 | - array('name' => __('Navigation', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_navigation_settings'),
|
|
| 794 | + /* Post Type Navigation Settings Start */ |
|
| 795 | + array('name' => __('Navigation', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_navigation_settings'),
|
|
| 796 | 796 | |
| 797 | 797 | |
| 798 | - /* Post Type Navigation Settings Start */ |
|
| 798 | + /* Post Type Navigation Settings Start */ |
|
| 799 | 799 | |
| 800 | - array('name' => __('Navigation Locations', 'geodirectory'),
|
|
| 801 | - 'type' => 'sectionstart', |
|
| 802 | - 'desc' => '', |
|
| 803 | - 'id' => 'geodir_navigation_locations'), |
|
| 800 | + array('name' => __('Navigation Locations', 'geodirectory'),
|
|
| 801 | + 'type' => 'sectionstart', |
|
| 802 | + 'desc' => '', |
|
| 803 | + 'id' => 'geodir_navigation_locations'), |
|
| 804 | 804 | |
| 805 | - array( |
|
| 806 | - 'name' => __('Show geodirectory navigation in selected menu locations', 'geodirectory'),
|
|
| 807 | - 'desc' => '', |
|
| 808 | - 'tip' => '', |
|
| 809 | - 'id' => 'geodir_theme_location_nav', |
|
| 810 | - 'css' => 'min-width:300px;', |
|
| 811 | - 'std' => array(), |
|
| 812 | - 'type' => 'multiselect', |
|
| 813 | - 'placeholder_text' => __('Select menu locations', 'geodirectory'),
|
|
| 814 | - 'class' => 'chosen_select', |
|
| 815 | - 'options' => array_unique(geodir_theme_location_setting_fun()) |
|
| 816 | - ), |
|
| 817 | - array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
|
|
| 818 | - |
|
| 819 | - |
|
| 820 | - array('name' => __('Navigation Settings', 'geodirectory'),
|
|
| 821 | - 'type' => 'sectionstart', |
|
| 822 | - 'desc' => '', |
|
| 823 | - 'id' => 'geodir_navigation_options'), |
|
| 805 | + array( |
|
| 806 | + 'name' => __('Show geodirectory navigation in selected menu locations', 'geodirectory'),
|
|
| 807 | + 'desc' => '', |
|
| 808 | + 'tip' => '', |
|
| 809 | + 'id' => 'geodir_theme_location_nav', |
|
| 810 | + 'css' => 'min-width:300px;', |
|
| 811 | + 'std' => array(), |
|
| 812 | + 'type' => 'multiselect', |
|
| 813 | + 'placeholder_text' => __('Select menu locations', 'geodirectory'),
|
|
| 814 | + 'class' => 'chosen_select', |
|
| 815 | + 'options' => array_unique(geodir_theme_location_setting_fun()) |
|
| 816 | + ), |
|
| 817 | + array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
|
|
| 824 | 818 | |
| 825 | 819 | |
| 826 | - array( |
|
| 827 | - 'name' => __('Show add listing navigation in menu', 'geodirectory'),
|
|
| 828 | - 'desc' => sprintf(__('Show add listing navigation in main menu? (untick to disable) If you disable this option, none of the add listing link will appear in main navigation.', 'geodirectory')),
|
|
| 829 | - 'id' => 'geodir_show_addlisting_nav', |
|
| 830 | - 'std' => '1', |
|
| 831 | - 'type' => 'checkbox' |
|
| 832 | - ), |
|
| 820 | + array('name' => __('Navigation Settings', 'geodirectory'),
|
|
| 821 | + 'type' => 'sectionstart', |
|
| 822 | + 'desc' => '', |
|
| 823 | + 'id' => 'geodir_navigation_options'), |
|
| 833 | 824 | |
| 834 | - array( |
|
| 835 | - 'name' => __('Show listings navigation in menu', 'geodirectory'),
|
|
| 836 | - 'desc' => sprintf(__('Show listing navigation in main menu? (untick to disable) If you disable this option, none of the listing link will appear in main navigation.', 'geodirectory')),
|
|
| 837 | - 'id' => 'geodir_show_listing_nav', |
|
| 838 | - 'std' => '1', |
|
| 839 | - 'type' => 'checkbox' |
|
| 840 | - ), |
|
| 841 | 825 | |
| 842 | - array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
|
|
| 826 | + array( |
|
| 827 | + 'name' => __('Show add listing navigation in menu', 'geodirectory'),
|
|
| 828 | + 'desc' => sprintf(__('Show add listing navigation in main menu? (untick to disable) If you disable this option, none of the add listing link will appear in main navigation.', 'geodirectory')),
|
|
| 829 | + 'id' => 'geodir_show_addlisting_nav', |
|
| 830 | + 'std' => '1', |
|
| 831 | + 'type' => 'checkbox' |
|
| 832 | + ), |
|
| 843 | 833 | |
| 834 | + array( |
|
| 835 | + 'name' => __('Show listings navigation in menu', 'geodirectory'),
|
|
| 836 | + 'desc' => sprintf(__('Show listing navigation in main menu? (untick to disable) If you disable this option, none of the listing link will appear in main navigation.', 'geodirectory')),
|
|
| 837 | + 'id' => 'geodir_show_listing_nav', |
|
| 838 | + 'std' => '1', |
|
| 839 | + 'type' => 'checkbox' |
|
| 840 | + ), |
|
| 844 | 841 | |
| 845 | - array('name' => __('Post Type Navigation Settings', 'geodirectory'),
|
|
| 846 | - 'type' => 'sectionstart', |
|
| 847 | - 'desc' => '', |
|
| 848 | - 'id' => 'geodir_post_type_navigation_layout'), |
|
| 849 | - array( |
|
| 850 | - 'name' => __('Show listing link in main navigation', 'geodirectory'),
|
|
| 851 | - 'desc' => '', |
|
| 852 | - 'tip' => '', |
|
| 853 | - 'id' => 'geodir_add_posttype_in_main_nav', |
|
| 854 | - 'css' => 'min-width:300px;', |
|
| 855 | - 'std' => array(), |
|
| 856 | - 'type' => 'multiselect', |
|
| 857 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 858 | - 'class' => 'chosen_select', |
|
| 859 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 860 | - ), |
|
| 842 | + array('type' => 'sectionend', 'id' => 'geodir_navigation_options'),
|
|
| 861 | 843 | |
| 862 | - array( |
|
| 863 | - 'name' => __('Show listing link in listing navigation', 'geodirectory'),
|
|
| 864 | - 'desc' => '', |
|
| 865 | - 'tip' => '', |
|
| 866 | - 'id' => 'geodir_add_posttype_in_listing_nav', |
|
| 867 | - 'css' => 'min-width:300px;', |
|
| 868 | - 'std' => geodir_get_posttypes(), |
|
| 869 | - 'type' => 'multiselect', |
|
| 870 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 871 | - 'class' => 'chosen_select', |
|
| 872 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 873 | - ), |
|
| 874 | 844 | |
| 875 | - array( |
|
| 876 | - 'name' => __('Allow post type to add from frontend', 'geodirectory'),
|
|
| 877 | - 'desc' => '', |
|
| 878 | - 'tip' => '', |
|
| 879 | - 'id' => 'geodir_allow_posttype_frontend', |
|
| 880 | - 'css' => 'min-width:300px;', |
|
| 881 | - 'std' => geodir_get_posttypes(), |
|
| 882 | - 'type' => 'multiselect', |
|
| 883 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 884 | - 'class' => 'chosen_select', |
|
| 885 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 886 | - ), |
|
| 845 | + array('name' => __('Post Type Navigation Settings', 'geodirectory'),
|
|
| 846 | + 'type' => 'sectionstart', |
|
| 847 | + 'desc' => '', |
|
| 848 | + 'id' => 'geodir_post_type_navigation_layout'), |
|
| 849 | + array( |
|
| 850 | + 'name' => __('Show listing link in main navigation', 'geodirectory'),
|
|
| 851 | + 'desc' => '', |
|
| 852 | + 'tip' => '', |
|
| 853 | + 'id' => 'geodir_add_posttype_in_main_nav', |
|
| 854 | + 'css' => 'min-width:300px;', |
|
| 855 | + 'std' => array(), |
|
| 856 | + 'type' => 'multiselect', |
|
| 857 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 858 | + 'class' => 'chosen_select', |
|
| 859 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 860 | + ), |
|
| 887 | 861 | |
| 888 | - array( |
|
| 889 | - 'name' => __('Show add listing link in main navigation', 'geodirectory'),
|
|
| 890 | - 'desc' => '', |
|
| 891 | - 'tip' => '', |
|
| 892 | - 'id' => 'geodir_add_listing_link_main_nav', |
|
| 893 | - 'css' => 'min-width:300px;', |
|
| 894 | - 'std' => array(), |
|
| 895 | - 'type' => 'multiselect', |
|
| 896 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 897 | - 'class' => 'chosen_select', |
|
| 898 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 899 | - ), |
|
| 862 | + array( |
|
| 863 | + 'name' => __('Show listing link in listing navigation', 'geodirectory'),
|
|
| 864 | + 'desc' => '', |
|
| 865 | + 'tip' => '', |
|
| 866 | + 'id' => 'geodir_add_posttype_in_listing_nav', |
|
| 867 | + 'css' => 'min-width:300px;', |
|
| 868 | + 'std' => geodir_get_posttypes(), |
|
| 869 | + 'type' => 'multiselect', |
|
| 870 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 871 | + 'class' => 'chosen_select', |
|
| 872 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 873 | + ), |
|
| 900 | 874 | |
| 901 | - array( |
|
| 902 | - 'name' => __('Show add listing link in add listing navigation', 'geodirectory'),
|
|
| 903 | - 'desc' => '', |
|
| 904 | - 'tip' => '', |
|
| 905 | - 'id' => 'geodir_add_listing_link_add_listing_nav', |
|
| 906 | - 'css' => 'min-width:300px;', |
|
| 907 | - 'std' => geodir_get_posttypes(), |
|
| 908 | - 'type' => 'multiselect', |
|
| 909 | - 'class' => 'chosen_select', |
|
| 910 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 911 | - ), |
|
| 875 | + array( |
|
| 876 | + 'name' => __('Allow post type to add from frontend', 'geodirectory'),
|
|
| 877 | + 'desc' => '', |
|
| 878 | + 'tip' => '', |
|
| 879 | + 'id' => 'geodir_allow_posttype_frontend', |
|
| 880 | + 'css' => 'min-width:300px;', |
|
| 881 | + 'std' => geodir_get_posttypes(), |
|
| 882 | + 'type' => 'multiselect', |
|
| 883 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 884 | + 'class' => 'chosen_select', |
|
| 885 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 886 | + ), |
|
| 912 | 887 | |
| 913 | - array('type' => 'sectionend', 'id' => 'geodir_post_type_navigation_layout'),
|
|
| 888 | + array( |
|
| 889 | + 'name' => __('Show add listing link in main navigation', 'geodirectory'),
|
|
| 890 | + 'desc' => '', |
|
| 891 | + 'tip' => '', |
|
| 892 | + 'id' => 'geodir_add_listing_link_main_nav', |
|
| 893 | + 'css' => 'min-width:300px;', |
|
| 894 | + 'std' => array(), |
|
| 895 | + 'type' => 'multiselect', |
|
| 896 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 897 | + 'class' => 'chosen_select', |
|
| 898 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 899 | + ), |
|
| 914 | 900 | |
| 901 | + array( |
|
| 902 | + 'name' => __('Show add listing link in add listing navigation', 'geodirectory'),
|
|
| 903 | + 'desc' => '', |
|
| 904 | + 'tip' => '', |
|
| 905 | + 'id' => 'geodir_add_listing_link_add_listing_nav', |
|
| 906 | + 'css' => 'min-width:300px;', |
|
| 907 | + 'std' => geodir_get_posttypes(), |
|
| 908 | + 'type' => 'multiselect', |
|
| 909 | + 'class' => 'chosen_select', |
|
| 910 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 911 | + ), |
|
| 915 | 912 | |
| 916 | - array('name' => __('User Dashboard Post Type Navigation Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_user_dashboard_post_type '),
|
|
| 913 | + array('type' => 'sectionend', 'id' => 'geodir_post_type_navigation_layout'),
|
|
| 917 | 914 | |
| 918 | 915 | |
| 919 | - array( |
|
| 920 | - 'name' => __('Show add listing link in user dashboard', 'geodirectory'),
|
|
| 921 | - 'desc' => '', |
|
| 922 | - 'tip' => '', |
|
| 923 | - 'id' => 'geodir_add_listing_link_user_dashboard', |
|
| 924 | - 'css' => 'min-width:300px;', |
|
| 925 | - 'std' => geodir_get_posttypes(), |
|
| 926 | - 'type' => 'multiselect', |
|
| 927 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 928 | - 'class' => 'chosen_select', |
|
| 929 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 930 | - ), |
|
| 916 | + array('name' => __('User Dashboard Post Type Navigation Settings', 'geodirectory'), 'type' => 'sectionstart', 'desc' => '', 'id' => 'geodir_user_dashboard_post_type '),
|
|
| 931 | 917 | |
| 932 | - array( |
|
| 933 | - 'name' => __('Show favorite link in user dashboard', 'geodirectory'),
|
|
| 934 | - 'desc' => __('Option will not appear if user does not have a favorite of that post type', 'geodirectory'),
|
|
| 935 | - 'tip' => '', |
|
| 936 | - 'id' => 'geodir_favorite_link_user_dashboard', |
|
| 937 | - 'css' => 'min-width:300px;', |
|
| 938 | - 'std' => geodir_get_posttypes(), |
|
| 939 | - 'type' => 'multiselect', |
|
| 940 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 941 | - 'class' => 'chosen_select', |
|
| 942 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 943 | - ), |
|
| 944 | 918 | |
| 945 | - array( |
|
| 946 | - 'name' => __('Show listing link in user dashboard', 'geodirectory'),
|
|
| 947 | - 'desc' => __('Option will not appear if user does not have his/her own listing of that post type', 'geodirectory'),
|
|
| 948 | - 'tip' => '', |
|
| 949 | - 'id' => 'geodir_listing_link_user_dashboard', |
|
| 950 | - 'css' => 'min-width:300px;', |
|
| 951 | - 'std' => geodir_get_posttypes(), |
|
| 952 | - 'type' => 'multiselect', |
|
| 953 | - 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 954 | - 'class' => 'chosen_select', |
|
| 955 | - 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 956 | - ), |
|
| 957 | - |
|
| 958 | - array('type' => 'sectionend', 'id' => 'geodir_user_dashboard_post_type'),
|
|
| 959 | - /* Post Type Navigation Settings End */ |
|
| 960 | - |
|
| 961 | - /* Script Settings Start */ |
|
| 962 | - array('name' => __('Scripts', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_script_settings '),
|
|
| 963 | - |
|
| 964 | - /* |
|
| 919 | + array( |
|
| 920 | + 'name' => __('Show add listing link in user dashboard', 'geodirectory'),
|
|
| 921 | + 'desc' => '', |
|
| 922 | + 'tip' => '', |
|
| 923 | + 'id' => 'geodir_add_listing_link_user_dashboard', |
|
| 924 | + 'css' => 'min-width:300px;', |
|
| 925 | + 'std' => geodir_get_posttypes(), |
|
| 926 | + 'type' => 'multiselect', |
|
| 927 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 928 | + 'class' => 'chosen_select', |
|
| 929 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 930 | + ), |
|
| 931 | + |
|
| 932 | + array( |
|
| 933 | + 'name' => __('Show favorite link in user dashboard', 'geodirectory'),
|
|
| 934 | + 'desc' => __('Option will not appear if user does not have a favorite of that post type', 'geodirectory'),
|
|
| 935 | + 'tip' => '', |
|
| 936 | + 'id' => 'geodir_favorite_link_user_dashboard', |
|
| 937 | + 'css' => 'min-width:300px;', |
|
| 938 | + 'std' => geodir_get_posttypes(), |
|
| 939 | + 'type' => 'multiselect', |
|
| 940 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 941 | + 'class' => 'chosen_select', |
|
| 942 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 943 | + ), |
|
| 944 | + |
|
| 945 | + array( |
|
| 946 | + 'name' => __('Show listing link in user dashboard', 'geodirectory'),
|
|
| 947 | + 'desc' => __('Option will not appear if user does not have his/her own listing of that post type', 'geodirectory'),
|
|
| 948 | + 'tip' => '', |
|
| 949 | + 'id' => 'geodir_listing_link_user_dashboard', |
|
| 950 | + 'css' => 'min-width:300px;', |
|
| 951 | + 'std' => geodir_get_posttypes(), |
|
| 952 | + 'type' => 'multiselect', |
|
| 953 | + 'placeholder_text' => __('Select post types', 'geodirectory'),
|
|
| 954 | + 'class' => 'chosen_select', |
|
| 955 | + 'options' => array_unique(geodir_post_type_setting_fun()) |
|
| 956 | + ), |
|
| 957 | + |
|
| 958 | + array('type' => 'sectionend', 'id' => 'geodir_user_dashboard_post_type'),
|
|
| 959 | + /* Post Type Navigation Settings End */ |
|
| 960 | + |
|
| 961 | + /* Script Settings Start */ |
|
| 962 | + array('name' => __('Scripts', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_script_settings '),
|
|
| 963 | + |
|
| 964 | + /* |
|
| 965 | 965 | array( 'name' => __( 'Add/Remove Scripts', 'geodirectory' ), |
| 966 | 966 | 'type' => 'sectionstart', |
| 967 | 967 | 'desc' => '', |
@@ -987,150 +987,150 @@ discard block |
||
| 987 | 987 | |
| 988 | 988 | */ |
| 989 | 989 | |
| 990 | - array('name' => __('SCSS Settings (CSS combine and minify)', 'geodirectory'),
|
|
| 991 | - 'type' => 'sectionstart', |
|
| 992 | - 'desc' => '', |
|
| 993 | - 'id' => 'geodir_scss_settings'), |
|
| 990 | + array('name' => __('SCSS Settings (CSS combine and minify)', 'geodirectory'),
|
|
| 991 | + 'type' => 'sectionstart', |
|
| 992 | + 'desc' => '', |
|
| 993 | + 'id' => 'geodir_scss_settings'), |
|
| 994 | 994 | |
| 995 | - array( |
|
| 996 | - 'name' => __('Disable Core SCSS', 'geodirectory'),
|
|
| 997 | - 'desc' => __('Stops the CSS files being minified and output as one.', 'geodirectory'),
|
|
| 998 | - 'id' => 'geodir_scss_core', |
|
| 999 | - 'type' => 'checkbox', |
|
| 1000 | - 'std' => '0' // Default value to show home top section |
|
| 1001 | - ), |
|
| 995 | + array( |
|
| 996 | + 'name' => __('Disable Core SCSS', 'geodirectory'),
|
|
| 997 | + 'desc' => __('Stops the CSS files being minified and output as one.', 'geodirectory'),
|
|
| 998 | + 'id' => 'geodir_scss_core', |
|
| 999 | + 'type' => 'checkbox', |
|
| 1000 | + 'std' => '0' // Default value to show home top section |
|
| 1001 | + ), |
|
| 1002 | 1002 | |
| 1003 | - array('type' => 'sectionend', 'id' => 'geodir_scss_settings'),
|
|
| 1003 | + array('type' => 'sectionend', 'id' => 'geodir_scss_settings'),
|
|
| 1004 | 1004 | |
| 1005 | - array('name' => __('Script Settings', 'geodirectory'),
|
|
| 1006 | - 'type' => 'sectionstart', |
|
| 1007 | - 'desc' => '', |
|
| 1008 | - 'id' => 'geodir_script_settings'), |
|
| 1005 | + array('name' => __('Script Settings', 'geodirectory'),
|
|
| 1006 | + 'type' => 'sectionstart', |
|
| 1007 | + 'desc' => '', |
|
| 1008 | + 'id' => 'geodir_script_settings'), |
|
| 1009 | 1009 | |
| 1010 | - array( |
|
| 1011 | - 'name' => __('Custom style css code', 'geodirectory'),
|
|
| 1012 | - 'desc' => '', |
|
| 1013 | - 'id' => 'geodir_coustem_css', |
|
| 1014 | - 'type' => 'textarea', |
|
| 1015 | - 'css' => 'min-width:300px;', |
|
| 1016 | - 'std' => '' // Default value for the page title - changed in settings |
|
| 1017 | - ), |
|
| 1010 | + array( |
|
| 1011 | + 'name' => __('Custom style css code', 'geodirectory'),
|
|
| 1012 | + 'desc' => '', |
|
| 1013 | + 'id' => 'geodir_coustem_css', |
|
| 1014 | + 'type' => 'textarea', |
|
| 1015 | + 'css' => 'min-width:300px;', |
|
| 1016 | + 'std' => '' // Default value for the page title - changed in settings |
|
| 1017 | + ), |
|
| 1018 | 1018 | |
| 1019 | - array( |
|
| 1020 | - 'name' => __('Header script code', 'geodirectory'),
|
|
| 1021 | - 'desc' => '', |
|
| 1022 | - 'id' => 'geodir_header_scripts', |
|
| 1023 | - 'type' => 'textarea', |
|
| 1024 | - 'css' => 'min-width:300px;', |
|
| 1025 | - 'std' => '' // Default value for the page title - changed in settings |
|
| 1026 | - ), |
|
| 1019 | + array( |
|
| 1020 | + 'name' => __('Header script code', 'geodirectory'),
|
|
| 1021 | + 'desc' => '', |
|
| 1022 | + 'id' => 'geodir_header_scripts', |
|
| 1023 | + 'type' => 'textarea', |
|
| 1024 | + 'css' => 'min-width:300px;', |
|
| 1025 | + 'std' => '' // Default value for the page title - changed in settings |
|
| 1026 | + ), |
|
| 1027 | 1027 | |
| 1028 | - array( |
|
| 1029 | - 'name' => __('Footer script code', 'geodirectory'),
|
|
| 1030 | - 'desc' => '', |
|
| 1031 | - 'id' => 'geodir_footer_scripts', |
|
| 1032 | - 'type' => 'textarea', |
|
| 1033 | - 'css' => 'min-width:300px;', |
|
| 1034 | - 'std' => '' // Default value for the page title - changed in settings |
|
| 1035 | - ), |
|
| 1028 | + array( |
|
| 1029 | + 'name' => __('Footer script code', 'geodirectory'),
|
|
| 1030 | + 'desc' => '', |
|
| 1031 | + 'id' => 'geodir_footer_scripts', |
|
| 1032 | + 'type' => 'textarea', |
|
| 1033 | + 'css' => 'min-width:300px;', |
|
| 1034 | + 'std' => '' // Default value for the page title - changed in settings |
|
| 1035 | + ), |
|
| 1036 | 1036 | |
| 1037 | - array('type' => 'sectionend', 'id' => 'geodir_script_settings'),
|
|
| 1038 | - /* Script Settings End */ |
|
| 1037 | + array('type' => 'sectionend', 'id' => 'geodir_script_settings'),
|
|
| 1038 | + /* Script Settings End */ |
|
| 1039 | 1039 | |
| 1040 | - /* Map Settings Start */ |
|
| 1041 | - array('name' => __('Map', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_map_settings '),
|
|
| 1040 | + /* Map Settings Start */ |
|
| 1041 | + array('name' => __('Map', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'geodir_map_settings '),
|
|
| 1042 | 1042 | |
| 1043 | - /* Untick the category by default on home map */ |
|
| 1044 | - array( |
|
| 1045 | - 'name' => __('Home Map Settings', 'geodirectory'),
|
|
| 1046 | - 'type' => 'sectionstart', |
|
| 1047 | - 'desc' => '', |
|
| 1048 | - 'id' => 'geodir_home_map_section' |
|
| 1049 | - ), |
|
| 1050 | - array( |
|
| 1051 | - 'name' => __('Select category to untick by default on map', 'geodirectory'),
|
|
| 1052 | - 'desc' => __('Select category to untick by default on the home map.', 'geodirectory'),
|
|
| 1053 | - 'tip' => '', |
|
| 1054 | - 'id' => 'geodir_home_map_untick', |
|
| 1055 | - 'css' => 'min-width:300px;', |
|
| 1056 | - 'std' => '', |
|
| 1057 | - 'type' => 'multiselect', |
|
| 1058 | - 'placeholder_text' => __('Select category', 'geodirectory'),
|
|
| 1059 | - 'class' => 'chosen_select', |
|
| 1060 | - 'options' => geodir_home_map_cats_key_value_array() |
|
| 1061 | - ), |
|
| 1062 | - array( |
|
| 1063 | - 'type' => 'sectionend', |
|
| 1064 | - 'id' => 'geodir_home_map_section' |
|
| 1065 | - ), |
|
| 1043 | + /* Untick the category by default on home map */ |
|
| 1044 | + array( |
|
| 1045 | + 'name' => __('Home Map Settings', 'geodirectory'),
|
|
| 1046 | + 'type' => 'sectionstart', |
|
| 1047 | + 'desc' => '', |
|
| 1048 | + 'id' => 'geodir_home_map_section' |
|
| 1049 | + ), |
|
| 1050 | + array( |
|
| 1051 | + 'name' => __('Select category to untick by default on map', 'geodirectory'),
|
|
| 1052 | + 'desc' => __('Select category to untick by default on the home map.', 'geodirectory'),
|
|
| 1053 | + 'tip' => '', |
|
| 1054 | + 'id' => 'geodir_home_map_untick', |
|
| 1055 | + 'css' => 'min-width:300px;', |
|
| 1056 | + 'std' => '', |
|
| 1057 | + 'type' => 'multiselect', |
|
| 1058 | + 'placeholder_text' => __('Select category', 'geodirectory'),
|
|
| 1059 | + 'class' => 'chosen_select', |
|
| 1060 | + 'options' => geodir_home_map_cats_key_value_array() |
|
| 1061 | + ), |
|
| 1062 | + array( |
|
| 1063 | + 'type' => 'sectionend', |
|
| 1064 | + 'id' => 'geodir_home_map_section' |
|
| 1065 | + ), |
|
| 1066 | 1066 | |
| 1067 | - array( |
|
| 1068 | - 'name' => __('Add Listing Map Settings', 'geodirectory'),
|
|
| 1069 | - 'type' => 'sectionstart', |
|
| 1070 | - 'desc' => '', |
|
| 1071 | - 'id' => 'geodir_add_listing_map_section' |
|
| 1072 | - ), |
|
| 1073 | - array( |
|
| 1074 | - 'name' => __('Disable mouse scroll', 'geodirectory'),
|
|
| 1075 | - 'desc' => __('Stops the mouse scroll zooming the map', 'geodirectory'),
|
|
| 1076 | - 'id' => 'geodir_add_listing_mouse_scroll', |
|
| 1077 | - 'type' => 'checkbox', |
|
| 1078 | - 'std' => '0' // Default value to show home top section |
|
| 1079 | - ), |
|
| 1080 | - array( |
|
| 1081 | - 'type' => 'sectionend', |
|
| 1082 | - 'id' => 'geodir_add_listing_map_section' |
|
| 1083 | - ), |
|
| 1067 | + array( |
|
| 1068 | + 'name' => __('Add Listing Map Settings', 'geodirectory'),
|
|
| 1069 | + 'type' => 'sectionstart', |
|
| 1070 | + 'desc' => '', |
|
| 1071 | + 'id' => 'geodir_add_listing_map_section' |
|
| 1072 | + ), |
|
| 1073 | + array( |
|
| 1074 | + 'name' => __('Disable mouse scroll', 'geodirectory'),
|
|
| 1075 | + 'desc' => __('Stops the mouse scroll zooming the map', 'geodirectory'),
|
|
| 1076 | + 'id' => 'geodir_add_listing_mouse_scroll', |
|
| 1077 | + 'type' => 'checkbox', |
|
| 1078 | + 'std' => '0' // Default value to show home top section |
|
| 1079 | + ), |
|
| 1080 | + array( |
|
| 1081 | + 'type' => 'sectionend', |
|
| 1082 | + 'id' => 'geodir_add_listing_map_section' |
|
| 1083 | + ), |
|
| 1084 | 1084 | |
| 1085 | 1085 | |
| 1086 | - array('name' => __('Default map settings', 'geodirectory'),
|
|
| 1087 | - 'type' => 'sectionstart', |
|
| 1088 | - 'desc' => '', |
|
| 1089 | - 'id' => 'geodir_map_default_settings'), |
|
| 1086 | + array('name' => __('Default map settings', 'geodirectory'),
|
|
| 1087 | + 'type' => 'sectionstart', |
|
| 1088 | + 'desc' => '', |
|
| 1089 | + 'id' => 'geodir_map_default_settings'), |
|
| 1090 | 1090 | |
| 1091 | - array( |
|
| 1092 | - 'name' => '', |
|
| 1093 | - 'desc' => '', |
|
| 1094 | - 'id' => 'map_default_settings', |
|
| 1095 | - 'type' => 'map_default_settings', |
|
| 1096 | - 'css' => 'min-width:300px;', |
|
| 1097 | - 'std' => '' // Default value for the page title - changed in settings |
|
| 1098 | - ), |
|
| 1091 | + array( |
|
| 1092 | + 'name' => '', |
|
| 1093 | + 'desc' => '', |
|
| 1094 | + 'id' => 'map_default_settings', |
|
| 1095 | + 'type' => 'map_default_settings', |
|
| 1096 | + 'css' => 'min-width:300px;', |
|
| 1097 | + 'std' => '' // Default value for the page title - changed in settings |
|
| 1098 | + ), |
|
| 1099 | 1099 | |
| 1100 | - array( |
|
| 1101 | - 'name' => __('Upload map default marker icon', 'geodirectory'),
|
|
| 1102 | - 'desc' => '', |
|
| 1103 | - 'id' => 'geodir_default_marker_icon', |
|
| 1104 | - 'type' => 'file', |
|
| 1105 | - 'std' => '0', |
|
| 1106 | - 'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section |
|
| 1107 | - ), |
|
| 1108 | - // add option that allows enable/disable map dragging to phone devices |
|
| 1109 | - array( |
|
| 1110 | - 'name' => __('Show button control on map to enable/disable dragging', 'geodirectory'),
|
|
| 1111 | - 'desc' => __('If checked, it displays button control to enable/disable dragging on google maps for phone devices', 'geodirectory'),
|
|
| 1112 | - 'id' => 'geodir_map_onoff_dragging', |
|
| 1113 | - 'type' => 'checkbox', |
|
| 1114 | - 'std' => '0' // Default value to show home top section |
|
| 1115 | - ), |
|
| 1100 | + array( |
|
| 1101 | + 'name' => __('Upload map default marker icon', 'geodirectory'),
|
|
| 1102 | + 'desc' => '', |
|
| 1103 | + 'id' => 'geodir_default_marker_icon', |
|
| 1104 | + 'type' => 'file', |
|
| 1105 | + 'std' => '0', |
|
| 1106 | + 'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section |
|
| 1107 | + ), |
|
| 1108 | + // add option that allows enable/disable map dragging to phone devices |
|
| 1109 | + array( |
|
| 1110 | + 'name' => __('Show button control on map to enable/disable dragging', 'geodirectory'),
|
|
| 1111 | + 'desc' => __('If checked, it displays button control to enable/disable dragging on google maps for phone devices', 'geodirectory'),
|
|
| 1112 | + 'id' => 'geodir_map_onoff_dragging', |
|
| 1113 | + 'type' => 'checkbox', |
|
| 1114 | + 'std' => '0' // Default value to show home top section |
|
| 1115 | + ), |
|
| 1116 | 1116 | |
| 1117 | - array('type' => 'sectionend', 'id' => 'geodir_map_default_settings'),
|
|
| 1117 | + array('type' => 'sectionend', 'id' => 'geodir_map_default_settings'),
|
|
| 1118 | 1118 | |
| 1119 | - array('name' => __('Show / hide post type and category on map', 'geodirectory'),
|
|
| 1120 | - 'type' => 'sectionstart', |
|
| 1121 | - 'desc' => '', |
|
| 1122 | - 'id' => 'geodir_map_settings'), |
|
| 1119 | + array('name' => __('Show / hide post type and category on map', 'geodirectory'),
|
|
| 1120 | + 'type' => 'sectionstart', |
|
| 1121 | + 'desc' => '', |
|
| 1122 | + 'id' => 'geodir_map_settings'), |
|
| 1123 | 1123 | |
| 1124 | - array( |
|
| 1125 | - 'name' => __('Select Map Category', 'geodirectory'),
|
|
| 1126 | - 'desc' => '', |
|
| 1127 | - 'id' => 'geodir_map_settings', |
|
| 1128 | - 'type' => 'map', |
|
| 1129 | - 'css' => 'min-width:300px;', |
|
| 1130 | - 'std' => '' // Default value for the page title - changed in settings |
|
| 1131 | - ), |
|
| 1132 | - |
|
| 1133 | - array('type' => 'sectionend', 'id' => 'geodir_map_settings'),
|
|
| 1134 | - /* Map Settings End */ |
|
| 1124 | + array( |
|
| 1125 | + 'name' => __('Select Map Category', 'geodirectory'),
|
|
| 1126 | + 'desc' => '', |
|
| 1127 | + 'id' => 'geodir_map_settings', |
|
| 1128 | + 'type' => 'map', |
|
| 1129 | + 'css' => 'min-width:300px;', |
|
| 1130 | + 'std' => '' // Default value for the page title - changed in settings |
|
| 1131 | + ), |
|
| 1132 | + |
|
| 1133 | + array('type' => 'sectionend', 'id' => 'geodir_map_settings'),
|
|
| 1134 | + /* Map Settings End */ |
|
| 1135 | 1135 | |
| 1136 | 1136 | )); // End Design settings |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | ), |
| 150 | 150 | array( |
| 151 | 151 | 'name' => __('Resize image large size', 'geodirectory'),
|
| 152 | - 'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w') . 'x' . get_option('large_size_h')),
|
|
| 152 | + 'desc' => sprintf(__('Use default wordpress media image large size ( %s ) for featured image upload. If unchecked then default geodirectory image large size ( 800x800 ) will be used.', 'geodirectory'), get_option('large_size_w').'x'.get_option('large_size_h')),
|
|
| 153 | 153 | 'id' => 'geodir_use_wp_media_large_size', |
| 154 | 154 | 'type' => 'checkbox', |
| 155 | 155 | 'std' => '0' |
@@ -583,11 +583,11 @@ discard block |
||
| 583 | 583 | 'id' => 'geodir_default_rating_star_icon', |
| 584 | 584 | 'type' => 'file', |
| 585 | 585 | 'std' => '0', |
| 586 | - 'value' => geodir_plugin_url() . '/geodirectory-assets/images/stars.png'// Default value to show home top section |
|
| 586 | + 'value' => geodir_plugin_url().'/geodirectory-assets/images/stars.png'// Default value to show home top section |
|
| 587 | 587 | ), |
| 588 | 588 | array( |
| 589 | 589 | 'name' => __('Enable Font Awesome', 'geodirectory'),
|
| 590 | - 'desc' => __('When enabled all rating images will be using font awesome rating icons as images.', 'geodirectory' ),
|
|
| 590 | + 'desc' => __('When enabled all rating images will be using font awesome rating icons as images.', 'geodirectory'),
|
|
| 591 | 591 | 'id' => 'geodir_reviewrating_enable_font_awesome', |
| 592 | 592 | 'type' => 'checkbox', |
| 593 | 593 | 'std' => '0' |
@@ -1103,7 +1103,7 @@ discard block |
||
| 1103 | 1103 | 'id' => 'geodir_default_marker_icon', |
| 1104 | 1104 | 'type' => 'file', |
| 1105 | 1105 | 'std' => '0', |
| 1106 | - 'value' => geodir_plugin_url() . '/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section |
|
| 1106 | + 'value' => geodir_plugin_url().'/geodirectory-functions/map-functions/icons/pin.png'// Default value to show home top section |
|
| 1107 | 1107 | ), |
| 1108 | 1108 | // add option that allows enable/disable map dragging to phone devices |
| 1109 | 1109 | array( |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | 'id' => 'geodir_post_submited_success_email_subject_admin', |
| 130 | 130 | 'type' => 'text', |
| 131 | 131 | 'css' => 'min-width:300px;', |
| 132 | - 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 132 | + 'std' => __('Post Submitted Successfully', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 133 | 133 | ), |
| 134 | 134 | array( |
| 135 | 135 | 'name' => '', |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | 'id' => 'geodir_post_submited_success_email_content_admin', |
| 138 | 138 | 'css' => 'width:500px; height: 150px;', |
| 139 | 139 | 'type' => 'textarea', |
| 140 | - 'std' => __('<p>Dear Admin,</p><p>A new listing has been published [#listing_link#]. This email is just for your information.</p><br><p>[#site_name#]</p>','geodirectory')
|
|
| 140 | + 'std' => __('<p>Dear Admin,</p><p>A new listing has been published [#listing_link#]. This email is just for your information.</p><br><p>[#site_name#]</p>', 'geodirectory')
|
|
| 141 | 141 | ), |
| 142 | 142 | |
| 143 | 143 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | 'id' => 'geodir_post_submited_success_email_subject', |
| 155 | 155 | 'type' => 'text', |
| 156 | 156 | 'css' => 'min-width:300px;', |
| 157 | - 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 157 | + 'std' => __('Post Submitted Successfully', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 158 | 158 | ), |
| 159 | 159 | array( |
| 160 | 160 | 'name' => '', |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | 'id' => 'geodir_post_submited_success_email_content', |
| 163 | 163 | 'css' => 'width:500px; height: 150px;', |
| 164 | 164 | 'type' => 'textarea', |
| 165 | - 'std' => __('<p>Dear [#client_name#],</p><p>You submitted the below listing information. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>','geodirectory')
|
|
| 165 | + 'std' => __('<p>Dear [#client_name#],</p><p>You submitted the below listing information. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>', 'geodirectory')
|
|
| 166 | 166 | ), |
| 167 | 167 | |
| 168 | 168 | |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | 'id' => 'geodir_forgot_password_content', |
| 181 | 181 | 'css' => 'width:500px; height: 150px;', |
| 182 | 182 | 'type' => 'textarea', |
| 183 | - 'std' => __("<p>Dear [#client_name#],<p><p>You requested a new password for [#site_name_url#]</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 183 | + 'std' => __("<p>Dear [#client_name#],<p><p>You requested a new password for [#site_name_url#]</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>", 'geodirectory')
|
|
| 184 | 184 | ), |
| 185 | 185 | |
| 186 | 186 | array( |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | 'id' => 'geodir_registration_success_email_content', |
| 198 | 198 | 'css' => 'width:500px; height: 150px;', |
| 199 | 199 | 'type' => 'textarea', |
| 200 | - 'std' => __("<p>Dear [#client_name#],</p><p>You can log in with the following information:</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 200 | + 'std' => __("<p>Dear [#client_name#],</p><p>You can log in with the following information:</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>", 'geodirectory')
|
|
| 201 | 201 | ), |
| 202 | 202 | array( |
| 203 | 203 | 'name' => __('Listing published email', 'geodirectory'),
|
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | 'id' => 'geodir_email_friend_content', |
| 237 | 237 | 'css' => 'width:500px; height: 150px;', |
| 238 | 238 | 'type' => 'textarea', |
| 239 | - 'std' => __("<p>Dear [#to_name#],<p><p>Your friend has sent you a message from <b>[#site_name#]</b> </p><p>===============================</p><p><b>Subject : [#subject#]</b></p><p>[#comments#] [#listing_link#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name#].</p>",'geodirectory')
|
|
| 239 | + 'std' => __("<p>Dear [#to_name#],<p><p>Your friend has sent you a message from <b>[#site_name#]</b> </p><p>===============================</p><p><b>Subject : [#subject#]</b></p><p>[#comments#] [#listing_link#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name#].</p>", 'geodirectory')
|
|
| 240 | 240 | ), |
| 241 | 241 | |
| 242 | 242 | array( |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | 'id' => 'geodir_email_enquiry_content', |
| 254 | 254 | 'css' => 'width:500px; height: 150px;', |
| 255 | 255 | 'type' => 'textarea', |
| 256 | - 'std' => __("<p>Dear [#to_name#],<p><p>An enquiry has been sent from <b>[#listing_link#]</b></p><p>===============================</p><p>[#comments#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 256 | + 'std' => __("<p>Dear [#to_name#],<p><p>An enquiry has been sent from <b>[#listing_link#]</b></p><p>===============================</p><p>[#comments#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name_url#].</p>", 'geodirectory')
|
|
| 257 | 257 | ), |
| 258 | 258 | |
| 259 | 259 | array('type' => 'sectionend', 'id' => 'other_emails'),
|
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | 'id' => 'geodir_post_added_success_msg_content', |
| 270 | 270 | 'css' => 'width:500px; height: 150px;', |
| 271 | 271 | 'type' => 'textarea', |
| 272 | - 'std' => __('<p>Thank you, your information has been successfully received.</p><p><a href="[#submited_information_link#]" >View your submitted information »</a></p><p>Thank you for visiting us at [#site_name#].</p>','geodirectory')
|
|
| 272 | + 'std' => __('<p>Thank you, your information has been successfully received.</p><p><a href="[#submited_information_link#]" >View your submitted information »</a></p><p>Thank you for visiting us at [#site_name#].</p>', 'geodirectory')
|
|
| 273 | 273 | ), |
| 274 | 274 | |
| 275 | 275 | |
@@ -17,296 +17,296 @@ |
||
| 17 | 17 | $geodir_settings['notifications_settings'] = apply_filters('geodir_notifications_settings', array(
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | - array('name' => __('Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'notification_options'),
|
|
| 21 | - |
|
| 22 | - |
|
| 23 | - array('name' => __('Notification Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'notification_options'),
|
|
| 24 | - |
|
| 25 | - array( |
|
| 26 | - 'name' => __('List of usable shortcodes', 'geodirectory'),
|
|
| 27 | - 'desc' => __('[#client_name#],[#listing_link#],[#posted_date#],[#number_of_days#],[#number_of_grace_days#],[#login_url#],[#username#],[#user_email#],[#site_name_url#],[#renew_link#],[#post_id#],[#site_name#],[#from_email#](in most cases this will be the admin email, except for popup forms)', 'geodirectory'),
|
|
| 28 | - 'id' => 'geodir_list_of_usable_shordcodes', |
|
| 29 | - 'type' => 'html_content', |
|
| 30 | - 'css' => 'min-width:300px;', |
|
| 31 | - 'std' => 'All Places' // Default value for the page title - changed in settings |
|
| 32 | - ), |
|
| 33 | - |
|
| 34 | - array( |
|
| 35 | - 'name' => __('Use advanced editor? (slow loading)', 'geodirectory'),
|
|
| 36 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 37 | - 'id' => 'geodir_tiny_editor', |
|
| 38 | - 'std' => 'yes', |
|
| 39 | - 'type' => 'radio', |
|
| 40 | - 'value' => '1', |
|
| 41 | - 'radiogroup' => 'start' |
|
| 42 | - ), |
|
| 43 | - array( |
|
| 44 | - 'name' => __('Use advanced editor?(slow loading)', 'geodirectory'),
|
|
| 45 | - 'desc' => __('No', 'geodirectory'),
|
|
| 46 | - 'id' => 'geodir_tiny_editor', |
|
| 47 | - 'std' => 'yes', |
|
| 48 | - 'type' => 'radio', |
|
| 49 | - 'value' => '0', |
|
| 50 | - 'radiogroup' => 'end' |
|
| 51 | - ), |
|
| 52 | - |
|
| 53 | - |
|
| 54 | - array('type' => 'sectionend', 'id' => 'notification_options'),
|
|
| 55 | - |
|
| 56 | - |
|
| 57 | - array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'site_bcc_options'),
|
|
| 58 | - |
|
| 59 | - array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'site_bcc_options'),
|
|
| 60 | - |
|
| 61 | - array( |
|
| 62 | - 'name' => __('New user registration', 'geodirectory'),
|
|
| 63 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 64 | - 'id' => 'geodir_bcc_new_user', |
|
| 65 | - 'std' => 'yes', |
|
| 66 | - 'type' => 'radio', |
|
| 67 | - 'value' => '1', |
|
| 68 | - 'radiogroup' => 'start' |
|
| 69 | - ), |
|
| 70 | - array( |
|
| 71 | - 'name' => __('New user registration', 'geodirectory'),
|
|
| 72 | - 'desc' => __('No', 'geodirectory'),
|
|
| 73 | - 'id' => 'geodir_bcc_new_user', |
|
| 74 | - 'std' => 'yes', |
|
| 75 | - 'type' => 'radio', |
|
| 76 | - 'value' => '0', |
|
| 77 | - 'radiogroup' => 'end' |
|
| 78 | - ), |
|
| 79 | - |
|
| 80 | - array( |
|
| 81 | - 'name' => __('Send to friend', 'geodirectory'),
|
|
| 82 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 83 | - 'id' => 'geodir_bcc_friend', |
|
| 84 | - 'std' => 'yes', |
|
| 85 | - 'type' => 'radio', |
|
| 86 | - 'value' => '1', |
|
| 87 | - 'radiogroup' => 'start' |
|
| 88 | - ), |
|
| 89 | - array( |
|
| 90 | - 'name' => __('Send to friend', 'geodirectory'),
|
|
| 91 | - 'desc' => __('No', 'geodirectory'),
|
|
| 92 | - 'id' => 'geodir_bcc_friend', |
|
| 93 | - 'std' => 'yes', |
|
| 94 | - 'type' => 'radio', |
|
| 95 | - 'value' => '0', |
|
| 96 | - 'radiogroup' => 'end' |
|
| 97 | - ), |
|
| 98 | - |
|
| 99 | - array( |
|
| 100 | - 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 101 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 102 | - 'id' => 'geodir_bcc_enquiry', |
|
| 103 | - 'std' => 'yes', |
|
| 104 | - 'type' => 'radio', |
|
| 105 | - 'value' => '1', |
|
| 106 | - 'radiogroup' => 'start' |
|
| 107 | - ), |
|
| 108 | - array( |
|
| 109 | - 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 110 | - 'desc' => __('No', 'geodirectory'),
|
|
| 111 | - 'id' => 'geodir_bcc_enquiry', |
|
| 112 | - 'std' => 'yes', |
|
| 113 | - 'type' => 'radio', |
|
| 114 | - 'value' => '0', |
|
| 115 | - 'radiogroup' => 'end' |
|
| 116 | - ), |
|
| 117 | - |
|
| 118 | - |
|
| 119 | - array('type' => 'sectionend', 'id' => 'site_bcc_options'),
|
|
| 120 | - |
|
| 121 | - |
|
| 122 | - array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'admin_emails'),
|
|
| 123 | - |
|
| 124 | - array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'admin_emails'),
|
|
| 125 | - |
|
| 126 | - array( |
|
| 127 | - 'name' => __('Post submit success to admin email', 'geodirectory'),
|
|
| 128 | - 'desc' => '', |
|
| 129 | - 'id' => 'geodir_post_submited_success_email_subject_admin', |
|
| 130 | - 'type' => 'text', |
|
| 131 | - 'css' => 'min-width:300px;', |
|
| 132 | - 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 133 | - ), |
|
| 134 | - array( |
|
| 135 | - 'name' => '', |
|
| 136 | - 'desc' => '', |
|
| 137 | - 'id' => 'geodir_post_submited_success_email_content_admin', |
|
| 138 | - 'css' => 'width:500px; height: 150px;', |
|
| 139 | - 'type' => 'textarea', |
|
| 140 | - 'std' => __('<p>Dear Admin,</p><p>A new listing has been published [#listing_link#]. This email is just for your information.</p><br><p>[#site_name#]</p>','geodirectory')
|
|
| 141 | - ), |
|
| 142 | - array( |
|
| 143 | - 'name' => __('Notify Admin when listing edited by Author', 'geodirectory'),
|
|
| 144 | - 'desc' => __('Yes', 'geodirectory'),
|
|
| 145 | - 'id' => 'geodir_notify_post_edited', |
|
| 146 | - 'std' => '0', |
|
| 147 | - 'type' => 'radio', |
|
| 148 | - 'value' => '1', |
|
| 149 | - 'radiogroup' => 'start' |
|
| 150 | - ), |
|
| 151 | - array( |
|
| 152 | - 'name' => __('Notify Admin when listing edited by Author', 'geodirectory'),
|
|
| 153 | - 'desc' => __('No', 'geodirectory'),
|
|
| 154 | - 'id' => 'geodir_notify_post_edited', |
|
| 155 | - 'std' => '0', |
|
| 156 | - 'type' => 'radio', |
|
| 157 | - 'value' => '0', |
|
| 158 | - 'radiogroup' => 'end' |
|
| 159 | - ), |
|
| 160 | - array( |
|
| 161 | - 'name' => __('Listing edited by Author', 'geodirectory'),
|
|
| 162 | - 'desc' => '', |
|
| 163 | - 'id' => 'geodir_post_edited_email_subject_admin', |
|
| 164 | - 'type' => 'text', |
|
| 165 | - 'css' => 'min-width:300px;', |
|
| 166 | - 'std' => __('[[#site_name#]] Listing edited by Author', 'geodirectory')
|
|
| 167 | - ), |
|
| 168 | - array( |
|
| 169 | - 'name' => '', |
|
| 170 | - 'desc' => '', |
|
| 171 | - 'id' => 'geodir_post_edited_email_content_admin', |
|
| 172 | - 'css' => 'width:500px; height: 150px;', |
|
| 173 | - 'type' => 'textarea', |
|
| 174 | - 'std' => __('<p>Dear Admin,</p><p>A listing [#listing_link#] has been edited by it\'s author [#post_author_name#].</p><br><p><b>Listing Details:</b></p><p>Listing ID: [#post_id#]</p><p>Listing URL: [#listing_link#]</p><p>Date: [#current_date#]</p><br><p>This email is just for your information.</p><p>[#site_name#]</p>', 'geodirectory')
|
|
| 175 | - ), |
|
| 176 | - |
|
| 177 | - |
|
| 178 | - array('type' => 'sectionend', 'id' => 'admin_emails'),
|
|
| 179 | - |
|
| 180 | - |
|
| 181 | - array('name' => __('Client Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'client_emails'),
|
|
| 182 | - |
|
| 183 | - array('name' => __('Client Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'client_emails'),
|
|
| 184 | - |
|
| 185 | - array( |
|
| 186 | - 'name' => __('Post submit success to client email', 'geodirectory'),
|
|
| 187 | - 'desc' => '', |
|
| 188 | - 'id' => 'geodir_post_submited_success_email_subject', |
|
| 189 | - 'type' => 'text', |
|
| 190 | - 'css' => 'min-width:300px;', |
|
| 191 | - 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 192 | - ), |
|
| 193 | - array( |
|
| 194 | - 'name' => '', |
|
| 195 | - 'desc' => '', |
|
| 196 | - 'id' => 'geodir_post_submited_success_email_content', |
|
| 197 | - 'css' => 'width:500px; height: 150px;', |
|
| 198 | - 'type' => 'textarea', |
|
| 199 | - 'std' => __('<p>Dear [#client_name#],</p><p>You submitted the below listing information. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>','geodirectory')
|
|
| 200 | - ), |
|
| 201 | - |
|
| 202 | - |
|
| 203 | - array( |
|
| 204 | - 'name' => __('User forgot password email', 'geodirectory'),
|
|
| 205 | - 'desc' => '', |
|
| 206 | - 'id' => 'geodir_forgot_password_subject', |
|
| 207 | - 'type' => 'text', |
|
| 208 | - 'css' => 'min-width:300px;', |
|
| 209 | - 'std' => __('[#site_name#] - Your new password', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 210 | - ), |
|
| 211 | - array( |
|
| 212 | - 'name' => '', |
|
| 213 | - 'desc' => '', |
|
| 214 | - 'id' => 'geodir_forgot_password_content', |
|
| 215 | - 'css' => 'width:500px; height: 150px;', |
|
| 216 | - 'type' => 'textarea', |
|
| 217 | - 'std' => __("<p>Dear [#client_name#],<p><p>You requested a new password for [#site_name_url#]</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 218 | - ), |
|
| 219 | - |
|
| 220 | - array( |
|
| 221 | - 'name' => __('Registration success email', 'geodirectory'),
|
|
| 222 | - 'desc' => '', |
|
| 223 | - 'id' => 'geodir_registration_success_email_subject', |
|
| 224 | - 'type' => 'text', |
|
| 225 | - 'css' => 'min-width:300px;', |
|
| 226 | - 'std' => __('Your Log In Details', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 227 | - ), |
|
| 228 | - array( |
|
| 229 | - 'name' => '', |
|
| 230 | - 'desc' => '', |
|
| 231 | - 'id' => 'geodir_registration_success_email_content', |
|
| 232 | - 'css' => 'width:500px; height: 150px;', |
|
| 233 | - 'type' => 'textarea', |
|
| 234 | - 'std' => __("<p>Dear [#client_name#],</p><p>You can log in with the following information:</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 235 | - ), |
|
| 236 | - array( |
|
| 237 | - 'name' => __('Listing published email', 'geodirectory'),
|
|
| 238 | - 'desc' => '', |
|
| 239 | - 'id' => 'geodir_post_published_email_subject', |
|
| 240 | - 'type' => 'text', |
|
| 241 | - 'css' => 'min-width:300px;', |
|
| 242 | - 'std' => __('Listing Published Successfully', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 243 | - ), |
|
| 244 | - array( |
|
| 245 | - 'name' => '', |
|
| 246 | - 'desc' => '', |
|
| 247 | - 'id' => 'geodir_post_published_email_content', |
|
| 248 | - 'css' => 'width:500px; height: 150px;', |
|
| 249 | - 'type' => 'textarea', |
|
| 250 | - 'std' => __("<p>Dear [#client_name#],</p><p>Your listing [#listing_link#] has been published. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>", 'geodirectory')
|
|
| 251 | - ), |
|
| 252 | - |
|
| 253 | - array('type' => 'sectionend', 'id' => 'client_emails'),
|
|
| 254 | - |
|
| 255 | - array('name' => __('Other Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'other_emails'),
|
|
| 256 | - |
|
| 257 | - array('name' => __('Other Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'other_emails'),
|
|
| 258 | - |
|
| 259 | - array( |
|
| 260 | - 'name' => __('Send to friend', 'geodirectory'),
|
|
| 261 | - 'desc' => '', |
|
| 262 | - 'id' => 'geodir_email_friend_subject', |
|
| 263 | - 'type' => 'text', |
|
| 264 | - 'css' => 'min-width:300px;', |
|
| 265 | - 'std' => __('[#from_name#] thought you might be interested in..', 'geodirectory')
|
|
| 266 | - ), |
|
| 267 | - array( |
|
| 268 | - 'name' => '', |
|
| 269 | - 'desc' => '', |
|
| 270 | - 'id' => 'geodir_email_friend_content', |
|
| 271 | - 'css' => 'width:500px; height: 150px;', |
|
| 272 | - 'type' => 'textarea', |
|
| 273 | - 'std' => __("<p>Dear [#to_name#],<p><p>Your friend has sent you a message from <b>[#site_name#]</b> </p><p>===============================</p><p><b>Subject : [#subject#]</b></p><p>[#comments#] [#listing_link#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name#].</p>",'geodirectory')
|
|
| 274 | - ), |
|
| 275 | - |
|
| 276 | - array( |
|
| 277 | - 'name' => __('Email enquiry', 'geodirectory'),
|
|
| 278 | - 'desc' => '', |
|
| 279 | - 'id' => 'geodir_email_enquiry_subject', |
|
| 280 | - 'type' => 'text', |
|
| 281 | - 'css' => 'min-width:300px;', |
|
| 282 | - 'std' => __('Website Enquiry', 'geodirectory')
|
|
| 283 | - ), |
|
| 284 | - array( |
|
| 285 | - 'name' => '', |
|
| 286 | - 'desc' => '', |
|
| 287 | - 'id' => 'geodir_email_enquiry_content', |
|
| 288 | - 'css' => 'width:500px; height: 150px;', |
|
| 289 | - 'type' => 'textarea', |
|
| 290 | - 'std' => __("<p>Dear [#to_name#],<p><p>An enquiry has been sent from <b>[#listing_link#]</b></p><p>===============================</p><p>[#comments#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 291 | - ), |
|
| 292 | - |
|
| 293 | - array('type' => 'sectionend', 'id' => 'other_emails'),
|
|
| 294 | - |
|
| 295 | - |
|
| 296 | - array('name' => __('Messages', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'messages'),
|
|
| 297 | - |
|
| 298 | - array('name' => __('Messages', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'messages'),
|
|
| 299 | - |
|
| 300 | - array( |
|
| 301 | - 'name' => __('Post submitted success', 'geodirectory'),
|
|
| 302 | - 'desc' => '', |
|
| 303 | - 'id' => 'geodir_post_added_success_msg_content', |
|
| 304 | - 'css' => 'width:500px; height: 150px;', |
|
| 305 | - 'type' => 'textarea', |
|
| 306 | - 'std' => __('<p>Thank you, your information has been successfully received.</p><p><a href="[#submited_information_link#]" >View your submitted information »</a></p><p>Thank you for visiting us at [#site_name#].</p>','geodirectory')
|
|
| 307 | - ), |
|
| 308 | - |
|
| 309 | - |
|
| 310 | - array('type' => 'sectionend', 'id' => 'messages'),
|
|
| 20 | + array('name' => __('Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'notification_options'),
|
|
| 21 | + |
|
| 22 | + |
|
| 23 | + array('name' => __('Notification Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'notification_options'),
|
|
| 24 | + |
|
| 25 | + array( |
|
| 26 | + 'name' => __('List of usable shortcodes', 'geodirectory'),
|
|
| 27 | + 'desc' => __('[#client_name#],[#listing_link#],[#posted_date#],[#number_of_days#],[#number_of_grace_days#],[#login_url#],[#username#],[#user_email#],[#site_name_url#],[#renew_link#],[#post_id#],[#site_name#],[#from_email#](in most cases this will be the admin email, except for popup forms)', 'geodirectory'),
|
|
| 28 | + 'id' => 'geodir_list_of_usable_shordcodes', |
|
| 29 | + 'type' => 'html_content', |
|
| 30 | + 'css' => 'min-width:300px;', |
|
| 31 | + 'std' => 'All Places' // Default value for the page title - changed in settings |
|
| 32 | + ), |
|
| 33 | + |
|
| 34 | + array( |
|
| 35 | + 'name' => __('Use advanced editor? (slow loading)', 'geodirectory'),
|
|
| 36 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 37 | + 'id' => 'geodir_tiny_editor', |
|
| 38 | + 'std' => 'yes', |
|
| 39 | + 'type' => 'radio', |
|
| 40 | + 'value' => '1', |
|
| 41 | + 'radiogroup' => 'start' |
|
| 42 | + ), |
|
| 43 | + array( |
|
| 44 | + 'name' => __('Use advanced editor?(slow loading)', 'geodirectory'),
|
|
| 45 | + 'desc' => __('No', 'geodirectory'),
|
|
| 46 | + 'id' => 'geodir_tiny_editor', |
|
| 47 | + 'std' => 'yes', |
|
| 48 | + 'type' => 'radio', |
|
| 49 | + 'value' => '0', |
|
| 50 | + 'radiogroup' => 'end' |
|
| 51 | + ), |
|
| 52 | + |
|
| 53 | + |
|
| 54 | + array('type' => 'sectionend', 'id' => 'notification_options'),
|
|
| 55 | + |
|
| 56 | + |
|
| 57 | + array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'site_bcc_options'),
|
|
| 58 | + |
|
| 59 | + array('name' => __('Site Bcc Options', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'site_bcc_options'),
|
|
| 60 | + |
|
| 61 | + array( |
|
| 62 | + 'name' => __('New user registration', 'geodirectory'),
|
|
| 63 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 64 | + 'id' => 'geodir_bcc_new_user', |
|
| 65 | + 'std' => 'yes', |
|
| 66 | + 'type' => 'radio', |
|
| 67 | + 'value' => '1', |
|
| 68 | + 'radiogroup' => 'start' |
|
| 69 | + ), |
|
| 70 | + array( |
|
| 71 | + 'name' => __('New user registration', 'geodirectory'),
|
|
| 72 | + 'desc' => __('No', 'geodirectory'),
|
|
| 73 | + 'id' => 'geodir_bcc_new_user', |
|
| 74 | + 'std' => 'yes', |
|
| 75 | + 'type' => 'radio', |
|
| 76 | + 'value' => '0', |
|
| 77 | + 'radiogroup' => 'end' |
|
| 78 | + ), |
|
| 79 | + |
|
| 80 | + array( |
|
| 81 | + 'name' => __('Send to friend', 'geodirectory'),
|
|
| 82 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 83 | + 'id' => 'geodir_bcc_friend', |
|
| 84 | + 'std' => 'yes', |
|
| 85 | + 'type' => 'radio', |
|
| 86 | + 'value' => '1', |
|
| 87 | + 'radiogroup' => 'start' |
|
| 88 | + ), |
|
| 89 | + array( |
|
| 90 | + 'name' => __('Send to friend', 'geodirectory'),
|
|
| 91 | + 'desc' => __('No', 'geodirectory'),
|
|
| 92 | + 'id' => 'geodir_bcc_friend', |
|
| 93 | + 'std' => 'yes', |
|
| 94 | + 'type' => 'radio', |
|
| 95 | + 'value' => '0', |
|
| 96 | + 'radiogroup' => 'end' |
|
| 97 | + ), |
|
| 98 | + |
|
| 99 | + array( |
|
| 100 | + 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 101 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 102 | + 'id' => 'geodir_bcc_enquiry', |
|
| 103 | + 'std' => 'yes', |
|
| 104 | + 'type' => 'radio', |
|
| 105 | + 'value' => '1', |
|
| 106 | + 'radiogroup' => 'start' |
|
| 107 | + ), |
|
| 108 | + array( |
|
| 109 | + 'name' => __('Send enquiry', 'geodirectory'),
|
|
| 110 | + 'desc' => __('No', 'geodirectory'),
|
|
| 111 | + 'id' => 'geodir_bcc_enquiry', |
|
| 112 | + 'std' => 'yes', |
|
| 113 | + 'type' => 'radio', |
|
| 114 | + 'value' => '0', |
|
| 115 | + 'radiogroup' => 'end' |
|
| 116 | + ), |
|
| 117 | + |
|
| 118 | + |
|
| 119 | + array('type' => 'sectionend', 'id' => 'site_bcc_options'),
|
|
| 120 | + |
|
| 121 | + |
|
| 122 | + array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'admin_emails'),
|
|
| 123 | + |
|
| 124 | + array('name' => __('Admin Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'admin_emails'),
|
|
| 125 | + |
|
| 126 | + array( |
|
| 127 | + 'name' => __('Post submit success to admin email', 'geodirectory'),
|
|
| 128 | + 'desc' => '', |
|
| 129 | + 'id' => 'geodir_post_submited_success_email_subject_admin', |
|
| 130 | + 'type' => 'text', |
|
| 131 | + 'css' => 'min-width:300px;', |
|
| 132 | + 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 133 | + ), |
|
| 134 | + array( |
|
| 135 | + 'name' => '', |
|
| 136 | + 'desc' => '', |
|
| 137 | + 'id' => 'geodir_post_submited_success_email_content_admin', |
|
| 138 | + 'css' => 'width:500px; height: 150px;', |
|
| 139 | + 'type' => 'textarea', |
|
| 140 | + 'std' => __('<p>Dear Admin,</p><p>A new listing has been published [#listing_link#]. This email is just for your information.</p><br><p>[#site_name#]</p>','geodirectory')
|
|
| 141 | + ), |
|
| 142 | + array( |
|
| 143 | + 'name' => __('Notify Admin when listing edited by Author', 'geodirectory'),
|
|
| 144 | + 'desc' => __('Yes', 'geodirectory'),
|
|
| 145 | + 'id' => 'geodir_notify_post_edited', |
|
| 146 | + 'std' => '0', |
|
| 147 | + 'type' => 'radio', |
|
| 148 | + 'value' => '1', |
|
| 149 | + 'radiogroup' => 'start' |
|
| 150 | + ), |
|
| 151 | + array( |
|
| 152 | + 'name' => __('Notify Admin when listing edited by Author', 'geodirectory'),
|
|
| 153 | + 'desc' => __('No', 'geodirectory'),
|
|
| 154 | + 'id' => 'geodir_notify_post_edited', |
|
| 155 | + 'std' => '0', |
|
| 156 | + 'type' => 'radio', |
|
| 157 | + 'value' => '0', |
|
| 158 | + 'radiogroup' => 'end' |
|
| 159 | + ), |
|
| 160 | + array( |
|
| 161 | + 'name' => __('Listing edited by Author', 'geodirectory'),
|
|
| 162 | + 'desc' => '', |
|
| 163 | + 'id' => 'geodir_post_edited_email_subject_admin', |
|
| 164 | + 'type' => 'text', |
|
| 165 | + 'css' => 'min-width:300px;', |
|
| 166 | + 'std' => __('[[#site_name#]] Listing edited by Author', 'geodirectory')
|
|
| 167 | + ), |
|
| 168 | + array( |
|
| 169 | + 'name' => '', |
|
| 170 | + 'desc' => '', |
|
| 171 | + 'id' => 'geodir_post_edited_email_content_admin', |
|
| 172 | + 'css' => 'width:500px; height: 150px;', |
|
| 173 | + 'type' => 'textarea', |
|
| 174 | + 'std' => __('<p>Dear Admin,</p><p>A listing [#listing_link#] has been edited by it\'s author [#post_author_name#].</p><br><p><b>Listing Details:</b></p><p>Listing ID: [#post_id#]</p><p>Listing URL: [#listing_link#]</p><p>Date: [#current_date#]</p><br><p>This email is just for your information.</p><p>[#site_name#]</p>', 'geodirectory')
|
|
| 175 | + ), |
|
| 176 | + |
|
| 177 | + |
|
| 178 | + array('type' => 'sectionend', 'id' => 'admin_emails'),
|
|
| 179 | + |
|
| 180 | + |
|
| 181 | + array('name' => __('Client Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'client_emails'),
|
|
| 182 | + |
|
| 183 | + array('name' => __('Client Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'client_emails'),
|
|
| 184 | + |
|
| 185 | + array( |
|
| 186 | + 'name' => __('Post submit success to client email', 'geodirectory'),
|
|
| 187 | + 'desc' => '', |
|
| 188 | + 'id' => 'geodir_post_submited_success_email_subject', |
|
| 189 | + 'type' => 'text', |
|
| 190 | + 'css' => 'min-width:300px;', |
|
| 191 | + 'std' => __('Post Submitted Successfully','geodirectory') // Default value for the page title - changed in settings
|
|
| 192 | + ), |
|
| 193 | + array( |
|
| 194 | + 'name' => '', |
|
| 195 | + 'desc' => '', |
|
| 196 | + 'id' => 'geodir_post_submited_success_email_content', |
|
| 197 | + 'css' => 'width:500px; height: 150px;', |
|
| 198 | + 'type' => 'textarea', |
|
| 199 | + 'std' => __('<p>Dear [#client_name#],</p><p>You submitted the below listing information. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>','geodirectory')
|
|
| 200 | + ), |
|
| 201 | + |
|
| 202 | + |
|
| 203 | + array( |
|
| 204 | + 'name' => __('User forgot password email', 'geodirectory'),
|
|
| 205 | + 'desc' => '', |
|
| 206 | + 'id' => 'geodir_forgot_password_subject', |
|
| 207 | + 'type' => 'text', |
|
| 208 | + 'css' => 'min-width:300px;', |
|
| 209 | + 'std' => __('[#site_name#] - Your new password', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 210 | + ), |
|
| 211 | + array( |
|
| 212 | + 'name' => '', |
|
| 213 | + 'desc' => '', |
|
| 214 | + 'id' => 'geodir_forgot_password_content', |
|
| 215 | + 'css' => 'width:500px; height: 150px;', |
|
| 216 | + 'type' => 'textarea', |
|
| 217 | + 'std' => __("<p>Dear [#client_name#],<p><p>You requested a new password for [#site_name_url#]</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 218 | + ), |
|
| 219 | + |
|
| 220 | + array( |
|
| 221 | + 'name' => __('Registration success email', 'geodirectory'),
|
|
| 222 | + 'desc' => '', |
|
| 223 | + 'id' => 'geodir_registration_success_email_subject', |
|
| 224 | + 'type' => 'text', |
|
| 225 | + 'css' => 'min-width:300px;', |
|
| 226 | + 'std' => __('Your Log In Details', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 227 | + ), |
|
| 228 | + array( |
|
| 229 | + 'name' => '', |
|
| 230 | + 'desc' => '', |
|
| 231 | + 'id' => 'geodir_registration_success_email_content', |
|
| 232 | + 'css' => 'width:500px; height: 150px;', |
|
| 233 | + 'type' => 'textarea', |
|
| 234 | + 'std' => __("<p>Dear [#client_name#],</p><p>You can log in with the following information:</p><p>[#login_details#]</p><p>You can login here: [#login_url#]</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 235 | + ), |
|
| 236 | + array( |
|
| 237 | + 'name' => __('Listing published email', 'geodirectory'),
|
|
| 238 | + 'desc' => '', |
|
| 239 | + 'id' => 'geodir_post_published_email_subject', |
|
| 240 | + 'type' => 'text', |
|
| 241 | + 'css' => 'min-width:300px;', |
|
| 242 | + 'std' => __('Listing Published Successfully', 'geodirectory') // Default value for the page title - changed in settings
|
|
| 243 | + ), |
|
| 244 | + array( |
|
| 245 | + 'name' => '', |
|
| 246 | + 'desc' => '', |
|
| 247 | + 'id' => 'geodir_post_published_email_content', |
|
| 248 | + 'css' => 'width:500px; height: 150px;', |
|
| 249 | + 'type' => 'textarea', |
|
| 250 | + 'std' => __("<p>Dear [#client_name#],</p><p>Your listing [#listing_link#] has been published. This email is just for your information.</p><p>[#listing_link#]</p><br><p>Thank you for your contribution.</p><p>[#site_name#]</p>", 'geodirectory')
|
|
| 251 | + ), |
|
| 252 | + |
|
| 253 | + array('type' => 'sectionend', 'id' => 'client_emails'),
|
|
| 254 | + |
|
| 255 | + array('name' => __('Other Emails', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'other_emails'),
|
|
| 256 | + |
|
| 257 | + array('name' => __('Other Emails', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'other_emails'),
|
|
| 258 | + |
|
| 259 | + array( |
|
| 260 | + 'name' => __('Send to friend', 'geodirectory'),
|
|
| 261 | + 'desc' => '', |
|
| 262 | + 'id' => 'geodir_email_friend_subject', |
|
| 263 | + 'type' => 'text', |
|
| 264 | + 'css' => 'min-width:300px;', |
|
| 265 | + 'std' => __('[#from_name#] thought you might be interested in..', 'geodirectory')
|
|
| 266 | + ), |
|
| 267 | + array( |
|
| 268 | + 'name' => '', |
|
| 269 | + 'desc' => '', |
|
| 270 | + 'id' => 'geodir_email_friend_content', |
|
| 271 | + 'css' => 'width:500px; height: 150px;', |
|
| 272 | + 'type' => 'textarea', |
|
| 273 | + 'std' => __("<p>Dear [#to_name#],<p><p>Your friend has sent you a message from <b>[#site_name#]</b> </p><p>===============================</p><p><b>Subject : [#subject#]</b></p><p>[#comments#] [#listing_link#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name#].</p>",'geodirectory')
|
|
| 274 | + ), |
|
| 275 | + |
|
| 276 | + array( |
|
| 277 | + 'name' => __('Email enquiry', 'geodirectory'),
|
|
| 278 | + 'desc' => '', |
|
| 279 | + 'id' => 'geodir_email_enquiry_subject', |
|
| 280 | + 'type' => 'text', |
|
| 281 | + 'css' => 'min-width:300px;', |
|
| 282 | + 'std' => __('Website Enquiry', 'geodirectory')
|
|
| 283 | + ), |
|
| 284 | + array( |
|
| 285 | + 'name' => '', |
|
| 286 | + 'desc' => '', |
|
| 287 | + 'id' => 'geodir_email_enquiry_content', |
|
| 288 | + 'css' => 'width:500px; height: 150px;', |
|
| 289 | + 'type' => 'textarea', |
|
| 290 | + 'std' => __("<p>Dear [#to_name#],<p><p>An enquiry has been sent from <b>[#listing_link#]</b></p><p>===============================</p><p>[#comments#]</p><p>===============================</p><p>Thank you,<br /><br />[#site_name_url#].</p>",'geodirectory')
|
|
| 291 | + ), |
|
| 292 | + |
|
| 293 | + array('type' => 'sectionend', 'id' => 'other_emails'),
|
|
| 294 | + |
|
| 295 | + |
|
| 296 | + array('name' => __('Messages', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'messages'),
|
|
| 297 | + |
|
| 298 | + array('name' => __('Messages', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'messages'),
|
|
| 299 | + |
|
| 300 | + array( |
|
| 301 | + 'name' => __('Post submitted success', 'geodirectory'),
|
|
| 302 | + 'desc' => '', |
|
| 303 | + 'id' => 'geodir_post_added_success_msg_content', |
|
| 304 | + 'css' => 'width:500px; height: 150px;', |
|
| 305 | + 'type' => 'textarea', |
|
| 306 | + 'std' => __('<p>Thank you, your information has been successfully received.</p><p><a href="[#submited_information_link#]" >View your submitted information »</a></p><p>Thank you for visiting us at [#site_name#].</p>','geodirectory')
|
|
| 307 | + ), |
|
| 308 | + |
|
| 309 | + |
|
| 310 | + array('type' => 'sectionend', 'id' => 'messages'),
|
|
| 311 | 311 | |
| 312 | 312 | )); // End Manage NOtifications settings |
@@ -11,10 +11,11 @@ discard block |
||
| 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 | switch ($dummy_post_index) {
|
| 20 | 21 | |
@@ -1807,16 +1808,18 @@ discard block |
||
| 1807 | 1808 | |
| 1808 | 1809 | foreach ($post_info as $post_info) {
|
| 1809 | 1810 | $default_location = geodir_get_default_location(); |
| 1810 | - if ($city_bound_lat1 > $city_bound_lat2) |
|
| 1811 | - $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1)); |
|
| 1812 | - else |
|
| 1813 | - $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2)); |
|
| 1814 | - |
|
| 1815 | - |
|
| 1816 | - if ($city_bound_lng1 > $city_bound_lng2) |
|
| 1817 | - $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1)); |
|
| 1818 | - else |
|
| 1819 | - $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2)); |
|
| 1811 | + if ($city_bound_lat1 > $city_bound_lat2) { |
|
| 1812 | + $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1)); |
|
| 1813 | + } else { |
|
| 1814 | + $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2)); |
|
| 1815 | + } |
|
| 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)); |
|
| 1822 | + } |
|
| 1820 | 1823 | $post_address = array(); |
| 1821 | 1824 | $postal_code = ''; |
| 1822 | 1825 | $address = ''; |
@@ -1831,28 +1834,32 @@ discard block |
||
| 1831 | 1834 | } |
| 1832 | 1835 | |
| 1833 | 1836 | if ($add_value->types[0] == 'street_number') {
|
| 1834 | - if ($address != '') |
|
| 1835 | - $address .= ',' . $add_value->long_name; |
|
| 1836 | - else |
|
| 1837 | - $address .= $add_value->long_name; |
|
| 1837 | + if ($address != '') { |
|
| 1838 | + $address .= ',' . $add_value->long_name; |
|
| 1839 | + } else { |
|
| 1840 | + $address .= $add_value->long_name; |
|
| 1841 | + } |
|
| 1838 | 1842 | } |
| 1839 | 1843 | if ($add_value->types[0] == 'route') {
|
| 1840 | - if ($address != '') |
|
| 1841 | - $address .= ',' . $add_value->long_name; |
|
| 1842 | - else |
|
| 1843 | - $address .= $add_value->long_name; |
|
| 1844 | + if ($address != '') { |
|
| 1845 | + $address .= ',' . $add_value->long_name; |
|
| 1846 | + } else { |
|
| 1847 | + $address .= $add_value->long_name; |
|
| 1848 | + } |
|
| 1844 | 1849 | } |
| 1845 | 1850 | if ($add_value->types[0] == 'neighborhood') {
|
| 1846 | - if ($address != '') |
|
| 1847 | - $address .= ',' . $add_value->long_name; |
|
| 1848 | - else |
|
| 1849 | - $address .= $add_value->long_name; |
|
| 1851 | + if ($address != '') { |
|
| 1852 | + $address .= ',' . $add_value->long_name; |
|
| 1853 | + } else { |
|
| 1854 | + $address .= $add_value->long_name; |
|
| 1855 | + } |
|
| 1850 | 1856 | } |
| 1851 | 1857 | if ($add_value->types[0] == 'sublocality') {
|
| 1852 | - if ($address != '') |
|
| 1853 | - $address .= ',' . $add_value->long_name; |
|
| 1854 | - else |
|
| 1855 | - $address .= $add_value->long_name; |
|
| 1858 | + if ($address != '') { |
|
| 1859 | + $address .= ',' . $add_value->long_name; |
|
| 1860 | + } else { |
|
| 1861 | + $address .= $add_value->long_name; |
|
| 1862 | + } |
|
| 1856 | 1863 | } |
| 1857 | 1864 | |
| 1858 | 1865 | } |
@@ -12,30 +12,30 @@ discard block |
||
| 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 | switch ($dummy_post_index) {
|
| 20 | 20 | |
| 21 | - case(1): |
|
| 22 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 23 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 24 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 25 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 26 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 27 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 28 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 29 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 30 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 31 | - $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 32 | - $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 33 | - |
|
| 34 | - |
|
| 35 | - $post_info[] = array( |
|
| 36 | - "listing_type" => 'gd_place', |
|
| 37 | - "post_title" => 'Franklin Square', |
|
| 38 | - "post_desc" => ' <h3> Location </h3> |
|
| 21 | + case(1): |
|
| 22 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 23 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 24 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 25 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 26 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 27 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 28 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 29 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 30 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 31 | + $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 32 | + $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 33 | + |
|
| 34 | + |
|
| 35 | + $post_info[] = array( |
|
| 36 | + "listing_type" => 'gd_place', |
|
| 37 | + "post_title" => 'Franklin Square', |
|
| 38 | + "post_desc" => ' <h3> Location </h3> |
|
| 39 | 39 | |
| 40 | 40 | 6th and Race Streets in Historic Philadelphia |
| 41 | 41 | <h3>The Experience</h3> |
@@ -70,42 +70,42 @@ discard block |
||
| 70 | 70 | 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. |
| 71 | 71 | |
| 72 | 72 | SquareBurger is open until October - perfect for a couple bites between rounds of miniature golf!', |
| 73 | - "post_images" => $image_array, |
|
| 74 | - "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 75 | - "post_tags" => array('Tags', 'Sample Tags'),
|
|
| 76 | - "geodir_video" => '', |
|
| 77 | - "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm', |
|
| 78 | - "geodir_contact" => '(111) 677-4444', |
|
| 79 | - "geodir_email" => '[email protected]', |
|
| 80 | - "geodir_website" => 'http://franklinsquare.com', |
|
| 81 | - "geodir_twitter" => 'http://twitter.com/franklinsquare', |
|
| 82 | - "geodir_facebook" => 'http://facebook.com/franklinsquare', |
|
| 83 | - "post_dummy" => '1' |
|
| 84 | - ); |
|
| 85 | - |
|
| 86 | - |
|
| 87 | - break; |
|
| 88 | - case 2: |
|
| 89 | - $image_array = array(); |
|
| 90 | - $post_meta = array(); |
|
| 91 | - |
|
| 92 | - /// Attractions ////post start 2/// |
|
| 93 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 94 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 95 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 96 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 97 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 98 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 99 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 100 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 101 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 102 | - $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 103 | - $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 104 | - |
|
| 105 | - $post_info[] = array( |
|
| 106 | - "listing_type" => 'gd_place', |
|
| 107 | - "post_title" => 'Please Touch Museum', |
|
| 108 | - "post_desc" => '<h3>New Location! </h3> |
|
| 73 | + "post_images" => $image_array, |
|
| 74 | + "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 75 | + "post_tags" => array('Tags', 'Sample Tags'),
|
|
| 76 | + "geodir_video" => '', |
|
| 77 | + "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm', |
|
| 78 | + "geodir_contact" => '(111) 677-4444', |
|
| 79 | + "geodir_email" => '[email protected]', |
|
| 80 | + "geodir_website" => 'http://franklinsquare.com', |
|
| 81 | + "geodir_twitter" => 'http://twitter.com/franklinsquare', |
|
| 82 | + "geodir_facebook" => 'http://facebook.com/franklinsquare', |
|
| 83 | + "post_dummy" => '1' |
|
| 84 | + ); |
|
| 85 | + |
|
| 86 | + |
|
| 87 | + break; |
|
| 88 | + case 2: |
|
| 89 | + $image_array = array(); |
|
| 90 | + $post_meta = array(); |
|
| 91 | + |
|
| 92 | + /// Attractions ////post start 2/// |
|
| 93 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 94 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 95 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 96 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 97 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 98 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 99 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 100 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 101 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 102 | + $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 103 | + $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 104 | + |
|
| 105 | + $post_info[] = array( |
|
| 106 | + "listing_type" => 'gd_place', |
|
| 107 | + "post_title" => 'Please Touch Museum', |
|
| 108 | + "post_desc" => '<h3>New Location! </h3> |
|
| 109 | 109 | |
| 110 | 110 | Who doesn´t love the Please Touch Museum? And now, taking kids to the Museum is better than ever. The nation´s premier children´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. |
| 111 | 111 | |
@@ -137,42 +137,42 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | You can buy admission tickets to the Please Touch Museum online through our partners at the Independence Visitor Center. Just click the button below.', |
| 139 | 139 | |
| 140 | - "post_images" => $image_array, |
|
| 141 | - "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 142 | - "post_tags" => array('Tags', 'Sample Tags'),
|
|
| 143 | - "geodir_video" => '', |
|
| 144 | - "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm', |
|
| 145 | - "geodir_contact" => '(222) 777-1111', |
|
| 146 | - "geodir_email" => '[email protected]', |
|
| 147 | - "geodir_website" => 'http://pleasetouchmuseum.com', |
|
| 148 | - "geodir_twitter" => 'http://twitter.com/pleasetouchmuseum', |
|
| 149 | - "geodir_facebook" => 'http://facebook.com/pleasetouchmuseum', |
|
| 150 | - "post_dummy" => '1' |
|
| 151 | - ); |
|
| 152 | - |
|
| 153 | - break; |
|
| 154 | - case 3: |
|
| 155 | - $image_array = array(); |
|
| 156 | - $post_meta = array(); |
|
| 157 | - |
|
| 158 | - ////post end/// |
|
| 159 | - /// Attractions ////post start 3/// |
|
| 160 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 161 | - $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 162 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 163 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 164 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 165 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 166 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 167 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 168 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 169 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 170 | - $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 171 | - |
|
| 172 | - $post_info[] = array( |
|
| 173 | - "listing_type" => 'gd_place', |
|
| 174 | - "post_title" => 'Longwood Gardens', |
|
| 175 | - "post_desc" => '<h3>The Experience </h3> |
|
| 140 | + "post_images" => $image_array, |
|
| 141 | + "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 142 | + "post_tags" => array('Tags', 'Sample Tags'),
|
|
| 143 | + "geodir_video" => '', |
|
| 144 | + "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm', |
|
| 145 | + "geodir_contact" => '(222) 777-1111', |
|
| 146 | + "geodir_email" => '[email protected]', |
|
| 147 | + "geodir_website" => 'http://pleasetouchmuseum.com', |
|
| 148 | + "geodir_twitter" => 'http://twitter.com/pleasetouchmuseum', |
|
| 149 | + "geodir_facebook" => 'http://facebook.com/pleasetouchmuseum', |
|
| 150 | + "post_dummy" => '1' |
|
| 151 | + ); |
|
| 152 | + |
|
| 153 | + break; |
|
| 154 | + case 3: |
|
| 155 | + $image_array = array(); |
|
| 156 | + $post_meta = array(); |
|
| 157 | + |
|
| 158 | + ////post end/// |
|
| 159 | + /// Attractions ////post start 3/// |
|
| 160 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 161 | + $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 162 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 163 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 164 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 165 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 166 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 167 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 168 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 169 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 170 | + $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 171 | + |
|
| 172 | + $post_info[] = array( |
|
| 173 | + "listing_type" => 'gd_place', |
|
| 174 | + "post_title" => 'Longwood Gardens', |
|
| 175 | + "post_desc" => '<h3>The Experience </h3> |
|
| 176 | 176 | |
| 177 | 177 | When you´re at Longwood Gardens, it´s easy to imagine that you´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. |
| 178 | 178 | |
@@ -197,42 +197,42 @@ discard block |
||
| 197 | 197 | <h3>Buy Tickets Online In Advance </h3> |
| 198 | 198 | |
| 199 | 199 | You can buy admission tickets to Longwood Gardens online through our partners at the Independence Visitor Center. Just click the button below.', |
| 200 | - "post_images" => $image_array, |
|
| 201 | - "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 202 | - "post_tags" => array('wood', 'garden'),
|
|
| 203 | - "geodir_video" => '', |
|
| 204 | - "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm', |
|
| 205 | - "geodir_contact" => '(111) 888-1111', |
|
| 206 | - "geodir_email" => '[email protected]', |
|
| 207 | - "geodir_website" => 'http://longwoodgardens.com', |
|
| 208 | - "geodir_twitter" => 'http://twitter.com/longwoodgardens', |
|
| 209 | - "geodir_facebook" => 'http://facebook.com/longwoodgardens', |
|
| 210 | - "post_dummy" => '1' |
|
| 211 | - ); |
|
| 212 | - break; |
|
| 213 | - ////post end/// |
|
| 214 | - /// Attractions ////post start 4/// |
|
| 215 | - |
|
| 216 | - case 4: |
|
| 217 | - |
|
| 218 | - $image_array = array(); |
|
| 219 | - $post_meta = array(); |
|
| 220 | - $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 221 | - $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 222 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 223 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 224 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 225 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 226 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 227 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 228 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 229 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 230 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 231 | - |
|
| 232 | - $post_info[] = array( |
|
| 233 | - "listing_type" => 'gd_place', |
|
| 234 | - "post_title" => 'The Philadelphia Zoo', |
|
| 235 | - "post_desc" => '<h3>The Zoo 150th Birthday</h3> |
|
| 200 | + "post_images" => $image_array, |
|
| 201 | + "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 202 | + "post_tags" => array('wood', 'garden'),
|
|
| 203 | + "geodir_video" => '', |
|
| 204 | + "geodir_timing" => 'Open today until 1 p.m., Sunday 10 am to 9 pm', |
|
| 205 | + "geodir_contact" => '(111) 888-1111', |
|
| 206 | + "geodir_email" => '[email protected]', |
|
| 207 | + "geodir_website" => 'http://longwoodgardens.com', |
|
| 208 | + "geodir_twitter" => 'http://twitter.com/longwoodgardens', |
|
| 209 | + "geodir_facebook" => 'http://facebook.com/longwoodgardens', |
|
| 210 | + "post_dummy" => '1' |
|
| 211 | + ); |
|
| 212 | + break; |
|
| 213 | + ////post end/// |
|
| 214 | + /// Attractions ////post start 4/// |
|
| 215 | + |
|
| 216 | + case 4: |
|
| 217 | + |
|
| 218 | + $image_array = array(); |
|
| 219 | + $post_meta = array(); |
|
| 220 | + $image_array[] = "$dummy_image_url/a11.jpg"; |
|
| 221 | + $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 222 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 223 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 224 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 225 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 226 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 227 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 228 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 229 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 230 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 231 | + |
|
| 232 | + $post_info[] = array( |
|
| 233 | + "listing_type" => 'gd_place', |
|
| 234 | + "post_title" => 'The Philadelphia Zoo', |
|
| 235 | + "post_desc" => '<h3>The Zoo 150th Birthday</h3> |
|
| 236 | 236 | |
| 237 | 237 | The Philadelphia Zoo celebrated its 150th anniversary in 2009. So stop by and celebrate this major achievement at America´s first zoo! |
| 238 | 238 | |
@@ -267,45 +267,45 @@ discard block |
||
| 267 | 267 | The nation´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´s grandson; its botanical collections of over 500 plant species; its groundbreaking research and its fine veterinary facilities. |
| 268 | 268 | |
| 269 | 269 | The Primate Reserve, Carnivore Kingdom, and Rare Animal Conservation Center, with its tree kangaroos and blue-eyed lemurs, are brand new, but there´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´s perspective; outdoors, the Zoo Balloon lifts passengers 400 feet into the air for a bird´s-eye view of the zoo.', |
| 270 | - "post_images" => $image_array, |
|
| 271 | - "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 272 | - "post_tags" => array('wood', 'garden'),
|
|
| 273 | - "geodir_video" => '', |
|
| 274 | - "geodir_timing" => 'Open today until 11.30 a.m., Sunday 11 am to 7 pm', |
|
| 275 | - "geodir_contact" => '(211) 143-1900', |
|
| 276 | - "geodir_email" => '[email protected]', |
|
| 277 | - "geodir_website" => 'http://philadelphiazoo.com', |
|
| 278 | - "geodir_twitter" => 'http://twitter.com/philadelphiazoo', |
|
| 279 | - "geodir_facebook" => 'http://facebook.com/philadelphiazoo', |
|
| 280 | - "post_dummy" => '1' |
|
| 281 | - ); |
|
| 282 | - |
|
| 283 | - ////post end/// |
|
| 284 | - /// Attractions ////post start 4/// |
|
| 285 | - break; |
|
| 286 | - case 5: |
|
| 287 | - |
|
| 288 | - |
|
| 289 | - $image_array = array(); |
|
| 290 | - $post_meta = array(); |
|
| 291 | - |
|
| 292 | - /// Attractions ////post start 5/// |
|
| 293 | - $image_array[] = "$dummy_image_url/a12.jpg"; |
|
| 294 | - $image_array[] = "$dummy_image_url/a13.jpg"; |
|
| 295 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 296 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 297 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 298 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 299 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 300 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 301 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 302 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 303 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 304 | - |
|
| 305 | - $post_info[] = array( |
|
| 306 | - "listing_type" => 'gd_place', |
|
| 307 | - "post_title" => 'National Constitution Center', |
|
| 308 | - "post_desc" => '<h3>The Experience</h3> |
|
| 270 | + "post_images" => $image_array, |
|
| 271 | + "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 272 | + "post_tags" => array('wood', 'garden'),
|
|
| 273 | + "geodir_video" => '', |
|
| 274 | + "geodir_timing" => 'Open today until 11.30 a.m., Sunday 11 am to 7 pm', |
|
| 275 | + "geodir_contact" => '(211) 143-1900', |
|
| 276 | + "geodir_email" => '[email protected]', |
|
| 277 | + "geodir_website" => 'http://philadelphiazoo.com', |
|
| 278 | + "geodir_twitter" => 'http://twitter.com/philadelphiazoo', |
|
| 279 | + "geodir_facebook" => 'http://facebook.com/philadelphiazoo', |
|
| 280 | + "post_dummy" => '1' |
|
| 281 | + ); |
|
| 282 | + |
|
| 283 | + ////post end/// |
|
| 284 | + /// Attractions ////post start 4/// |
|
| 285 | + break; |
|
| 286 | + case 5: |
|
| 287 | + |
|
| 288 | + |
|
| 289 | + $image_array = array(); |
|
| 290 | + $post_meta = array(); |
|
| 291 | + |
|
| 292 | + /// Attractions ////post start 5/// |
|
| 293 | + $image_array[] = "$dummy_image_url/a12.jpg"; |
|
| 294 | + $image_array[] = "$dummy_image_url/a13.jpg"; |
|
| 295 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 296 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 297 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 298 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 299 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 300 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 301 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 302 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 303 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 304 | + |
|
| 305 | + $post_info[] = array( |
|
| 306 | + "listing_type" => 'gd_place', |
|
| 307 | + "post_title" => 'National Constitution Center', |
|
| 308 | + "post_desc" => '<h3>The Experience</h3> |
|
| 309 | 309 | |
| 310 | 310 | It only four pages long, but the U.S. Constitution is among the most influential and important documents in the history of the world. |
| 311 | 311 | |
@@ -327,45 +327,45 @@ discard block |
||
| 327 | 327 | <h3>Kids Stuff </h3> |
| 328 | 328 | |
| 329 | 329 | 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.', |
| 330 | - "post_images" => $image_array, |
|
| 331 | - "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 332 | - "post_tags" => array('Tag', 'Center'),
|
|
| 333 | - "geodir_video" => '', |
|
| 334 | - "geodir_timing" => 'Open today until 9.30 a.m., Sunday 11 am to 7 pm', |
|
| 335 | - "geodir_contact" => '(111) 111-1111', |
|
| 336 | - "geodir_email" => '[email protected]', |
|
| 337 | - "geodir_website" => 'http://ncc.com', |
|
| 338 | - "geodir_twitter" => 'http://twitter.com/ncc', |
|
| 339 | - "geodir_facebook" => 'http://facebook.com/ncc', |
|
| 340 | - "post_dummy" => '1' |
|
| 341 | - ); |
|
| 342 | - |
|
| 343 | - ////post end/// |
|
| 344 | - /// Attractions ////post start 5/// |
|
| 345 | - break; |
|
| 346 | - case 6: |
|
| 347 | - |
|
| 348 | - |
|
| 349 | - $image_array = array(); |
|
| 350 | - $post_meta = array(); |
|
| 351 | - |
|
| 352 | - /// Attractions ////post start 6/// |
|
| 353 | - $image_array[] = "$dummy_image_url/a14.jpg"; |
|
| 354 | - $image_array[] = "$dummy_image_url/a13.jpg"; |
|
| 355 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 356 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 357 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 358 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 359 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 360 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 361 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 362 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 363 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 364 | - |
|
| 365 | - $post_info[] = array( |
|
| 366 | - "listing_type" => 'gd_place', |
|
| 367 | - "post_title" => 'Sadsbury Woods Preserve', |
|
| 368 | - "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. |
|
| 330 | + "post_images" => $image_array, |
|
| 331 | + "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 332 | + "post_tags" => array('Tag', 'Center'),
|
|
| 333 | + "geodir_video" => '', |
|
| 334 | + "geodir_timing" => 'Open today until 9.30 a.m., Sunday 11 am to 7 pm', |
|
| 335 | + "geodir_contact" => '(111) 111-1111', |
|
| 336 | + "geodir_email" => '[email protected]', |
|
| 337 | + "geodir_website" => 'http://ncc.com', |
|
| 338 | + "geodir_twitter" => 'http://twitter.com/ncc', |
|
| 339 | + "geodir_facebook" => 'http://facebook.com/ncc', |
|
| 340 | + "post_dummy" => '1' |
|
| 341 | + ); |
|
| 342 | + |
|
| 343 | + ////post end/// |
|
| 344 | + /// Attractions ////post start 5/// |
|
| 345 | + break; |
|
| 346 | + case 6: |
|
| 347 | + |
|
| 348 | + |
|
| 349 | + $image_array = array(); |
|
| 350 | + $post_meta = array(); |
|
| 351 | + |
|
| 352 | + /// Attractions ////post start 6/// |
|
| 353 | + $image_array[] = "$dummy_image_url/a14.jpg"; |
|
| 354 | + $image_array[] = "$dummy_image_url/a13.jpg"; |
|
| 355 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 356 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 357 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 358 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 359 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 360 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 361 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 362 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 363 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 364 | + |
|
| 365 | + $post_info[] = array( |
|
| 366 | + "listing_type" => 'gd_place', |
|
| 367 | + "post_title" => 'Sadsbury Woods Preserve', |
|
| 368 | + "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. |
|
| 369 | 369 | |
| 370 | 370 | 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. |
| 371 | 371 | |
@@ -381,45 +381,45 @@ discard block |
||
| 381 | 381 | Outsider Tip |
| 382 | 382 | |
| 383 | 383 | The deep forest is a great place for spotting neo-tropical songbirds in the spring and summer months', |
| 384 | - "post_images" => $image_array, |
|
| 385 | - "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 386 | - "post_tags" => array('sample', 'tags'),
|
|
| 387 | - "geodir_video" => '', |
|
| 388 | - "geodir_timing" => 'Open today until 12.30 p.m., Sunday 12 pm to 7 pm', |
|
| 389 | - "geodir_contact" => '(222) 999-9999', |
|
| 390 | - "geodir_email" => '[email protected]', |
|
| 391 | - "geodir_website" => 'http://swp.com', |
|
| 392 | - "geodir_twitter" => 'http://twitter.com/swp', |
|
| 393 | - "geodir_facebook" => 'http://facebook.com/swp', |
|
| 394 | - "post_dummy" => '1' |
|
| 395 | - ); |
|
| 396 | - |
|
| 397 | - ////post end/// |
|
| 398 | - /// Attractions ////post start 6/// |
|
| 399 | - |
|
| 400 | - break; |
|
| 401 | - case 7: |
|
| 402 | - |
|
| 403 | - $image_array = array(); |
|
| 404 | - $post_meta = array(); |
|
| 405 | - |
|
| 406 | - /// Attractions ////post start 7/// |
|
| 407 | - $image_array[] = "$dummy_image_url/a15.jpg"; |
|
| 408 | - $image_array[] = "$dummy_image_url/a16.jpg"; |
|
| 409 | - $image_array[] = "$dummy_image_url/a17.jpg"; |
|
| 410 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 411 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 412 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 413 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 414 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 415 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 416 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 417 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 418 | - |
|
| 419 | - $post_info[] = array( |
|
| 420 | - "listing_type" => 'gd_place', |
|
| 421 | - "post_title" => 'Museum Without Walls', |
|
| 422 | - "post_desc" => '<h3>The Experience </h3> |
|
| 384 | + "post_images" => $image_array, |
|
| 385 | + "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 386 | + "post_tags" => array('sample', 'tags'),
|
|
| 387 | + "geodir_video" => '', |
|
| 388 | + "geodir_timing" => 'Open today until 12.30 p.m., Sunday 12 pm to 7 pm', |
|
| 389 | + "geodir_contact" => '(222) 999-9999', |
|
| 390 | + "geodir_email" => '[email protected]', |
|
| 391 | + "geodir_website" => 'http://swp.com', |
|
| 392 | + "geodir_twitter" => 'http://twitter.com/swp', |
|
| 393 | + "geodir_facebook" => 'http://facebook.com/swp', |
|
| 394 | + "post_dummy" => '1' |
|
| 395 | + ); |
|
| 396 | + |
|
| 397 | + ////post end/// |
|
| 398 | + /// Attractions ////post start 6/// |
|
| 399 | + |
|
| 400 | + break; |
|
| 401 | + case 7: |
|
| 402 | + |
|
| 403 | + $image_array = array(); |
|
| 404 | + $post_meta = array(); |
|
| 405 | + |
|
| 406 | + /// Attractions ////post start 7/// |
|
| 407 | + $image_array[] = "$dummy_image_url/a15.jpg"; |
|
| 408 | + $image_array[] = "$dummy_image_url/a16.jpg"; |
|
| 409 | + $image_array[] = "$dummy_image_url/a17.jpg"; |
|
| 410 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 411 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 412 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 413 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 414 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 415 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 416 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 417 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 418 | + |
|
| 419 | + $post_info[] = array( |
|
| 420 | + "listing_type" => 'gd_place', |
|
| 421 | + "post_title" => 'Museum Without Walls', |
|
| 422 | + "post_desc" => '<h3>The Experience </h3> |
|
| 423 | 423 | |
| 424 | 424 | 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. |
| 425 | 425 | |
@@ -429,45 +429,45 @@ discard block |
||
| 429 | 429 | <h3>History </h3> |
| 430 | 430 | |
| 431 | 431 | 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. ', |
| 432 | - "post_images" => $image_array, |
|
| 433 | - "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 434 | - "post_tags" => array('Museum'),
|
|
| 435 | - "geodir_video" => '', |
|
| 436 | - "geodir_timing" => 'Open today until 10.30 a.m., Sunday 10 am to 7 pm', |
|
| 437 | - "geodir_contact" => '(222) 999-9999', |
|
| 438 | - "geodir_email" => '[email protected]', |
|
| 439 | - "geodir_website" => 'http://museumwithoutwallsaudio.org/', |
|
| 440 | - "geodir_twitter" => 'http://twitter.com/mwwalls', |
|
| 441 | - "geodir_facebook" => 'http://facebook.com/mwwalls', |
|
| 442 | - "post_dummy" => '1' |
|
| 443 | - ); |
|
| 444 | - |
|
| 445 | - ////post end/// |
|
| 446 | - /// Attractions ////post start 7/// |
|
| 447 | - |
|
| 448 | - break; |
|
| 449 | - case 8: |
|
| 450 | - |
|
| 451 | - $image_array = array(); |
|
| 452 | - $post_meta = array(); |
|
| 453 | - |
|
| 454 | - /// Attractions ////post start 8/// |
|
| 455 | - $image_array[] = "$dummy_image_url/a18.jpg"; |
|
| 456 | - $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 457 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 458 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 459 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 460 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 461 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 462 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 463 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 464 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 465 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 466 | - |
|
| 467 | - $post_info[] = array( |
|
| 468 | - "listing_type" => 'gd_place', |
|
| 469 | - "post_title" => 'Audacious Freedom', |
|
| 470 | - "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. |
|
| 432 | + "post_images" => $image_array, |
|
| 433 | + "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 434 | + "post_tags" => array('Museum'),
|
|
| 435 | + "geodir_video" => '', |
|
| 436 | + "geodir_timing" => 'Open today until 10.30 a.m., Sunday 10 am to 7 pm', |
|
| 437 | + "geodir_contact" => '(222) 999-9999', |
|
| 438 | + "geodir_email" => '[email protected]', |
|
| 439 | + "geodir_website" => 'http://museumwithoutwallsaudio.org/', |
|
| 440 | + "geodir_twitter" => 'http://twitter.com/mwwalls', |
|
| 441 | + "geodir_facebook" => 'http://facebook.com/mwwalls', |
|
| 442 | + "post_dummy" => '1' |
|
| 443 | + ); |
|
| 444 | + |
|
| 445 | + ////post end/// |
|
| 446 | + /// Attractions ////post start 7/// |
|
| 447 | + |
|
| 448 | + break; |
|
| 449 | + case 8: |
|
| 450 | + |
|
| 451 | + $image_array = array(); |
|
| 452 | + $post_meta = array(); |
|
| 453 | + |
|
| 454 | + /// Attractions ////post start 8/// |
|
| 455 | + $image_array[] = "$dummy_image_url/a18.jpg"; |
|
| 456 | + $image_array[] = "$dummy_image_url/a10.jpg"; |
|
| 457 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 458 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 459 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 460 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 461 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 462 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 463 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 464 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 465 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 466 | + |
|
| 467 | + $post_info[] = array( |
|
| 468 | + "listing_type" => 'gd_place', |
|
| 469 | + "post_title" => 'Audacious Freedom', |
|
| 470 | + "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. |
|
| 471 | 471 | |
| 472 | 472 | Discover how African Americans in Philadelphia lived and worked while helping to shape the young nation in its formative stages. |
| 473 | 473 | |
@@ -475,45 +475,45 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | 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´s Corner, which highlights the daily lives of children during that period. |
| 477 | 477 | ', |
| 478 | - "post_images" => $image_array, |
|
| 479 | - "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 480 | - "post_tags" => array('Tag1'),
|
|
| 481 | - "geodir_video" => '', |
|
| 482 | - "geodir_timing" => 'Open today until 11.30 a.m., Sunday 1 pm to 7 pm', |
|
| 483 | - "geodir_contact" => '(777) 777-7777', |
|
| 484 | - "geodir_email" => '[email protected]', |
|
| 485 | - "geodir_website" => 'http://www.aampmuseum.org/', |
|
| 486 | - "geodir_twitter" => 'http://twitter.com/aampmuseum', |
|
| 487 | - "geodir_facebook" => 'http://facebook.com/aampmuseum', |
|
| 488 | - "post_dummy" => '1' |
|
| 489 | - ); |
|
| 490 | - |
|
| 491 | - ////post end/// |
|
| 492 | - /// Attractions ////post start 8/// |
|
| 493 | - |
|
| 494 | - |
|
| 495 | - break; |
|
| 496 | - case 9: |
|
| 497 | - $image_array = array(); |
|
| 498 | - $post_meta = array(); |
|
| 499 | - |
|
| 500 | - /// Attractions ////post start 9/// |
|
| 501 | - $image_array[] = "$dummy_image_url/a19.jpg"; |
|
| 502 | - $image_array[] = "$dummy_image_url/a20.jpg"; |
|
| 503 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 504 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 505 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 506 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 507 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 508 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 509 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 510 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 511 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 512 | - |
|
| 513 | - $post_info[] = array( |
|
| 514 | - "listing_type" => 'gd_place', |
|
| 515 | - "post_title" => 'The Liberty Bell Center', |
|
| 516 | - "post_desc" => '<h3>The Experience </h3> |
|
| 478 | + "post_images" => $image_array, |
|
| 479 | + "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 480 | + "post_tags" => array('Tag1'),
|
|
| 481 | + "geodir_video" => '', |
|
| 482 | + "geodir_timing" => 'Open today until 11.30 a.m., Sunday 1 pm to 7 pm', |
|
| 483 | + "geodir_contact" => '(777) 777-7777', |
|
| 484 | + "geodir_email" => '[email protected]', |
|
| 485 | + "geodir_website" => 'http://www.aampmuseum.org/', |
|
| 486 | + "geodir_twitter" => 'http://twitter.com/aampmuseum', |
|
| 487 | + "geodir_facebook" => 'http://facebook.com/aampmuseum', |
|
| 488 | + "post_dummy" => '1' |
|
| 489 | + ); |
|
| 490 | + |
|
| 491 | + ////post end/// |
|
| 492 | + /// Attractions ////post start 8/// |
|
| 493 | + |
|
| 494 | + |
|
| 495 | + break; |
|
| 496 | + case 9: |
|
| 497 | + $image_array = array(); |
|
| 498 | + $post_meta = array(); |
|
| 499 | + |
|
| 500 | + /// Attractions ////post start 9/// |
|
| 501 | + $image_array[] = "$dummy_image_url/a19.jpg"; |
|
| 502 | + $image_array[] = "$dummy_image_url/a20.jpg"; |
|
| 503 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 504 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 505 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 506 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 507 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 508 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 509 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 510 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 511 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 512 | + |
|
| 513 | + $post_info[] = array( |
|
| 514 | + "listing_type" => 'gd_place', |
|
| 515 | + "post_title" => 'The Liberty Bell Center', |
|
| 516 | + "post_desc" => '<h3>The Experience </h3> |
|
| 517 | 517 | |
| 518 | 518 | 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. |
| 519 | 519 | |
@@ -534,45 +534,45 @@ discard block |
||
| 534 | 534 | The Bell is suspended from what is believed to be its original yoke, made of American elm. |
| 535 | 535 | |
| 536 | 536 | The Liberty Bell weighs 2,080 pounds. The yoke weighs about 100 pounds.', |
| 537 | - "post_images" => $image_array, |
|
| 538 | - "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 539 | - "post_tags" => array(''),
|
|
| 540 | - "geodir_video" => '', |
|
| 541 | - "geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.', |
|
| 542 | - "geodir_contact" => '(777) 666-6666', |
|
| 543 | - "geodir_email" => '[email protected]', |
|
| 544 | - "geodir_website" => 'http://www.nps.gov/inde', |
|
| 545 | - "geodir_twitter" => 'http://twitter.com/nps', |
|
| 546 | - "geodir_facebook" => 'http://facebook.com/nps', |
|
| 547 | - "post_dummy" => '1' |
|
| 548 | - ); |
|
| 549 | - |
|
| 550 | - ////post end/// |
|
| 551 | - /// Attractions ////post start 9/// |
|
| 552 | - break; |
|
| 553 | - case 10: |
|
| 554 | - |
|
| 555 | - |
|
| 556 | - $image_array = array(); |
|
| 557 | - $post_meta = array(); |
|
| 558 | - |
|
| 559 | - /// Attractions ////post start 10/// |
|
| 560 | - $image_array[] = "$dummy_image_url/a19.jpg"; |
|
| 561 | - $image_array[] = "$dummy_image_url/a20.jpg"; |
|
| 562 | - $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 563 | - $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 564 | - $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 565 | - $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 566 | - $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 567 | - $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 568 | - $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 569 | - $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 570 | - $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 571 | - |
|
| 572 | - $post_info[] = array( |
|
| 573 | - "listing_type" => 'gd_place', |
|
| 574 | - "post_title" => 'Rittenhouse Square', |
|
| 575 | - "post_desc" => ' |
|
| 537 | + "post_images" => $image_array, |
|
| 538 | + "post_category" => array('gd_placecategory' => array('Attractions', 'Feature')),
|
|
| 539 | + "post_tags" => array(''),
|
|
| 540 | + "geodir_video" => '', |
|
| 541 | + "geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.', |
|
| 542 | + "geodir_contact" => '(777) 666-6666', |
|
| 543 | + "geodir_email" => '[email protected]', |
|
| 544 | + "geodir_website" => 'http://www.nps.gov/inde', |
|
| 545 | + "geodir_twitter" => 'http://twitter.com/nps', |
|
| 546 | + "geodir_facebook" => 'http://facebook.com/nps', |
|
| 547 | + "post_dummy" => '1' |
|
| 548 | + ); |
|
| 549 | + |
|
| 550 | + ////post end/// |
|
| 551 | + /// Attractions ////post start 9/// |
|
| 552 | + break; |
|
| 553 | + case 10: |
|
| 554 | + |
|
| 555 | + |
|
| 556 | + $image_array = array(); |
|
| 557 | + $post_meta = array(); |
|
| 558 | + |
|
| 559 | + /// Attractions ////post start 10/// |
|
| 560 | + $image_array[] = "$dummy_image_url/a19.jpg"; |
|
| 561 | + $image_array[] = "$dummy_image_url/a20.jpg"; |
|
| 562 | + $image_array[] = "$dummy_image_url/a3.jpg"; |
|
| 563 | + $image_array[] = "$dummy_image_url/a4.jpg"; |
|
| 564 | + $image_array[] = "$dummy_image_url/a5.jpg"; |
|
| 565 | + $image_array[] = "$dummy_image_url/a2.jpg"; |
|
| 566 | + $image_array[] = "$dummy_image_url/a7.jpg"; |
|
| 567 | + $image_array[] = "$dummy_image_url/a8.jpg"; |
|
| 568 | + $image_array[] = "$dummy_image_url/a6.jpg"; |
|
| 569 | + $image_array[] = "$dummy_image_url/a1.jpg"; |
|
| 570 | + $image_array[] = "$dummy_image_url/a9.jpg"; |
|
| 571 | + |
|
| 572 | + $post_info[] = array( |
|
| 573 | + "listing_type" => 'gd_place', |
|
| 574 | + "post_title" => 'Rittenhouse Square', |
|
| 575 | + "post_desc" => ' |
|
| 576 | 576 | |
| 577 | 577 | 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”. |
| 578 | 578 | <h3> History </h3> |
@@ -605,45 +605,45 @@ discard block |
||
| 605 | 605 | |
| 606 | 606 | 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. |
| 607 | 607 | ', |
| 608 | - "post_images" => $image_array, |
|
| 609 | - "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 610 | - "post_tags" => array('Museum'),
|
|
| 611 | - "geodir_video" => '', |
|
| 612 | - "geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.', |
|
| 613 | - "geodir_contact" => '(777) 666-6666', |
|
| 614 | - "geodir_email" => '[email protected]', |
|
| 615 | - "geodir_website" => 'http://www.fairmountpark.org/rittenhousesquare.asp', |
|
| 616 | - "geodir_twitter" => 'http://twitter.com/fairmountpark', |
|
| 617 | - "geodir_facebook" => 'http://facebook.com/fairmountpark', |
|
| 618 | - "post_dummy" => '1' |
|
| 619 | - ); |
|
| 620 | - |
|
| 621 | - ////post end/// |
|
| 622 | - /// Attractions ////post start 10/// |
|
| 623 | - break; |
|
| 624 | - case 11: |
|
| 625 | - |
|
| 626 | - |
|
| 627 | - $image_array = array(); |
|
| 628 | - $post_meta = array(); |
|
| 629 | - |
|
| 630 | - /// Hotels ////post start 1/// |
|
| 631 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 632 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 633 | - $image_array[] = "$dummy_image_url/hotels3.jpg"; |
|
| 634 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 635 | - $image_array[] = "$dummy_image_url/hotels5.jpg"; |
|
| 636 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 637 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 638 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 639 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 640 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 641 | - $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 642 | - |
|
| 643 | - $post_info[] = array( |
|
| 644 | - "listing_type" => 'gd_place', |
|
| 645 | - "post_title" => 'Loews Philadelphia Hotel', |
|
| 646 | - "post_desc" => ' |
|
| 608 | + "post_images" => $image_array, |
|
| 609 | + "post_category" => array('gd_placecategory' => array('Attractions')),
|
|
| 610 | + "post_tags" => array('Museum'),
|
|
| 611 | + "geodir_video" => '', |
|
| 612 | + "geodir_timing" => 'The center is open year round, 9 a.m. – 5 p.m., with extended hours in the summer.', |
|
| 613 | + "geodir_contact" => '(777) 666-6666', |
|
| 614 | + "geodir_email" => '[email protected]', |
|
| 615 | + "geodir_website" => 'http://www.fairmountpark.org/rittenhousesquare.asp', |
|
| 616 | + "geodir_twitter" => 'http://twitter.com/fairmountpark', |
|
| 617 | + "geodir_facebook" => 'http://facebook.com/fairmountpark', |
|
| 618 | + "post_dummy" => '1' |
|
| 619 | + ); |
|
| 620 | + |
|
| 621 | + ////post end/// |
|
| 622 | + /// Attractions ////post start 10/// |
|
| 623 | + break; |
|
| 624 | + case 11: |
|
| 625 | + |
|
| 626 | + |
|
| 627 | + $image_array = array(); |
|
| 628 | + $post_meta = array(); |
|
| 629 | + |
|
| 630 | + /// Hotels ////post start 1/// |
|
| 631 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 632 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 633 | + $image_array[] = "$dummy_image_url/hotels3.jpg"; |
|
| 634 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 635 | + $image_array[] = "$dummy_image_url/hotels5.jpg"; |
|
| 636 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 637 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 638 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 639 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 640 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 641 | + $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 642 | + |
|
| 643 | + $post_info[] = array( |
|
| 644 | + "listing_type" => 'gd_place', |
|
| 645 | + "post_title" => 'Loews Philadelphia Hotel', |
|
| 646 | + "post_desc" => ' |
|
| 647 | 647 | |
| 648 | 648 | <h3>OVERVIEW </h3> |
| 649 | 649 | |
@@ -710,45 +710,45 @@ discard block |
||
| 710 | 710 | |
| 711 | 711 | 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. |
| 712 | 712 | ', |
| 713 | - "post_images" => $image_array, |
|
| 714 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
|
|
| 715 | - "post_tags" => array(''),
|
|
| 716 | - "geodir_video" => '', |
|
| 717 | - "geodir_timing" => 'Daily, 6:30 am – 12:00 pm', |
|
| 718 | - "geodir_contact" => '(111) 111-0000', |
|
| 719 | - "geodir_email" => '[email protected]', |
|
| 720 | - "geodir_website" => 'http://www.loewshotels.com/en/hotels/philadelphia-hotel/overview.aspx', |
|
| 721 | - "geodir_twitter" => 'http://twitter.com/loewshotels', |
|
| 722 | - "geodir_facebook" => 'http://facebook.com/loewshotels', |
|
| 723 | - "post_dummy" => '1' |
|
| 724 | - ); |
|
| 725 | - |
|
| 726 | - ////post end/// |
|
| 727 | - /// Hotels ////post start 1/// |
|
| 728 | - break; |
|
| 729 | - case 12: |
|
| 730 | - |
|
| 731 | - |
|
| 732 | - $image_array = array(); |
|
| 733 | - $post_meta = array(); |
|
| 734 | - |
|
| 735 | - /// Hotels ////post start 2/// |
|
| 736 | - $image_array[] = "$dummy_image_url/hotels5.jpg"; |
|
| 737 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 738 | - $image_array[] = "$dummy_image_url/hotels3.jpg"; |
|
| 739 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 740 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 741 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 742 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 743 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 744 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 745 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 746 | - $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 747 | - |
|
| 748 | - $post_info[] = array( |
|
| 749 | - "listing_type" => 'gd_place', |
|
| 750 | - "post_title" => 'Embassy Suites Philadelphia', |
|
| 751 | - "post_desc" => ' |
|
| 713 | + "post_images" => $image_array, |
|
| 714 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
|
|
| 715 | + "post_tags" => array(''),
|
|
| 716 | + "geodir_video" => '', |
|
| 717 | + "geodir_timing" => 'Daily, 6:30 am – 12:00 pm', |
|
| 718 | + "geodir_contact" => '(111) 111-0000', |
|
| 719 | + "geodir_email" => '[email protected]', |
|
| 720 | + "geodir_website" => 'http://www.loewshotels.com/en/hotels/philadelphia-hotel/overview.aspx', |
|
| 721 | + "geodir_twitter" => 'http://twitter.com/loewshotels', |
|
| 722 | + "geodir_facebook" => 'http://facebook.com/loewshotels', |
|
| 723 | + "post_dummy" => '1' |
|
| 724 | + ); |
|
| 725 | + |
|
| 726 | + ////post end/// |
|
| 727 | + /// Hotels ////post start 1/// |
|
| 728 | + break; |
|
| 729 | + case 12: |
|
| 730 | + |
|
| 731 | + |
|
| 732 | + $image_array = array(); |
|
| 733 | + $post_meta = array(); |
|
| 734 | + |
|
| 735 | + /// Hotels ////post start 2/// |
|
| 736 | + $image_array[] = "$dummy_image_url/hotels5.jpg"; |
|
| 737 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 738 | + $image_array[] = "$dummy_image_url/hotels3.jpg"; |
|
| 739 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 740 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 741 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 742 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 743 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 744 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 745 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 746 | + $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 747 | + |
|
| 748 | + $post_info[] = array( |
|
| 749 | + "listing_type" => 'gd_place', |
|
| 750 | + "post_title" => 'Embassy Suites Philadelphia', |
|
| 751 | + "post_desc" => ' |
|
| 752 | 752 | The newly renovated Embassy Suites Philadelphia – Center City hotel is conveniently situated in the heart of downtown Philadelphia, Pennsylvania and Philadelphia´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: |
| 753 | 753 | |
| 754 | 754 | Philadelphia Museum of Art |
@@ -764,45 +764,45 @@ discard block |
||
| 764 | 764 | |
| 765 | 765 | A delicious, complimentary cooked-to-order breakfast is offered each morning, and a hotel Manager´s Reception every night – featuring complimentary refreshments and great company. |
| 766 | 766 | ', |
| 767 | - "post_images" => $image_array, |
|
| 768 | - "post_category" => array('gd_placecategory' => array('Hotels')),
|
|
| 769 | - "post_tags" => array(''),
|
|
| 770 | - "geodir_video" => '', |
|
| 771 | - "geodir_timing" => 'Daily, 10:30 am – 10 pm', |
|
| 772 | - "geodir_contact" => '(111) 111-0000', |
|
| 773 | - "geodir_email" => '[email protected]', |
|
| 774 | - "geodir_website" => 'http://embassysuites1.hilton.com/en_US/es/hotel/PHLDTES-Embassy-Suites-Philadelphia-Center-City-Pennsylvania/index.do', |
|
| 775 | - "geodir_twitter" => 'http://twitter.com/embassysuites1', |
|
| 776 | - "geodir_facebook" => 'http://facebook.com/embassysuites1', |
|
| 777 | - "post_dummy" => '1' |
|
| 778 | - ); |
|
| 779 | - |
|
| 780 | - ////post end/// |
|
| 781 | - /// Hotels ////post start 2/// |
|
| 782 | - |
|
| 783 | - break; |
|
| 784 | - case 13: |
|
| 785 | - |
|
| 786 | - $image_array = array(); |
|
| 787 | - $post_meta = array(); |
|
| 788 | - |
|
| 789 | - /// Hotels ////post start 3/// |
|
| 790 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 791 | - $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 792 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 793 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 794 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 795 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 796 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 797 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 798 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 799 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 800 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 801 | - |
|
| 802 | - $post_info[] = array( |
|
| 803 | - "listing_type" => 'gd_place', |
|
| 804 | - "post_title" => 'Doubletree Hotel Philadelphia', |
|
| 805 | - "post_desc" => ' |
|
| 767 | + "post_images" => $image_array, |
|
| 768 | + "post_category" => array('gd_placecategory' => array('Hotels')),
|
|
| 769 | + "post_tags" => array(''),
|
|
| 770 | + "geodir_video" => '', |
|
| 771 | + "geodir_timing" => 'Daily, 10:30 am – 10 pm', |
|
| 772 | + "geodir_contact" => '(111) 111-0000', |
|
| 773 | + "geodir_email" => '[email protected]', |
|
| 774 | + "geodir_website" => 'http://embassysuites1.hilton.com/en_US/es/hotel/PHLDTES-Embassy-Suites-Philadelphia-Center-City-Pennsylvania/index.do', |
|
| 775 | + "geodir_twitter" => 'http://twitter.com/embassysuites1', |
|
| 776 | + "geodir_facebook" => 'http://facebook.com/embassysuites1', |
|
| 777 | + "post_dummy" => '1' |
|
| 778 | + ); |
|
| 779 | + |
|
| 780 | + ////post end/// |
|
| 781 | + /// Hotels ////post start 2/// |
|
| 782 | + |
|
| 783 | + break; |
|
| 784 | + case 13: |
|
| 785 | + |
|
| 786 | + $image_array = array(); |
|
| 787 | + $post_meta = array(); |
|
| 788 | + |
|
| 789 | + /// Hotels ////post start 3/// |
|
| 790 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 791 | + $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 792 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 793 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 794 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 795 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 796 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 797 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 798 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 799 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 800 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 801 | + |
|
| 802 | + $post_info[] = array( |
|
| 803 | + "listing_type" => 'gd_place', |
|
| 804 | + "post_title" => 'Doubletree Hotel Philadelphia', |
|
| 805 | + "post_desc" => ' |
|
| 806 | 806 | With 434 rooms, the Doubletree Hotel is a great option for your upcoming stay in Philadelphia. |
| 807 | 807 | |
| 808 | 808 | <h3>Location </h3> |
@@ -832,47 +832,47 @@ discard block |
||
| 832 | 832 | 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´re close to everything you could ever want in a night on the town. |
| 833 | 833 | ', |
| 834 | 834 | |
| 835 | - "post_images" => $image_array, |
|
| 836 | - |
|
| 837 | - "post_category" => array('gd_placecategory' => array('Hotels')),
|
|
| 838 | - "post_tags" => array(''),
|
|
| 839 | - "geodir_video" => '', |
|
| 840 | - "geodir_timing" => 'Daily, 10:30 am – 10 pm', |
|
| 841 | - "geodir_contact" => '(111) 111-0000', |
|
| 842 | - "geodir_email" => '[email protected]', |
|
| 843 | - "geodir_website" => 'http://doubletree1.hilton.com/en_US/dt/hotel/PHLBLDT-Doubletree-Hotel-Philadelphia-Pennsylvania/index.do', |
|
| 844 | - "geodir_twitter" => 'http://twitter.com/doubletree1', |
|
| 845 | - "geodir_facebook" => 'http://facebook.com/doubletree1', |
|
| 846 | - "post_dummy" => '1' |
|
| 847 | - ); |
|
| 848 | - |
|
| 849 | - ////post end/// |
|
| 850 | - /// Hotels ////post start 3/// |
|
| 851 | - |
|
| 852 | - break; |
|
| 853 | - case 14: |
|
| 854 | - |
|
| 855 | - |
|
| 856 | - $image_array = array(); |
|
| 857 | - $post_meta = array(); |
|
| 858 | - |
|
| 859 | - /// Hotels ////post start 4/// |
|
| 860 | - $image_array[] = "$dummy_image_url/hotels15.jpg"; |
|
| 861 | - $image_array[] = "$dummy_image_url/hotels16.jpg"; |
|
| 862 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 863 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 864 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 865 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 866 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 867 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 868 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 869 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 870 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 871 | - |
|
| 872 | - $post_info[] = array( |
|
| 873 | - "listing_type" => 'gd_place', |
|
| 874 | - "post_title" => 'Philadelphia Marriott Downtown', |
|
| 875 | - "post_desc" => ' |
|
| 835 | + "post_images" => $image_array, |
|
| 836 | + |
|
| 837 | + "post_category" => array('gd_placecategory' => array('Hotels')),
|
|
| 838 | + "post_tags" => array(''),
|
|
| 839 | + "geodir_video" => '', |
|
| 840 | + "geodir_timing" => 'Daily, 10:30 am – 10 pm', |
|
| 841 | + "geodir_contact" => '(111) 111-0000', |
|
| 842 | + "geodir_email" => '[email protected]', |
|
| 843 | + "geodir_website" => 'http://doubletree1.hilton.com/en_US/dt/hotel/PHLBLDT-Doubletree-Hotel-Philadelphia-Pennsylvania/index.do', |
|
| 844 | + "geodir_twitter" => 'http://twitter.com/doubletree1', |
|
| 845 | + "geodir_facebook" => 'http://facebook.com/doubletree1', |
|
| 846 | + "post_dummy" => '1' |
|
| 847 | + ); |
|
| 848 | + |
|
| 849 | + ////post end/// |
|
| 850 | + /// Hotels ////post start 3/// |
|
| 851 | + |
|
| 852 | + break; |
|
| 853 | + case 14: |
|
| 854 | + |
|
| 855 | + |
|
| 856 | + $image_array = array(); |
|
| 857 | + $post_meta = array(); |
|
| 858 | + |
|
| 859 | + /// Hotels ////post start 4/// |
|
| 860 | + $image_array[] = "$dummy_image_url/hotels15.jpg"; |
|
| 861 | + $image_array[] = "$dummy_image_url/hotels16.jpg"; |
|
| 862 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 863 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 864 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 865 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 866 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 867 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 868 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 869 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 870 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 871 | + |
|
| 872 | + $post_info[] = array( |
|
| 873 | + "listing_type" => 'gd_place', |
|
| 874 | + "post_title" => 'Philadelphia Marriott Downtown', |
|
| 875 | + "post_desc" => ' |
|
| 876 | 876 | Get ready to stay and play at the new aloft Philadelphia Airport! |
| 877 | 877 | |
| 878 | 878 | 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. |
@@ -899,45 +899,45 @@ discard block |
||
| 899 | 899 | |
| 900 | 900 | Aahh…breathe deep at Aloft. This hotel is smoke-free. |
| 901 | 901 | ', |
| 902 | - "post_images" => $image_array, |
|
| 903 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
|
|
| 904 | - "post_tags" => array(''),
|
|
| 905 | - "geodir_video" => '', |
|
| 906 | - "geodir_timing" => '24 Hours', |
|
| 907 | - "geodir_contact" => '(123) 111-2222', |
|
| 908 | - "geodir_email" => '[email protected]', |
|
| 909 | - "geodir_website" => 'http://www.marriott.com/hotels/travel/phldt-philadelphia-marriott-downtown/', |
|
| 910 | - "geodir_twitter" => 'http://twitter.com/marriott', |
|
| 911 | - "geodir_facebook" => 'http://facebook.com/marriott', |
|
| 912 | - "post_dummy" => '1' |
|
| 913 | - ); |
|
| 914 | - |
|
| 915 | - ////post end/// |
|
| 916 | - /// Hotels ////post start 4/// |
|
| 917 | - break; |
|
| 918 | - case 15: |
|
| 919 | - |
|
| 920 | - |
|
| 921 | - $image_array = array(); |
|
| 922 | - $post_meta = array(); |
|
| 923 | - |
|
| 924 | - /// Hotels ////post start 5/// |
|
| 925 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 926 | - $image_array[] = "$dummy_image_url/hotels16.jpg"; |
|
| 927 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 928 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 929 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 930 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 931 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 932 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 933 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 934 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 935 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 936 | - |
|
| 937 | - $post_info[] = array( |
|
| 938 | - "listing_type" => 'gd_place', |
|
| 939 | - "post_title" => 'Hilton Inn at Penn', |
|
| 940 | - "post_desc" => ' |
|
| 902 | + "post_images" => $image_array, |
|
| 903 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
|
|
| 904 | + "post_tags" => array(''),
|
|
| 905 | + "geodir_video" => '', |
|
| 906 | + "geodir_timing" => '24 Hours', |
|
| 907 | + "geodir_contact" => '(123) 111-2222', |
|
| 908 | + "geodir_email" => '[email protected]', |
|
| 909 | + "geodir_website" => 'http://www.marriott.com/hotels/travel/phldt-philadelphia-marriott-downtown/', |
|
| 910 | + "geodir_twitter" => 'http://twitter.com/marriott', |
|
| 911 | + "geodir_facebook" => 'http://facebook.com/marriott', |
|
| 912 | + "post_dummy" => '1' |
|
| 913 | + ); |
|
| 914 | + |
|
| 915 | + ////post end/// |
|
| 916 | + /// Hotels ////post start 4/// |
|
| 917 | + break; |
|
| 918 | + case 15: |
|
| 919 | + |
|
| 920 | + |
|
| 921 | + $image_array = array(); |
|
| 922 | + $post_meta = array(); |
|
| 923 | + |
|
| 924 | + /// Hotels ////post start 5/// |
|
| 925 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 926 | + $image_array[] = "$dummy_image_url/hotels16.jpg"; |
|
| 927 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 928 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 929 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 930 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 931 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 932 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 933 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 934 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 935 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 936 | + |
|
| 937 | + $post_info[] = array( |
|
| 938 | + "listing_type" => 'gd_place', |
|
| 939 | + "post_title" => 'Hilton Inn at Penn', |
|
| 940 | + "post_desc" => ' |
|
| 941 | 941 | Located in the heart of Penn´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. |
| 942 | 942 | |
| 943 | 943 | 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. |
@@ -953,45 +953,45 @@ discard block |
||
| 953 | 953 | |
| 954 | 954 | 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. |
| 955 | 955 | ', |
| 956 | - "post_images" => $image_array, |
|
| 957 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 958 | - "post_tags" => array(''),
|
|
| 959 | - "geodir_video" => '', |
|
| 960 | - "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 961 | - "geodir_contact" => '(888) 888-8888', |
|
| 962 | - "geodir_email" => '[email protected]', |
|
| 963 | - "geodir_website" => 'http://www.theinnatpenn.com/', |
|
| 964 | - "geodir_twitter" => 'http://twitter.com/theinnatpenn', |
|
| 965 | - "geodir_facebook" => 'http://facebook.com/theinnatpenn', |
|
| 966 | - "post_dummy" => '1' |
|
| 967 | - ); |
|
| 968 | - |
|
| 969 | - ////post end/// |
|
| 970 | - /// Hotels ////post start 5/// |
|
| 971 | - break; |
|
| 972 | - case 16: |
|
| 973 | - |
|
| 974 | - |
|
| 975 | - $image_array = array(); |
|
| 976 | - $post_meta = array(); |
|
| 977 | - |
|
| 978 | - /// Hotels ////post start 6/// |
|
| 979 | - $image_array[] = "$dummy_image_url/hotels17.jpg"; |
|
| 980 | - $image_array[] = "$dummy_image_url/hotels18.jpg"; |
|
| 981 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 982 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 983 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 984 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 985 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 986 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 987 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 988 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 989 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 990 | - |
|
| 991 | - $post_info[] = array( |
|
| 992 | - "listing_type" => 'gd_place', |
|
| 993 | - "post_title" => 'Courtyard Philadelphia Downtown', |
|
| 994 | - "post_desc" => ' |
|
| 956 | + "post_images" => $image_array, |
|
| 957 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 958 | + "post_tags" => array(''),
|
|
| 959 | + "geodir_video" => '', |
|
| 960 | + "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 961 | + "geodir_contact" => '(888) 888-8888', |
|
| 962 | + "geodir_email" => '[email protected]', |
|
| 963 | + "geodir_website" => 'http://www.theinnatpenn.com/', |
|
| 964 | + "geodir_twitter" => 'http://twitter.com/theinnatpenn', |
|
| 965 | + "geodir_facebook" => 'http://facebook.com/theinnatpenn', |
|
| 966 | + "post_dummy" => '1' |
|
| 967 | + ); |
|
| 968 | + |
|
| 969 | + ////post end/// |
|
| 970 | + /// Hotels ////post start 5/// |
|
| 971 | + break; |
|
| 972 | + case 16: |
|
| 973 | + |
|
| 974 | + |
|
| 975 | + $image_array = array(); |
|
| 976 | + $post_meta = array(); |
|
| 977 | + |
|
| 978 | + /// Hotels ////post start 6/// |
|
| 979 | + $image_array[] = "$dummy_image_url/hotels17.jpg"; |
|
| 980 | + $image_array[] = "$dummy_image_url/hotels18.jpg"; |
|
| 981 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 982 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 983 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 984 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 985 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 986 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 987 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 988 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 989 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 990 | + |
|
| 991 | + $post_info[] = array( |
|
| 992 | + "listing_type" => 'gd_place', |
|
| 993 | + "post_title" => 'Courtyard Philadelphia Downtown', |
|
| 994 | + "post_desc" => ' |
|
| 995 | 995 | <h3>Overview </h3> |
| 996 | 996 | |
| 997 | 997 | The Philadelphia Downtown Courtyard opened it´s doors after a grand $75 million restoration, recapturing the grandeur of its 1926 origins while incorporating state of the art systems throughout. |
@@ -1021,45 +1021,45 @@ discard block |
||
| 1021 | 1021 | |
| 1022 | 1022 | Recently featured on WE TV´s “My Fair Wedding”, the Courtyard Marriott Philadelphia is one of the city´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. |
| 1023 | 1023 | ', |
| 1024 | - "post_images" => $image_array, |
|
| 1025 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 1026 | - "post_tags" => array(''),
|
|
| 1027 | - "geodir_video" => '', |
|
| 1028 | - "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 1029 | - "geodir_contact" => '(888) 888-8888', |
|
| 1030 | - "geodir_email" => '[email protected]', |
|
| 1031 | - "geodir_website" => 'http://www.theinnatpenn.com/', |
|
| 1032 | - "geodir_twitter" => 'http://twitter.com/theinnatpenn', |
|
| 1033 | - "geodir_facebook" => 'http://facebook.com/theinnatpenn', |
|
| 1034 | - "post_dummy" => '1' |
|
| 1035 | - ); |
|
| 1036 | - |
|
| 1037 | - ////post end/// |
|
| 1038 | - /// Hotels ////post start 6/// |
|
| 1039 | - |
|
| 1040 | - break; |
|
| 1041 | - case 17: |
|
| 1042 | - |
|
| 1043 | - $image_array = array(); |
|
| 1044 | - $post_meta = array(); |
|
| 1045 | - |
|
| 1046 | - /// Hotels ////post start 7/// |
|
| 1047 | - $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 1048 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1049 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1050 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1051 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1052 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1053 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1054 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1055 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1056 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1057 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1058 | - |
|
| 1059 | - $post_info[] = array( |
|
| 1060 | - "listing_type" => 'gd_place', |
|
| 1061 | - "post_title" => 'Four Seasons Philadelphia', |
|
| 1062 | - "post_desc" => ' |
|
| 1024 | + "post_images" => $image_array, |
|
| 1025 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 1026 | + "post_tags" => array(''),
|
|
| 1027 | + "geodir_video" => '', |
|
| 1028 | + "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 1029 | + "geodir_contact" => '(888) 888-8888', |
|
| 1030 | + "geodir_email" => '[email protected]', |
|
| 1031 | + "geodir_website" => 'http://www.theinnatpenn.com/', |
|
| 1032 | + "geodir_twitter" => 'http://twitter.com/theinnatpenn', |
|
| 1033 | + "geodir_facebook" => 'http://facebook.com/theinnatpenn', |
|
| 1034 | + "post_dummy" => '1' |
|
| 1035 | + ); |
|
| 1036 | + |
|
| 1037 | + ////post end/// |
|
| 1038 | + /// Hotels ////post start 6/// |
|
| 1039 | + |
|
| 1040 | + break; |
|
| 1041 | + case 17: |
|
| 1042 | + |
|
| 1043 | + $image_array = array(); |
|
| 1044 | + $post_meta = array(); |
|
| 1045 | + |
|
| 1046 | + /// Hotels ////post start 7/// |
|
| 1047 | + $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 1048 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1049 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1050 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1051 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1052 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1053 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1054 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1055 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1056 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1057 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1058 | + |
|
| 1059 | + $post_info[] = array( |
|
| 1060 | + "listing_type" => 'gd_place', |
|
| 1061 | + "post_title" => 'Four Seasons Philadelphia', |
|
| 1062 | + "post_desc" => ' |
|
| 1063 | 1063 | <h3>Overview </h3> |
| 1064 | 1064 | |
| 1065 | 1065 | The Philadelphia Downtown Courtyard opened it´s doors after a grand $75 million restoration, recapturing the grandeur of its 1926 origins while incorporating state of the art systems throughout. |
@@ -1089,45 +1089,45 @@ discard block |
||
| 1089 | 1089 | |
| 1090 | 1090 | Recently featured on WE TV´s “My Fair Wedding”, the Courtyard Marriott Philadelphia is one of the city´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. |
| 1091 | 1091 | ', |
| 1092 | - "post_images" => $image_array, |
|
| 1093 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 1094 | - "post_tags" => array(''),
|
|
| 1095 | - "geodir_video" => '', |
|
| 1096 | - "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 1097 | - "geodir_contact" => '(143) 888-8888', |
|
| 1098 | - "geodir_email" => '[email protected]', |
|
| 1099 | - "geodir_website" => 'http://www.fourseasons.com/philadelphia/', |
|
| 1100 | - "geodir_twitter" => 'http://twitter.com/fourseasons', |
|
| 1101 | - "geodir_facebook" => 'http://facebook.com/fourseasons', |
|
| 1102 | - "post_dummy" => '1' |
|
| 1103 | - ); |
|
| 1104 | - |
|
| 1105 | - ////post end/// |
|
| 1106 | - /// Hotels ////post start 7/// |
|
| 1107 | - break; |
|
| 1108 | - case 18: |
|
| 1109 | - |
|
| 1110 | - |
|
| 1111 | - $image_array = array(); |
|
| 1112 | - $post_meta = array(); |
|
| 1113 | - |
|
| 1114 | - /// Hotels ////post start 8/// |
|
| 1115 | - $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 1116 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1117 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1118 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1119 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1120 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1121 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1122 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1123 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1124 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1125 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1126 | - |
|
| 1127 | - $post_info[] = array( |
|
| 1128 | - "listing_type" => 'gd_place', |
|
| 1129 | - "post_title" => 'Alexander Inn', |
|
| 1130 | - "post_desc" => ' |
|
| 1092 | + "post_images" => $image_array, |
|
| 1093 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 1094 | + "post_tags" => array(''),
|
|
| 1095 | + "geodir_video" => '', |
|
| 1096 | + "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 1097 | + "geodir_contact" => '(143) 888-8888', |
|
| 1098 | + "geodir_email" => '[email protected]', |
|
| 1099 | + "geodir_website" => 'http://www.fourseasons.com/philadelphia/', |
|
| 1100 | + "geodir_twitter" => 'http://twitter.com/fourseasons', |
|
| 1101 | + "geodir_facebook" => 'http://facebook.com/fourseasons', |
|
| 1102 | + "post_dummy" => '1' |
|
| 1103 | + ); |
|
| 1104 | + |
|
| 1105 | + ////post end/// |
|
| 1106 | + /// Hotels ////post start 7/// |
|
| 1107 | + break; |
|
| 1108 | + case 18: |
|
| 1109 | + |
|
| 1110 | + |
|
| 1111 | + $image_array = array(); |
|
| 1112 | + $post_meta = array(); |
|
| 1113 | + |
|
| 1114 | + /// Hotels ////post start 8/// |
|
| 1115 | + $image_array[] = "$dummy_image_url/hotels11.jpg"; |
|
| 1116 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1117 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1118 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1119 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1120 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1121 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1122 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1123 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1124 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1125 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1126 | + |
|
| 1127 | + $post_info[] = array( |
|
| 1128 | + "listing_type" => 'gd_place', |
|
| 1129 | + "post_title" => 'Alexander Inn', |
|
| 1130 | + "post_desc" => ' |
|
| 1131 | 1131 | The Alexander Inn is one of Philadelphia´s most popular and reasonably priced small hotels. |
| 1132 | 1132 | |
| 1133 | 1133 | 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. |
@@ -1136,45 +1136,45 @@ discard block |
||
| 1136 | 1136 | |
| 1137 | 1137 | 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´s free 24-hour fitness and e-mail centers. |
| 1138 | 1138 | ', |
| 1139 | - "post_images" => $image_array, |
|
| 1140 | - "post_category" => array('gd_placecategory' => array('Hotels')),
|
|
| 1141 | - "post_tags" => array(''),
|
|
| 1142 | - "geodir_video" => '', |
|
| 1143 | - "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 1144 | - "geodir_contact" => '(143) 888-8888', |
|
| 1145 | - "geodir_email" => '[email protected]', |
|
| 1146 | - "geodir_website" => 'http://www.alexanderinn.com/', |
|
| 1147 | - "geodir_twitter" => 'http://twitter.com/alexanderinn', |
|
| 1148 | - "geodir_facebook" => 'http://facebook.com/alexanderinn', |
|
| 1149 | - "post_dummy" => '1' |
|
| 1150 | - ); |
|
| 1151 | - |
|
| 1152 | - ////post end/// |
|
| 1153 | - /// Hotels ////post start 8/// |
|
| 1154 | - break; |
|
| 1155 | - case 19: |
|
| 1156 | - |
|
| 1157 | - |
|
| 1158 | - $image_array = array(); |
|
| 1159 | - $post_meta = array(); |
|
| 1160 | - |
|
| 1161 | - /// Hotels ////post start 9/// |
|
| 1162 | - $image_array[] = "$dummy_image_url/hotels5.jpg"; |
|
| 1163 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1164 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1165 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1166 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1167 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1168 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1169 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1170 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1171 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1172 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1173 | - |
|
| 1174 | - $post_info[] = array( |
|
| 1175 | - "listing_type" => 'gd_place', |
|
| 1176 | - "post_title" => 'Best Western Center City Hotel', |
|
| 1177 | - "post_desc" => ' |
|
| 1139 | + "post_images" => $image_array, |
|
| 1140 | + "post_category" => array('gd_placecategory' => array('Hotels')),
|
|
| 1141 | + "post_tags" => array(''),
|
|
| 1142 | + "geodir_video" => '', |
|
| 1143 | + "geodir_timing" => 'Daily : 11 am to 11 pm', |
|
| 1144 | + "geodir_contact" => '(143) 888-8888', |
|
| 1145 | + "geodir_email" => '[email protected]', |
|
| 1146 | + "geodir_website" => 'http://www.alexanderinn.com/', |
|
| 1147 | + "geodir_twitter" => 'http://twitter.com/alexanderinn', |
|
| 1148 | + "geodir_facebook" => 'http://facebook.com/alexanderinn', |
|
| 1149 | + "post_dummy" => '1' |
|
| 1150 | + ); |
|
| 1151 | + |
|
| 1152 | + ////post end/// |
|
| 1153 | + /// Hotels ////post start 8/// |
|
| 1154 | + break; |
|
| 1155 | + case 19: |
|
| 1156 | + |
|
| 1157 | + |
|
| 1158 | + $image_array = array(); |
|
| 1159 | + $post_meta = array(); |
|
| 1160 | + |
|
| 1161 | + /// Hotels ////post start 9/// |
|
| 1162 | + $image_array[] = "$dummy_image_url/hotels5.jpg"; |
|
| 1163 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1164 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1165 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1166 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1167 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1168 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1169 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1170 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1171 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1172 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1173 | + |
|
| 1174 | + $post_info[] = array( |
|
| 1175 | + "listing_type" => 'gd_place', |
|
| 1176 | + "post_title" => 'Best Western Center City Hotel', |
|
| 1177 | + "post_desc" => ' |
|
| 1178 | 1178 | The Alexander Inn is one of Philadelphia´s most popular and reasonably priced small hotels. |
| 1179 | 1179 | |
| 1180 | 1180 | 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. |
@@ -1183,91 +1183,91 @@ discard block |
||
| 1183 | 1183 | |
| 1184 | 1184 | 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´s free 24-hour fitness and e-mail centers. |
| 1185 | 1185 | ', |
| 1186 | - "post_images" => $image_array, |
|
| 1187 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 1188 | - "post_tags" => array(''),
|
|
| 1189 | - "geodir_video" => '', |
|
| 1190 | - "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1191 | - "geodir_contact" => '(243) 222-12344', |
|
| 1192 | - "geodir_email" => '[email protected]', |
|
| 1193 | - "geodir_website" => 'http://book.bestwestern.com/bestwestern/productInfo.do?propertyCode=39087', |
|
| 1194 | - "geodir_twitter" => 'http://twitter.com/bestwestern', |
|
| 1195 | - "geodir_facebook" => 'http://facebook.com/bestwestern', |
|
| 1196 | - "post_dummy" => '1' |
|
| 1197 | - ); |
|
| 1198 | - |
|
| 1199 | - ////post end/// |
|
| 1200 | - /// Hotels ////post start 9/// |
|
| 1201 | - break; |
|
| 1202 | - case 20: |
|
| 1203 | - |
|
| 1204 | - |
|
| 1205 | - $image_array = array(); |
|
| 1206 | - $post_meta = array(); |
|
| 1207 | - |
|
| 1208 | - /// Hotels ////post start 10/// |
|
| 1209 | - $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1210 | - $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1211 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1212 | - $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1213 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1214 | - $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1215 | - $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1216 | - $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1217 | - $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1218 | - $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1219 | - $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1220 | - |
|
| 1221 | - $post_info[] = array( |
|
| 1222 | - "listing_type" => 'gd_place', |
|
| 1223 | - "post_title" => 'Chestnut Hill Hotel', |
|
| 1224 | - "post_desc" => ' |
|
| 1186 | + "post_images" => $image_array, |
|
| 1187 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Food Nightlife')),
|
|
| 1188 | + "post_tags" => array(''),
|
|
| 1189 | + "geodir_video" => '', |
|
| 1190 | + "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1191 | + "geodir_contact" => '(243) 222-12344', |
|
| 1192 | + "geodir_email" => '[email protected]', |
|
| 1193 | + "geodir_website" => 'http://book.bestwestern.com/bestwestern/productInfo.do?propertyCode=39087', |
|
| 1194 | + "geodir_twitter" => 'http://twitter.com/bestwestern', |
|
| 1195 | + "geodir_facebook" => 'http://facebook.com/bestwestern', |
|
| 1196 | + "post_dummy" => '1' |
|
| 1197 | + ); |
|
| 1198 | + |
|
| 1199 | + ////post end/// |
|
| 1200 | + /// Hotels ////post start 9/// |
|
| 1201 | + break; |
|
| 1202 | + case 20: |
|
| 1203 | + |
|
| 1204 | + |
|
| 1205 | + $image_array = array(); |
|
| 1206 | + $post_meta = array(); |
|
| 1207 | + |
|
| 1208 | + /// Hotels ////post start 10/// |
|
| 1209 | + $image_array[] = "$dummy_image_url/hotels7.jpg"; |
|
| 1210 | + $image_array[] = "$dummy_image_url/hotels10.jpg"; |
|
| 1211 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1212 | + $image_array[] = "$dummy_image_url/hotels4.jpg"; |
|
| 1213 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1214 | + $image_array[] = "$dummy_image_url/hotels6.jpg"; |
|
| 1215 | + $image_array[] = "$dummy_image_url/hotels12.jpg"; |
|
| 1216 | + $image_array[] = "$dummy_image_url/hotels8.jpg"; |
|
| 1217 | + $image_array[] = "$dummy_image_url/hotels9.jpg"; |
|
| 1218 | + $image_array[] = "$dummy_image_url/hotels1.jpg"; |
|
| 1219 | + $image_array[] = "$dummy_image_url/hotels2.jpg"; |
|
| 1220 | + |
|
| 1221 | + $post_info[] = array( |
|
| 1222 | + "listing_type" => 'gd_place', |
|
| 1223 | + "post_title" => 'Chestnut Hill Hotel', |
|
| 1224 | + "post_desc" => ' |
|
| 1225 | 1225 | 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´s standards, it was originally a distant “suburb” on the outskirts of the Philadelphia countryside. |
| 1226 | 1226 | |
| 1227 | 1227 | Today, it is one of the region´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. |
| 1228 | 1228 | |
| 1229 | 1229 | The Chestnut Hill Hotel fits perfectly in this setting - the hotel´s 36 rooms and suites, decorated in an 18th-century style, hold the hotel to its boutique roots. It´s a perfect place at which to enjoy a romantic getaway in Philadelphia. |
| 1230 | 1230 | ', |
| 1231 | - "post_images" => $image_array, |
|
| 1232 | - "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
|
|
| 1233 | - "post_tags" => array(''),
|
|
| 1234 | - "geodir_video" => '', |
|
| 1235 | - "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1236 | - "geodir_contact" => '(243) 222-12344', |
|
| 1237 | - "geodir_email" => '[email protected]', |
|
| 1238 | - "geodir_website" => 'http://www.chestnuthillhotel.com/', |
|
| 1239 | - "geodir_twitter" => 'http://twitter.com/chestnuthillhotel', |
|
| 1240 | - "geodir_facebook" => 'http://facebook.com/chestnuthillhotel', |
|
| 1241 | - "post_dummy" => '1' |
|
| 1242 | - ); |
|
| 1243 | - |
|
| 1244 | - ////post end/// |
|
| 1245 | - /// Hotels ////post start 10/// |
|
| 1246 | - |
|
| 1247 | - break; |
|
| 1248 | - case 21: |
|
| 1249 | - |
|
| 1250 | - |
|
| 1251 | - $image_array = array(); |
|
| 1252 | - $post_meta = array(); |
|
| 1253 | - |
|
| 1254 | - /// Restaurants ////post start 1// |
|
| 1255 | - $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1256 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1257 | - $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1258 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1259 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1260 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1261 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1262 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1263 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1264 | - $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1265 | - $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1266 | - |
|
| 1267 | - $post_info[] = array( |
|
| 1268 | - "listing_type" => 'gd_place', |
|
| 1269 | - "post_title" => 'Village Whiskey', |
|
| 1270 | - "post_desc" => ' |
|
| 1231 | + "post_images" => $image_array, |
|
| 1232 | + "post_category" => array('gd_placecategory' => array('Hotels', 'Feature')),
|
|
| 1233 | + "post_tags" => array(''),
|
|
| 1234 | + "geodir_video" => '', |
|
| 1235 | + "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1236 | + "geodir_contact" => '(243) 222-12344', |
|
| 1237 | + "geodir_email" => '[email protected]', |
|
| 1238 | + "geodir_website" => 'http://www.chestnuthillhotel.com/', |
|
| 1239 | + "geodir_twitter" => 'http://twitter.com/chestnuthillhotel', |
|
| 1240 | + "geodir_facebook" => 'http://facebook.com/chestnuthillhotel', |
|
| 1241 | + "post_dummy" => '1' |
|
| 1242 | + ); |
|
| 1243 | + |
|
| 1244 | + ////post end/// |
|
| 1245 | + /// Hotels ////post start 10/// |
|
| 1246 | + |
|
| 1247 | + break; |
|
| 1248 | + case 21: |
|
| 1249 | + |
|
| 1250 | + |
|
| 1251 | + $image_array = array(); |
|
| 1252 | + $post_meta = array(); |
|
| 1253 | + |
|
| 1254 | + /// Restaurants ////post start 1// |
|
| 1255 | + $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1256 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1257 | + $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1258 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1259 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1260 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1261 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1262 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1263 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1264 | + $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1265 | + $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1266 | + |
|
| 1267 | + $post_info[] = array( |
|
| 1268 | + "listing_type" => 'gd_place', |
|
| 1269 | + "post_title" => 'Village Whiskey', |
|
| 1270 | + "post_desc" => ' |
|
| 1271 | 1271 | |
| 1272 | 1272 | |
| 1273 | 1273 | 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. |
@@ -1293,45 +1293,45 @@ discard block |
||
| 1293 | 1293 | |
| 1294 | 1294 | During the warmer months, diners can sit at large, wooden tables placed along Sansom Street for whiskey alfresco. |
| 1295 | 1295 | ', |
| 1296 | - "post_images" => $image_array, |
|
| 1297 | - "post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
|
|
| 1298 | - "post_tags" => array('Sample Tag1'),
|
|
| 1299 | - "geodir_video" => '', |
|
| 1300 | - "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1301 | - "geodir_contact" => '(243) 222-12344', |
|
| 1302 | - "geodir_email" => '[email protected]', |
|
| 1303 | - "geodir_website" => 'http://www.villagewhiskey.com/', |
|
| 1304 | - "geodir_twitter" => 'http://twitter.com/villagewhiskey', |
|
| 1305 | - "geodir_facebook" => 'http://facebook.com/villagewhiskey', |
|
| 1306 | - "post_dummy" => '1' |
|
| 1307 | - ); |
|
| 1308 | - |
|
| 1309 | - ////post end/// |
|
| 1310 | - /// Restaurants ////post start 1/// |
|
| 1311 | - break; |
|
| 1312 | - case 22: |
|
| 1313 | - |
|
| 1314 | - |
|
| 1315 | - $image_array = array(); |
|
| 1316 | - $post_meta = array(); |
|
| 1317 | - |
|
| 1318 | - /// Restaurants ////post start 2// |
|
| 1319 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1320 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1321 | - $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1322 | - $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1323 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1324 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1325 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1326 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1327 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1328 | - $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1329 | - $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1330 | - |
|
| 1331 | - $post_info[] = array( |
|
| 1332 | - "listing_type" => 'gd_place', |
|
| 1333 | - "post_title" => 'Zavino Pizzeria and Wine Bar', |
|
| 1334 | - "post_desc" => ' |
|
| 1296 | + "post_images" => $image_array, |
|
| 1297 | + "post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
|
|
| 1298 | + "post_tags" => array('Sample Tag1'),
|
|
| 1299 | + "geodir_video" => '', |
|
| 1300 | + "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1301 | + "geodir_contact" => '(243) 222-12344', |
|
| 1302 | + "geodir_email" => '[email protected]', |
|
| 1303 | + "geodir_website" => 'http://www.villagewhiskey.com/', |
|
| 1304 | + "geodir_twitter" => 'http://twitter.com/villagewhiskey', |
|
| 1305 | + "geodir_facebook" => 'http://facebook.com/villagewhiskey', |
|
| 1306 | + "post_dummy" => '1' |
|
| 1307 | + ); |
|
| 1308 | + |
|
| 1309 | + ////post end/// |
|
| 1310 | + /// Restaurants ////post start 1/// |
|
| 1311 | + break; |
|
| 1312 | + case 22: |
|
| 1313 | + |
|
| 1314 | + |
|
| 1315 | + $image_array = array(); |
|
| 1316 | + $post_meta = array(); |
|
| 1317 | + |
|
| 1318 | + /// Restaurants ////post start 2// |
|
| 1319 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1320 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1321 | + $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1322 | + $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1323 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1324 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1325 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1326 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1327 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1328 | + $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1329 | + $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1330 | + |
|
| 1331 | + $post_info[] = array( |
|
| 1332 | + "listing_type" => 'gd_place', |
|
| 1333 | + "post_title" => 'Zavino Pizzeria and Wine Bar', |
|
| 1334 | + "post_desc" => ' |
|
| 1335 | 1335 | Zavino is a new pizzeria and wine bar located at the epicenter of the city´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. |
| 1336 | 1336 | |
| 1337 | 1337 | The restaurant´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. |
@@ -1350,46 +1350,46 @@ discard block |
||
| 1350 | 1350 | |
| 1351 | 1351 | Pizzas vary in price from $8 to $12. |
| 1352 | 1352 | ', |
| 1353 | - "post_images" => $image_array, |
|
| 1354 | - "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1355 | - "post_tags" => array('Sample Tag1'),
|
|
| 1356 | - "geodir_video" => '', |
|
| 1357 | - "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1358 | - "geodir_contact" => '(243) 222-12344', |
|
| 1359 | - "geodir_email" => '[email protected]', |
|
| 1360 | - "geodir_website" => 'http://www.villagewhiskey.com/', |
|
| 1361 | - "geodir_twitter" => 'http://twitter.com/villagewhiskey', |
|
| 1362 | - "geodir_facebook" => 'http://facebook.com/villagewhiskey', |
|
| 1363 | - "post_dummy" => '1' |
|
| 1364 | - ); |
|
| 1365 | - |
|
| 1366 | - ////post end/// |
|
| 1367 | - /// Restaurants ////post start 2/// |
|
| 1368 | - |
|
| 1369 | - break; |
|
| 1370 | - case 23: |
|
| 1371 | - |
|
| 1372 | - |
|
| 1373 | - $image_array = array(); |
|
| 1374 | - $post_meta = array(); |
|
| 1375 | - |
|
| 1376 | - /// Restaurants ////post start 3// |
|
| 1377 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1378 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1379 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1380 | - $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1381 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1382 | - $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1383 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1384 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1385 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1386 | - $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1387 | - $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1388 | - |
|
| 1389 | - $post_info[] = array( |
|
| 1390 | - "listing_type" => 'gd_place', |
|
| 1391 | - "post_title" => 'Parc', |
|
| 1392 | - "post_desc" => ' |
|
| 1353 | + "post_images" => $image_array, |
|
| 1354 | + "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1355 | + "post_tags" => array('Sample Tag1'),
|
|
| 1356 | + "geodir_video" => '', |
|
| 1357 | + "geodir_timing" => 'Daily : 10 am to 11 pm', |
|
| 1358 | + "geodir_contact" => '(243) 222-12344', |
|
| 1359 | + "geodir_email" => '[email protected]', |
|
| 1360 | + "geodir_website" => 'http://www.villagewhiskey.com/', |
|
| 1361 | + "geodir_twitter" => 'http://twitter.com/villagewhiskey', |
|
| 1362 | + "geodir_facebook" => 'http://facebook.com/villagewhiskey', |
|
| 1363 | + "post_dummy" => '1' |
|
| 1364 | + ); |
|
| 1365 | + |
|
| 1366 | + ////post end/// |
|
| 1367 | + /// Restaurants ////post start 2/// |
|
| 1368 | + |
|
| 1369 | + break; |
|
| 1370 | + case 23: |
|
| 1371 | + |
|
| 1372 | + |
|
| 1373 | + $image_array = array(); |
|
| 1374 | + $post_meta = array(); |
|
| 1375 | + |
|
| 1376 | + /// Restaurants ////post start 3// |
|
| 1377 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1378 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1379 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1380 | + $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1381 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1382 | + $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1383 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1384 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1385 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1386 | + $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1387 | + $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1388 | + |
|
| 1389 | + $post_info[] = array( |
|
| 1390 | + "listing_type" => 'gd_place', |
|
| 1391 | + "post_title" => 'Parc', |
|
| 1392 | + "post_desc" => ' |
|
| 1393 | 1393 | If you love Paris in the springtime, Parc is a veritable grand cru. |
| 1394 | 1394 | |
| 1395 | 1395 | 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. |
@@ -1417,45 +1417,45 @@ discard block |
||
| 1417 | 1417 | |
| 1418 | 1418 | To put it simply, Parc is nothing short of an authentic Parisian dining experience - right here in the heart of Rittenhouse Square. |
| 1419 | 1419 | ', |
| 1420 | - "post_images" => $image_array, |
|
| 1421 | - "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1422 | - "post_tags" => array('Sample Tag1'),
|
|
| 1423 | - "geodir_video" => '', |
|
| 1424 | - "geodir_timing" => 'Daily : 10 am to 12 pm', |
|
| 1425 | - "geodir_contact" => '(143) 222-12344', |
|
| 1426 | - "geodir_email" => '[email protected]', |
|
| 1427 | - "geodir_website" => 'http://www.parc-restaurant.com/', |
|
| 1428 | - "geodir_twitter" => 'http://twitter.com/parc-restaurant', |
|
| 1429 | - "geodir_facebook" => 'http://facebook.com/parc-restaurant', |
|
| 1430 | - "post_dummy" => '1' |
|
| 1431 | - ); |
|
| 1432 | - |
|
| 1433 | - ////post end/// |
|
| 1434 | - /// Restaurants ////post start 3/// |
|
| 1435 | - break; |
|
| 1436 | - case 24: |
|
| 1437 | - |
|
| 1438 | - |
|
| 1439 | - $image_array = array(); |
|
| 1440 | - $post_meta = array(); |
|
| 1441 | - |
|
| 1442 | - /// Restaurants ////post start 4// |
|
| 1443 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1444 | - $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1445 | - $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1446 | - $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1447 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1448 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1449 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1450 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1451 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1452 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1453 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1454 | - |
|
| 1455 | - $post_info[] = array( |
|
| 1456 | - "listing_type" => 'gd_place', |
|
| 1457 | - "post_title" => 'Percy Street Barbecue', |
|
| 1458 | - "post_desc" => ' |
|
| 1420 | + "post_images" => $image_array, |
|
| 1421 | + "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1422 | + "post_tags" => array('Sample Tag1'),
|
|
| 1423 | + "geodir_video" => '', |
|
| 1424 | + "geodir_timing" => 'Daily : 10 am to 12 pm', |
|
| 1425 | + "geodir_contact" => '(143) 222-12344', |
|
| 1426 | + "geodir_email" => '[email protected]', |
|
| 1427 | + "geodir_website" => 'http://www.parc-restaurant.com/', |
|
| 1428 | + "geodir_twitter" => 'http://twitter.com/parc-restaurant', |
|
| 1429 | + "geodir_facebook" => 'http://facebook.com/parc-restaurant', |
|
| 1430 | + "post_dummy" => '1' |
|
| 1431 | + ); |
|
| 1432 | + |
|
| 1433 | + ////post end/// |
|
| 1434 | + /// Restaurants ////post start 3/// |
|
| 1435 | + break; |
|
| 1436 | + case 24: |
|
| 1437 | + |
|
| 1438 | + |
|
| 1439 | + $image_array = array(); |
|
| 1440 | + $post_meta = array(); |
|
| 1441 | + |
|
| 1442 | + /// Restaurants ////post start 4// |
|
| 1443 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1444 | + $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1445 | + $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1446 | + $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1447 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1448 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1449 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1450 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1451 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1452 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1453 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1454 | + |
|
| 1455 | + $post_info[] = array( |
|
| 1456 | + "listing_type" => 'gd_place', |
|
| 1457 | + "post_title" => 'Percy Street Barbecue', |
|
| 1458 | + "post_desc" => ' |
|
| 1459 | 1459 | Percy Street Barbecue sees the South Street debut of restaurateurs Steven Cook and Michael Solomonov (Zahav, Xochitl). |
| 1460 | 1460 | |
| 1461 | 1461 | 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. |
@@ -1481,46 +1481,46 @@ discard block |
||
| 1481 | 1481 | |
| 1482 | 1482 | Seating in the form of repurposed church pews, and bare light bulbs overhead in the dining room lend to the restaurant Texas-esque aesthetic. |
| 1483 | 1483 | ', |
| 1484 | - "post_images" => $image_array, |
|
| 1485 | - "post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
|
|
| 1486 | - "post_tags" => array('Sample Tag1'),
|
|
| 1487 | - "geodir_video" => '', |
|
| 1488 | - "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.', |
|
| 1489 | - "geodir_contact" => '(143) 222-12344', |
|
| 1490 | - "geodir_email" => '[email protected]', |
|
| 1491 | - "geodir_website" => 'http://www.percystreet.com/', |
|
| 1492 | - "geodir_twitter" => 'http://twitter.com/percystreet', |
|
| 1493 | - "geodir_facebook" => 'http://facebook.com/percystreet', |
|
| 1494 | - "post_dummy" => '1' |
|
| 1495 | - ); |
|
| 1496 | - |
|
| 1497 | - ////post end/// |
|
| 1498 | - /// Restaurants ////post start 4/// |
|
| 1499 | - |
|
| 1500 | - break; |
|
| 1501 | - case 25: |
|
| 1502 | - |
|
| 1503 | - |
|
| 1504 | - $image_array = array(); |
|
| 1505 | - $post_meta = array(); |
|
| 1506 | - |
|
| 1507 | - /// Restaurants ////post start 5// |
|
| 1508 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1509 | - $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1510 | - $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1511 | - $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1512 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1513 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1514 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1515 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1516 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1517 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1518 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1519 | - |
|
| 1520 | - $post_info[] = array( |
|
| 1521 | - "listing_type" => 'gd_place', |
|
| 1522 | - "post_title" => 'The Fountain Restaurant', |
|
| 1523 | - "post_desc" => ' |
|
| 1484 | + "post_images" => $image_array, |
|
| 1485 | + "post_category" => array('gd_placecategory' => array('Restaurants', 'Feature')),
|
|
| 1486 | + "post_tags" => array('Sample Tag1'),
|
|
| 1487 | + "geodir_video" => '', |
|
| 1488 | + "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.', |
|
| 1489 | + "geodir_contact" => '(143) 222-12344', |
|
| 1490 | + "geodir_email" => '[email protected]', |
|
| 1491 | + "geodir_website" => 'http://www.percystreet.com/', |
|
| 1492 | + "geodir_twitter" => 'http://twitter.com/percystreet', |
|
| 1493 | + "geodir_facebook" => 'http://facebook.com/percystreet', |
|
| 1494 | + "post_dummy" => '1' |
|
| 1495 | + ); |
|
| 1496 | + |
|
| 1497 | + ////post end/// |
|
| 1498 | + /// Restaurants ////post start 4/// |
|
| 1499 | + |
|
| 1500 | + break; |
|
| 1501 | + case 25: |
|
| 1502 | + |
|
| 1503 | + |
|
| 1504 | + $image_array = array(); |
|
| 1505 | + $post_meta = array(); |
|
| 1506 | + |
|
| 1507 | + /// Restaurants ////post start 5// |
|
| 1508 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1509 | + $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1510 | + $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1511 | + $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1512 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1513 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1514 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1515 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1516 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1517 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1518 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1519 | + |
|
| 1520 | + $post_info[] = array( |
|
| 1521 | + "listing_type" => 'gd_place', |
|
| 1522 | + "post_title" => 'The Fountain Restaurant', |
|
| 1523 | + "post_desc" => ' |
|
| 1524 | 1524 | 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´s 2010 Five Star award to a perfect Five Diamond rating from AAA. It´s been a Philadelphia favorite for special occasion meals for decades. |
| 1525 | 1525 | |
| 1526 | 1526 | Additionally rated as the best restaurant in Philadelphia by Zagat´s, the Fountain Restaurant overlooks the majestic Swann Memorial Fountain sculpture by Alexander Stirling Calder in the center of Logan Square. You´ll also enjoy sweeping views of the grand Benjamin Franklin Parkway and its gorgeous Beaux Arts architecture. |
@@ -1530,45 +1530,45 @@ discard block |
||
| 1530 | 1530 | 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. |
| 1531 | 1531 | |
| 1532 | 1532 | ', |
| 1533 | - "post_images" => $image_array, |
|
| 1534 | - "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1535 | - "post_tags" => array('food'),
|
|
| 1536 | - "geodir_video" => '', |
|
| 1537 | - "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 11:30 a.m. to 2:30 p.m.', |
|
| 1538 | - "geodir_contact" => '(103) 100-12344', |
|
| 1539 | - "geodir_email" => '[email protected]', |
|
| 1540 | - "geodir_website" => 'http://www.fourseasons.com/philadelphia/dining', |
|
| 1541 | - "geodir_twitter" => 'http://twitter.com/fourseasons', |
|
| 1542 | - "geodir_facebook" => 'http://facebook.com/fourseasons', |
|
| 1543 | - "post_dummy" => '1' |
|
| 1544 | - ); |
|
| 1545 | - |
|
| 1546 | - ////post end/// |
|
| 1547 | - /// Restaurants ////post start 5/// |
|
| 1548 | - break; |
|
| 1549 | - case 26: |
|
| 1550 | - |
|
| 1551 | - |
|
| 1552 | - $image_array = array(); |
|
| 1553 | - $post_meta = array(); |
|
| 1554 | - |
|
| 1555 | - /// Restaurants ////post start 6// |
|
| 1556 | - $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1557 | - $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1558 | - $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1559 | - $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1560 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1561 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1562 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1563 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1564 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1565 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1566 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1567 | - |
|
| 1568 | - $post_info[] = array( |
|
| 1569 | - "listing_type" => 'gd_place', |
|
| 1570 | - "post_title" => 'Lacroix at The Rittenhouse', |
|
| 1571 | - "post_desc" => ' |
|
| 1533 | + "post_images" => $image_array, |
|
| 1534 | + "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1535 | + "post_tags" => array('food'),
|
|
| 1536 | + "geodir_video" => '', |
|
| 1537 | + "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 11:30 a.m. to 2:30 p.m.', |
|
| 1538 | + "geodir_contact" => '(103) 100-12344', |
|
| 1539 | + "geodir_email" => '[email protected]', |
|
| 1540 | + "geodir_website" => 'http://www.fourseasons.com/philadelphia/dining', |
|
| 1541 | + "geodir_twitter" => 'http://twitter.com/fourseasons', |
|
| 1542 | + "geodir_facebook" => 'http://facebook.com/fourseasons', |
|
| 1543 | + "post_dummy" => '1' |
|
| 1544 | + ); |
|
| 1545 | + |
|
| 1546 | + ////post end/// |
|
| 1547 | + /// Restaurants ////post start 5/// |
|
| 1548 | + break; |
|
| 1549 | + case 26: |
|
| 1550 | + |
|
| 1551 | + |
|
| 1552 | + $image_array = array(); |
|
| 1553 | + $post_meta = array(); |
|
| 1554 | + |
|
| 1555 | + /// Restaurants ////post start 6// |
|
| 1556 | + $image_array[] = "$dummy_image_url/restaurants11.jpg"; |
|
| 1557 | + $image_array[] = "$dummy_image_url/restaurants10.jpg"; |
|
| 1558 | + $image_array[] = "$dummy_image_url/restaurants3.jpg"; |
|
| 1559 | + $image_array[] = "$dummy_image_url/restaurants1.jpg"; |
|
| 1560 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1561 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1562 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1563 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1564 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1565 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1566 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1567 | + |
|
| 1568 | + $post_info[] = array( |
|
| 1569 | + "listing_type" => 'gd_place', |
|
| 1570 | + "post_title" => 'Lacroix at The Rittenhouse', |
|
| 1571 | + "post_desc" => ' |
|
| 1572 | 1572 | 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. |
| 1573 | 1573 | |
| 1574 | 1574 | 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. |
@@ -1579,46 +1579,46 @@ discard block |
||
| 1579 | 1579 | |
| 1580 | 1580 | 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. |
| 1581 | 1581 | ', |
| 1582 | - "post_images" => $image_array, |
|
| 1583 | - "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1584 | - "post_tags" => array('food'),
|
|
| 1585 | - "geodir_video" => '', |
|
| 1586 | - "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1587 | - "geodir_contact" => '(113) 121-12344', |
|
| 1588 | - "geodir_email" => '[email protected]', |
|
| 1589 | - "geodir_website" => 'http://www.rittenhousehotel.com/lacroix.cfm', |
|
| 1590 | - "geodir_twitter" => 'http://twitter.com/rittenhousehotel', |
|
| 1591 | - "geodir_facebook" => 'http://facebook.com/rittenhousehotel', |
|
| 1592 | - "post_dummy" => '1' |
|
| 1593 | - ); |
|
| 1594 | - |
|
| 1595 | - ////post end/// |
|
| 1596 | - /// Restaurants ////post start 6/// |
|
| 1597 | - |
|
| 1598 | - break; |
|
| 1599 | - case 27: |
|
| 1600 | - |
|
| 1601 | - |
|
| 1602 | - $image_array = array(); |
|
| 1603 | - $post_meta = array(); |
|
| 1604 | - |
|
| 1605 | - /// Restaurants ////post start 7// |
|
| 1606 | - $image_array[] = "$dummy_image_url/restaurants12.jpg"; |
|
| 1607 | - $image_array[] = "$dummy_image_url/restaurants13.jpg"; |
|
| 1608 | - $image_array[] = "$dummy_image_url/restaurants14.jpg"; |
|
| 1609 | - $image_array[] = "$dummy_image_url/restaurants15.jpg"; |
|
| 1610 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1611 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1612 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1613 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1614 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1615 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1616 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1617 | - |
|
| 1618 | - $post_info[] = array( |
|
| 1619 | - "listing_type" => 'gd_place', |
|
| 1620 | - "post_title" => 'Lacroix at The Rittenhouse', |
|
| 1621 | - "post_desc" => ' |
|
| 1582 | + "post_images" => $image_array, |
|
| 1583 | + "post_category" => array('gd_placecategory' => array('Restaurants')),
|
|
| 1584 | + "post_tags" => array('food'),
|
|
| 1585 | + "geodir_video" => '', |
|
| 1586 | + "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1587 | + "geodir_contact" => '(113) 121-12344', |
|
| 1588 | + "geodir_email" => '[email protected]', |
|
| 1589 | + "geodir_website" => 'http://www.rittenhousehotel.com/lacroix.cfm', |
|
| 1590 | + "geodir_twitter" => 'http://twitter.com/rittenhousehotel', |
|
| 1591 | + "geodir_facebook" => 'http://facebook.com/rittenhousehotel', |
|
| 1592 | + "post_dummy" => '1' |
|
| 1593 | + ); |
|
| 1594 | + |
|
| 1595 | + ////post end/// |
|
| 1596 | + /// Restaurants ////post start 6/// |
|
| 1597 | + |
|
| 1598 | + break; |
|
| 1599 | + case 27: |
|
| 1600 | + |
|
| 1601 | + |
|
| 1602 | + $image_array = array(); |
|
| 1603 | + $post_meta = array(); |
|
| 1604 | + |
|
| 1605 | + /// Restaurants ////post start 7// |
|
| 1606 | + $image_array[] = "$dummy_image_url/restaurants12.jpg"; |
|
| 1607 | + $image_array[] = "$dummy_image_url/restaurants13.jpg"; |
|
| 1608 | + $image_array[] = "$dummy_image_url/restaurants14.jpg"; |
|
| 1609 | + $image_array[] = "$dummy_image_url/restaurants15.jpg"; |
|
| 1610 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1611 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1612 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1613 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1614 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1615 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1616 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1617 | + |
|
| 1618 | + $post_info[] = array( |
|
| 1619 | + "listing_type" => 'gd_place', |
|
| 1620 | + "post_title" => 'Lacroix at The Rittenhouse', |
|
| 1621 | + "post_desc" => ' |
|
| 1622 | 1622 | 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. |
| 1623 | 1623 | |
| 1624 | 1624 | 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. |
@@ -1629,45 +1629,45 @@ discard block |
||
| 1629 | 1629 | |
| 1630 | 1630 | 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. |
| 1631 | 1631 | ', |
| 1632 | - "post_images" => $image_array, |
|
| 1633 | - "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
|
|
| 1634 | - "post_tags" => array('food'),
|
|
| 1635 | - "geodir_video" => '', |
|
| 1636 | - "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1637 | - "geodir_contact" => '(113) 121-12344', |
|
| 1638 | - "geodir_email" => '[email protected]', |
|
| 1639 | - "geodir_website" => 'http://www.zamarestaurant.com/', |
|
| 1640 | - "geodir_twitter" => 'http://twitter.com/zamarestaurant', |
|
| 1641 | - "geodir_facebook" => 'http://facebook.com/zamarestaurant', |
|
| 1642 | - "post_dummy" => '1' |
|
| 1643 | - ); |
|
| 1644 | - |
|
| 1645 | - ////post end/// |
|
| 1646 | - /// Restaurants ////post start 7/// |
|
| 1647 | - |
|
| 1648 | - break; |
|
| 1649 | - case 28: |
|
| 1650 | - |
|
| 1651 | - $image_array = array(); |
|
| 1652 | - $post_meta = array(); |
|
| 1653 | - |
|
| 1654 | - /// Restaurants ////post start 8// |
|
| 1655 | - $image_array[] = "$dummy_image_url/restaurants16.jpg"; |
|
| 1656 | - $image_array[] = "$dummy_image_url/restaurants17.jpg"; |
|
| 1657 | - $image_array[] = "$dummy_image_url/restaurants18.jpg"; |
|
| 1658 | - $image_array[] = "$dummy_image_url/restaurants19.jpg"; |
|
| 1659 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1660 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1661 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1662 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1663 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1664 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1665 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1666 | - |
|
| 1667 | - $post_info[] = array( |
|
| 1668 | - "listing_type" => 'gd_place', |
|
| 1669 | - "post_title" => 'Sampan', |
|
| 1670 | - "post_desc" => ' |
|
| 1632 | + "post_images" => $image_array, |
|
| 1633 | + "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
|
|
| 1634 | + "post_tags" => array('food'),
|
|
| 1635 | + "geodir_video" => '', |
|
| 1636 | + "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1637 | + "geodir_contact" => '(113) 121-12344', |
|
| 1638 | + "geodir_email" => '[email protected]', |
|
| 1639 | + "geodir_website" => 'http://www.zamarestaurant.com/', |
|
| 1640 | + "geodir_twitter" => 'http://twitter.com/zamarestaurant', |
|
| 1641 | + "geodir_facebook" => 'http://facebook.com/zamarestaurant', |
|
| 1642 | + "post_dummy" => '1' |
|
| 1643 | + ); |
|
| 1644 | + |
|
| 1645 | + ////post end/// |
|
| 1646 | + /// Restaurants ////post start 7/// |
|
| 1647 | + |
|
| 1648 | + break; |
|
| 1649 | + case 28: |
|
| 1650 | + |
|
| 1651 | + $image_array = array(); |
|
| 1652 | + $post_meta = array(); |
|
| 1653 | + |
|
| 1654 | + /// Restaurants ////post start 8// |
|
| 1655 | + $image_array[] = "$dummy_image_url/restaurants16.jpg"; |
|
| 1656 | + $image_array[] = "$dummy_image_url/restaurants17.jpg"; |
|
| 1657 | + $image_array[] = "$dummy_image_url/restaurants18.jpg"; |
|
| 1658 | + $image_array[] = "$dummy_image_url/restaurants19.jpg"; |
|
| 1659 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1660 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1661 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1662 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1663 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1664 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1665 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1666 | + |
|
| 1667 | + $post_info[] = array( |
|
| 1668 | + "listing_type" => 'gd_place', |
|
| 1669 | + "post_title" => 'Sampan', |
|
| 1670 | + "post_desc" => ' |
|
| 1671 | 1671 | 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´s highly sought-after culinary talents. |
| 1672 | 1672 | |
| 1673 | 1673 | 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´s popular series Pantry Raid and TLC Ultimate Cake Off. |
@@ -1686,45 +1686,45 @@ discard block |
||
| 1686 | 1686 | |
| 1687 | 1687 | Prices range from $5 to $19. |
| 1688 | 1688 | ', |
| 1689 | - "post_images" => $image_array, |
|
| 1690 | - "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
|
|
| 1691 | - "post_tags" => array('restaurant'),
|
|
| 1692 | - "geodir_video" => '', |
|
| 1693 | - "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1694 | - "geodir_contact" => '(000) 111-2222', |
|
| 1695 | - "geodir_email" => '[email protected]', |
|
| 1696 | - "geodir_website" => 'http://www.sampanphilly.com/', |
|
| 1697 | - "geodir_twitter" => 'http://twitter.com/sampanphilly', |
|
| 1698 | - "geodir_facebook" => 'http://facebook.com/sampanphilly', |
|
| 1699 | - "post_dummy" => '1' |
|
| 1700 | - ); |
|
| 1701 | - |
|
| 1702 | - ////post end/// |
|
| 1703 | - /// Restaurants ////post start 8/// |
|
| 1704 | - |
|
| 1705 | - break; |
|
| 1706 | - case 29: |
|
| 1707 | - |
|
| 1708 | - $image_array = array(); |
|
| 1709 | - $post_meta = array(); |
|
| 1710 | - |
|
| 1711 | - /// Restaurants ////post start 9// |
|
| 1712 | - $image_array[] = "$dummy_image_url/restaurants17.jpg"; |
|
| 1713 | - $image_array[] = "$dummy_image_url/restaurants16.jpg"; |
|
| 1714 | - $image_array[] = "$dummy_image_url/restaurants18.jpg"; |
|
| 1715 | - $image_array[] = "$dummy_image_url/restaurants19.jpg"; |
|
| 1716 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1717 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1718 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1719 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1720 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1721 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1722 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1723 | - |
|
| 1724 | - $post_info[] = array( |
|
| 1725 | - "listing_type" => 'gd_place', |
|
| 1726 | - "post_title" => 'Morimoto', |
|
| 1727 | - "post_desc" => ' |
|
| 1689 | + "post_images" => $image_array, |
|
| 1690 | + "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
|
|
| 1691 | + "post_tags" => array('restaurant'),
|
|
| 1692 | + "geodir_video" => '', |
|
| 1693 | + "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1694 | + "geodir_contact" => '(000) 111-2222', |
|
| 1695 | + "geodir_email" => '[email protected]', |
|
| 1696 | + "geodir_website" => 'http://www.sampanphilly.com/', |
|
| 1697 | + "geodir_twitter" => 'http://twitter.com/sampanphilly', |
|
| 1698 | + "geodir_facebook" => 'http://facebook.com/sampanphilly', |
|
| 1699 | + "post_dummy" => '1' |
|
| 1700 | + ); |
|
| 1701 | + |
|
| 1702 | + ////post end/// |
|
| 1703 | + /// Restaurants ////post start 8/// |
|
| 1704 | + |
|
| 1705 | + break; |
|
| 1706 | + case 29: |
|
| 1707 | + |
|
| 1708 | + $image_array = array(); |
|
| 1709 | + $post_meta = array(); |
|
| 1710 | + |
|
| 1711 | + /// Restaurants ////post start 9// |
|
| 1712 | + $image_array[] = "$dummy_image_url/restaurants17.jpg"; |
|
| 1713 | + $image_array[] = "$dummy_image_url/restaurants16.jpg"; |
|
| 1714 | + $image_array[] = "$dummy_image_url/restaurants18.jpg"; |
|
| 1715 | + $image_array[] = "$dummy_image_url/restaurants19.jpg"; |
|
| 1716 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1717 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1718 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1719 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1720 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1721 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1722 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1723 | + |
|
| 1724 | + $post_info[] = array( |
|
| 1725 | + "listing_type" => 'gd_place', |
|
| 1726 | + "post_title" => 'Morimoto', |
|
| 1727 | + "post_desc" => ' |
|
| 1728 | 1728 | 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. |
| 1729 | 1729 | |
| 1730 | 1730 | The restaurant´s namesake and head chef, Morimoto (of Food Network´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. |
@@ -1737,45 +1737,45 @@ discard block |
||
| 1737 | 1737 | |
| 1738 | 1738 | 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. |
| 1739 | 1739 | ', |
| 1740 | - "post_images" => $image_array, |
|
| 1741 | - "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife', 'Feature')),
|
|
| 1742 | - "post_tags" => array('America'),
|
|
| 1743 | - "geodir_video" => '', |
|
| 1744 | - "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1745 | - "geodir_contact" => '(000) 111-2222', |
|
| 1746 | - "geodir_email" => '[email protected]', |
|
| 1747 | - "geodir_website" => 'http://www.morimotorestaurant.com/', |
|
| 1748 | - "geodir_twitter" => 'http://twitter.com/morimotorestaurant', |
|
| 1749 | - "geodir_facebook" => 'http://facebook.com/morimotorestaurant', |
|
| 1750 | - "post_dummy" => '1' |
|
| 1751 | - ); |
|
| 1752 | - |
|
| 1753 | - ////post end/// |
|
| 1754 | - /// Restaurants ////post start 9/// |
|
| 1755 | - break; |
|
| 1756 | - case 30: |
|
| 1757 | - |
|
| 1758 | - |
|
| 1759 | - $image_array = array(); |
|
| 1760 | - $post_meta = array(); |
|
| 1761 | - |
|
| 1762 | - /// Restaurants ////post start 10// |
|
| 1763 | - $image_array[] = "$dummy_image_url/restaurants19.jpg"; |
|
| 1764 | - $image_array[] = "$dummy_image_url/restaurants17.jpg"; |
|
| 1765 | - $image_array[] = "$dummy_image_url/restaurants18.jpg"; |
|
| 1766 | - $image_array[] = "$dummy_image_url/restaurants16.jpg"; |
|
| 1767 | - $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1768 | - $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1769 | - $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1770 | - $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1771 | - $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1772 | - $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1773 | - $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1774 | - |
|
| 1775 | - $post_info[] = array( |
|
| 1776 | - "listing_type" => 'gd_place', |
|
| 1777 | - "post_title" => 'Buddakan', |
|
| 1778 | - "post_desc" => ' |
|
| 1740 | + "post_images" => $image_array, |
|
| 1741 | + "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife', 'Feature')),
|
|
| 1742 | + "post_tags" => array('America'),
|
|
| 1743 | + "geodir_video" => '', |
|
| 1744 | + "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1745 | + "geodir_contact" => '(000) 111-2222', |
|
| 1746 | + "geodir_email" => '[email protected]', |
|
| 1747 | + "geodir_website" => 'http://www.morimotorestaurant.com/', |
|
| 1748 | + "geodir_twitter" => 'http://twitter.com/morimotorestaurant', |
|
| 1749 | + "geodir_facebook" => 'http://facebook.com/morimotorestaurant', |
|
| 1750 | + "post_dummy" => '1' |
|
| 1751 | + ); |
|
| 1752 | + |
|
| 1753 | + ////post end/// |
|
| 1754 | + /// Restaurants ////post start 9/// |
|
| 1755 | + break; |
|
| 1756 | + case 30: |
|
| 1757 | + |
|
| 1758 | + |
|
| 1759 | + $image_array = array(); |
|
| 1760 | + $post_meta = array(); |
|
| 1761 | + |
|
| 1762 | + /// Restaurants ////post start 10// |
|
| 1763 | + $image_array[] = "$dummy_image_url/restaurants19.jpg"; |
|
| 1764 | + $image_array[] = "$dummy_image_url/restaurants17.jpg"; |
|
| 1765 | + $image_array[] = "$dummy_image_url/restaurants18.jpg"; |
|
| 1766 | + $image_array[] = "$dummy_image_url/restaurants16.jpg"; |
|
| 1767 | + $image_array[] = "$dummy_image_url/restaurants5.jpg"; |
|
| 1768 | + $image_array[] = "$dummy_image_url/restaurants6.jpg"; |
|
| 1769 | + $image_array[] = "$dummy_image_url/restaurants7.jpg"; |
|
| 1770 | + $image_array[] = "$dummy_image_url/restaurants8.jpg"; |
|
| 1771 | + $image_array[] = "$dummy_image_url/restaurants9.jpg"; |
|
| 1772 | + $image_array[] = "$dummy_image_url/restaurants2.jpg"; |
|
| 1773 | + $image_array[] = "$dummy_image_url/restaurants4.jpg"; |
|
| 1774 | + |
|
| 1775 | + $post_info[] = array( |
|
| 1776 | + "listing_type" => 'gd_place', |
|
| 1777 | + "post_title" => 'Buddakan', |
|
| 1778 | + "post_desc" => ' |
|
| 1779 | 1779 | <h3>The Experience </h3> |
| 1780 | 1780 | |
| 1781 | 1781 | 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. |
@@ -1786,87 +1786,87 @@ discard block |
||
| 1786 | 1786 | |
| 1787 | 1787 | 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 . |
| 1788 | 1788 | ', |
| 1789 | - "post_images" => $image_array, |
|
| 1790 | - "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
|
|
| 1791 | - "post_tags" => array('America'),
|
|
| 1792 | - "geodir_video" => '', |
|
| 1793 | - "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1794 | - "geodir_contact" => '(000) 111-2222', |
|
| 1795 | - "geodir_email" => '[email protected]', |
|
| 1796 | - "geodir_website" => 'http://www.buddakan.com/', |
|
| 1797 | - "geodir_twitter" => 'http://twitter.com/buddakan', |
|
| 1798 | - "geodir_facebook" => 'http://facebook.com/buddakan', |
|
| 1799 | - "post_dummy" => '1' |
|
| 1800 | - ); |
|
| 1801 | - break; |
|
| 1802 | - |
|
| 1803 | - ////post end/// |
|
| 1804 | - /// Restaurants ////post start 10/// |
|
| 1789 | + "post_images" => $image_array, |
|
| 1790 | + "post_category" => array('gd_placecategory' => array('Restaurants', 'Food Nightlife')),
|
|
| 1791 | + "post_tags" => array('America'),
|
|
| 1792 | + "geodir_video" => '', |
|
| 1793 | + "geodir_timing" => 'The restaurant is also open for weekend lunch/brunch from 10:30 a.m. to 6:30 p.m.', |
|
| 1794 | + "geodir_contact" => '(000) 111-2222', |
|
| 1795 | + "geodir_email" => '[email protected]', |
|
| 1796 | + "geodir_website" => 'http://www.buddakan.com/', |
|
| 1797 | + "geodir_twitter" => 'http://twitter.com/buddakan', |
|
| 1798 | + "geodir_facebook" => 'http://facebook.com/buddakan', |
|
| 1799 | + "post_dummy" => '1' |
|
| 1800 | + ); |
|
| 1801 | + break; |
|
| 1802 | + |
|
| 1803 | + ////post end/// |
|
| 1804 | + /// Restaurants ////post start 10/// |
|
| 1805 | 1805 | } // end of switch |
| 1806 | 1806 | |
| 1807 | 1807 | |
| 1808 | 1808 | foreach ($post_info as $post_info) {
|
| 1809 | - $default_location = geodir_get_default_location(); |
|
| 1810 | - if ($city_bound_lat1 > $city_bound_lat2) |
|
| 1811 | - $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1)); |
|
| 1812 | - else |
|
| 1813 | - $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2)); |
|
| 1814 | - |
|
| 1815 | - |
|
| 1816 | - if ($city_bound_lng1 > $city_bound_lng2) |
|
| 1817 | - $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1)); |
|
| 1818 | - else |
|
| 1819 | - $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2)); |
|
| 1820 | - $post_address = array(); |
|
| 1821 | - $postal_code = ''; |
|
| 1822 | - $address = ''; |
|
| 1823 | - |
|
| 1824 | - $post_address = geodir_get_address_by_lat_lan($dummy_post_latitude, $dummy_post_longitude); |
|
| 1825 | - |
|
| 1826 | - |
|
| 1827 | - if (!empty($post_address)) {
|
|
| 1828 | - foreach ($post_address as $add_key => $add_value) {
|
|
| 1829 | - if ($add_value->types[0] == 'postal_code') {
|
|
| 1830 | - $postal_code = $add_value->long_name; |
|
| 1831 | - } |
|
| 1832 | - |
|
| 1833 | - if ($add_value->types[0] == 'street_number') {
|
|
| 1834 | - if ($address != '') |
|
| 1835 | - $address .= ',' . $add_value->long_name; |
|
| 1836 | - else |
|
| 1837 | - $address .= $add_value->long_name; |
|
| 1838 | - } |
|
| 1839 | - if ($add_value->types[0] == 'route') {
|
|
| 1840 | - if ($address != '') |
|
| 1841 | - $address .= ',' . $add_value->long_name; |
|
| 1842 | - else |
|
| 1843 | - $address .= $add_value->long_name; |
|
| 1844 | - } |
|
| 1845 | - if ($add_value->types[0] == 'neighborhood') {
|
|
| 1846 | - if ($address != '') |
|
| 1847 | - $address .= ',' . $add_value->long_name; |
|
| 1848 | - else |
|
| 1849 | - $address .= $add_value->long_name; |
|
| 1850 | - } |
|
| 1851 | - if ($add_value->types[0] == 'sublocality') {
|
|
| 1852 | - if ($address != '') |
|
| 1853 | - $address .= ',' . $add_value->long_name; |
|
| 1854 | - else |
|
| 1855 | - $address .= $add_value->long_name; |
|
| 1856 | - } |
|
| 1857 | - |
|
| 1858 | - } |
|
| 1859 | - |
|
| 1860 | - $post_info['post_address'] = $address; |
|
| 1861 | - $post_info['post_city'] = $default_location->city; |
|
| 1862 | - $post_info['post_region'] = $default_location->region; |
|
| 1863 | - $post_info['post_country'] = $default_location->country; |
|
| 1864 | - $post_info['post_zip'] = $postal_code; |
|
| 1865 | - $post_info['post_latitude'] = $dummy_post_latitude; |
|
| 1866 | - $post_info['post_longitude'] = $dummy_post_longitude; |
|
| 1867 | - |
|
| 1868 | - } |
|
| 1869 | - geodir_save_listing($post_info, true); |
|
| 1809 | + $default_location = geodir_get_default_location(); |
|
| 1810 | + if ($city_bound_lat1 > $city_bound_lat2) |
|
| 1811 | + $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat1, $city_bound_lat2), geodir_random_float($city_bound_lat2, $city_bound_lat1)); |
|
| 1812 | + else |
|
| 1813 | + $dummy_post_latitude = geodir_random_float(geodir_random_float($city_bound_lat2, $city_bound_lat1), geodir_random_float($city_bound_lat1, $city_bound_lat2)); |
|
| 1814 | + |
|
| 1815 | + |
|
| 1816 | + if ($city_bound_lng1 > $city_bound_lng2) |
|
| 1817 | + $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng1, $city_bound_lng2), geodir_random_float($city_bound_lng2, $city_bound_lng1)); |
|
| 1818 | + else |
|
| 1819 | + $dummy_post_longitude = geodir_random_float(geodir_random_float($city_bound_lng2, $city_bound_lng1), geodir_random_float($city_bound_lng1, $city_bound_lng2)); |
|
| 1820 | + $post_address = array(); |
|
| 1821 | + $postal_code = ''; |
|
| 1822 | + $address = ''; |
|
| 1823 | + |
|
| 1824 | + $post_address = geodir_get_address_by_lat_lan($dummy_post_latitude, $dummy_post_longitude); |
|
| 1825 | + |
|
| 1826 | + |
|
| 1827 | + if (!empty($post_address)) {
|
|
| 1828 | + foreach ($post_address as $add_key => $add_value) {
|
|
| 1829 | + if ($add_value->types[0] == 'postal_code') {
|
|
| 1830 | + $postal_code = $add_value->long_name; |
|
| 1831 | + } |
|
| 1832 | + |
|
| 1833 | + if ($add_value->types[0] == 'street_number') {
|
|
| 1834 | + if ($address != '') |
|
| 1835 | + $address .= ',' . $add_value->long_name; |
|
| 1836 | + else |
|
| 1837 | + $address .= $add_value->long_name; |
|
| 1838 | + } |
|
| 1839 | + if ($add_value->types[0] == 'route') {
|
|
| 1840 | + if ($address != '') |
|
| 1841 | + $address .= ',' . $add_value->long_name; |
|
| 1842 | + else |
|
| 1843 | + $address .= $add_value->long_name; |
|
| 1844 | + } |
|
| 1845 | + if ($add_value->types[0] == 'neighborhood') {
|
|
| 1846 | + if ($address != '') |
|
| 1847 | + $address .= ',' . $add_value->long_name; |
|
| 1848 | + else |
|
| 1849 | + $address .= $add_value->long_name; |
|
| 1850 | + } |
|
| 1851 | + if ($add_value->types[0] == 'sublocality') {
|
|
| 1852 | + if ($address != '') |
|
| 1853 | + $address .= ',' . $add_value->long_name; |
|
| 1854 | + else |
|
| 1855 | + $address .= $add_value->long_name; |
|
| 1856 | + } |
|
| 1857 | + |
|
| 1858 | + } |
|
| 1859 | + |
|
| 1860 | + $post_info['post_address'] = $address; |
|
| 1861 | + $post_info['post_city'] = $default_location->city; |
|
| 1862 | + $post_info['post_region'] = $default_location->region; |
|
| 1863 | + $post_info['post_country'] = $default_location->country; |
|
| 1864 | + $post_info['post_zip'] = $postal_code; |
|
| 1865 | + $post_info['post_latitude'] = $dummy_post_latitude; |
|
| 1866 | + $post_info['post_longitude'] = $dummy_post_longitude; |
|
| 1867 | + |
|
| 1868 | + } |
|
| 1869 | + geodir_save_listing($post_info, true); |
|
| 1870 | 1870 | |
| 1871 | 1871 | } |
| 1872 | 1872 | |
@@ -12,7 +12,7 @@ discard block |
||
| 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 | |
@@ -1834,25 +1834,25 @@ discard block |
||
| 1834 | 1834 | |
| 1835 | 1835 | if ($add_value->types[0] == 'street_number') {
|
| 1836 | 1836 | if ($address != '') |
| 1837 | - $address .= ',' . $add_value->long_name; |
|
| 1837 | + $address .= ','.$add_value->long_name; |
|
| 1838 | 1838 | else |
| 1839 | 1839 | $address .= $add_value->long_name; |
| 1840 | 1840 | } |
| 1841 | 1841 | if ($add_value->types[0] == 'route') {
|
| 1842 | 1842 | if ($address != '') |
| 1843 | - $address .= ',' . $add_value->long_name; |
|
| 1843 | + $address .= ','.$add_value->long_name; |
|
| 1844 | 1844 | else |
| 1845 | 1845 | $address .= $add_value->long_name; |
| 1846 | 1846 | } |
| 1847 | 1847 | if ($add_value->types[0] == 'neighborhood') {
|
| 1848 | 1848 | if ($address != '') |
| 1849 | - $address .= ',' . $add_value->long_name; |
|
| 1849 | + $address .= ','.$add_value->long_name; |
|
| 1850 | 1850 | else |
| 1851 | 1851 | $address .= $add_value->long_name; |
| 1852 | 1852 | } |
| 1853 | 1853 | if ($add_value->types[0] == 'sublocality') {
|
| 1854 | 1854 | if ($address != '') |
| 1855 | - $address .= ',' . $add_value->long_name; |
|
| 1855 | + $address .= ','.$add_value->long_name; |
|
| 1856 | 1856 | else |
| 1857 | 1857 | $address .= $add_value->long_name; |
| 1858 | 1858 | } |
@@ -126,10 +126,11 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'category_ajax') {
|
| 129 | - if (isset($_REQUEST['main_catid']) && isset($_REQUEST['cat_tax']) && isset($_REQUEST['exclude'])) |
|
| 130 | - geodir_addpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['main_catid'], '', '', '', $_REQUEST['exclude']); |
|
| 131 | - else if (isset($_REQUEST['catpid']) && isset($_REQUEST['cat_tax'])) |
|
| 132 | - geodir_editpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['catpid']); |
|
| 129 | + if (isset($_REQUEST['main_catid']) && isset($_REQUEST['cat_tax']) && isset($_REQUEST['exclude'])) { |
|
| 130 | + geodir_addpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['main_catid'], '', '', '', $_REQUEST['exclude']); |
|
| 131 | + } else if (isset($_REQUEST['catpid']) && isset($_REQUEST['cat_tax'])) { |
|
| 132 | + geodir_editpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['catpid']); |
|
| 133 | + } |
|
| 133 | 134 | } |
| 134 | 135 | |
| 135 | 136 | if ((isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'admin_ajax') || isset($_REQUEST['create_field']) || isset($_REQUEST['sort_create_field'])) {
|
@@ -151,22 +152,25 @@ discard block |
||
| 151 | 152 | if (current_user_can('manage_options')) {
|
| 152 | 153 | switch ($_REQUEST['geodir_autofill']): |
| 153 | 154 | case "geodir_dummy_delete" : |
| 154 | - if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_delete_noncename')) |
|
| 155 | - return; |
|
| 155 | + if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_delete_noncename')) { |
|
| 156 | + return; |
|
| 157 | + } |
|
| 156 | 158 | |
| 157 | - if (isset($_REQUEST['posttype'])) |
|
| 158 | - /** |
|
| 159 | + if (isset($_REQUEST['posttype'])) { |
|
| 160 | + /** |
|
| 159 | 161 | * Used to delete the dummy post data per post type. |
| 160 | 162 | * |
| 161 | 163 | * Uses dynamic hook, geodir_delete_dummy_posts_$_REQUEST['posttype']. |
| 162 | 164 | * |
| 163 | 165 | * @since 1.0.0 |
| 164 | 166 | */ |
| 165 | - do_action('geodir_delete_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 167 | + do_action('geodir_delete_dummy_posts_' . $_REQUEST['posttype']); |
|
| 168 | + } |
|
| 166 | 169 | break; |
| 167 | 170 | case "geodir_dummy_insert" : |
| 168 | - if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_insert_noncename')) |
|
| 169 | - return; |
|
| 171 | + if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_insert_noncename')) { |
|
| 172 | + return; |
|
| 173 | + } |
|
| 170 | 174 | |
| 171 | 175 | global $dummy_post_index, $city_bound_lat1, $city_bound_lng1, $city_bound_lat2, $city_bound_lng2; |
| 172 | 176 | $dummy_post_index = $_REQUEST['insert_dummy_post_index']; |
@@ -175,15 +179,16 @@ discard block |
||
| 175 | 179 | $city_bound_lat2 = $_REQUEST['city_bound_lat2']; |
| 176 | 180 | $city_bound_lng2 = $_REQUEST['city_bound_lng2']; |
| 177 | 181 | |
| 178 | - if (isset($_REQUEST['posttype'])) |
|
| 179 | - /** |
|
| 182 | + if (isset($_REQUEST['posttype'])) { |
|
| 183 | + /** |
|
| 180 | 184 | * Used to insert the dummy post data per post type. |
| 181 | 185 | * |
| 182 | 186 | * Uses dynamic hook, geodir_insert_dummy_posts_$_REQUEST['posttype']. |
| 183 | 187 | * |
| 184 | 188 | * @since 1.0.0 |
| 185 | 189 | */ |
| 186 | - do_action('geodir_insert_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 190 | + do_action('geodir_insert_dummy_posts_' . $_REQUEST['posttype']); |
|
| 191 | + } |
|
| 187 | 192 | |
| 188 | 193 | break; |
| 189 | 194 | endswitch; |
@@ -204,8 +209,9 @@ discard block |
||
| 204 | 209 | |
| 205 | 210 | if (isset($_REQUEST['popuptype']) && $_REQUEST['popuptype'] != '' && isset($_REQUEST['post_id']) && $_REQUEST['post_id'] != '') {
|
| 206 | 211 | |
| 207 | - if ($_REQUEST['popuptype'] == 'b_send_inquiry' || $_REQUEST['popuptype'] == 'b_sendtofriend') |
|
| 208 | - require_once(geodir_plugin_path() . '/geodirectory-templates/popup-forms.php'); |
|
| 212 | + if ($_REQUEST['popuptype'] == 'b_send_inquiry' || $_REQUEST['popuptype'] == 'b_sendtofriend') { |
|
| 213 | + require_once(geodir_plugin_path() . '/geodirectory-templates/popup-forms.php'); |
|
| 214 | + } |
|
| 209 | 215 | |
| 210 | 216 | exit; |
| 211 | 217 | } |
@@ -266,8 +272,9 @@ discard block |
||
| 266 | 272 | } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
| 267 | 273 | $redirect_to = get_permalink(geodir_add_listing_page_id()); |
| 268 | 274 | $redirect_to = geodir_getlink($redirect_to, array('pid' => $post->pid), false);
|
| 269 | - } else |
|
| 270 | - $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 275 | + } else { |
|
| 276 | + $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 277 | + } |
|
| 271 | 278 | |
| 272 | 279 | wp_redirect($redirect_to); |
| 273 | 280 | } else {
|
@@ -280,9 +287,9 @@ discard block |
||
| 280 | 287 | |
| 281 | 288 | $gd_session->un_set('listing');
|
| 282 | 289 | |
| 283 | - if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '' && get_permalink($_REQUEST['pid'])) |
|
| 284 | - wp_redirect(get_permalink($_REQUEST['pid'])); |
|
| 285 | - else {
|
|
| 290 | + if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '' && get_permalink($_REQUEST['pid'])) { |
|
| 291 | + wp_redirect(get_permalink($_REQUEST['pid'])); |
|
| 292 | + } else {
|
|
| 286 | 293 | geodir_remove_temp_images(); |
| 287 | 294 | wp_redirect(geodir_getlink(get_permalink(geodir_add_listing_page_id()), array('listing_type' => $_REQUEST['listing_type'])));
|
| 288 | 295 | } |
@@ -310,8 +317,9 @@ discard block |
||
| 310 | 317 | } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
| 311 | 318 | $redirect_to = get_permalink(geodir_add_listing_page_id()); |
| 312 | 319 | $redirect_to = geodir_getlink($redirect_to, array('pid' => $post->pid), false);
|
| 313 | - } else |
|
| 314 | - $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 320 | + } else { |
|
| 321 | + $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 322 | + } |
|
| 315 | 323 | |
| 316 | 324 | $gd_session->un_set('listing');
|
| 317 | 325 | wp_redirect($redirect_to); |
@@ -333,8 +341,9 @@ discard block |
||
| 333 | 341 | $lastid = wp_delete_post($_REQUEST['pid']); |
| 334 | 342 | } |
| 335 | 343 | |
| 336 | - if ($lastid && !is_wp_error($lastid)) |
|
| 337 | - wp_redirect($_SERVER['HTTP_REFERER']); |
|
| 344 | + if ($lastid && !is_wp_error($lastid)) { |
|
| 345 | + wp_redirect($_SERVER['HTTP_REFERER']); |
|
| 346 | + } |
|
| 338 | 347 | |
| 339 | 348 | //wp_redirect( geodir_getlink(get_author_posts_url($current_user->ID),array('geodir_dashbord'=>'true','stype'=>$post_type ),false) );
|
| 340 | 349 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | function geodir_on_wp() |
| 46 | 46 | {
|
| 47 | - if(geodir_is_page('login')) {
|
|
| 47 | + if (geodir_is_page('login')) {
|
|
| 48 | 48 | geodir_user_signup(); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @since 1.0.0 |
| 83 | 83 | * @package GeoDirectory |
| 84 | 84 | */ |
| 85 | - include_once(geodir_plugin_path() . '/geodirectory-functions/map-functions/get_markers.php'); |
|
| 85 | + include_once(geodir_plugin_path().'/geodirectory-functions/map-functions/get_markers.php'); |
|
| 86 | 86 | die; |
| 87 | 87 | } |
| 88 | 88 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * @since 1.0.0 |
| 141 | 141 | * @package GeoDirectory |
| 142 | 142 | */ |
| 143 | - include_once(geodir_plugin_path() . '/geodirectory-admin/geodir_admin_ajax.php'); |
|
| 143 | + include_once(geodir_plugin_path().'/geodirectory-admin/geodir_admin_ajax.php'); |
|
| 144 | 144 | } else {
|
| 145 | 145 | wp_redirect(geodir_login_url()); |
| 146 | 146 | exit(); |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * |
| 163 | 163 | * @since 1.0.0 |
| 164 | 164 | */ |
| 165 | - do_action('geodir_delete_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 165 | + do_action('geodir_delete_dummy_posts_'.$_REQUEST['posttype']);
|
|
| 166 | 166 | break; |
| 167 | 167 | case "geodir_dummy_insert" : |
| 168 | 168 | if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_insert_noncename')) |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | * |
| 184 | 184 | * @since 1.0.0 |
| 185 | 185 | */ |
| 186 | - do_action('geodir_insert_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 186 | + do_action('geodir_insert_dummy_posts_'.$_REQUEST['posttype']);
|
|
| 187 | 187 | |
| 188 | 188 | break; |
| 189 | 189 | endswitch; |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | if (isset($_REQUEST['popuptype']) && $_REQUEST['popuptype'] != '' && isset($_REQUEST['post_id']) && $_REQUEST['post_id'] != '') {
|
| 197 | 197 | |
| 198 | 198 | if ($_REQUEST['popuptype'] == 'b_send_inquiry' || $_REQUEST['popuptype'] == 'b_sendtofriend') |
| 199 | - require_once(geodir_plugin_path() . '/geodirectory-templates/popup-forms.php'); |
|
| 199 | + require_once(geodir_plugin_path().'/geodirectory-templates/popup-forms.php'); |
|
| 200 | 200 | |
| 201 | 201 | exit; |
| 202 | 202 | } |
@@ -212,17 +212,17 @@ discard block |
||
| 212 | 212 | * @since 1.0.0 |
| 213 | 213 | * @package GeoDirectory |
| 214 | 214 | */ |
| 215 | - include_once(geodir_plugin_path() . '/geodirectory-functions/map-functions/get_markers.php'); |
|
| 215 | + include_once(geodir_plugin_path().'/geodirectory-functions/map-functions/get_markers.php'); |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'favorite') {
|
| 219 | 219 | if (is_user_logged_in()) {
|
| 220 | 220 | switch ($_REQUEST['ajax_action']): |
| 221 | 221 | case "add" : |
| 222 | - geodir_add_to_favorite((int)$_REQUEST['pid']); |
|
| 222 | + geodir_add_to_favorite((int) $_REQUEST['pid']); |
|
| 223 | 223 | break; |
| 224 | 224 | case "remove" : |
| 225 | - geodir_remove_from_favorite((int)$_REQUEST['pid']); |
|
| 225 | + geodir_remove_from_favorite((int) $_REQUEST['pid']); |
|
| 226 | 226 | break; |
| 227 | 227 | endswitch; |
| 228 | 228 | } else {
|
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | $is_current_user_owner = true; |
| 237 | 237 | if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
| 238 | - $is_current_user_owner = geodir_listing_belong_to_current_user((int)$_REQUEST['pid']); |
|
| 238 | + $is_current_user_owner = geodir_listing_belong_to_current_user((int) $_REQUEST['pid']); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | $request = $gd_session->get('listing');
|
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | * @since 1.0.0 |
| 347 | 347 | * @package GeoDirectory |
| 348 | 348 | */ |
| 349 | - include_once(geodir_plugin_path() . '/geodirectory-functions/geodirectory_reg.php'); |
|
| 349 | + include_once(geodir_plugin_path().'/geodirectory-functions/geodirectory_reg.php'); |
|
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | |
@@ -16,22 +16,22 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | function geodir_on_wp_loaded() |
| 18 | 18 | {
|
| 19 | - /** |
|
| 20 | - * Called on the wp_loaded WP hook and used to send the send inquiry and send to friend forms. |
|
| 21 | - * |
|
| 22 | - * @since 1.0.0 |
|
| 23 | - */ |
|
| 24 | - do_action('giodir_handle_request_plugins_loaded');
|
|
| 25 | - global $wpdb; |
|
| 19 | + /** |
|
| 20 | + * Called on the wp_loaded WP hook and used to send the send inquiry and send to friend forms. |
|
| 21 | + * |
|
| 22 | + * @since 1.0.0 |
|
| 23 | + */ |
|
| 24 | + do_action('giodir_handle_request_plugins_loaded');
|
|
| 25 | + global $wpdb; |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | - if (isset($_POST['sendact']) && $_POST['sendact'] == 'send_inqury') {
|
|
| 29 | - geodir_send_inquiry($_REQUEST); // function in custom_functions.php |
|
| 28 | + if (isset($_POST['sendact']) && $_POST['sendact'] == 'send_inqury') {
|
|
| 29 | + geodir_send_inquiry($_REQUEST); // function in custom_functions.php |
|
| 30 | 30 | |
| 31 | - } elseif (isset($_POST['sendact']) && $_POST['sendact'] == 'email_frnd') {
|
|
| 32 | - geodir_send_friend($_REQUEST); // function in custom_functions.php |
|
| 31 | + } elseif (isset($_POST['sendact']) && $_POST['sendact'] == 'email_frnd') {
|
|
| 32 | + geodir_send_friend($_REQUEST); // function in custom_functions.php |
|
| 33 | 33 | |
| 34 | - } |
|
| 34 | + } |
|
| 35 | 35 | |
| 36 | 36 | } |
| 37 | 37 | |
@@ -44,9 +44,9 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | function geodir_on_wp() |
| 46 | 46 | {
|
| 47 | - if(geodir_is_page('login')) {
|
|
| 48 | - geodir_user_signup(); |
|
| 49 | - } |
|
| 47 | + if(geodir_is_page('login')) {
|
|
| 48 | + geodir_user_signup(); |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | |
@@ -59,47 +59,47 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | function geodir_on_init() |
| 61 | 61 | {
|
| 62 | - /** |
|
| 63 | - * Called on the wp_init WP hook at the start of the geodir_on_init() function. |
|
| 64 | - * |
|
| 65 | - * @since 1.0.0 |
|
| 66 | - */ |
|
| 67 | - do_action('giodir_handle_request');
|
|
| 68 | - global $wpdb; |
|
| 69 | - |
|
| 70 | - |
|
| 71 | - |
|
| 72 | - |
|
| 73 | - if (get_option('geodir_allow_wpadmin') == '0' && is_user_logged_in() && !current_user_can('manage_options')) {
|
|
| 74 | - show_admin_bar(false); |
|
| 75 | - } |
|
| 76 | - |
|
| 77 | - |
|
| 78 | - if (isset($_REQUEST['ptype']) && $_REQUEST['ptype'] == 'get_markers') {
|
|
| 79 | - /** |
|
| 80 | - * Contains map marker functions. |
|
| 81 | - * |
|
| 82 | - * @since 1.0.0 |
|
| 83 | - * @package GeoDirectory |
|
| 84 | - */ |
|
| 85 | - include_once(geodir_plugin_path() . '/geodirectory-functions/map-functions/get_markers.php'); |
|
| 86 | - die; |
|
| 87 | - } |
|
| 88 | - |
|
| 89 | - if (isset($_REQUEST['ptype']) && $_REQUEST['ptype'] == 'ga') {
|
|
| 90 | - if (isset($_REQUEST['ga_start'])) {
|
|
| 91 | - $ga_start = $_REQUEST['ga_start']; |
|
| 92 | - } else {
|
|
| 93 | - $ga_start = ''; |
|
| 94 | - } |
|
| 95 | - if (isset($_REQUEST['ga_end'])) {
|
|
| 96 | - $ga_end = $_REQUEST['ga_end']; |
|
| 97 | - } else {
|
|
| 98 | - $ga_end = ''; |
|
| 99 | - } |
|
| 100 | - geodir_getGoogleAnalytics($_REQUEST['ga_page'], $ga_start, $ga_end); |
|
| 101 | - die; |
|
| 102 | - } |
|
| 62 | + /** |
|
| 63 | + * Called on the wp_init WP hook at the start of the geodir_on_init() function. |
|
| 64 | + * |
|
| 65 | + * @since 1.0.0 |
|
| 66 | + */ |
|
| 67 | + do_action('giodir_handle_request');
|
|
| 68 | + global $wpdb; |
|
| 69 | + |
|
| 70 | + |
|
| 71 | + |
|
| 72 | + |
|
| 73 | + if (get_option('geodir_allow_wpadmin') == '0' && is_user_logged_in() && !current_user_can('manage_options')) {
|
|
| 74 | + show_admin_bar(false); |
|
| 75 | + } |
|
| 76 | + |
|
| 77 | + |
|
| 78 | + if (isset($_REQUEST['ptype']) && $_REQUEST['ptype'] == 'get_markers') {
|
|
| 79 | + /** |
|
| 80 | + * Contains map marker functions. |
|
| 81 | + * |
|
| 82 | + * @since 1.0.0 |
|
| 83 | + * @package GeoDirectory |
|
| 84 | + */ |
|
| 85 | + include_once(geodir_plugin_path() . '/geodirectory-functions/map-functions/get_markers.php'); |
|
| 86 | + die; |
|
| 87 | + } |
|
| 88 | + |
|
| 89 | + if (isset($_REQUEST['ptype']) && $_REQUEST['ptype'] == 'ga') {
|
|
| 90 | + if (isset($_REQUEST['ga_start'])) {
|
|
| 91 | + $ga_start = $_REQUEST['ga_start']; |
|
| 92 | + } else {
|
|
| 93 | + $ga_start = ''; |
|
| 94 | + } |
|
| 95 | + if (isset($_REQUEST['ga_end'])) {
|
|
| 96 | + $ga_end = $_REQUEST['ga_end']; |
|
| 97 | + } else {
|
|
| 98 | + $ga_end = ''; |
|
| 99 | + } |
|
| 100 | + geodir_getGoogleAnalytics($_REQUEST['ga_page'], $ga_start, $ga_end); |
|
| 101 | + die; |
|
| 102 | + } |
|
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | } |
@@ -118,240 +118,240 @@ discard block |
||
| 118 | 118 | * @todo check if nonce is required here and if so add one. |
| 119 | 119 | */ |
| 120 | 120 | function geodir_ajax_handler() {
|
| 121 | - global $wpdb, $gd_session; |
|
| 121 | + global $wpdb, $gd_session; |
|
| 122 | 122 | |
| 123 | - if (isset($_REQUEST['gd_listing_view']) && $_REQUEST['gd_listing_view'] != '') {
|
|
| 123 | + if (isset($_REQUEST['gd_listing_view']) && $_REQUEST['gd_listing_view'] != '') {
|
|
| 124 | 124 | $gd_session->set('gd_listing_view', $_REQUEST['gd_listing_view']);
|
| 125 | - echo '1'; |
|
| 126 | - } |
|
| 127 | - |
|
| 128 | - if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'category_ajax') {
|
|
| 129 | - if (isset($_REQUEST['main_catid']) && isset($_REQUEST['cat_tax']) && isset($_REQUEST['exclude'])) |
|
| 130 | - geodir_addpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['main_catid'], '', '', '', $_REQUEST['exclude']); |
|
| 131 | - else if (isset($_REQUEST['catpid']) && isset($_REQUEST['cat_tax'])) |
|
| 132 | - geodir_editpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['catpid']); |
|
| 133 | - } |
|
| 134 | - |
|
| 135 | - if ((isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'admin_ajax') || isset($_REQUEST['create_field']) || isset($_REQUEST['sort_create_field'])) {
|
|
| 136 | - if (current_user_can('manage_options')) {
|
|
| 137 | - /** |
|
| 138 | - * Contains admin ajax handling functions. |
|
| 139 | - * |
|
| 140 | - * @since 1.0.0 |
|
| 141 | - * @package GeoDirectory |
|
| 142 | - */ |
|
| 143 | - include_once(geodir_plugin_path() . '/geodirectory-admin/geodir_admin_ajax.php'); |
|
| 144 | - } else {
|
|
| 145 | - wp_redirect(geodir_login_url()); |
|
| 146 | - gd_die(); |
|
| 147 | - } |
|
| 148 | - } |
|
| 149 | - |
|
| 150 | - if (isset($_REQUEST['geodir_autofill']) && $_REQUEST['geodir_autofill'] != '' && isset($_REQUEST['_wpnonce'])) {
|
|
| 151 | - if (current_user_can('manage_options')) {
|
|
| 152 | - switch ($_REQUEST['geodir_autofill']): |
|
| 153 | - case "geodir_dummy_delete" : |
|
| 154 | - if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_delete_noncename')) |
|
| 155 | - return; |
|
| 156 | - |
|
| 157 | - if (isset($_REQUEST['posttype'])) |
|
| 158 | - /** |
|
| 159 | - * Used to delete the dummy post data per post type. |
|
| 160 | - * |
|
| 161 | - * Uses dynamic hook, geodir_delete_dummy_posts_$_REQUEST['posttype']. |
|
| 162 | - * |
|
| 163 | - * @since 1.0.0 |
|
| 164 | - */ |
|
| 165 | - do_action('geodir_delete_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 166 | - break; |
|
| 167 | - case "geodir_dummy_insert" : |
|
| 168 | - if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_insert_noncename')) |
|
| 169 | - return; |
|
| 170 | - |
|
| 171 | - global $dummy_post_index, $city_bound_lat1, $city_bound_lng1, $city_bound_lat2, $city_bound_lng2; |
|
| 172 | - $dummy_post_index = $_REQUEST['insert_dummy_post_index']; |
|
| 173 | - $city_bound_lat1 = $_REQUEST['city_bound_lat1']; |
|
| 174 | - $city_bound_lng1 = $_REQUEST['city_bound_lng1']; |
|
| 175 | - $city_bound_lat2 = $_REQUEST['city_bound_lat2']; |
|
| 176 | - $city_bound_lng2 = $_REQUEST['city_bound_lng2']; |
|
| 177 | - |
|
| 178 | - if (isset($_REQUEST['posttype'])) |
|
| 179 | - /** |
|
| 180 | - * Used to insert the dummy post data per post type. |
|
| 181 | - * |
|
| 182 | - * Uses dynamic hook, geodir_insert_dummy_posts_$_REQUEST['posttype']. |
|
| 183 | - * |
|
| 184 | - * @since 1.0.0 |
|
| 185 | - */ |
|
| 186 | - do_action('geodir_insert_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 187 | - |
|
| 188 | - break; |
|
| 189 | - endswitch; |
|
| 190 | - } else {
|
|
| 191 | - wp_redirect(geodir_login_url()); |
|
| 192 | - exit(); |
|
| 193 | - } |
|
| 194 | - } |
|
| 195 | - |
|
| 196 | - if (isset($_REQUEST['popuptype']) && $_REQUEST['popuptype'] != '' && isset($_REQUEST['post_id']) && $_REQUEST['post_id'] != '') {
|
|
| 197 | - |
|
| 198 | - if ($_REQUEST['popuptype'] == 'b_send_inquiry' || $_REQUEST['popuptype'] == 'b_sendtofriend') |
|
| 199 | - require_once(geodir_plugin_path() . '/geodirectory-templates/popup-forms.php'); |
|
| 200 | - |
|
| 201 | - gd_die(); |
|
| 202 | - } |
|
| 203 | - |
|
| 204 | - /*if(isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'filter_ajax'){
|
|
| 125 | + echo '1'; |
|
| 126 | + } |
|
| 127 | + |
|
| 128 | + if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'category_ajax') {
|
|
| 129 | + if (isset($_REQUEST['main_catid']) && isset($_REQUEST['cat_tax']) && isset($_REQUEST['exclude'])) |
|
| 130 | + geodir_addpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['main_catid'], '', '', '', $_REQUEST['exclude']); |
|
| 131 | + else if (isset($_REQUEST['catpid']) && isset($_REQUEST['cat_tax'])) |
|
| 132 | + geodir_editpost_categories_html($_REQUEST['cat_tax'], $_REQUEST['catpid']); |
|
| 133 | + } |
|
| 134 | + |
|
| 135 | + if ((isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'admin_ajax') || isset($_REQUEST['create_field']) || isset($_REQUEST['sort_create_field'])) {
|
|
| 136 | + if (current_user_can('manage_options')) {
|
|
| 137 | + /** |
|
| 138 | + * Contains admin ajax handling functions. |
|
| 139 | + * |
|
| 140 | + * @since 1.0.0 |
|
| 141 | + * @package GeoDirectory |
|
| 142 | + */ |
|
| 143 | + include_once(geodir_plugin_path() . '/geodirectory-admin/geodir_admin_ajax.php'); |
|
| 144 | + } else {
|
|
| 145 | + wp_redirect(geodir_login_url()); |
|
| 146 | + gd_die(); |
|
| 147 | + } |
|
| 148 | + } |
|
| 149 | + |
|
| 150 | + if (isset($_REQUEST['geodir_autofill']) && $_REQUEST['geodir_autofill'] != '' && isset($_REQUEST['_wpnonce'])) {
|
|
| 151 | + if (current_user_can('manage_options')) {
|
|
| 152 | + switch ($_REQUEST['geodir_autofill']): |
|
| 153 | + case "geodir_dummy_delete" : |
|
| 154 | + if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_delete_noncename')) |
|
| 155 | + return; |
|
| 156 | + |
|
| 157 | + if (isset($_REQUEST['posttype'])) |
|
| 158 | + /** |
|
| 159 | + * Used to delete the dummy post data per post type. |
|
| 160 | + * |
|
| 161 | + * Uses dynamic hook, geodir_delete_dummy_posts_$_REQUEST['posttype']. |
|
| 162 | + * |
|
| 163 | + * @since 1.0.0 |
|
| 164 | + */ |
|
| 165 | + do_action('geodir_delete_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 166 | + break; |
|
| 167 | + case "geodir_dummy_insert" : |
|
| 168 | + if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'geodir_dummy_posts_insert_noncename')) |
|
| 169 | + return; |
|
| 170 | + |
|
| 171 | + global $dummy_post_index, $city_bound_lat1, $city_bound_lng1, $city_bound_lat2, $city_bound_lng2; |
|
| 172 | + $dummy_post_index = $_REQUEST['insert_dummy_post_index']; |
|
| 173 | + $city_bound_lat1 = $_REQUEST['city_bound_lat1']; |
|
| 174 | + $city_bound_lng1 = $_REQUEST['city_bound_lng1']; |
|
| 175 | + $city_bound_lat2 = $_REQUEST['city_bound_lat2']; |
|
| 176 | + $city_bound_lng2 = $_REQUEST['city_bound_lng2']; |
|
| 177 | + |
|
| 178 | + if (isset($_REQUEST['posttype'])) |
|
| 179 | + /** |
|
| 180 | + * Used to insert the dummy post data per post type. |
|
| 181 | + * |
|
| 182 | + * Uses dynamic hook, geodir_insert_dummy_posts_$_REQUEST['posttype']. |
|
| 183 | + * |
|
| 184 | + * @since 1.0.0 |
|
| 185 | + */ |
|
| 186 | + do_action('geodir_insert_dummy_posts_' . $_REQUEST['posttype']);
|
|
| 187 | + |
|
| 188 | + break; |
|
| 189 | + endswitch; |
|
| 190 | + } else {
|
|
| 191 | + wp_redirect(geodir_login_url()); |
|
| 192 | + exit(); |
|
| 193 | + } |
|
| 194 | + } |
|
| 195 | + |
|
| 196 | + if (isset($_REQUEST['popuptype']) && $_REQUEST['popuptype'] != '' && isset($_REQUEST['post_id']) && $_REQUEST['post_id'] != '') {
|
|
| 197 | + |
|
| 198 | + if ($_REQUEST['popuptype'] == 'b_send_inquiry' || $_REQUEST['popuptype'] == 'b_sendtofriend') |
|
| 199 | + require_once(geodir_plugin_path() . '/geodirectory-templates/popup-forms.php'); |
|
| 200 | + |
|
| 201 | + gd_die(); |
|
| 202 | + } |
|
| 203 | + |
|
| 204 | + /*if(isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'filter_ajax'){
|
|
| 205 | 205 | include_once ( geodir_plugin_path() . '/geodirectory-templates/advance-search-form.php'); |
| 206 | 206 | }*/ |
| 207 | 207 | |
| 208 | - if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'map_ajax') {
|
|
| 209 | - /** |
|
| 210 | - * Contains map marker functions. |
|
| 211 | - * |
|
| 212 | - * @since 1.0.0 |
|
| 213 | - * @package GeoDirectory |
|
| 214 | - */ |
|
| 215 | - include_once(geodir_plugin_path() . '/geodirectory-functions/map-functions/get_markers.php'); |
|
| 216 | - } |
|
| 217 | - |
|
| 218 | - if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'favorite') {
|
|
| 219 | - if (is_user_logged_in()) {
|
|
| 220 | - switch ($_REQUEST['ajax_action']): |
|
| 221 | - case "add" : |
|
| 222 | - geodir_add_to_favorite((int)$_REQUEST['pid']); |
|
| 223 | - break; |
|
| 224 | - case "remove" : |
|
| 225 | - geodir_remove_from_favorite((int)$_REQUEST['pid']); |
|
| 226 | - break; |
|
| 227 | - endswitch; |
|
| 228 | - } else {
|
|
| 229 | - wp_redirect(geodir_login_url()); |
|
| 230 | - exit(); |
|
| 231 | - } |
|
| 232 | - } |
|
| 233 | - |
|
| 234 | - if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'add_listing') {
|
|
| 235 | - |
|
| 236 | - $is_current_user_owner = true; |
|
| 237 | - if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 238 | - $is_current_user_owner = geodir_listing_belong_to_current_user((int)$_REQUEST['pid']); |
|
| 239 | - } |
|
| 240 | - |
|
| 241 | - $request = $gd_session->get('listing');
|
|
| 242 | - |
|
| 243 | - if (is_user_logged_in() && $is_current_user_owner) {
|
|
| 244 | - |
|
| 245 | - switch ($_REQUEST['ajax_action']): |
|
| 246 | - case "add": |
|
| 247 | - case "update": |
|
| 248 | - |
|
| 249 | - if (isset($request['geodir_spamblocker']) && $request['geodir_spamblocker'] == '64' && isset($request['geodir_filled_by_spam_bot']) && $request['geodir_filled_by_spam_bot'] == '') {
|
|
| 250 | - $last_id = geodir_save_listing(); |
|
| 251 | - |
|
| 252 | - if ($last_id) {
|
|
| 253 | - //$redirect_to = get_permalink( $last_id ); |
|
| 254 | - $redirect_to = geodir_getlink(get_permalink(geodir_success_page_id()), array('pid' => $last_id));
|
|
| 255 | - |
|
| 256 | - } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 257 | - $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 258 | - $redirect_to = geodir_getlink($redirect_to, array('pid' => $post->pid), false);
|
|
| 259 | - } else |
|
| 260 | - $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 261 | - |
|
| 262 | - wp_redirect($redirect_to); |
|
| 263 | - } else {
|
|
| 264 | - $gd_session->un_set('listing');
|
|
| 265 | - wp_redirect(home_url()); |
|
| 266 | - } |
|
| 267 | - |
|
| 268 | - break; |
|
| 269 | - case "cancel" : |
|
| 270 | - |
|
| 271 | - $gd_session->un_set('listing');
|
|
| 272 | - |
|
| 273 | - if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '' && get_permalink($_REQUEST['pid'])) |
|
| 274 | - wp_redirect(get_permalink($_REQUEST['pid'])); |
|
| 275 | - else {
|
|
| 276 | - geodir_remove_temp_images(); |
|
| 277 | - wp_redirect(geodir_getlink(get_permalink(geodir_add_listing_page_id()), array('listing_type' => $_REQUEST['listing_type'])));
|
|
| 278 | - } |
|
| 279 | - |
|
| 280 | - break; |
|
| 281 | - |
|
| 282 | - case "publish" : |
|
| 283 | - |
|
| 284 | - if (isset($request['geodir_spamblocker']) && $request['geodir_spamblocker'] == '64' && isset($request['geodir_filled_by_spam_bot']) && $request['geodir_filled_by_spam_bot'] == '') {
|
|
| 285 | - |
|
| 286 | - if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 287 | - $new_post = array(); |
|
| 288 | - $new_post['ID'] = $_REQUEST['pid']; |
|
| 289 | - |
|
| 290 | - $lastid = wp_update_post($new_post); |
|
| 291 | - |
|
| 292 | - $gd_session->un_set('listing');
|
|
| 293 | - wp_redirect(get_permalink($lastid)); |
|
| 294 | - } else {
|
|
| 295 | - $last_id = geodir_save_listing(); |
|
| 296 | - |
|
| 297 | - if ($last_id) {
|
|
| 298 | - //$redirect_to = get_permalink( $last_id ); |
|
| 299 | - $redirect_to = geodir_getlink(get_permalink(geodir_success_page_id()), array('pid' => $last_id));
|
|
| 300 | - } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 301 | - $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 302 | - $redirect_to = geodir_getlink($redirect_to, array('pid' => $post->pid), false);
|
|
| 303 | - } else |
|
| 304 | - $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 305 | - |
|
| 306 | - $gd_session->un_set('listing');
|
|
| 307 | - wp_redirect($redirect_to); |
|
| 308 | - } |
|
| 309 | - } else {
|
|
| 310 | - $gd_session->un_set('listing');
|
|
| 311 | - wp_redirect(home_url()); |
|
| 312 | - } |
|
| 313 | - |
|
| 314 | - break; |
|
| 315 | - case "delete" : |
|
| 316 | - if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 317 | - global $current_user; |
|
| 318 | - |
|
| 319 | - if (get_option('geodir_disable_perm_delete')) {
|
|
| 320 | - $lastid = wp_trash_post($_REQUEST['pid']); |
|
| 321 | - } else {
|
|
| 322 | - $lastid = wp_delete_post($_REQUEST['pid']); |
|
| 323 | - } |
|
| 324 | - |
|
| 325 | - if ($lastid && !is_wp_error($lastid)) |
|
| 326 | - wp_redirect($_SERVER['HTTP_REFERER']); |
|
| 327 | - |
|
| 328 | - //wp_redirect( geodir_getlink(get_author_posts_url($current_user->ID),array('geodir_dashbord'=>'true','stype'=>$post_type ),false) );
|
|
| 329 | - } |
|
| 330 | - break; |
|
| 331 | - endswitch; |
|
| 332 | - |
|
| 333 | - $gd_session->un_set('listing');
|
|
| 334 | - } else {
|
|
| 335 | - $gd_session->un_set('listing');
|
|
| 336 | - wp_redirect(geodir_login_url()); |
|
| 337 | - exit(); |
|
| 338 | - } |
|
| 339 | - } |
|
| 340 | - |
|
| 341 | - if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'user_login') {
|
|
| 342 | - /** |
|
| 343 | - * Contains registration and login functions. |
|
| 344 | - * @todo Fix the file path. |
|
| 345 | - * |
|
| 346 | - * @since 1.0.0 |
|
| 347 | - * @package GeoDirectory |
|
| 348 | - */ |
|
| 349 | - include_once(geodir_plugin_path() . '/geodirectory-functions/geodirectory_reg.php'); |
|
| 350 | - } |
|
| 351 | - |
|
| 352 | - |
|
| 353 | - if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] == 'geodir_get_term_list') {
|
|
| 354 | - $terms_o = get_terms(sanitize_text_field($_REQUEST['term'])); |
|
| 208 | + if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'map_ajax') {
|
|
| 209 | + /** |
|
| 210 | + * Contains map marker functions. |
|
| 211 | + * |
|
| 212 | + * @since 1.0.0 |
|
| 213 | + * @package GeoDirectory |
|
| 214 | + */ |
|
| 215 | + include_once(geodir_plugin_path() . '/geodirectory-functions/map-functions/get_markers.php'); |
|
| 216 | + } |
|
| 217 | + |
|
| 218 | + if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'favorite') {
|
|
| 219 | + if (is_user_logged_in()) {
|
|
| 220 | + switch ($_REQUEST['ajax_action']): |
|
| 221 | + case "add" : |
|
| 222 | + geodir_add_to_favorite((int)$_REQUEST['pid']); |
|
| 223 | + break; |
|
| 224 | + case "remove" : |
|
| 225 | + geodir_remove_from_favorite((int)$_REQUEST['pid']); |
|
| 226 | + break; |
|
| 227 | + endswitch; |
|
| 228 | + } else {
|
|
| 229 | + wp_redirect(geodir_login_url()); |
|
| 230 | + exit(); |
|
| 231 | + } |
|
| 232 | + } |
|
| 233 | + |
|
| 234 | + if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'add_listing') {
|
|
| 235 | + |
|
| 236 | + $is_current_user_owner = true; |
|
| 237 | + if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 238 | + $is_current_user_owner = geodir_listing_belong_to_current_user((int)$_REQUEST['pid']); |
|
| 239 | + } |
|
| 240 | + |
|
| 241 | + $request = $gd_session->get('listing');
|
|
| 242 | + |
|
| 243 | + if (is_user_logged_in() && $is_current_user_owner) {
|
|
| 244 | + |
|
| 245 | + switch ($_REQUEST['ajax_action']): |
|
| 246 | + case "add": |
|
| 247 | + case "update": |
|
| 248 | + |
|
| 249 | + if (isset($request['geodir_spamblocker']) && $request['geodir_spamblocker'] == '64' && isset($request['geodir_filled_by_spam_bot']) && $request['geodir_filled_by_spam_bot'] == '') {
|
|
| 250 | + $last_id = geodir_save_listing(); |
|
| 251 | + |
|
| 252 | + if ($last_id) {
|
|
| 253 | + //$redirect_to = get_permalink( $last_id ); |
|
| 254 | + $redirect_to = geodir_getlink(get_permalink(geodir_success_page_id()), array('pid' => $last_id));
|
|
| 255 | + |
|
| 256 | + } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 257 | + $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 258 | + $redirect_to = geodir_getlink($redirect_to, array('pid' => $post->pid), false);
|
|
| 259 | + } else |
|
| 260 | + $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 261 | + |
|
| 262 | + wp_redirect($redirect_to); |
|
| 263 | + } else {
|
|
| 264 | + $gd_session->un_set('listing');
|
|
| 265 | + wp_redirect(home_url()); |
|
| 266 | + } |
|
| 267 | + |
|
| 268 | + break; |
|
| 269 | + case "cancel" : |
|
| 270 | + |
|
| 271 | + $gd_session->un_set('listing');
|
|
| 272 | + |
|
| 273 | + if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '' && get_permalink($_REQUEST['pid'])) |
|
| 274 | + wp_redirect(get_permalink($_REQUEST['pid'])); |
|
| 275 | + else {
|
|
| 276 | + geodir_remove_temp_images(); |
|
| 277 | + wp_redirect(geodir_getlink(get_permalink(geodir_add_listing_page_id()), array('listing_type' => $_REQUEST['listing_type'])));
|
|
| 278 | + } |
|
| 279 | + |
|
| 280 | + break; |
|
| 281 | + |
|
| 282 | + case "publish" : |
|
| 283 | + |
|
| 284 | + if (isset($request['geodir_spamblocker']) && $request['geodir_spamblocker'] == '64' && isset($request['geodir_filled_by_spam_bot']) && $request['geodir_filled_by_spam_bot'] == '') {
|
|
| 285 | + |
|
| 286 | + if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 287 | + $new_post = array(); |
|
| 288 | + $new_post['ID'] = $_REQUEST['pid']; |
|
| 289 | + |
|
| 290 | + $lastid = wp_update_post($new_post); |
|
| 291 | + |
|
| 292 | + $gd_session->un_set('listing');
|
|
| 293 | + wp_redirect(get_permalink($lastid)); |
|
| 294 | + } else {
|
|
| 295 | + $last_id = geodir_save_listing(); |
|
| 296 | + |
|
| 297 | + if ($last_id) {
|
|
| 298 | + //$redirect_to = get_permalink( $last_id ); |
|
| 299 | + $redirect_to = geodir_getlink(get_permalink(geodir_success_page_id()), array('pid' => $last_id));
|
|
| 300 | + } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 301 | + $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 302 | + $redirect_to = geodir_getlink($redirect_to, array('pid' => $post->pid), false);
|
|
| 303 | + } else |
|
| 304 | + $redirect_to = get_permalink(geodir_add_listing_page_id()); |
|
| 305 | + |
|
| 306 | + $gd_session->un_set('listing');
|
|
| 307 | + wp_redirect($redirect_to); |
|
| 308 | + } |
|
| 309 | + } else {
|
|
| 310 | + $gd_session->un_set('listing');
|
|
| 311 | + wp_redirect(home_url()); |
|
| 312 | + } |
|
| 313 | + |
|
| 314 | + break; |
|
| 315 | + case "delete" : |
|
| 316 | + if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
|
|
| 317 | + global $current_user; |
|
| 318 | + |
|
| 319 | + if (get_option('geodir_disable_perm_delete')) {
|
|
| 320 | + $lastid = wp_trash_post($_REQUEST['pid']); |
|
| 321 | + } else {
|
|
| 322 | + $lastid = wp_delete_post($_REQUEST['pid']); |
|
| 323 | + } |
|
| 324 | + |
|
| 325 | + if ($lastid && !is_wp_error($lastid)) |
|
| 326 | + wp_redirect($_SERVER['HTTP_REFERER']); |
|
| 327 | + |
|
| 328 | + //wp_redirect( geodir_getlink(get_author_posts_url($current_user->ID),array('geodir_dashbord'=>'true','stype'=>$post_type ),false) );
|
|
| 329 | + } |
|
| 330 | + break; |
|
| 331 | + endswitch; |
|
| 332 | + |
|
| 333 | + $gd_session->un_set('listing');
|
|
| 334 | + } else {
|
|
| 335 | + $gd_session->un_set('listing');
|
|
| 336 | + wp_redirect(geodir_login_url()); |
|
| 337 | + exit(); |
|
| 338 | + } |
|
| 339 | + } |
|
| 340 | + |
|
| 341 | + if (isset($_REQUEST['geodir_ajax']) && $_REQUEST['geodir_ajax'] == 'user_login') {
|
|
| 342 | + /** |
|
| 343 | + * Contains registration and login functions. |
|
| 344 | + * @todo Fix the file path. |
|
| 345 | + * |
|
| 346 | + * @since 1.0.0 |
|
| 347 | + * @package GeoDirectory |
|
| 348 | + */ |
|
| 349 | + include_once(geodir_plugin_path() . '/geodirectory-functions/geodirectory_reg.php'); |
|
| 350 | + } |
|
| 351 | + |
|
| 352 | + |
|
| 353 | + if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] == 'geodir_get_term_list') {
|
|
| 354 | + $terms_o = get_terms(sanitize_text_field($_REQUEST['term'])); |
|
| 355 | 355 | |
| 356 | 356 | // Skip terms which has no listing |
| 357 | 357 | if (!empty($terms_o)) {
|
@@ -365,11 +365,11 @@ discard block |
||
| 365 | 365 | $terms_o = $filter_terms; |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | - $terms = geodir_sort_terms($terms_o, 'count'); |
|
| 369 | - geodir_helper_cat_list_output($terms, intval($_REQUEST['limit'])); |
|
| 370 | - exit(); |
|
| 368 | + $terms = geodir_sort_terms($terms_o, 'count'); |
|
| 369 | + geodir_helper_cat_list_output($terms, intval($_REQUEST['limit'])); |
|
| 370 | + exit(); |
|
| 371 | 371 | |
| 372 | - } |
|
| 372 | + } |
|
| 373 | 373 | |
| 374 | - gd_die(); |
|
| 374 | + gd_die(); |
|
| 375 | 375 | } |