@@ -11,9 +11,9 @@ |
||
11 | 11 | * @since 1.0 |
12 | 12 | */ |
13 | 13 | |
14 | -if ( ! defined( 'ABSPATH' ) ) { |
|
14 | +if ( ! defined('ABSPATH')) { |
|
15 | 15 | exit; // Exit if accessed directly. |
16 | 16 | } |
17 | -if ( is_active_sidebar( 'give-forms-sidebar' ) ) { |
|
18 | - dynamic_sidebar( 'give-forms-sidebar' ); |
|
17 | +if (is_active_sidebar('give-forms-sidebar')) { |
|
18 | + dynamic_sidebar('give-forms-sidebar'); |
|
19 | 19 | } |
20 | 20 | \ No newline at end of file |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @version 1.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( ! defined( 'ABSPATH' ) ) { |
|
11 | +if ( ! defined('ABSPATH')) { |
|
12 | 12 | exit; // Exit if accessed directly. |
13 | 13 | } |
14 | 14 | |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @since 1.0 |
21 | 21 | */ |
22 | -do_action( 'give_before_single_form' ); |
|
22 | +do_action('give_before_single_form'); |
|
23 | 23 | |
24 | -if ( post_password_required() ) { |
|
24 | +if (post_password_required()) { |
|
25 | 25 | echo get_the_password_form(); |
26 | 26 | return; |
27 | 27 | } |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @since 1.0 |
39 | 39 | */ |
40 | - do_action( 'give_before_single_form_summary' ); |
|
40 | + do_action('give_before_single_form_summary'); |
|
41 | 41 | ?> |
42 | 42 | |
43 | - <div class="<?php echo apply_filters( 'give_forms_single_summary_classes', 'summary entry-summary' ); ?>"> |
|
43 | + <div class="<?php echo apply_filters('give_forms_single_summary_classes', 'summary entry-summary'); ?>"> |
|
44 | 44 | |
45 | 45 | <?php |
46 | 46 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @since 1.0 |
52 | 52 | */ |
53 | - do_action( 'give_single_form_summary' ); |
|
53 | + do_action('give_single_form_summary'); |
|
54 | 54 | ?> |
55 | 55 | |
56 | 56 | </div> |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @since 1.0 |
66 | 66 | */ |
67 | - do_action( 'give_after_single_form_summary' ); |
|
67 | + do_action('give_after_single_form_summary'); |
|
68 | 68 | ?> |
69 | 69 | |
70 | 70 | </div><!-- #give-form-<?php the_ID(); ?> --> |
@@ -77,5 +77,5 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @since 1.0 |
79 | 79 | */ |
80 | -do_action( 'give_after_single_form' ); |
|
80 | +do_action('give_after_single_form'); |
|
81 | 81 | ?> |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * @since 1.0 |
12 | 12 | */ |
13 | 13 | |
14 | -if ( ! defined( 'ABSPATH' ) ) { |
|
14 | +if ( ! defined('ABSPATH')) { |
|
15 | 15 | exit; // Exit if accessed directly. |
16 | 16 | } ?> |
17 | 17 | <h1 itemprop="name" class="give-form-title entry-title"><?php the_title(); ?></h1> |
@@ -5,11 +5,11 @@ |
||
5 | 5 | ?> |
6 | 6 | <div id="give-payment-processing"> |
7 | 7 | <?php |
8 | - Give()->notices->print_frontend_notice( sprintf( |
|
8 | + Give()->notices->print_frontend_notice(sprintf( |
|
9 | 9 | /* translators: %s: success page URL */ |
10 | - __( 'Your donation is processing. This page will reload automatically in 8 seconds. If it does not, click <a href="%s">here</a>.', 'give' ), |
|
10 | + __('Your donation is processing. This page will reload automatically in 8 seconds. If it does not, click <a href="%s">here</a>.', 'give'), |
|
11 | 11 | give_get_success_page_uri() |
12 | - ), true, 'success' ); |
|
12 | + ), true, 'success'); |
|
13 | 13 | ?> |
14 | 14 | <span class="give-loading-animation"></span> |
15 | 15 | <script type="text/javascript">setTimeout(function () { |
@@ -6,13 +6,13 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined('ABSPATH')) exit; // Exit if accessed directly. |
|
10 | 10 | // This is the footer used if no others are available |
11 | 11 | ?> |
12 | 12 | <!DOCTYPE html> |
13 | 13 | <html> |
14 | 14 | <head> |
15 | 15 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
16 | - <title><?php echo get_bloginfo( 'name' ); ?></title> |
|
16 | + <title><?php echo get_bloginfo('name'); ?></title> |
|
17 | 17 | </head> |
18 | 18 | <body> |
19 | 19 | \ No newline at end of file |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | // This is the footer used if no others are available |
11 | 14 | ?> |
12 | 15 | <!DOCTYPE html> |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined('ABSPATH')) exit; // Exit if accessed directly. |
|
10 | 10 | |
11 | 11 | |
12 | 12 | // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | <table border="0" cellpadding="10" cellspacing="0" width="100%"> |
45 | 45 | <tr> |
46 | 46 | <td colspan="2" valign="middle" id="credit" style="<?php echo $credit; ?>"> |
47 | - <?php echo wpautop( wp_kses_post( wptexturize( apply_filters( 'give_email_footer_text', '<a href="' . esc_url( home_url() ) . '">' . get_bloginfo( 'name' ) . '</a>' ) ) ) ); ?> |
|
47 | + <?php echo wpautop(wp_kses_post(wptexturize(apply_filters('give_email_footer_text', '<a href="'.esc_url(home_url()).'">'.get_bloginfo('name').'</a>')))); ?> |
|
48 | 48 | </td> |
49 | 49 | </tr> |
50 | 50 | </table> |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | |
12 | 15 | // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined('ABSPATH')) exit; // Exit if accessed directly. |
|
10 | 10 | |
11 | 11 | // {email} is replaced by the content entered in Donations > Settings > Emails |
12 | 12 |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | // {email} is replaced by the content entered in Donations > Settings > Emails |
12 | 15 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined('ABSPATH')) exit; // Exit if accessed directly. |
|
10 | 10 | |
11 | 11 | // This is the footer used if no others are available |
12 | 12 |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | // This is the footer used if no others are available |
12 | 15 |
@@ -7,22 +7,22 @@ discard block |
||
7 | 7 | * @copyright Copyright (c) 2016, WordImpress |
8 | 8 | * @license https://opensource.org/licenses/gpl-license GNU Public License |
9 | 9 | */ |
10 | -$current_user = wp_get_current_user(); |
|
10 | +$current_user = wp_get_current_user(); |
|
11 | 11 | |
12 | -if ( is_user_logged_in() ): |
|
12 | +if (is_user_logged_in()): |
|
13 | 13 | $user_id = get_current_user_id(); |
14 | - $first_name = get_user_meta( $user_id, 'first_name', true ); |
|
15 | - $last_name = get_user_meta( $user_id, 'last_name', true ); |
|
14 | + $first_name = get_user_meta($user_id, 'first_name', true); |
|
15 | + $last_name = get_user_meta($user_id, 'last_name', true); |
|
16 | 16 | $display_name = $current_user->display_name; |
17 | - $address = give_get_donor_address( $user_id ); |
|
17 | + $address = give_get_donor_address($user_id); |
|
18 | 18 | |
19 | - if ( isset( $_GET['updated'] ) && $_GET['updated'] == true && ! give_get_errors() ): ?> |
|
19 | + if (isset($_GET['updated']) && $_GET['updated'] == true && ! give_get_errors()): ?> |
|
20 | 20 | <p class="give_success"> |
21 | - <strong><?php esc_html_e( 'Success:', 'give' ); ?></strong> <?php esc_html_e( 'Your profile has been updated.', 'give' ); ?> |
|
21 | + <strong><?php esc_html_e('Success:', 'give'); ?></strong> <?php esc_html_e('Your profile has been updated.', 'give'); ?> |
|
22 | 22 | </p> |
23 | 23 | <?php endif; ?> |
24 | 24 | |
25 | - <?php Give()->notices->render_frontend_notices( 0 ); ?> |
|
25 | + <?php Give()->notices->render_frontend_notices(0); ?> |
|
26 | 26 | |
27 | 27 | <?php |
28 | 28 | /** |
@@ -32,38 +32,38 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @since 1.0 |
34 | 34 | */ |
35 | - do_action( 'give_profile_editor_before' ); |
|
35 | + do_action('give_profile_editor_before'); |
|
36 | 36 | ?> |
37 | 37 | |
38 | 38 | <form id="give_profile_editor_form" class="give-form" action="<?php echo give_get_current_page_url(); ?>" method="post"> |
39 | 39 | |
40 | 40 | <fieldset> |
41 | 41 | |
42 | - <legend id="give_profile_name_label"><?php esc_html_e( 'Change your Name', 'give' ); ?></legend> |
|
42 | + <legend id="give_profile_name_label"><?php esc_html_e('Change your Name', 'give'); ?></legend> |
|
43 | 43 | |
44 | 44 | <p id="give_profile_first_name_wrap" class="form-row form-row-first form-row-responsive"> |
45 | - <label for="give_first_name"><?php esc_html_e( 'First Name', 'give' ); ?></label> |
|
46 | - <input name="give_first_name" id="give_first_name" class="text give-input" type="text" value="<?php echo esc_attr( $first_name ); ?>"/> |
|
45 | + <label for="give_first_name"><?php esc_html_e('First Name', 'give'); ?></label> |
|
46 | + <input name="give_first_name" id="give_first_name" class="text give-input" type="text" value="<?php echo esc_attr($first_name); ?>"/> |
|
47 | 47 | </p> |
48 | 48 | |
49 | 49 | <p id="give_profile_last_name_wrap" class="form-row form-row-last form-row-responsive"> |
50 | - <label for="give_last_name"><?php esc_html_e( 'Last Name', 'give' ); ?></label> |
|
51 | - <input name="give_last_name" id="give_last_name" class="text give-input" type="text" value="<?php echo esc_attr( $last_name ); ?>"/> |
|
50 | + <label for="give_last_name"><?php esc_html_e('Last Name', 'give'); ?></label> |
|
51 | + <input name="give_last_name" id="give_last_name" class="text give-input" type="text" value="<?php echo esc_attr($last_name); ?>"/> |
|
52 | 52 | </p> |
53 | 53 | |
54 | 54 | <p id="give_profile_display_name_wrap" class="form-row form-row-first form-row-responsive"> |
55 | - <label for="give_display_name"><?php esc_html_e( 'Display Name', 'give' ); ?></label> |
|
55 | + <label for="give_display_name"><?php esc_html_e('Display Name', 'give'); ?></label> |
|
56 | 56 | <select name="give_display_name" id="give_display_name" class="select give-select"> |
57 | - <?php if ( ! empty( $current_user->first_name ) ): ?> |
|
58 | - <option <?php selected( $display_name, $current_user->first_name ); ?> value="<?php echo esc_attr( $current_user->first_name ); ?>"><?php echo esc_html( $current_user->first_name ); ?></option> |
|
57 | + <?php if ( ! empty($current_user->first_name)): ?> |
|
58 | + <option <?php selected($display_name, $current_user->first_name); ?> value="<?php echo esc_attr($current_user->first_name); ?>"><?php echo esc_html($current_user->first_name); ?></option> |
|
59 | 59 | <?php endif; ?> |
60 | - <option <?php selected( $display_name, $current_user->user_nicename ); ?> value="<?php echo esc_attr( $current_user->user_nicename ); ?>"><?php echo esc_html( $current_user->user_nicename ); ?></option> |
|
61 | - <?php if ( ! empty( $current_user->last_name ) ): ?> |
|
62 | - <option <?php selected( $display_name, $current_user->last_name ); ?> value="<?php echo esc_attr( $current_user->last_name ); ?>"><?php echo esc_html( $current_user->last_name ); ?></option> |
|
60 | + <option <?php selected($display_name, $current_user->user_nicename); ?> value="<?php echo esc_attr($current_user->user_nicename); ?>"><?php echo esc_html($current_user->user_nicename); ?></option> |
|
61 | + <?php if ( ! empty($current_user->last_name)): ?> |
|
62 | + <option <?php selected($display_name, $current_user->last_name); ?> value="<?php echo esc_attr($current_user->last_name); ?>"><?php echo esc_html($current_user->last_name); ?></option> |
|
63 | 63 | <?php endif; ?> |
64 | - <?php if ( ! empty( $current_user->first_name ) && ! empty( $current_user->last_name ) ): ?> |
|
65 | - <option <?php selected( $display_name, $current_user->first_name . ' ' . $current_user->last_name ); ?> value="<?php echo esc_attr( $current_user->first_name . ' ' . $current_user->last_name ); ?>"><?php echo esc_html( $current_user->first_name . ' ' . $current_user->last_name ); ?></option> |
|
66 | - <option <?php selected( $display_name, $current_user->last_name . ' ' . $current_user->first_name ); ?> value="<?php echo esc_attr( $current_user->last_name . ' ' . $current_user->first_name ); ?>"><?php echo esc_html( $current_user->last_name . ' ' . $current_user->first_name ); ?></option> |
|
64 | + <?php if ( ! empty($current_user->first_name) && ! empty($current_user->last_name)): ?> |
|
65 | + <option <?php selected($display_name, $current_user->first_name.' '.$current_user->last_name); ?> value="<?php echo esc_attr($current_user->first_name.' '.$current_user->last_name); ?>"><?php echo esc_html($current_user->first_name.' '.$current_user->last_name); ?></option> |
|
66 | + <option <?php selected($display_name, $current_user->last_name.' '.$current_user->first_name); ?> value="<?php echo esc_attr($current_user->last_name.' '.$current_user->first_name); ?>"><?php echo esc_html($current_user->last_name.' '.$current_user->first_name); ?></option> |
|
67 | 67 | <?php endif; ?> |
68 | 68 | </select> |
69 | 69 | <?php |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @since 1.0 |
76 | 76 | */ |
77 | - do_action( 'give_profile_editor_name' ); |
|
77 | + do_action('give_profile_editor_name'); |
|
78 | 78 | ?> |
79 | 79 | </p> |
80 | 80 | |
@@ -86,12 +86,12 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @since 1.0 |
88 | 88 | */ |
89 | - do_action( 'give_profile_editor_after_name' ); |
|
89 | + do_action('give_profile_editor_after_name'); |
|
90 | 90 | ?> |
91 | 91 | |
92 | 92 | <p class="form-row form-row-last form-row-responsive"> |
93 | - <label for="give_email"><?php esc_html_e( 'Email Address', 'give' ); ?></label> |
|
94 | - <input name="give_email" id="give_email" class="text give-input required" type="email" value="<?php echo esc_attr( $current_user->user_email ); ?>" required aria-required="true"/> |
|
93 | + <label for="give_email"><?php esc_html_e('Email Address', 'give'); ?></label> |
|
94 | + <input name="give_email" id="give_email" class="text give-input required" type="email" value="<?php echo esc_attr($current_user->user_email); ?>" required aria-required="true"/> |
|
95 | 95 | <?php |
96 | 96 | /** |
97 | 97 | * Fires in the profile editor shortcode, to the email section. |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @since 1.0 |
102 | 102 | */ |
103 | - do_action( 'give_profile_editor_email' ); |
|
103 | + do_action('give_profile_editor_email'); |
|
104 | 104 | ?> |
105 | 105 | </p> |
106 | 106 | |
@@ -112,45 +112,45 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @since 1.0 |
114 | 114 | */ |
115 | - do_action( 'give_profile_editor_after_email' ); |
|
115 | + do_action('give_profile_editor_after_email'); |
|
116 | 116 | ?> |
117 | 117 | |
118 | - <legend id="give_profile_billing_address_label"><?php esc_html_e( 'Change your Billing Address', 'give' ); ?></legend> |
|
118 | + <legend id="give_profile_billing_address_label"><?php esc_html_e('Change your Billing Address', 'give'); ?></legend> |
|
119 | 119 | |
120 | 120 | <div id="give_profile_billing_address_wrap"> |
121 | 121 | |
122 | 122 | <p id="give-card-address-wrap" class="form-row form-row-first form-row-responsive"> |
123 | - <label for="give_address_line1"><?php esc_html_e( 'Address 1', 'give' ); ?></label> |
|
124 | - <input name="give_address_line1" id="give_address_line1" class="text give-input" type="text" value="<?php echo esc_attr( $address['line1'] ); ?>"/> |
|
123 | + <label for="give_address_line1"><?php esc_html_e('Address 1', 'give'); ?></label> |
|
124 | + <input name="give_address_line1" id="give_address_line1" class="text give-input" type="text" value="<?php echo esc_attr($address['line1']); ?>"/> |
|
125 | 125 | </p> |
126 | 126 | |
127 | 127 | <p id="give-card-address-2-wrap" class="form-row form-row-last form-row-responsive"> |
128 | - <label for="give_address_line2"><?php esc_html_e( 'Address 2', 'give' ); ?></label> |
|
129 | - <input name="give_address_line2" id="give_address_line2" class="text give-input" type="text" value="<?php echo esc_attr( $address['line2'] ); ?>"/> |
|
128 | + <label for="give_address_line2"><?php esc_html_e('Address 2', 'give'); ?></label> |
|
129 | + <input name="give_address_line2" id="give_address_line2" class="text give-input" type="text" value="<?php echo esc_attr($address['line2']); ?>"/> |
|
130 | 130 | </p> |
131 | 131 | |
132 | 132 | <p id="give-card-city-wrap" class="form-row form-row-first form-row-responsive"> |
133 | - <label for="give_address_city"><?php esc_html_e( 'City', 'give' ); ?></label> |
|
134 | - <input name="give_address_city" id="give_address_city" class="text give-input" type="text" value="<?php echo esc_attr( $address['city'] ); ?>"/> |
|
133 | + <label for="give_address_city"><?php esc_html_e('City', 'give'); ?></label> |
|
134 | + <input name="give_address_city" id="give_address_city" class="text give-input" type="text" value="<?php echo esc_attr($address['city']); ?>"/> |
|
135 | 135 | </p> |
136 | 136 | |
137 | 137 | <p id="give-card-zip-wrap" class="form-row form-row-last form-row-responsive"> |
138 | - <label for="give_address_zip"><?php esc_html_e( 'Zip / Postal Code', 'give' ); ?></label> |
|
139 | - <input name="give_address_zip" id="give_address_zip" class="text give-input" type="text" value="<?php echo esc_attr( $address['zip'] ); ?>"/> |
|
138 | + <label for="give_address_zip"><?php esc_html_e('Zip / Postal Code', 'give'); ?></label> |
|
139 | + <input name="give_address_zip" id="give_address_zip" class="text give-input" type="text" value="<?php echo esc_attr($address['zip']); ?>"/> |
|
140 | 140 | </p> |
141 | 141 | |
142 | 142 | <p id="give-card-country-wrap" class="form-row form-row-first form-row-responsive"> |
143 | - <label for="give_address_country"><?php esc_html_e( 'Country', 'give' ); ?></label> |
|
143 | + <label for="give_address_country"><?php esc_html_e('Country', 'give'); ?></label> |
|
144 | 144 | <select name="give_address_country" id="give_address_country" class="select give-select"> |
145 | - <?php foreach ( give_get_country_list() as $key => $country ) : ?> |
|
146 | - <option value="<?php echo $key; ?>"<?php selected( $address['country'], $key ); ?>><?php echo esc_html( $country ); ?></option> |
|
145 | + <?php foreach (give_get_country_list() as $key => $country) : ?> |
|
146 | + <option value="<?php echo $key; ?>"<?php selected($address['country'], $key); ?>><?php echo esc_html($country); ?></option> |
|
147 | 147 | <?php endforeach; ?> |
148 | 148 | </select> |
149 | 149 | </p> |
150 | 150 | |
151 | 151 | <p id="give-card-state-wrap" class="form-row form-row-last form-row-responsive"> |
152 | - <label for="give_address_state"><?php esc_html_e( 'State / Province / County', 'give' ); ?></label> |
|
153 | - <input name="give_address_state" id="give_address_state" class="text give-input" type="text" value="<?php echo esc_attr( $address['state'] ); ?>"/> |
|
152 | + <label for="give_address_state"><?php esc_html_e('State / Province / County', 'give'); ?></label> |
|
153 | + <input name="give_address_state" id="give_address_state" class="text give-input" type="text" value="<?php echo esc_attr($address['state']); ?>"/> |
|
154 | 154 | </p> |
155 | 155 | |
156 | 156 | <?php |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @since 1.0 |
163 | 163 | */ |
164 | - do_action( 'give_profile_editor_address' ); |
|
164 | + do_action('give_profile_editor_address'); |
|
165 | 165 | ?> |
166 | 166 | |
167 | 167 | </div> |
@@ -174,19 +174,19 @@ discard block |
||
174 | 174 | * |
175 | 175 | * @since 1.0 |
176 | 176 | */ |
177 | - do_action( 'give_profile_editor_after_address' ); |
|
177 | + do_action('give_profile_editor_after_address'); |
|
178 | 178 | ?> |
179 | 179 | |
180 | - <legend id="give_profile_password_label"><?php esc_html_e( 'Change your Password', 'give' ); ?></legend> |
|
180 | + <legend id="give_profile_password_label"><?php esc_html_e('Change your Password', 'give'); ?></legend> |
|
181 | 181 | |
182 | 182 | <div id="give_profile_password_wrap" class="give-clearfix"> |
183 | 183 | <p id="give_profile_password_wrap_1" class="form-row form-row-first form-row-responsive"> |
184 | - <label for="give_new_user_pass1"><?php esc_html_e( 'New Password', 'give' ); ?></label> |
|
184 | + <label for="give_new_user_pass1"><?php esc_html_e('New Password', 'give'); ?></label> |
|
185 | 185 | <input name="give_new_user_pass1" id="give_new_user_pass1" class="password give-input" type="password"/> |
186 | 186 | </p> |
187 | 187 | |
188 | 188 | <p id="give_profile_password_wrap_2" class="form-row form-row-last form-row-responsive"> |
189 | - <label for="give_new_user_pass2"><?php esc_html_e( 'Re-enter Password', 'give' ); ?></label> |
|
189 | + <label for="give_new_user_pass2"><?php esc_html_e('Re-enter Password', 'give'); ?></label> |
|
190 | 190 | <input name="give_new_user_pass2" id="give_new_user_pass2" class="password give-input" type="password"/> |
191 | 191 | <?php |
192 | 192 | /** |
@@ -196,12 +196,12 @@ discard block |
||
196 | 196 | * |
197 | 197 | * @since 1.0 |
198 | 198 | */ |
199 | - do_action( 'give_profile_editor_password' ); |
|
199 | + do_action('give_profile_editor_password'); |
|
200 | 200 | ?> |
201 | 201 | </p> |
202 | 202 | </div> |
203 | 203 | |
204 | - <p class="give_password_change_notice"><?php esc_html_e( 'Please note after changing your password, you must log back in.', 'give' ); ?></p> |
|
204 | + <p class="give_password_change_notice"><?php esc_html_e('Please note after changing your password, you must log back in.', 'give'); ?></p> |
|
205 | 205 | |
206 | 206 | <?php |
207 | 207 | /** |
@@ -211,14 +211,14 @@ discard block |
||
211 | 211 | * |
212 | 212 | * @since 1.0 |
213 | 213 | */ |
214 | - do_action( 'give_profile_editor_after_password' ); |
|
214 | + do_action('give_profile_editor_after_password'); |
|
215 | 215 | ?> |
216 | 216 | |
217 | 217 | <p id="give_profile_submit_wrap"> |
218 | - <input type="hidden" name="give_profile_editor_nonce" value="<?php echo wp_create_nonce( 'give-profile-editor-nonce' ); ?>"/> |
|
218 | + <input type="hidden" name="give_profile_editor_nonce" value="<?php echo wp_create_nonce('give-profile-editor-nonce'); ?>"/> |
|
219 | 219 | <input type="hidden" name="give_action" value="edit_user_profile"/> |
220 | - <input type="hidden" name="give_redirect" value="<?php echo esc_url( give_get_current_page_url() ); ?>"/> |
|
221 | - <input name="give_profile_editor_submit" id="give_profile_editor_submit" type="submit" class="give_submit" value="<?php esc_attr_e( 'Save Changes', 'give' ); ?>"/> |
|
220 | + <input type="hidden" name="give_redirect" value="<?php echo esc_url(give_get_current_page_url()); ?>"/> |
|
221 | + <input name="give_profile_editor_submit" id="give_profile_editor_submit" type="submit" class="give_submit" value="<?php esc_attr_e('Save Changes', 'give'); ?>"/> |
|
222 | 222 | </p> |
223 | 223 | |
224 | 224 | </fieldset> |
@@ -233,11 +233,11 @@ discard block |
||
233 | 233 | * |
234 | 234 | * @since 1.0 |
235 | 235 | */ |
236 | - do_action( 'give_profile_editor_after' ); |
|
236 | + do_action('give_profile_editor_after'); |
|
237 | 237 | ?> |
238 | 238 | |
239 | 239 | <?php |
240 | 240 | else: |
241 | - esc_html_e( 'You need to login to edit your profile.', 'give' ); |
|
241 | + esc_html_e('You need to login to edit your profile.', 'give'); |
|
242 | 242 | echo give_login_form(); |
243 | 243 | endif; |
@@ -237,7 +237,9 @@ |
||
237 | 237 | ?> |
238 | 238 | |
239 | 239 | <?php |
240 | -else: |
|
240 | +else { |
|
241 | + : |
|
241 | 242 | esc_html_e( 'You need to login to edit your profile.', 'give' ); |
243 | +} |
|
242 | 244 | echo give_login_form(); |
243 | 245 | endif; |