@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for add listings page |
|
4 | - * |
|
5 | - * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | - * |
|
7 | - * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | - * @since 1.0.0 |
|
9 | - * @package GeoDirectory |
|
10 | - */ |
|
3 | + * Template for add listings page |
|
4 | + * |
|
5 | + * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | + * |
|
7 | + * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | + * @since 1.0.0 |
|
9 | + * @package GeoDirectory |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | global $gd_session; |
13 | 13 | |
14 | 14 | if (!isset($_REQUEST['backandedit'])) { |
15 | - $gd_session->un_set('listing'); |
|
15 | + $gd_session->un_set('listing'); |
|
16 | 16 | } |
17 | 17 | // call header |
18 | 18 | get_header(); |
@@ -12,24 +12,24 @@ |
||
12 | 12 | <div class="clearfix"> |
13 | 13 | <div id="geodir_content"> |
14 | 14 | <?php |
15 | - global $information; |
|
16 | - echo '<h5 class="geodir_information">'; |
|
17 | - echo $information; |
|
18 | - echo '</h5>'; |
|
15 | + global $information; |
|
16 | + echo '<h5 class="geodir_information">'; |
|
17 | + echo $information; |
|
18 | + echo '</h5>'; |
|
19 | 19 | |
20 | - ?> |
|
20 | + ?> |
|
21 | 21 | </div> |
22 | 22 | <!-- geodir_content ends here--> |
23 | 23 | <div id="gd-sidebar-wrapper"> |
24 | 24 | <div class="geodir-sidebar-main"> |
25 | 25 | <div class="geodir-gd-sidebar"> |
26 | 26 | <?php |
27 | - /** |
|
28 | - * Calls the standard sidebar. |
|
29 | - * |
|
30 | - * @since 1.0.0 |
|
31 | - */ |
|
32 | - do_action('geodir_sidebar'); ?> |
|
27 | + /** |
|
28 | + * Calls the standard sidebar. |
|
29 | + * |
|
30 | + * @since 1.0.0 |
|
31 | + */ |
|
32 | + do_action('geodir_sidebar'); ?> |
|
33 | 33 | </div> |
34 | 34 | </div> |
35 | 35 | </div> |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for the listings (category) page |
|
4 | - * |
|
5 | - * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | - * |
|
7 | - * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | - * @since 1.0.0 |
|
9 | - * @package GeoDirectory |
|
10 | - */ |
|
3 | + * Template for the listings (category) page |
|
4 | + * |
|
5 | + * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | + * |
|
7 | + * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | + * @since 1.0.0 |
|
9 | + * @package GeoDirectory |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | // call header |
13 | 13 | get_header(); |
@@ -13,8 +13,8 @@ |
||
13 | 13 | * If user is not signed in, redirect home. |
14 | 14 | */ |
15 | 15 | if (get_current_user_id()) { |
16 | - wp_redirect(home_url(), 302); |
|
17 | - exit; |
|
16 | + wp_redirect(home_url(), 302); |
|
17 | + exit; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | // call header |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | |
34 | 34 | ###### SIDEBAR ON LEFT ###### |
35 | 35 | if (get_option('geodir_detail_sidebar_left_section')) { |
36 | - /** |
|
37 | - * Adds the details page sidebar to the details template page. |
|
38 | - * |
|
39 | - * @since 1.1.0 |
|
40 | - */ |
|
41 | - do_action('geodir_detail_sidebar'); |
|
36 | + /** |
|
37 | + * Adds the details page sidebar to the details template page. |
|
38 | + * |
|
39 | + * @since 1.1.0 |
|
40 | + */ |
|
41 | + do_action('geodir_detail_sidebar'); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | ###### MAIN CONTENT WRAPPERS OPEN ###### |
@@ -63,26 +63,26 @@ discard block |
||
63 | 63 | ###### MAIN CONTENT ###### |
64 | 64 | // this call the main page content |
65 | 65 | if (have_posts() && !$preview) { |
66 | - the_post(); |
|
67 | - global $post, $post_images; |
|
68 | - /** |
|
69 | - * Calls the details page main content on the details template page. |
|
70 | - * |
|
71 | - * @since 1.1.0 |
|
72 | - * @param object $post The current post object. |
|
73 | - */ |
|
74 | - do_action('geodir_details_main_content', $post); |
|
66 | + the_post(); |
|
67 | + global $post, $post_images; |
|
68 | + /** |
|
69 | + * Calls the details page main content on the details template page. |
|
70 | + * |
|
71 | + * @since 1.1.0 |
|
72 | + * @param object $post The current post object. |
|
73 | + */ |
|
74 | + do_action('geodir_details_main_content', $post); |
|
75 | 75 | } elseif ($preview) { |
76 | - /** |
|
77 | - * Called on the details page if the page is being previewed. |
|
78 | - * |
|
79 | - * This sets the value of `$post` to the preview values before the main content is called. |
|
80 | - * |
|
81 | - * @since 1.1.0 |
|
82 | - */ |
|
83 | - do_action('geodir_action_geodir_set_preview_post'); // set the $post to the preview values |
|
84 | - /** This action is documented in geodirectory-templates/listing-detail.php */ |
|
85 | - do_action('geodir_details_main_content', $post); |
|
76 | + /** |
|
77 | + * Called on the details page if the page is being previewed. |
|
78 | + * |
|
79 | + * This sets the value of `$post` to the preview values before the main content is called. |
|
80 | + * |
|
81 | + * @since 1.1.0 |
|
82 | + */ |
|
83 | + do_action('geodir_action_geodir_set_preview_post'); // set the $post to the preview values |
|
84 | + /** This action is documented in geodirectory-templates/listing-detail.php */ |
|
85 | + do_action('geodir_details_main_content', $post); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | |
@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | |
105 | 105 | ###### SIDEBAR ON RIGHT ###### |
106 | 106 | if (!get_option('geodir_detail_sidebar_left_section')) { |
107 | - /** This action is documented in geodirectory-templates/listing-detail.php */ |
|
108 | - do_action('geodir_detail_sidebar'); |
|
107 | + /** This action is documented in geodirectory-templates/listing-detail.php */ |
|
108 | + do_action('geodir_detail_sidebar'); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for the success page after submitting a listing |
|
4 | - * |
|
5 | - * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | - * |
|
7 | - * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | - * @since 1.0.0 |
|
9 | - * @package GeoDirectory |
|
10 | - */ |
|
3 | + * Template for the success page after submitting a listing |
|
4 | + * |
|
5 | + * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | + * |
|
7 | + * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | + * @since 1.0.0 |
|
9 | + * @package GeoDirectory |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | // call header |
13 | 13 | get_header(); |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for the success page after submitting a listing |
|
4 | - * |
|
5 | - * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | - * |
|
7 | - * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | - * @since 1.0.0 |
|
9 | - * @package GeoDirectory |
|
10 | - * @deprecated 1.4.2 listing-success.php |
|
11 | - */ |
|
3 | + * Template for the success page after submitting a listing |
|
4 | + * |
|
5 | + * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | + * |
|
7 | + * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | + * @since 1.0.0 |
|
9 | + * @package GeoDirectory |
|
10 | + * @deprecated 1.4.2 listing-success.php |
|
11 | + */ |
|
12 | 12 | get_header(); |
13 | 13 | |
14 | 14 | /** |
@@ -1,21 +1,21 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for the register for box on the register/signin page |
|
4 | - * |
|
5 | - * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | - * |
|
7 | - * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | - * @since 1.0.0 |
|
9 | - * @package GeoDirectory |
|
10 | - */ |
|
3 | + * Template for the register for box on the register/signin page |
|
4 | + * |
|
5 | + * You can make most changes via hooks or see the link below for info on how to replace the template in your theme. |
|
6 | + * |
|
7 | + * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/ |
|
8 | + * @since 1.0.0 |
|
9 | + * @package GeoDirectory |
|
10 | + */ |
|
11 | 11 | if (isset($_GET['redirect_to']) && $_GET['redirect_to'] != '') { |
12 | - $redirect_to = $_GET['redirect_to']; |
|
12 | + $redirect_to = $_GET['redirect_to']; |
|
13 | 13 | } else { |
14 | - //echo $_SERVER['HTTP_HOST'] ; |
|
15 | - $redirect_to = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; |
|
16 | - if (strpos($redirect_to, $_SERVER['HTTP_HOST']) === false) { |
|
17 | - $redirect_to = home_url(); |
|
18 | - } |
|
14 | + //echo $_SERVER['HTTP_HOST'] ; |
|
15 | + $redirect_to = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; |
|
16 | + if (strpos($redirect_to, $_SERVER['HTTP_HOST']) === false) { |
|
17 | + $redirect_to = home_url(); |
|
18 | + } |
|
19 | 19 | } |
20 | 20 | ?> |
21 | 21 | <div id="sign_up"> |
@@ -26,28 +26,28 @@ discard block |
||
26 | 26 | <h4> |
27 | 27 | <?php |
28 | 28 | |
29 | - /** |
|
30 | - * Filter the `REGISTRATION_NOW_TEXT` title text on the register form template. |
|
31 | - * |
|
32 | - * @since 1.0.0 |
|
33 | - */ |
|
34 | - echo apply_filters('geodir_registration_page_title', REGISTRATION_NOW_TEXT); |
|
29 | + /** |
|
30 | + * Filter the `REGISTRATION_NOW_TEXT` title text on the register form template. |
|
31 | + * |
|
32 | + * @since 1.0.0 |
|
33 | + */ |
|
34 | + echo apply_filters('geodir_registration_page_title', REGISTRATION_NOW_TEXT); |
|
35 | 35 | |
36 | - ?> |
|
36 | + ?> |
|
37 | 37 | </h4> |
38 | 38 | <?php |
39 | - global $geodir_signup_error; |
|
40 | - if ($geodir_signup_error != '') { |
|
41 | - echo '<p class="error_msg">' . $geodir_signup_error . '</p>'; |
|
42 | - unset($geodir_signup_error); |
|
43 | - } else { |
|
44 | - if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 1) { |
|
45 | - echo '<p class="error_msg">' . EMAIL_USERNAME_EXIST_MSG . '</p>'; |
|
46 | - } else if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 'regnewusr') { |
|
47 | - echo '<p class="error_msg">' . REGISTRATION_DESABLED_MSG . '</p>'; |
|
48 | - } |
|
49 | - } |
|
50 | - ?> |
|
39 | + global $geodir_signup_error; |
|
40 | + if ($geodir_signup_error != '') { |
|
41 | + echo '<p class="error_msg">' . $geodir_signup_error . '</p>'; |
|
42 | + unset($geodir_signup_error); |
|
43 | + } else { |
|
44 | + if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 1) { |
|
45 | + echo '<p class="error_msg">' . EMAIL_USERNAME_EXIST_MSG . '</p>'; |
|
46 | + } else if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 'regnewusr') { |
|
47 | + echo '<p class="error_msg">' . REGISTRATION_DESABLED_MSG . '</p>'; |
|
48 | + } |
|
49 | + } |
|
50 | + ?> |
|
51 | 51 | |
52 | 52 | <form name="cus_registerform" id="cus_registerform" |
53 | 53 | action="<?php echo htmlspecialchars(geodir_curPageURL()); ?>" method="post"> |
@@ -57,10 +57,10 @@ discard block |
||
57 | 57 | <div class="form_row clearfix"> |
58 | 58 | <input placeholder='<?php echo EMAIL_TEXT; ?>' type="text" name="user_email" id="user_email" |
59 | 59 | class="textfield" value="<?php global $user_email; |
60 | - if (!isset($user_email)) { |
|
61 | - $user_email = ''; |
|
62 | - } |
|
63 | - echo esc_attr(stripslashes($user_email)); ?>" size="25"/> |
|
60 | + if (!isset($user_email)) { |
|
61 | + $user_email = ''; |
|
62 | + } |
|
63 | + echo esc_attr(stripslashes($user_email)); ?>" size="25"/> |
|
64 | 64 | |
65 | 65 | <?php if (!get_option('geodir_allow_cpass')) { ?> |
66 | 66 | <div id="reg_passmail"> |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | <div class="form_row clearfix"> |
75 | 75 | <input placeholder='<?php echo FIRST_NAME_TEXT; ?>' type="text" name="user_fname" id="user_fname" |
76 | 76 | class="textfield" value="<?php if (isset($user_fname)) { |
77 | - echo esc_attr(stripslashes($user_fname)); |
|
78 | - } ?>" size="25"/> |
|
77 | + echo esc_attr(stripslashes($user_fname)); |
|
78 | + } ?>" size="25"/> |
|
79 | 79 | <span id="user_fnameInfo"></span> |
80 | 80 | </div> |
81 | 81 | </div> |
@@ -101,14 +101,14 @@ discard block |
||
101 | 101 | <?php } ?> |
102 | 102 | |
103 | 103 | <?php |
104 | - /** |
|
105 | - * Called just before the register new user button on the register form template. |
|
106 | - * |
|
107 | - * Also used by other plugins to add social connect buttons. |
|
108 | - * |
|
109 | - * @since 1.0.0 |
|
110 | - */ |
|
111 | - do_action('social_connect_form'); ?> |
|
104 | + /** |
|
105 | + * Called just before the register new user button on the register form template. |
|
106 | + * |
|
107 | + * Also used by other plugins to add social connect buttons. |
|
108 | + * |
|
109 | + * @since 1.0.0 |
|
110 | + */ |
|
111 | + do_action('social_connect_form'); ?> |
|
112 | 112 | <input type="submit" name="registernow" value="<?php echo REGISTER_NOW_TEXT; ?>" class="geodir_button"/> |
113 | 113 | </form> |
114 | 114 | </div> |