Passed
Push — master ( 3589e2...6f1fdc )
by Stiofan
15:08
created
language.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 define('LISTING_DETAILS_TEXT', __('Enter Listing Details', 'geodirectory'));
42 42
 
43 43
 define('PLACE_TITLE_TEXT', __('Listing Title', 'geodirectory')); // depreciated @since 1.6.3
44
-define('PLACE_DESC_TEXT', __('Listing Description', 'geodirectory'));// depreciated @since 1.6.3
44
+define('PLACE_DESC_TEXT', __('Listing Description', 'geodirectory')); // depreciated @since 1.6.3
45 45
 
46 46
 define('LISTING_ADDRESS_TEXT', __('Listing Address:', 'geodirectory'));
47 47
 define('PLACE_ADDRESS', __('Address:', 'geodirectory'));
Please login to merge, or discard this patch.
geodirectory_template_actions.php 1 patch
Spacing   +158 added lines, -158 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 
283 283
     //php
284 284
     if (!empty($tc['geodir_theme_compat_code'])) {
285
-        include_once('geodirectory-functions/compatibility/' . $tc['geodir_theme_compat_code'] . '.php');
285
+        include_once('geodirectory-functions/compatibility/'.$tc['geodir_theme_compat_code'].'.php');
286 286
     }
287 287
 
288 288
     //geodir_full_page_class
@@ -452,13 +452,13 @@  discard block
 block discarded – undo
452 452
 function geodir_action_wrapper_content_open($type = '', $id = '', $class = '')
453 453
 {
454 454
     if ($type == 'home-page' && $width = get_option('geodir_width_home_contant_section')) {
455
-        $width_css = 'style="width:' . $width . '%;"';
455
+        $width_css = 'style="width:'.$width.'%;"';
456 456
     } elseif ($type == 'listings-page' && $width = get_option('geodir_width_listing_contant_section')) {
457
-        $width_css = 'style="width:' . $width . '%;"';
457
+        $width_css = 'style="width:'.$width.'%;"';
458 458
     } elseif ($type == 'search-page' && $width = get_option('geodir_width_search_contant_section')) {
459
-        $width_css = 'style="width:' . $width . '%;"';
459
+        $width_css = 'style="width:'.$width.'%;"';
460 460
     } elseif ($type == 'author-page' && $width = get_option('geodir_width_author_contant_section')) {
461
-        $width_css = 'style="width:' . $width . '%;"';
461
+        $width_css = 'style="width:'.$width.'%;"';
462 462
     } else {
463 463
         $width_css = '';
464 464
     }
@@ -572,13 +572,13 @@  discard block
 block discarded – undo
572 572
 function geodir_action_sidebar_right_open($type = '', $id = '', $class = '', $itemtype = '')
573 573
 {
574 574
     if ($type == 'home-page' && $width = get_option('geodir_width_home_right_section')) {
575
-        $width_css = 'style="width:' . $width . '%;"';
575
+        $width_css = 'style="width:'.$width.'%;"';
576 576
     } elseif ($type == 'listings-page' && $width = get_option('geodir_width_listing_right_section')) {
577
-        $width_css = 'style="width:' . $width . '%;"';
577
+        $width_css = 'style="width:'.$width.'%;"';
578 578
     } elseif ($type == 'search-page' && $width = get_option('geodir_width_search_right_section')) {
579
-        $width_css = 'style="width:' . $width . '%;"';
579
+        $width_css = 'style="width:'.$width.'%;"';
580 580
     } elseif ($type == 'author-page' && $width = get_option('geodir_width_author_right_section')) {
581
-        $width_css = 'style="width:' . $width . '%;"';
581
+        $width_css = 'style="width:'.$width.'%;"';
582 582
     } else {
583 583
         $width_css = '';
584 584
     }
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
         }
677 677
     }
678 678
 
679
-    $post = (object)$_REQUEST;
679
+    $post = (object) $_REQUEST;
680 680
 
681 681
 
682 682
     if (isset($post->video)) {
@@ -735,10 +735,10 @@  discard block
 block discarded – undo
735 735
 
736 736
     $json = '{';
737 737
     $json .= '"post_preview": "1",';
738
-    $json .= '"t": "' . $json_title . '",';
739
-    $json .= '"lt": "' . $post_latitude . '",';
740
-    $json .= '"ln": "' . $post_longitude . '",';
741
-    $json .= '"i":"' . $term_icon . '"';
738
+    $json .= '"t": "'.$json_title.'",';
739
+    $json .= '"lt": "'.$post_latitude.'",';
740
+    $json .= '"ln": "'.$post_longitude.'",';
741
+    $json .= '"i":"'.$term_icon.'"';
742 742
     $json .= '}';
743 743
 
744 744
     $post->marker_json = $json;
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
      * @param string $class The class to use. Default is 'entry-header'.
966 966
      */
967 967
     $class_header = apply_filters('geodir_page_title_header_class', 'entry-header');
968
-    echo '<header class="' . $class_header . '"><h1 class="' . $class . '">' . stripslashes(get_the_title()) . '</h1></header>';
968
+    echo '<header class="'.$class_header.'"><h1 class="'.$class.'">'.stripslashes(get_the_title()).'</h1></header>';
969 969
 }
970 970
 
971 971
 
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
                     $height = !empty($sizes) && isset($sizes[1]) ? $sizes[1] : 0;
1020 1020
 
1021 1021
                     if ($image && $width && $height) {
1022
-                        $image = (object)array('src' => $image, 'width' => $width, 'height' => $height);
1022
+                        $image = (object) array('src' => $image, 'width' => $width, 'height' => $height);
1023 1023
                     }
1024 1024
 
1025 1025
                     if (isset($image->src)) {
@@ -1031,9 +1031,9 @@  discard block
 block discarded – undo
1031 1031
 
1032 1032
                         $image_title = isset($image->title) ? $image->title : '';
1033 1033
 
1034
-                        $main_slides .= '<li><img src="' . geodir_plugin_url() . "/geodirectory-assets/images/spacer.gif" . '" alt="' . $image_title . '" title="' . $image_title . '" style="max-height:' . $spacer_height . 'px;margin:0 auto;" />';
1035
-                        $main_slides .= '<img src="' . $image->src . '" alt="' . $image_title . '" title="' . $image_title . '" style="max-height:400px;margin:0 auto;" /></li>';
1036
-                        $nav_slides .= '<li><img src="' . $image->src . '" alt="' . $image_title . '" title="' . $image_title . '" style="max-height:48px;margin:0 auto;" /></li>';
1034
+                        $main_slides .= '<li><img src="'.geodir_plugin_url()."/geodirectory-assets/images/spacer.gif".'" alt="'.$image_title.'" title="'.$image_title.'" style="max-height:'.$spacer_height.'px;margin:0 auto;" />';
1035
+                        $main_slides .= '<img src="'.$image->src.'" alt="'.$image_title.'" title="'.$image_title.'" style="max-height:400px;margin:0 auto;" /></li>';
1036
+                        $nav_slides .= '<li><img src="'.$image->src.'" alt="'.$image_title.'" title="'.$image_title.'" style="max-height:48px;margin:0 auto;" /></li>';
1037 1037
                         $slides++;
1038 1038
                     }
1039 1039
                 }
@@ -1052,10 +1052,10 @@  discard block
 block discarded – undo
1052 1052
                 } else {
1053 1053
                     $spacer_height = ((400 - $image->height) / 2);
1054 1054
                 }
1055
-                $caption = '';//(!empty($image->caption)) ? '<p class="flex-caption">'.$image->caption.'</p>' : '';
1056
-                $main_slides .= '<li><img src="' . geodir_plugin_url() . "/geodirectory-assets/images/spacer.gif" . '" alt="' . $image->title . '" title="' . $image->title . '" style="max-height:' . $spacer_height . 'px;margin:0 auto;" />';
1057
-                $main_slides .= '<img src="' . $image->src . '" alt="' . $image->title . '" title="' . $image->title . '" style="max-height:400px;margin:0 auto;" />'.$caption.'</li>';
1058
-                $nav_slides .= '<li><img src="' . $image->src . '" alt="' . $image->title . '" title="' . $image->title . '" style="max-height:48px;margin:0 auto;" /></li>';
1055
+                $caption = ''; //(!empty($image->caption)) ? '<p class="flex-caption">'.$image->caption.'</p>' : '';
1056
+                $main_slides .= '<li><img src="'.geodir_plugin_url()."/geodirectory-assets/images/spacer.gif".'" alt="'.$image->title.'" title="'.$image->title.'" style="max-height:'.$spacer_height.'px;margin:0 auto;" />';
1057
+                $main_slides .= '<img src="'.$image->src.'" alt="'.$image->title.'" title="'.$image->title.'" style="max-height:400px;margin:0 auto;" />'.$caption.'</li>';
1058
+                $nav_slides .= '<li><img src="'.$image->src.'" alt="'.$image->title.'" title="'.$image->title.'" style="max-height:48px;margin:0 auto;" /></li>';
1059 1059
                 $slides++;
1060 1060
             }
1061 1061
         }// endfore
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
  */
1091 1091
 function geodir_action_details_taxonomies()
1092 1092
 {
1093
-    global $preview, $post;?>
1093
+    global $preview, $post; ?>
1094 1094
     <p class="geodir_post_taxomomies clearfix">
1095 1095
     <?php
1096 1096
     $taxonomies = array();
@@ -1099,11 +1099,11 @@  discard block
 block discarded – undo
1099 1099
 
1100 1100
     if ($preview && !$is_backend_preview) {
1101 1101
         $post_type = $post->listing_type;
1102
-        $post_taxonomy = $post_type . 'category';
1102
+        $post_taxonomy = $post_type.'category';
1103 1103
         $post->{$post_taxonomy} = $post->post_category[$post_taxonomy];
1104 1104
     } else {
1105 1105
         $post_type = $post->post_type;
1106
-        $post_taxonomy = $post_type . 'category';
1106
+        $post_taxonomy = $post_type.'category';
1107 1107
     }
1108 1108
 //{	
1109 1109
     $post_type_info = get_post_type_object($post_type);
@@ -1111,7 +1111,7 @@  discard block
 block discarded – undo
1111 1111
 
1112 1112
     if (!empty($post->post_tags)) {
1113 1113
 
1114
-        if (taxonomy_exists($post_type . '_tags')):
1114
+        if (taxonomy_exists($post_type.'_tags')):
1115 1115
             $links = array();
1116 1116
             $terms = array();
1117 1117
             // to limit post tags
@@ -1137,8 +1137,8 @@  discard block
 block discarded – undo
1137 1137
                 $post_term = trim($post_term);
1138 1138
 
1139 1139
                 $priority_location = false;
1140
-                if ($insert_term = term_exists($post_term, $post_type . '_tags')) {
1141
-                    $term = get_term_by('name', $post_term, $post_type . '_tags');
1140
+                if ($insert_term = term_exists($post_term, $post_type.'_tags')) {
1141
+                    $term = get_term_by('name', $post_term, $post_type.'_tags');
1142 1142
                 } else {
1143 1143
                     $post_country = isset($_REQUEST['post_country']) && $_REQUEST['post_country'] != '' ? sanitize_text_field($_REQUEST['post_country']) : NULL;
1144 1144
                     $post_region = isset($_REQUEST['post_region']) && $_REQUEST['post_region'] != '' ? sanitize_text_field($_REQUEST['post_region']) : NULL;
@@ -1148,10 +1148,10 @@  discard block
 block discarded – undo
1148 1148
                     $match_city = $post_city && sanitize_title($post_term) == sanitize_title($post_city) ? true : false;
1149 1149
                     if ($match_country || $match_region || $match_city) {
1150 1150
                         $priority_location = true;
1151
-                        $term = get_term_by('name', $post_term, $post_type . '_tags');
1151
+                        $term = get_term_by('name', $post_term, $post_type.'_tags');
1152 1152
                     } else {
1153
-                        $insert_term = wp_insert_term($post_term, $post_type . '_tags');
1154
-                        $term = get_term_by('name', $post_term, $post_type . '_tags');
1153
+                        $insert_term = wp_insert_term($post_term, $post_type.'_tags');
1154
+                        $term = get_term_by('name', $post_term, $post_type.'_tags');
1155 1155
                     }
1156 1156
                 }
1157 1157
 
@@ -1168,12 +1168,12 @@  discard block
 block discarded – undo
1168 1168
                          * @param string $tag_link The tag link html.
1169 1169
                          * @param object $term The tag term object.
1170 1170
                          */
1171
-                        $tag_link = apply_filters('geodir_details_taxonomies_tag_link',$tag_link,$term);
1171
+                        $tag_link = apply_filters('geodir_details_taxonomies_tag_link', $tag_link, $term);
1172 1172
                         $links[] = $tag_link;
1173 1173
                     } else {
1174
-                        $tag_link = "<a href='" . esc_attr(get_term_link($term->term_id, $term->taxonomy)) . "'>$term->name</a>";
1174
+                        $tag_link = "<a href='".esc_attr(get_term_link($term->term_id, $term->taxonomy))."'>$term->name</a>";
1175 1175
                         /** This action is documented in geodirectory-template_actions.php */
1176
-                        $tag_link = apply_filters('geodir_details_taxonomies_tag_link',$tag_link,$term);
1176
+                        $tag_link = apply_filters('geodir_details_taxonomies_tag_link', $tag_link, $term);
1177 1177
                         $links[] = $tag_link;
1178 1178
                     }
1179 1179
                     $terms[] = $term;
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
             if (!isset($listing_label)) {
1184 1184
                 $listing_label = '';
1185 1185
             }
1186
-            $taxonomies[$post_type . '_tags'] = wp_sprintf(__('%s Tags: %l', 'geodirectory'), geodir_ucwords($listing_label), $links, (object)$terms);
1186
+            $taxonomies[$post_type.'_tags'] = wp_sprintf(__('%s Tags: %l', 'geodirectory'), geodir_ucwords($listing_label), $links, (object) $terms);
1187 1187
         endif;
1188 1188
 
1189 1189
     }
@@ -1211,7 +1211,7 @@  discard block
 block discarded – undo
1211 1211
                     $term = get_term_by('id', $post_term, $post_taxonomy);
1212 1212
 
1213 1213
                     if (is_object($term)) {
1214
-                        $term_link = "<a href='" . esc_attr(get_term_link($term, $post_taxonomy)) . "'>$term->name</a>";
1214
+                        $term_link = "<a href='".esc_attr(get_term_link($term, $post_taxonomy))."'>$term->name</a>";
1215 1215
                         /**
1216 1216
                          * Filter the category name on the details page.
1217 1217
                          *
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
                          * @param string $term_link The link html to the category.
1220 1220
                          * @param object $term The category term object.
1221 1221
                          */
1222
-                        $term_link = apply_filters('geodir_details_taxonomies_cat_link',$term_link,$term);
1222
+                        $term_link = apply_filters('geodir_details_taxonomies_cat_link', $term_link, $term);
1223 1223
                         $links[] = $term_link;
1224 1224
                         $terms[] = $term;
1225 1225
                     }
@@ -1237,7 +1237,7 @@  discard block
 block discarded – undo
1237 1237
         if (!isset($listing_label)) {
1238 1238
             $listing_label = '';
1239 1239
         }
1240
-        $taxonomies[$post_taxonomy] = wp_sprintf(__('%s Category: %l', 'geodirectory'), geodir_ucwords($listing_label), $links, (object)$terms);
1240
+        $taxonomies[$post_taxonomy] = wp_sprintf(__('%s Category: %l', 'geodirectory'), geodir_ucwords($listing_label), $links, (object) $terms);
1241 1241
 
1242 1242
     }
1243 1243
 
@@ -1250,14 +1250,14 @@  discard block
 block discarded – undo
1250 1250
      * @param string $listing_label The post type label.
1251 1251
      * @param string $listing_label The post type label with ucwords function.
1252 1252
      */
1253
-    $taxonomies = apply_filters('geodir_details_taxonomies_output',$taxonomies,$post_type,$listing_label,geodir_ucwords($listing_label));
1253
+    $taxonomies = apply_filters('geodir_details_taxonomies_output', $taxonomies, $post_type, $listing_label, geodir_ucwords($listing_label));
1254 1254
 
1255 1255
     if (isset($taxonomies[$post_taxonomy])) {
1256
-        echo '<span class="geodir-category">' . $taxonomies[$post_taxonomy] . '</span>';
1256
+        echo '<span class="geodir-category">'.$taxonomies[$post_taxonomy].'</span>';
1257 1257
     }
1258 1258
 
1259
-    if (isset($taxonomies[$post_type . '_tags']))
1260
-        echo '<span class="geodir-tags">' . $taxonomies[$post_type . '_tags'] . '</span>';
1259
+    if (isset($taxonomies[$post_type.'_tags']))
1260
+        echo '<span class="geodir-tags">'.$taxonomies[$post_type.'_tags'].'</span>';
1261 1261
 
1262 1262
     ?>
1263 1263
     </p><?php
@@ -1278,11 +1278,11 @@  discard block
 block discarded – undo
1278 1278
  * @param object $post Optional. The post object or blank.
1279 1279
  * @package GeoDirectory
1280 1280
  */
1281
-function geodir_action_details_micordata($post='')
1281
+function geodir_action_details_micordata($post = '')
1282 1282
 {
1283 1283
 
1284 1284
     global $preview;
1285
-    if(empty($post)){global $post;}
1285
+    if (empty($post)) {global $post; }
1286 1286
     if ($preview || !geodir_is_page('detail')) {
1287 1287
         return;
1288 1288
     }
@@ -1303,7 +1303,7 @@  discard block
 block discarded – undo
1303 1303
                 "description" => $review->comment_content,
1304 1304
                 "reviewRating" => array(
1305 1305
                     "@type" => "Rating",
1306
-                    "bestRating" => "5",// @todo this will need to be filtered for review manager if user changes the score.
1306
+                    "bestRating" => "5", // @todo this will need to be filtered for review manager if user changes the score.
1307 1307
                     "ratingValue" => geodir_get_commentoverall($review->comment_ID),
1308 1308
                     "worstRating" => "1"
1309 1309
                 )
@@ -1331,13 +1331,13 @@  discard block
 block discarded – undo
1331 1331
     }
1332 1332
     //print_r($post);
1333 1333
     // external links
1334
-    $external_links =  array();
1334
+    $external_links = array();
1335 1335
     $external_links[] = $post->geodir_website;
1336 1336
     $external_links[] = $post->geodir_twitter;
1337 1337
     $external_links[] = $post->geodir_facebook;
1338 1338
     $external_links = array_filter($external_links);
1339 1339
 
1340
-    if(!empty($external_links)){
1340
+    if (!empty($external_links)) {
1341 1341
         $external_links = array_values($external_links);
1342 1342
     }
1343 1343
 
@@ -1347,17 +1347,17 @@  discard block
 block discarded – undo
1347 1347
 
1348 1348
     // schema type
1349 1349
     $schema_type = 'LocalBusiness';
1350
-    if(isset($post->default_category) && $post->default_category){
1350
+    if (isset($post->default_category) && $post->default_category) {
1351 1351
         $cat_schema = get_tax_meta($post->default_category, 'ct_cat_schema', false, $post->post_type);
1352
-        if($cat_schema){$schema_type = $cat_schema;}
1353
-        if(!$schema_type && $post->post_type=='gd_event'){$schema_type = 'Event';}
1352
+        if ($cat_schema) {$schema_type = $cat_schema; }
1353
+        if (!$schema_type && $post->post_type == 'gd_event') {$schema_type = 'Event'; }
1354 1354
     }
1355 1355
 
1356 1356
     $schema = array();
1357 1357
     $schema['@context'] = "http://schema.org";
1358 1358
     $schema['@type'] = $schema_type;
1359 1359
     $schema['name'] = $post->post_name;
1360
-    $schema['description'] = wp_strip_all_tags( $post->post_content, true );
1360
+    $schema['description'] = wp_strip_all_tags($post->post_content, true);
1361 1361
     $schema['telephone'] = $post->geodir_contact;
1362 1362
     $schema['url'] = $c_url;
1363 1363
     $schema['sameAs'] = $external_links;
@@ -1371,7 +1371,7 @@  discard block
 block discarded – undo
1371 1371
         "postalCode" => $post->post_zip
1372 1372
     );
1373 1373
 
1374
-    if($post->post_latitude && $post->post_longitude) {
1374
+    if ($post->post_latitude && $post->post_longitude) {
1375 1375
         $schema['geo'] = array(
1376 1376
             "@type" => "GeoCoordinates",
1377 1377
             "latitude" => $post->post_latitude,
@@ -1379,7 +1379,7 @@  discard block
 block discarded – undo
1379 1379
         );
1380 1380
     }
1381 1381
 
1382
-    if($post_avgratings) {
1382
+    if ($post_avgratings) {
1383 1383
         $schema['aggregateRating'] = array(
1384 1384
             "@type" => "AggregateRating",
1385 1385
             "ratingValue" => $post_avgratings,
@@ -1398,10 +1398,10 @@  discard block
 block discarded – undo
1398 1398
      * @param array $schema The array of schema data to be filtered.
1399 1399
      * @param object $post The post object.
1400 1400
      */
1401
-    $schema = apply_filters('geodir_details_schema', $schema,$post);
1401
+    $schema = apply_filters('geodir_details_schema', $schema, $post);
1402 1402
 
1403 1403
 
1404
-    echo '<script type="application/ld+json">' . json_encode($schema) . '</script>';
1404
+    echo '<script type="application/ld+json">'.json_encode($schema).'</script>';
1405 1405
 
1406 1406
 }
1407 1407
 
@@ -1422,9 +1422,9 @@  discard block
 block discarded – undo
1422 1422
     ?>
1423 1423
     <div class="geodir-pos_navigation clearfix">
1424 1424
     <div
1425
-        class="geodir-post_left"><?php previous_post_link('%link', '' . __('Previous', 'geodirectory'), false) ?></div>
1425
+        class="geodir-post_left"><?php previous_post_link('%link', ''.__('Previous', 'geodirectory'), false) ?></div>
1426 1426
     <div
1427
-        class="geodir-post_right"><?php next_post_link('%link', __('Next', 'geodirectory') . '', false) ?></div>
1427
+        class="geodir-post_right"><?php next_post_link('%link', __('Next', 'geodirectory').'', false) ?></div>
1428 1428
     </div><?php
1429 1429
 }
1430 1430
 
@@ -1493,12 +1493,12 @@  discard block
 block discarded – undo
1493 1493
     $gd_post_type = geodir_get_current_posttype();
1494 1494
     $post_type_info = get_post_type_object($gd_post_type);
1495 1495
 
1496
-    $add_string_in_title = __('All', 'geodirectory') . ' ';
1496
+    $add_string_in_title = __('All', 'geodirectory').' ';
1497 1497
     if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite') {
1498
-        $add_string_in_title = __('My Favorite', 'geodirectory') . ' ';
1498
+        $add_string_in_title = __('My Favorite', 'geodirectory').' ';
1499 1499
     }
1500 1500
 
1501
-    $list_title = $add_string_in_title . __(ucfirst($post_type_info->labels->name), 'geodirectory');
1501
+    $list_title = $add_string_in_title.__(ucfirst($post_type_info->labels->name), 'geodirectory');
1502 1502
     $single_name = $post_type_info->labels->singular_name;
1503 1503
 
1504 1504
     $taxonomy = geodir_get_taxonomies($gd_post_type, true);
@@ -1526,12 +1526,12 @@  discard block
 block discarded – undo
1526 1526
         $current_term = get_term_by('slug', $term, $taxonomy[0]);
1527 1527
         if (!empty($current_term)) {
1528 1528
             $current_term_name = __(ucfirst($current_term->name), 'geodirectory');
1529
-            if ($current_term_name != '' && $location_name != '' && isset($current_term->taxonomy) && $current_term->taxonomy == $gd_post_type . 'category') {
1529
+            if ($current_term_name != '' && $location_name != '' && isset($current_term->taxonomy) && $current_term->taxonomy == $gd_post_type.'category') {
1530 1530
                 $location_last_char = substr($location_name, -1);
1531 1531
                 $location_name_attach = geodir_strtolower($location_last_char) == 's' ? __("'", 'geodirectory') : __("'s", 'geodirectory');
1532
-                $list_title .= __(' in', 'geodirectory') . ' ' . $location_name . $location_name_attach . ' ' . $current_term_name;
1532
+                $list_title .= __(' in', 'geodirectory').' '.$location_name.$location_name_attach.' '.$current_term_name;
1533 1533
             } else {
1534
-                $list_title .= __(' in', 'geodirectory') . " '" . $current_term_name . "'";
1534
+                $list_title .= __(' in', 'geodirectory')." '".$current_term_name."'";
1535 1535
             }
1536 1536
         } else {
1537 1537
             if (count($taxonomy) > 1) {
@@ -1539,12 +1539,12 @@  discard block
 block discarded – undo
1539 1539
 
1540 1540
                 if (!empty($current_term)) {
1541 1541
                     $current_term_name = __(ucfirst($current_term->name), 'geodirectory');
1542
-                    if ($current_term_name != '' && $location_name != '' && isset($current_term->taxonomy) && $current_term->taxonomy == $gd_post_type . 'category') {
1542
+                    if ($current_term_name != '' && $location_name != '' && isset($current_term->taxonomy) && $current_term->taxonomy == $gd_post_type.'category') {
1543 1543
                         $location_last_char = substr($location_name, -1);
1544 1544
                         $location_name_attach = geodir_strtolower($location_last_char) == 's' ? __("'", 'geodirectory') : __("'s", 'geodirectory');
1545
-                        $list_title .= __(' in', 'geodirectory') . ' ' . $location_name . $location_name_attach . ' ' . $current_term_name;
1545
+                        $list_title .= __(' in', 'geodirectory').' '.$location_name.$location_name_attach.' '.$current_term_name;
1546 1546
                     } else {
1547
-                        $list_title .= __(' in', 'geodirectory') . " '" . $current_term_name . "'";
1547
+                        $list_title .= __(' in', 'geodirectory')." '".$current_term_name."'";
1548 1548
                     }
1549 1549
                 }
1550 1550
             }
@@ -1572,7 +1572,7 @@  discard block
 block discarded – undo
1572 1572
                 $gd_city = __(geodir_ucwords($gd_city), 'geodirectory');
1573 1573
             }
1574 1574
 
1575
-            $list_title .= __(' in', 'geodirectory') . " '" . $gd_city . "'";
1575
+            $list_title .= __(' in', 'geodirectory')." '".$gd_city."'";
1576 1576
         } else if ($gd_region != '') {
1577 1577
             if ($gd_region_actual != '') {
1578 1578
                 $gd_region = $gd_region_actual;
@@ -1582,7 +1582,7 @@  discard block
 block discarded – undo
1582 1582
                 $gd_region = __(geodir_ucwords($gd_region), 'geodirectory');
1583 1583
             }
1584 1584
 
1585
-            $list_title .= __(' in', 'geodirectory') . " '" . $gd_region . "'";
1585
+            $list_title .= __(' in', 'geodirectory')." '".$gd_region."'";
1586 1586
         } else if ($gd_country != '') {
1587 1587
             if ($gd_country_actual != '') {
1588 1588
                 $gd_country = $gd_country_actual;
@@ -1592,12 +1592,12 @@  discard block
 block discarded – undo
1592 1592
                 $gd_country = __(geodir_ucwords($gd_country), 'geodirectory');
1593 1593
             }
1594 1594
 
1595
-            $list_title .= __(' in', 'geodirectory') . " '" . $gd_country . "'";
1595
+            $list_title .= __(' in', 'geodirectory')." '".$gd_country."'";
1596 1596
         }
1597 1597
     }
1598 1598
 
1599 1599
     if (is_search()) {
1600
-        $list_title = __('Search', 'geodirectory') . ' ' . __(ucfirst($post_type_info->labels->name), 'geodirectory') . __(' For :', 'geodirectory') . " '" . get_search_query() . "'";
1600
+        $list_title = __('Search', 'geodirectory').' '.__(ucfirst($post_type_info->labels->name), 'geodirectory').__(' For :', 'geodirectory')." '".get_search_query()."'";
1601 1601
     }
1602 1602
     /** This action is documented in geodirectory_template_actions.php */
1603 1603
     $class = apply_filters('geodir_page_title_class', 'entry-title fn');
@@ -1606,26 +1606,26 @@  discard block
 block discarded – undo
1606 1606
 
1607 1607
 
1608 1608
     $title = $list_title;
1609
-    if(geodir_is_page('pt')){
1609
+    if (geodir_is_page('pt')) {
1610 1610
         $gd_page = 'pt';
1611
-        $title  = (get_option('geodir_page_title_pt')) ? get_option('geodir_page_title_pt') : $title;
1611
+        $title = (get_option('geodir_page_title_pt')) ? get_option('geodir_page_title_pt') : $title;
1612 1612
     }
1613
-    elseif(geodir_is_page('listing')){
1613
+    elseif (geodir_is_page('listing')) {
1614 1614
         $gd_page = 'listing';
1615 1615
         global $wp_query;
1616 1616
         $current_term = $wp_query->get_queried_object();
1617
-        if (strpos($current_term->taxonomy,'_tags') !== false) {
1617
+        if (strpos($current_term->taxonomy, '_tags') !== false) {
1618 1618
             $title = (get_option('geodir_page_title_tag-listing')) ? get_option('geodir_page_title_tag-listing') : $title;
1619
-        }else{
1619
+        } else {
1620 1620
             $title = (get_option('geodir_page_title_cat-listing')) ? get_option('geodir_page_title_cat-listing') : $title;
1621 1621
         }
1622 1622
 
1623 1623
     }
1624
-    elseif(geodir_is_page('author')){
1624
+    elseif (geodir_is_page('author')) {
1625 1625
         $gd_page = 'author';
1626
-        if(isset($_REQUEST['list']) && $_REQUEST['list']=='favourite'){
1626
+        if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite') {
1627 1627
             $title = (get_option('geodir_page_title_favorite')) ? get_option('geodir_page_title_favorite') : $title;
1628
-        }else{
1628
+        } else {
1629 1629
             $title = (get_option('geodir_page_title_author')) ? get_option('geodir_page_title_author') : $title;
1630 1630
         }
1631 1631
 
@@ -1639,16 +1639,16 @@  discard block
 block discarded – undo
1639 1639
      * @param string $title The page title including variables.
1640 1640
      * @param string $gd_page The GeoDirectory page type if any.
1641 1641
      */
1642
-    $title =  apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page);
1642
+    $title = apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page);
1643 1643
 
1644
-    echo '<header class="' . $class_header . '"><h1 class="' . $class . '">' .
1644
+    echo '<header class="'.$class_header.'"><h1 class="'.$class.'">'.
1645 1645
         /**
1646 1646
          * Filter the listing page title.
1647 1647
          *
1648 1648
          * @since 1.0.0
1649 1649
          * @param string $list_title The title for the category page.
1650 1650
          */
1651
-        apply_filters('geodir_listing_page_title', $title) . '</h1></header>';
1651
+        apply_filters('geodir_listing_page_title', $title).'</h1></header>';
1652 1652
 }
1653 1653
 
1654 1654
 add_action('geodir_listings_page_description', 'geodir_action_listings_description', 10);
@@ -1667,7 +1667,7 @@  discard block
 block discarded – undo
1667 1667
     $gd_post_type = geodir_get_current_posttype();
1668 1668
     if (isset($current_term->term_id) && $current_term->term_id != '') {
1669 1669
 
1670
-        $term_desc = term_description($current_term->term_id, $gd_post_type . '_tags');
1670
+        $term_desc = term_description($current_term->term_id, $gd_post_type.'_tags');
1671 1671
         $saved_data = stripslashes(get_tax_meta($current_term->term_id, 'ct_cat_top_desc', false, $gd_post_type));
1672 1672
         if ($term_desc && !$saved_data) {
1673 1673
             $saved_data = $term_desc;
@@ -1684,7 +1684,7 @@  discard block
 block discarded – undo
1684 1684
         if ($cat_description) {
1685 1685
             ?>
1686 1686
 
1687
-            <div class="term_description"><?php echo $cat_description;?></div> <?php
1687
+            <div class="term_description"><?php echo $cat_description; ?></div> <?php
1688 1688
         }
1689 1689
 
1690 1690
     }
@@ -1734,13 +1734,13 @@  discard block
 block discarded – undo
1734 1734
 function geodir_action_sidebar_left_open($type = '', $id = '', $class = '', $itemtype = '')
1735 1735
 {
1736 1736
     if ($type == 'home-page' && $width = get_option('geodir_width_home_left_section')) {
1737
-        $width_css = 'style="width:' . $width . '%;"';
1737
+        $width_css = 'style="width:'.$width.'%;"';
1738 1738
     } elseif ($type == 'listings-page' && $width = get_option('geodir_width_listing_left_section')) {
1739
-        $width_css = 'style="width:' . $width . '%;"';
1739
+        $width_css = 'style="width:'.$width.'%;"';
1740 1740
     } elseif ($type == 'search-page' && $width = get_option('geodir_width_search_left_section')) {
1741
-        $width_css = 'style="width:' . $width . '%;"';
1741
+        $width_css = 'style="width:'.$width.'%;"';
1742 1742
     } elseif ($type == 'author-page' && $width = get_option('geodir_width_author_left_section')) {
1743
-        $width_css = 'style="width:' . $width . '%;"';
1743
+        $width_css = 'style="width:'.$width.'%;"';
1744 1744
     } else {
1745 1745
         $width_css = '';
1746 1746
     }
@@ -2045,11 +2045,11 @@  discard block
 block discarded – undo
2045 2045
 
2046 2046
     $title = apply_filters('geodir_add_listing_page_title_text', get_the_title());
2047 2047
 
2048
-    if(geodir_is_page('add-listing')){
2048
+    if (geodir_is_page('add-listing')) {
2049 2049
         $gd_page = 'add-listing';
2050
-        if(isset($_REQUEST['pid']) && $_REQUEST['pid'] != ''){
2050
+        if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
2051 2051
             $title = (get_option('geodir_page_title_edit-listing')) ? get_option('geodir_page_title_edit-listing') : $title;
2052
-        }elseif(isset($listing_type)){
2052
+        }elseif (isset($listing_type)) {
2053 2053
             $title = (get_option('geodir_page_title_add-listing')) ? get_option('geodir_page_title_add-listing') : $title;
2054 2054
         }
2055 2055
 
@@ -2063,9 +2063,9 @@  discard block
 block discarded – undo
2063 2063
      * @param string $title The page title including variables.
2064 2064
      * @param string $gd_page The GeoDirectory page type if any.
2065 2065
      */
2066
-    $title =  apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page);
2066
+    $title = apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page);
2067 2067
 
2068
-    echo '<header class="' . $class_header . '"><h1 class="' . $class . '">';
2068
+    echo '<header class="'.$class_header.'"><h1 class="'.$class.'">';
2069 2069
     echo $title;
2070 2070
     echo '</h1></header>';
2071 2071
 }
@@ -2079,7 +2079,7 @@  discard block
 block discarded – undo
2079 2079
  */
2080 2080
 function geodir_action_add_listing_page_mandatory()
2081 2081
 {?>
2082
-    <p class="geodir-note "><span class="geodir-required">*</span>&nbsp;<?php echo INDICATES_MANDATORY_FIELDS_TEXT;?></p>
2082
+    <p class="geodir-note "><span class="geodir-required">*</span>&nbsp;<?php echo INDICATES_MANDATORY_FIELDS_TEXT; ?></p>
2083 2083
 <?php
2084 2084
 }
2085 2085
 
@@ -2114,7 +2114,7 @@  discard block
 block discarded – undo
2114 2114
 
2115 2115
     if (isset($_REQUEST['backandedit'])) {
2116 2116
         global $post;
2117
-        $post = (object)$gd_session->get('listing');
2117
+        $post = (object) $gd_session->get('listing');
2118 2118
         $listing_type = $post->listing_type;
2119 2119
         $title = $post->post_title;
2120 2120
         $desc = $post->post_desc;
@@ -2129,7 +2129,7 @@  discard block
 block discarded – undo
2129 2129
         $thumb_img_arr = geodir_get_images($post->ID);
2130 2130
         if ($thumb_img_arr) {
2131 2131
             foreach ($thumb_img_arr as $post_img) {
2132
-                $curImages .= $post_img->src . ',';
2132
+                $curImages .= $post_img->src.',';
2133 2133
             }
2134 2134
         }
2135 2135
 
@@ -2137,7 +2137,7 @@  discard block
 block discarded – undo
2137 2137
         $title = $post->post_title;
2138 2138
         $desc = $post->post_content;
2139 2139
         $kw_tags = $post->post_tags;
2140
-        $kw_tags = implode(",", wp_get_object_terms($post->ID, $listing_type . '_tags', array('fields' => 'names')));
2140
+        $kw_tags = implode(",", wp_get_object_terms($post->ID, $listing_type.'_tags', array('fields' => 'names')));
2141 2141
     } else {
2142 2142
         $listing_type = sanitize_text_field($_REQUEST['listing_type']);
2143 2143
     }
@@ -2150,20 +2150,20 @@  discard block
 block discarded – undo
2150 2150
 
2151 2151
     print_r($post_type_info);
2152 2152
 
2153
-    $cpt_singular_name = (isset($post_type_info['labels']['singular_name']) && $post_type_info['labels']['singular_name']) ? $post_type_info['labels']['singular_name'] : __('Listing','geodirectory');
2153
+    $cpt_singular_name = (isset($post_type_info['labels']['singular_name']) && $post_type_info['labels']['singular_name']) ? $post_type_info['labels']['singular_name'] : __('Listing', 'geodirectory');
2154 2154
 
2155 2155
 
2156 2156
 
2157 2157
     ?>
2158
-    <form name="propertyform" id="propertyform" action="<?php echo get_page_link(geodir_preview_page_id());?>" method="post" enctype="multipart/form-data">
2159
-        <input type="hidden" name="preview" value="<?php echo sanitize_text_field($listing_type);?>"/>
2160
-        <input type="hidden" name="listing_type" value="<?php echo sanitize_text_field($listing_type);?>"/>
2158
+    <form name="propertyform" id="propertyform" action="<?php echo get_page_link(geodir_preview_page_id()); ?>" method="post" enctype="multipart/form-data">
2159
+        <input type="hidden" name="preview" value="<?php echo sanitize_text_field($listing_type); ?>"/>
2160
+        <input type="hidden" name="listing_type" value="<?php echo sanitize_text_field($listing_type); ?>"/>
2161 2161
         <?php if ($page_id) { ?>
2162
-        <input type="hidden" name="add_listing_page_id" value="<?php echo $page_id;?>"/>
2162
+        <input type="hidden" name="add_listing_page_id" value="<?php echo $page_id; ?>"/>
2163 2163
         <?php } if (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') { ?>
2164
-            <input type="hidden" name="pid" value="<?php echo sanitize_text_field($_REQUEST['pid']);?>"/>
2164
+            <input type="hidden" name="pid" value="<?php echo sanitize_text_field($_REQUEST['pid']); ?>"/>
2165 2165
         <?php } if (isset($_REQUEST['backandedit'])) { ?>
2166
-            <input type="hidden" name="backandedit" value="<?php echo sanitize_text_field($_REQUEST['backandedit']);?>"/>
2166
+            <input type="hidden" name="backandedit" value="<?php echo sanitize_text_field($_REQUEST['backandedit']); ?>"/>
2167 2167
         <?php
2168 2168
         } 
2169 2169
         /**
@@ -2175,7 +2175,7 @@  discard block
 block discarded – undo
2175 2175
          */
2176 2176
         do_action('geodir_before_detail_fields');
2177 2177
         ?>
2178
-        <h5 id="geodir_fieldset_details" class="geodir-fieldset-row" gd-fieldset="details"><?php echo LISTING_DETAILS_TEXT;?></h5>
2178
+        <h5 id="geodir_fieldset_details" class="geodir-fieldset-row" gd-fieldset="details"><?php echo LISTING_DETAILS_TEXT; ?></h5>
2179 2179
         <?php
2180 2180
         /**
2181 2181
          * Called at the top of the add listing page form for frontend.
@@ -2187,10 +2187,10 @@  discard block
 block discarded – undo
2187 2187
         do_action('geodir_before_main_form_fields');
2188 2188
         ?>
2189 2189
         <div id="geodir_post_title_row" class="required_field geodir_form_row clearfix gd-fieldset-details">
2190
-            <label><?php echo sprintf( __('%s Title', 'geodirectory'), $cpt_singular_name ); ?><span>*</span> </label>
2190
+            <label><?php echo sprintf(__('%s Title', 'geodirectory'), $cpt_singular_name); ?><span>*</span> </label>
2191 2191
             <input type="text" field_type="text" name="post_title" id="post_title" class="geodir_textfield"
2192 2192
                    value="<?php echo esc_attr(stripslashes($title)); ?>"/>
2193
-            <span class="geodir_message_error"><?php _e($required_msg, 'geodirectory');?></span>
2193
+            <span class="geodir_message_error"><?php _e($required_msg, 'geodirectory'); ?></span>
2194 2194
         </div>
2195 2195
         <?php
2196 2196
         $show_editor = get_option('geodir_tiny_editor_on_add_listing');
@@ -2225,7 +2225,7 @@  discard block
 block discarded – undo
2225 2225
         $desc_limit_msg = apply_filters('geodir_description_field_desc_limit_msg', $desc_limit_msg, $desc_limit);
2226 2226
         
2227 2227
         $desc_class = '';
2228
-        if ($desc_limit === '' || (int)$desc_limit > 0) {
2228
+        if ($desc_limit === '' || (int) $desc_limit > 0) {
2229 2229
             /**
2230 2230
              * Called on the add listing page form for frontend just before the description field.
2231 2231
              *
@@ -2238,8 +2238,8 @@  discard block
 block discarded – undo
2238 2238
             $desc_class = ' hidden';
2239 2239
         }
2240 2240
         ?>
2241
-        <div id="geodir_post_desc_row" class="geodir_form_row clearfix gd-fieldset-details<?php echo $desc_class;?>">
2242
-            <label><?php echo sprintf( __('%s Description', 'geodirectory'), $cpt_singular_name ); ?><span><?php if ($desc_limit != '0') { echo '*'; } ?></span> </label>
2241
+        <div id="geodir_post_desc_row" class="geodir_form_row clearfix gd-fieldset-details<?php echo $desc_class; ?>">
2242
+            <label><?php echo sprintf(__('%s Description', 'geodirectory'), $cpt_singular_name); ?><span><?php if ($desc_limit != '0') { echo '*'; } ?></span> </label>
2243 2243
             <?php
2244 2244
             if (!empty($show_editor) && in_array($listing_type, $show_editor)) {
2245 2245
                 $editor_settings = array('media_buttons' => false, 'textarea_rows' => 10);
@@ -2248,16 +2248,16 @@  discard block
 block discarded – undo
2248 2248
                     <?php wp_editor($desc, "post_desc", $editor_settings); ?>
2249 2249
                 </div>
2250 2250
             <?php if ($desc_limit != '') { ?>
2251
-                <script type="text/javascript">jQuery('textarea#post_desc').attr('maxlength', "<?php echo $desc_limit;?>");</script>
2251
+                <script type="text/javascript">jQuery('textarea#post_desc').attr('maxlength', "<?php echo $desc_limit; ?>");</script>
2252 2252
             <?php } } else { ?>
2253 2253
                 <textarea field_type="textarea" name="post_desc" id="post_desc" class="geodir_textarea" maxlength="<?php echo $desc_limit; ?>"><?php echo $desc; ?></textarea>
2254 2254
             <?php } if ($desc_limit_msg != '') { ?>
2255 2255
                 <span class="geodir_message_note"><?php echo $desc_limit_msg; ?></span>
2256 2256
             <?php } ?>
2257
-            <span class="geodir_message_error"><?php echo _e($required_msg, 'geodirectory');?></span>
2257
+            <span class="geodir_message_error"><?php echo _e($required_msg, 'geodirectory'); ?></span>
2258 2258
         </div>
2259 2259
         <?php
2260
-        if ($desc_limit === '' || (int)$desc_limit > 0) {
2260
+        if ($desc_limit === '' || (int) $desc_limit > 0) {
2261 2261
             /**
2262 2262
              * Called on the add listing page form for frontend just after the description field.
2263 2263
              *
@@ -2296,7 +2296,7 @@  discard block
 block discarded – undo
2296 2296
         $kw_tags_msg = apply_filters('geodir_listing_tags_field_tags_msg', $kw_tags_msg, $kw_tags_count);
2297 2297
         
2298 2298
         $tags_class = '';
2299
-        if ($kw_tags_count === '' || (int)$kw_tags_count > 0) {
2299
+        if ($kw_tags_count === '' || (int) $kw_tags_count > 0) {
2300 2300
             /**
2301 2301
              * Called on the add listing page form for frontend just before the tags field.
2302 2302
              *
@@ -2307,14 +2307,14 @@  discard block
 block discarded – undo
2307 2307
             $tags_class = ' hidden';
2308 2308
         }
2309 2309
         ?>
2310
-        <div id="geodir_post_tags_row" class="geodir_form_row clearfix gd-fieldset-details<?php echo $tags_class;?>">
2310
+        <div id="geodir_post_tags_row" class="geodir_form_row clearfix gd-fieldset-details<?php echo $tags_class; ?>">
2311 2311
             <label><?php echo TAGKW_TEXT; ?></label>
2312 2312
             <input name="post_tags" id="post_tags" value="<?php echo $kw_tags; ?>" type="text" class="geodir_textfield"
2313
-                   maxlength="<?php echo $kw_tags_count;?>"/>
2314
-            <span class="geodir_message_note"><?php echo $kw_tags_msg;?></span>
2313
+                   maxlength="<?php echo $kw_tags_count; ?>"/>
2314
+            <span class="geodir_message_note"><?php echo $kw_tags_msg; ?></span>
2315 2315
         </div>
2316 2316
         <?php
2317
-        if ($kw_tags_count === '' || (int)$kw_tags_count > 0) {
2317
+        if ($kw_tags_count === '' || (int) $kw_tags_count > 0) {
2318 2318
             /**
2319 2319
              * Called on the add listing page form for frontend just after the tags field.
2320 2320
              *
@@ -2340,7 +2340,7 @@  discard block
 block discarded – undo
2340 2340
         $thumb_img_arr = array();
2341 2341
         $totImg = 0;
2342 2342
         if (isset($_REQUEST['backandedit']) && empty($_REQUEST['pid'])) {
2343
-            $post = (object)$gd_session->get('listing');
2343
+            $post = (object) $gd_session->get('listing');
2344 2344
             if (isset($post->post_images))
2345 2345
                 $curImages = trim($post->post_images, ",");
2346 2346
 
@@ -2353,7 +2353,7 @@  discard block
 block discarded – undo
2353 2353
             $listing_type = $post->listing_type;
2354 2354
 
2355 2355
         } elseif (isset($_REQUEST['pid']) && $_REQUEST['pid'] != '') {
2356
-            $post = geodir_get_post_info((int)$_REQUEST['pid']);
2356
+            $post = geodir_get_post_info((int) $_REQUEST['pid']);
2357 2357
             $listing_type = $post->post_type;
2358 2358
             $thumb_img_arr = geodir_get_images($_REQUEST['pid']);
2359 2359
 
@@ -2367,7 +2367,7 @@  discard block
 block discarded – undo
2367 2367
                 //$curImages = $img->src.",";
2368 2368
             }
2369 2369
 
2370
-            $totImg = count((array)$thumb_img_arr);
2370
+            $totImg = count((array) $thumb_img_arr);
2371 2371
         }
2372 2372
 
2373 2373
         if ($curImages != '')
@@ -2388,15 +2388,15 @@  discard block
 block discarded – undo
2388 2388
         if ($show_image_input_box) {
2389 2389
             ?>
2390 2390
 
2391
-            <h5 id="geodir_form_title_row" class="geodir-form_title"> <?php echo PRO_PHOTO_TEXT;?>
2391
+            <h5 id="geodir_form_title_row" class="geodir-form_title"> <?php echo PRO_PHOTO_TEXT; ?>
2392 2392
                 <?php if ($image_limit == 1) {
2393
-                    echo '<br /><small>(' . __('You can upload', 'geodirectory') . ' ' . $image_limit . ' ' . __('image with this package', 'geodirectory') . ')</small>';
2393
+                    echo '<br /><small>('.__('You can upload', 'geodirectory').' '.$image_limit.' '.__('image with this package', 'geodirectory').')</small>';
2394 2394
                 } ?>
2395 2395
                 <?php if ($image_limit > 1) {
2396
-                    echo '<br /><small>(' . __('You can upload', 'geodirectory') . ' ' . $image_limit . ' ' . __('images with this package', 'geodirectory') . ')</small>';
2396
+                    echo '<br /><small>('.__('You can upload', 'geodirectory').' '.$image_limit.' '.__('images with this package', 'geodirectory').')</small>';
2397 2397
                 } ?>
2398 2398
                 <?php if ($image_limit == '') {
2399
-                    echo '<br /><small>(' . __('You can upload unlimited images with this package', 'geodirectory') . ')</small>';
2399
+                    echo '<br /><small>('.__('You can upload unlimited images with this package', 'geodirectory').')</small>';
2400 2400
                 } ?>
2401 2401
             </h5>
2402 2402
 
@@ -2411,11 +2411,11 @@  discard block
 block discarded – undo
2411 2411
                 <div
2412 2412
                     class="plupload-upload-uic hide-if-no-js <?php if ($multiple): ?>plupload-upload-uic-multiple<?php endif; ?>"
2413 2413
                     id="<?php echo $id; ?>plupload-upload-ui">
2414
-                    <h4><?php _e('Drop files to upload', 'geodirectory');?></h4><br/>
2414
+                    <h4><?php _e('Drop files to upload', 'geodirectory'); ?></h4><br/>
2415 2415
                     <input id="<?php echo $id; ?>plupload-browse-button" type="button"
2416 2416
                            value="<?php esc_attr_e('Select Files', 'geodirectory'); ?>" class="geodir_button"/>
2417 2417
                     <span class="ajaxnonceplu"
2418
-                          id="ajaxnonceplu<?php echo wp_create_nonce($id . 'pluploadan'); ?>"></span>
2418
+                          id="ajaxnonceplu<?php echo wp_create_nonce($id.'pluploadan'); ?>"></span>
2419 2419
                     <?php if ($width && $height): ?>
2420 2420
                         <span class="plupload-resize"></span>
2421 2421
                         <span class="plupload-width" id="plupload-width<?php echo $width; ?>"></span>
@@ -2428,7 +2428,7 @@  discard block
 block discarded – undo
2428 2428
                      id="<?php echo $id; ?>plupload-thumbs" style="border-top:1px solid #ccc; padding-top:10px;">
2429 2429
                 </div>
2430 2430
                 <span
2431
-                    id="upload-msg"><?php _e('Please drag &amp; drop the images to rearrange the order', 'geodirectory');?></span>
2431
+                    id="upload-msg"><?php _e('Please drag &amp; drop the images to rearrange the order', 'geodirectory'); ?></span>
2432 2432
                 <span id="<?php echo $id; ?>upload-error" style="display:none"></span>
2433 2433
             </div>
2434 2434
 
@@ -2440,7 +2440,7 @@  discard block
 block discarded – undo
2440 2440
          *
2441 2441
          * @since 1.0.0
2442 2442
          */
2443
-        do_action('geodir_after_main_form_fields');?>
2443
+        do_action('geodir_after_main_form_fields'); ?>
2444 2444
 
2445 2445
 
2446 2446
         <!-- add captcha code -->
@@ -2451,7 +2451,7 @@  discard block
 block discarded – undo
2451 2451
         </script>
2452 2452
         <noscript>
2453 2453
             <div>
2454
-                <label><?php _e('Type 64 into this box', 'geodirectory');?></label>
2454
+                <label><?php _e('Type 64 into this box', 'geodirectory'); ?></label>
2455 2455
                 <input type="text" id="geodir_spamblocker_top_form" name="geodir_spamblocker" value="" maxlength="10"/>
2456 2456
             </div>
2457 2457
         </noscript>
@@ -2461,10 +2461,10 @@  discard block
 block discarded – undo
2461 2461
         <!-- end captcha code -->
2462 2462
 
2463 2463
         <div id="geodir-add-listing-submit" class="geodir_form_row clear_both" style="padding:2px;text-align:center;">
2464
-            <input type="submit" value="<?php echo PRO_PREVIEW_BUTTON;?>"
2465
-                   class="geodir_button" <?php echo $submit_button;?>/>
2464
+            <input type="submit" value="<?php echo PRO_PREVIEW_BUTTON; ?>"
2465
+                   class="geodir_button" <?php echo $submit_button; ?>/>
2466 2466
             <span class="geodir_message_note"
2467
-                  style="padding-left:0px;"> <?php _e('Note: You will be able to see a preview in the next page', 'geodirectory');?></span>
2467
+                  style="padding-left:0px;"> <?php _e('Note: You will be able to see a preview in the next page', 'geodirectory'); ?></span>
2468 2468
         </div>
2469 2469
 
2470 2470
     </form>
@@ -2526,7 +2526,7 @@  discard block
 block discarded – undo
2526 2526
         class="<?php
2527 2527
         /** This action is documented in geodirectory_template_actions.php */
2528 2528
         echo apply_filters('geodir_full_page_class', 'geodir_full_page clearfix', 'Reg/Login Top Section'); ?>">
2529
-        <?php dynamic_sidebar('Reg/Login Top Section');?>
2529
+        <?php dynamic_sidebar('Reg/Login Top Section'); ?>
2530 2530
     </div><!-- clearfix ends here-->
2531 2531
 <?php
2532 2532
 }
@@ -2548,7 +2548,7 @@  discard block
 block discarded – undo
2548 2548
 
2549 2549
     ?>
2550 2550
     <script type="text/javascript">
2551
-        <?php if ( $user_login ) { ?>
2551
+        <?php if ($user_login) { ?>
2552 2552
         setTimeout(function () {
2553 2553
             try {
2554 2554
                 d = document.getElementById('user_pass');
@@ -2565,7 +2565,7 @@  discard block
 block discarded – undo
2565 2565
         <?php } ?>
2566 2566
     </script>
2567 2567
     <script type="text/javascript">
2568
-        <?php if ( $user_login ) { ?>
2568
+        <?php if ($user_login) { ?>
2569 2569
         setTimeout(function () {
2570 2570
             try {
2571 2571
                 d = document.getElementById('user_pass');
@@ -2590,7 +2590,7 @@  discard block
 block discarded – undo
2590 2590
         foreach ($errors as $errorsObj) {
2591 2591
             foreach ($errorsObj as $key => $val) {
2592 2592
                 for ($i = 0; $i < count($val); $i++) {
2593
-                    echo "<div class=sucess_msg>" . $val[$i] . '</div>';
2593
+                    echo "<div class=sucess_msg>".$val[$i].'</div>';
2594 2594
                     $registration_error_msg = 1;
2595 2595
                 }
2596 2596
             }
@@ -2607,7 +2607,7 @@  discard block
 block discarded – undo
2607 2607
              *
2608 2608
              * @since 1.0.0
2609 2609
              */
2610
-            include(geodir_plugin_path() . "/geodirectory-templates/login_frm.php"); ?>
2610
+            include(geodir_plugin_path()."/geodirectory-templates/login_frm.php"); ?>
2611 2611
         </div>
2612 2612
 
2613 2613
     <?php } elseif (isset($_REQUEST['page']) && $_REQUEST['page'] == 'login' && isset($_REQUEST['page1']) && $_REQUEST['page1'] == 'sign_up') { ?>
@@ -2619,7 +2619,7 @@  discard block
 block discarded – undo
2619 2619
              *
2620 2620
              * @since 1.0.0
2621 2621
              */
2622
-            include(geodir_plugin_path() . "/geodirectory-templates/reg_frm.php"); ?>
2622
+            include(geodir_plugin_path()."/geodirectory-templates/reg_frm.php"); ?>
2623 2623
         </div>
2624 2624
 
2625 2625
     <?php } else { ?>
@@ -2631,7 +2631,7 @@  discard block
 block discarded – undo
2631 2631
              *
2632 2632
              * @since 1.0.0
2633 2633
              */
2634
-            include(geodir_plugin_path() . "/geodirectory-templates/login_frm.php"); ?>
2634
+            include(geodir_plugin_path()."/geodirectory-templates/login_frm.php"); ?>
2635 2635
         </div>
2636 2636
         <div class="registration_form_r">
2637 2637
             <?php
@@ -2640,7 +2640,7 @@  discard block
 block discarded – undo
2640 2640
              *
2641 2641
              * @since 1.0.0
2642 2642
              */
2643
-            include(geodir_plugin_path() . "/geodirectory-templates/reg_frm.php"); ?>
2643
+            include(geodir_plugin_path()."/geodirectory-templates/reg_frm.php"); ?>
2644 2644
         </div>
2645 2645
 
2646 2646
     <?php }?>
@@ -2676,12 +2676,12 @@  discard block
 block discarded – undo
2676 2676
     $gd_post_type = geodir_get_current_posttype();
2677 2677
     $post_type_info = get_post_type_object($gd_post_type);
2678 2678
 
2679
-    $add_string_in_title = __('All', 'geodirectory') . ' ';
2679
+    $add_string_in_title = __('All', 'geodirectory').' ';
2680 2680
     if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite') {
2681
-        $add_string_in_title = __('My Favorite', 'geodirectory') . ' ';
2681
+        $add_string_in_title = __('My Favorite', 'geodirectory').' ';
2682 2682
     }
2683 2683
 
2684
-    $list_title = $add_string_in_title . $post_type_info->labels->name;
2684
+    $list_title = $add_string_in_title.$post_type_info->labels->name;
2685 2685
     $single_name = $post_type_info->labels->singular_name;
2686 2686
 
2687 2687
     $taxonomy = geodir_get_taxonomies($gd_post_type);
@@ -2689,12 +2689,12 @@  discard block
 block discarded – undo
2689 2689
     if (!empty($term)) {
2690 2690
         $current_term = get_term_by('slug', $term, $taxonomy[0]);
2691 2691
         if (!empty($current_term))
2692
-            $list_title .= __(' in', 'geodirectory') . " '" . geodir_ucwords($current_term->name) . "'";
2692
+            $list_title .= __(' in', 'geodirectory')." '".geodir_ucwords($current_term->name)."'";
2693 2693
     }
2694 2694
 
2695 2695
 
2696 2696
     if (is_search()) {
2697
-        $list_title = __('Search', 'geodirectory') . ' ' . __($post_type_info->labels->name, 'geodirectory') . __(' For :', 'geodirectory') . " '" . get_search_query() . "'";
2697
+        $list_title = __('Search', 'geodirectory').' '.__($post_type_info->labels->name, 'geodirectory').__(' For :', 'geodirectory')." '".get_search_query()."'";
2698 2698
 
2699 2699
     }
2700 2700
     /** This action is documented in geodirectory_template_actions.php */
@@ -2703,11 +2703,11 @@  discard block
 block discarded – undo
2703 2703
     $class_header = apply_filters('geodir_page_title_header_class', 'entry-header');
2704 2704
 
2705 2705
     $title = $list_title;
2706
-    if(geodir_is_page('author')){
2706
+    if (geodir_is_page('author')) {
2707 2707
         $gd_page = 'author';
2708
-        if(isset($_REQUEST['list']) && $_REQUEST['list']=='favourite'){
2708
+        if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite') {
2709 2709
             $title = (get_option('geodir_page_title_favorite')) ? get_option('geodir_page_title_favorite') : $title;
2710
-        }else{
2710
+        } else {
2711 2711
             $title = (get_option('geodir_page_title_author')) ? get_option('geodir_page_title_author') : $title;
2712 2712
         }
2713 2713
 
@@ -2721,16 +2721,16 @@  discard block
 block discarded – undo
2721 2721
      * @param string $title The page title including variables.
2722 2722
      * @param string $gd_page The GeoDirectory page type if any.
2723 2723
      */
2724
-    $title =  apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page);
2724
+    $title = apply_filters('geodir_seo_page_title', __($title, 'geodirectory'), $gd_page);
2725 2725
 
2726
-    echo '<header class="' . $class_header . '"><h1 class="' . $class . '">' .
2726
+    echo '<header class="'.$class_header.'"><h1 class="'.$class.'">'.
2727 2727
         /**
2728 2728
          * Filter the author page title text.
2729 2729
          *
2730 2730
          * @since 1.0.0
2731 2731
          * @param string $list_title The title for the page.
2732 2732
          */
2733
-        apply_filters('geodir_author_page_title_text', $title) . '</h1></header>';
2733
+        apply_filters('geodir_author_page_title_text', $title).'</h1></header>';
2734 2734
 }
2735 2735
 
2736 2736
 
@@ -2935,19 +2935,19 @@  discard block
 block discarded – undo
2935 2935
     $post_type_info = get_post_type_object($gd_post_type);
2936 2936
 
2937 2937
     $pt_name = '';
2938
-    if(isset($post_type_info->labels->name)){$pt_name=$post_type_info->labels->name;}
2938
+    if (isset($post_type_info->labels->name)) {$pt_name = $post_type_info->labels->name; }
2939 2939
 
2940 2940
     if (is_search()) {
2941
-        $list_title = __('Search', 'geodirectory') . ' ' . __($pt_name, 'geodirectory') . __(' For :', 'geodirectory') . " '" . get_search_query() . "'";
2941
+        $list_title = __('Search', 'geodirectory').' '.__($pt_name, 'geodirectory').__(' For :', 'geodirectory')." '".get_search_query()."'";
2942 2942
 
2943 2943
     }
2944 2944
     /** This action is documented in geodirectory_template_actions.php */
2945 2945
     $class = apply_filters('geodir_page_title_class', 'entry-title fn');
2946 2946
     /** This action is documented in geodirectory_template_actions.php */
2947 2947
     $class_header = apply_filters('geodir_page_title_header_class', 'entry-header');
2948
-    echo '<header class="' . $class_header . '"><h1 class="' . $class . '">' .
2948
+    echo '<header class="'.$class_header.'"><h1 class="'.$class.'">'.
2949 2949
         /** This action is documented in geodirectory_template_actions.php */
2950
-        apply_filters('geodir_listing_page_title', wptexturize($list_title)) . '</h1></header>';
2950
+        apply_filters('geodir_listing_page_title', wptexturize($list_title)).'</h1></header>';
2951 2951
 }
2952 2952
 
2953 2953
 // action for adding the listings page top widget area
@@ -3351,7 +3351,7 @@  discard block
 block discarded – undo
3351 3351
         $gd_post_type = geodir_get_current_posttype();
3352 3352
         $post_type_info = get_post_type_object($gd_post_type);
3353 3353
 
3354
-        $list_title = __('Search', 'geodirectory') . ' ' . __(ucfirst($post_type_info->labels->name), 'geodirectory') . __(' :', 'geodirectory');
3354
+        $list_title = __('Search', 'geodirectory').' '.__(ucfirst($post_type_info->labels->name), 'geodirectory').__(' :', 'geodirectory');
3355 3355
     }
3356 3356
     return $list_title;
3357 3357
 }
@@ -3367,7 +3367,7 @@  discard block
 block discarded – undo
3367 3367
  * @param string $position Position to add the post content. 'before' or 'after'. Default 'before'.
3368 3368
  * @param string $gd_page The geodirectory page type. Default null.
3369 3369
  */
3370
-function geodir_add_page_content( $position = 'before', $gd_page = '' ) {
3370
+function geodir_add_page_content($position = 'before', $gd_page = '') {
3371 3371
     global $post;
3372 3372
         
3373 3373
     $gd_page_id = NULL;
Please login to merge, or discard this patch.